This is the mail archive of the
gsl-discuss@sourceware.cygnus.com
mailing list for the GSL project.
Re: compiling GSL on digital unix.
- To: Mark Galassi <rosalia at lanl dot gov>
- Subject: Re: compiling GSL on digital unix.
- From: Jon McAuliffe <jonm at amazon dot com>
- Date: Fri, 05 Nov 1999 12:59:56 -0800
- Cc: Tim Mooney <mooney at dogbert dot cc dot ndsu dot nodak dot edu>,Jon McAuliffe <jonm at amazon dot com>,Brian Gough <bjg at network-theory dot co dot uk>,gsl-discuss at sourceware dot cygnus dot com
- Reply-To: jonm at amazon dot com
> What is the downside to that? Would you recommend that GSL not be
> used in such a case?
>
> I think it is a shame to have the code not build because of a bad
> option: it looks cheesy. I would prefer to have configure warn you
> that the option is not there, and then either go on with a caveat, or
> stop in a clean way.
i agree --- mainly because we have switched C compilers firmwide, and gcc is
no longer supported. if i want an upgrade, i have to do it myself, and that's
not really what i'm supposed to spend my time on. (not that it wouldn't be
enormously entertaining to build gcc from scratch.)
> Your note on gcc options for applications that *use* GSL is
> interesting:
>
> Tim> On more note. GSL's configure augments CFLAGS for either
> Tim> Linux or Digital Unix on the alpha because its configure.in
> Tim> authors know that to get fully compliant IEEE code some
> Tim> special options are required. Packages that *use* GSL don't
> Tim> generally know that, though, and code that uses GSL on the
> Tim> alpha should be compiled using the same set of rounding and
> Tim> IEEE-related CFLAGS as GSL itself used. This means that for
> Tim> packages that use GSL or software you write yourself that
> Tim> uses GSL, be sure you compile using the appropriate CFLAGS to
> Tim> enable soft-controlled rounding and IEEE compliant code.
>
> I have been working on a "gsl-config" program (like gtk-config and
> gnome-config) which would return the options needed to compile and
> link with GSL. This is important for various reasons, like the fact
> that the libraries are installed into $(prefix)/gsl/libwhatever.a, so
> you need a -L$(prefix)/gsl in the link line.
this would be incredibly useful to have, since the chances that i would
remember to compile with -mieee every time (assuming i upgraded gcc) are
roughly zero.
> By the way, what's the worst that happens if -mieee is used to build
> GSL but not the application that invokes GSL?
you're obviously working on some kind of telepathy project down there at LANL.
=)
cheers
jon.