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?


Alex Bennee wrote:
I've been fixing up our build scripts to play nicely with various
cross-compile tool chains. 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),
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.)

As far as I can tell the <linux/*> includes in the crosstool system dirs
are different from the "sanitised" headers my build system has. Where
does cross-tool get these headers?
From the plain old kernel sources.
I'm currently on crosstool-0.28rc35 (with gcc 3.4.1 on SH).
Have a look at the value of LINUX_DIR.  e.g.
$ more gcc-3.4.1-glibc-2.3.2.dat
BINUTILS_DIR=binutils-2.15
GCC_DIR=gcc-3.4.1
GLIBC_DIR=glibc-2.3.2
LINUX_DIR=linux-2.6.6
In this case, it's grabbing the linux-2.6.6 sources (and you can
see in getandpatch.sh it's grabbing them from kernel.org).

Dan, is it possible to have your development snapshot in a dir with your
ChangeLog like you have for current?

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. - Dan

--
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change

------
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]