This is the mail archive of the crossgcc@sources.redhat.com 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: Where does crosstool get its "kernel" includes?


On Tue, 2004-09-07 at 05:30, Dan Kegel wrote:
> Alex Bennee wrote:
> <snip>
> > I keep running into compile failures with the
> > low level tools (sg3_utils and usbutils so far).
> 
> Not totally unexpected.
> 
> I have heard that it's important to build glibc with the
> real kernel headers like I'm doing (not sure it's true),

I would assume glibc has a legitimate need for the knowledge of things
like the ABI layout although not of the internal kernel structures.
AFAIK the issue of a clean set of headers for kernel-userspace has been
discussed on lkml many times although I've never seen the problem
resolved.

> but that you can then use sanitized headers for everything else.
> I myself use sanitized headers from
> http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
> to build a couple low-level packages.
> 
> You can probably subsitute these for the real ones after
> bulding the toolchain.  (I just add them to the -I path
> when building the packages that complain, but that's
> probably not the perfect solution.)

How do you overide the built-in include path in GCC? When I add the
-I<path/to/sanitised/headers> it still fails from including the old
kernel ones glibc was built with.

> > Where does cross-tool get these headers?
>  From the plain old kernel sources.

> I do sometimes, but I haven't been linking to it.
> crosstool-0.28-rc35 is available unpacked as http://kegel.com/crosstool/crosstool-0.28-rc35/
> Really I should just release the damn thing.

Well 35 release candidates does seem a lot. The only reason I don't
track every release is it takes so damn long to rebuild everything. The
reason I wanted to see the Changelog for the latest devel version was to
see if anything SH specific has gone in. For what its worth
crosstool-0.28-rc32 has preformed well for me so far on SH. I shall
happily give you a report on 0.28 proper before you start on the next
round and updates and fixes :-)

-- 
Alex, Kernel Hacker: http://www.bennee.com/~alex/

Use self-identifying input.  Allow defaults.  Echo both on output.
- The Elements of Programming Style (Kernighan & Plaugher)


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


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