This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mips64-linux multilib vs -B mips64-linux/lib32/

Guido Guenther <> 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 and
> (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
$ gcc --print-multi-directory
$ gcc --print-multi-os-directory
$ gcc --print-multi-os-directory -m32
$ gcc --print-multi-directory -m32

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/ 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 Jaeger,,
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature

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