Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84839 - Cross gcc build: USE flag "uclibc"???
Summary: Cross gcc build: USE flag "uclibc"???
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-11 03:03 UTC by Klaus Kusche
Modified: 2005-03-12 08:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Kusche 2005-03-11 03:03:19 UTC
I'm trying to build a cross toolchain using gcc-3.4.3.20050110. 
The host is a Gentoo i686 with glibc, the target is an arm with uclibc.

I checked toolchain.eclass and found out that I must use the "uclibc" USE flag for building the cross compiler to get it configured with "--disable-__cxa_atexit" and "--enable-sjlj-exception". Otherwise, the code produced by the cross compiler will not run on the target system (it would be compiled for "--enable-__cxa_atexit", and I was told that this does not work on an uclibc system).

Now my question is:
Has compiling the cross gcc with USE="uclibc" any other side effects? 
Of course, it also causes the host parts of the gcc build (the compiler executables) to be built with USE="uclibc", which is wrong, because the host system uses glibc only, not uclibc, and hence the host executables should not be built for uclibc!
Comment 1 SpanKY gentoo-dev 2005-03-11 07:12:45 UTC
this has been fixed already in the toolchain.eclass

read it again
Comment 2 Klaus Kusche 2005-03-12 08:46:06 UTC
I've read it again.

As far as I got it now, I must *not* USE uclibc if the host uses glibc, but I must name my target "*-uclibc" to have the lib's compiled for uclibc.

Correct?