This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: how do you build a 64-bit library on IRIX


Brian Gough wrote:
> 
> gsl-discuss@lists.thewrittenword.com writes:
>  > On Thu, Sep 27, 2001 at 12:12:02PM -0400, Charles Yee wrote:
>  > > > How would you build 64-bit library from GSl 0.9.3 on IRIX?
>  > >
>  > > Thanks for your help.
>  >
>  > Have you tried
>  >   $ CC=cc CFLAGS="-64" LDFLAGS="-64" ./configure ...
>  >
>  > I think GCC can do 64-bit builds on IRIX as well.
>  >
> 
> I'll add this to the machine-specific installation notes.

A somewhat related question. I'm using GSL version 0.9.3
On these IRIX machines, one can build/install multiple versions of the
GSL (O32, N32, 64). The LD_LIBRARYxx_PATH family can help the
linker find the right one but...

I'm finding that the most recent install of GSL (ie. the one I install
last)
provides the "gsl-config" script which is used by gsl.m4
To remedy this, I use the ./configure --exec-prefix=/a/different/place
to configure GSL so I get multiple gsl-config scripts.

Then my application, which depends on GSL and therefore uses gsl.m4,
searches out gsl-config. To tell it which one to use, I
configure my application package with
./configure --with-gsl-exec-prefix=/a/certain/place

This all seems to work except that there seems to be bug
in gsl.m4 in extracting the major/minor/micro version numbers.

Specifically, while lines 37,38 (major) and 43,44 (minor) show:
    gsl_major_version=`$GSL_CONFIG $gsl_args --version | \
           sed 's/^\([[0-9]]*\).*/\1/'`
-- and --
    gsl_minor_version=`$GSL_CONFIG $gsl_args --version | \
           sed 's/^\([[0-9]]*\)\.\{0,1\}\([[0-9]]*\).*/\2/'`

lines 49,50 (micro) show:
    gsl_micro_version=`$GSL_CONFIG $gsl_config_args --version | \
           sed
's/^\([[0-9]]*\)\.\{0,1\}\([[0-9]]*\)\.\{0,1\}\([[0-9]]*\).*/\3/'`

The subtle difference is the argument passed to GSL_CONFIG. In the first
two cases, it gets sent "--with-gsl-exec-prefix=/a/certain/place" which
is wrong (gsl-config doesn't accept that (any?) argument). The micro
version
works, but it too may have a lurking problem. There is no variable 
called $gsl_config_args defined anywhere. I don't know what the intent
was for argument passing to $GLS_CONFIG but sending nothing works for
me!

Thanks,
Bill


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]