This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


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: Multilib problem




On 01/23/2014 02:37 PM, Danny Gale wrote:
Hi all,

I've successfully compiled my powerpc64-e6500-linux-gnu toolchain!
Hooray! :)

Now, the trouble is that U-Boot doesn't support 64-bit powerpc builds,
so the toolchain needs to have multilib enabled. The compiler itself is
built with no problem, but during the "Building for multilib
subdir='32'" step, the build fails with this error:

The problem with multilib on powerpc (and x86, and possibly others) is that glibc (and probably other libcs) use the target to determine which api to build for the arch. To explain: powerpc64-e6500-linux-gnu passed to glibc's configure will always try to build a 64bit libc. One needs to pass powerpc-e6500-linux-gnu and then override the place to find CC,LD, and the like as well as the result directory. The only crossbuild tool I know of that actually is able to do this is gentoo's "crossdev". I've been working on some patches to try to get similar functionality in crosstool-ng, but they're nowhere near ready (https://bitbucket.org/jmesmon/crosstool-ng-pq/ is my patchqueue which includes them).

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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