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

See the CrossGCC FAQ 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: [discuss] Problem building cross compiler for x86_64


On Thursday 19 January 2006 13:21, Andi Kleen wrote:
> On Thursday 19 January 2006 19:19, Mike Frysinger wrote:
> > On Thursday 19 January 2006 12:18, Andi Kleen wrote:
> > > On Thursday 19 January 2006 12:18, Jan Beulich wrote:
> > > > Why would you need to build glibc when you want a cross compiler?
> > >
> > > The unwinder in libgcc2 needs libc harders unfortunately. Long ago
> > > it could be workarounded with -Dinhibit_libc=1, but that has since then
> > > bitrotted.
> >
> > for linux targets yes (although with gcc-4.x, it takes two lines of
> > additional code to bring back this "feature")
>
> If you already solved it you should perhaps consider to grace the gcc
> people with your wisdom and send them a patch.

i tried and was happly flamed for proposing such ideas :)

the reason they dont like it (and wont accept it) is that inhibiting libc 
breaks unwind/thread support in the compiler for linux targets

although, this doesnt matter at all if all you want to do is cross-compile a 
kernel or some apps which dont require the aforementioned support
-mike

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org


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