This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Compilation on IBM/SP
- From: Albert Chin <gsl-discuss at lists dot thewrittenword dot com>
- To: Alan Aspuru-Guzik <aspuru at okra dot cchem dot Berkeley dot edu>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Sat, 16 Feb 2002 11:18:53 -0600
- Subject: Re: Compilation on IBM/SP
- References: <15019.25626.223858.608681@debian> <Pine.LNX.4.21.0202141756180.7007-100000@okra.cchem.Berkeley.edu>
- Reply-to: gsl-discuss at sources dot redhat dot com
On Thu, Feb 14, 2002 at 06:02:05PM -0800, Alan Aspuru-Guzik wrote:
> Dear GSL users,
> This might be an esoteric problem of gcc on AIX, but this is what I find
> when trying to compile using gcc on an IBM SP with AIX 4.3.3 (ASCI Blue),
>
> At the very end, when it is ready to create libgsl.so.0, and It is
> building with the command:
> gcc -shared -o .libs/libgsl.so.0 version.o
> .libs/libgsl.lax/libgslblock.al/init.lo
> .libs/libgsl.lax/libgslblock.al/file.lo
> .libs/libgsl.lax/libgslblock.al/blo
> (....) lots of files here (....)
> /libutils.al vector/.libs/libgslvector.al -lm
> -lc ${wl}-berok -Wl,-bnoentry -Wl,-bexport:.libs/libgsl.exp
> ld: 0711-781 ERROR: TOC overflow. TOC size: 71248 Maximum
> size: 65536
> collect2: ld returned 12 exit status
>
> I end up with that TOC ERROR.
> In another mailing list, I find that this can be fixed by adding
> -Wl,-bbigtoc to LDFLAGS:
> http://gcc.gnu.org/ml/gcc/2000-12/msg00509.html
>
> So I go to the root Makefile, and edit it and add that to LDFLAGS= (which
> is empty) and try to run make again, and the LDFLAGS do not appear in the
> actual command. Where do I have to add those flags to make the compilation
> work?
LDFLAGS="-Wl,-bbigtoc" ./configure ...
--
albert chin (china@thewrittenword.com)