mips64-linux multilib vs -B mips64-linux/lib32/
Andreas Jaeger
aj@suse.de
Sat Jul 19 18:31:00 GMT 2003
Guido Guenther <agx@sigxcpu.org> writes:
> Hi,
> when trying to build a cross mips64-linux-gcc like:
> ../gcc-cvs/configure --target=mips64-linux --enable-languages='c,c++'
> I'm running into the problem that the link for libgcc_s_32.so and
> libgcc_s_64.so (as well as libstdc++ among others) always get passed a
> -B/var/scratch/toolchain//cross-mips64-linux/mips64-linux/lib/
-B is the prefix for the executables etc. It should be the same
independend of the multilib.
I have the same on x86_64:
checking for gcc... (cached) /usr/src/aj/build/gcc/misc/gcc/xgcc -B/usr/src/aj/build/gcc/misc/gcc/ -B/opt/gcc/hammer-3_3-branch/x86_64-suse-linux-gnu/bin/ -B/opt/gcc/hammer-3_3-branch/x86_64-suse-linux-gnu/lib/ -isystem /opt/gcc/hammer-3_3-branch/x86_64-suse-linux-gnu/include -m32
checking whether we are using GNU C... (cached) yes
The magic happens AFAIK with the --print-multi options. For example I
have on x86_64:
$ gcc --print-multi-lib
.;
32;@m32
$ gcc --print-multi-directory
.
$ gcc --print-multi-os-directory
../lib64
$ gcc --print-multi-os-directory -m32
../lib
$ gcc --print-multi-directory -m32
32
So, ../lib is used to the the 32-bit library and ../lib64 for the
64-bit one. -m32 does the right thing here.
> (always picking up the o32 glibc). This is wrong for n32 and n64 which
> should have lib32/ and lib64/ respectively. I can hack around this in
> gcc/mklibgcc.in and other places but maybe somebody can point me at the
> right place to fix this.
Comparing x86_64-linux-gnu with mips64-linux-gnu, I only noticed that
x86_64-linux-gnu has in t-linux64:
LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib
This is missing in the mips version - but I doubt that this solves
your problem.
Andreas
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030719/cf649cb2/attachment.sig>
More information about the Gcc
mailing list