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]

kernel compiling dependent on local header files


Hello,

I want a second opinion about a problem that's not really related to crosstool-ng. I'm not sure if it's a bug in the Linux kernel's building system or not. Is it normal for kernel compiling to depend on header files provided by the host's gcc?
The build fails for kernel 3.6.x, if the host (cygwin, in my case) doesn't provide the linux/types.h header file. I also can reproduce the problem on a Debian machine, if I rename the /usr/include/linux/types.h file.

The build log, with the error, looks like this (this is taken from the Debian machine, while trying to compile the 3.6.3 kernel):

make -f scripts/Makefile.build obj=arch/x86/tools relocs
  gcc -Wp,-MD,arch/x86/tools/.relocs.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -I/home/user/tmp/kernel/linux-3.6.3/tools/include  -o arch/x86/tools/relocs arch/x86/tools/relocs.c  
In file included from arch/x86/tools/relocs.c:13:
/home/user/tmp/kernel/linux-3.6.3/tools/include/tools/le_byteshift.h:4:25: error: linux/types.h: No such file or directory


Thank you,
Mihai Hanor


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