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] |
Hello again, so finally I got my cygwin-linux-crosscompiler working and it builds fine linux executables on my windows-host. (here the facts: - glibc 2.3.2 - gcc 3.2.3 - linux kernel 2.6.9) But now I seem to come into trouble with the kernel-configuration of the crosstool-script. If I try to compile a kernel module (especially a driver) I get an error from the compiler that the "autoconf.h" is missing: #----------------------- In file included from /opt/crosstool/go/i386-linux-gnu/i386-linux- gnu/include/linux/linkage.h:4, from /opt/crosstool/go/i386-linux-gnu/i386-linux-gnu/include/linux/kernel.h:1 1, from main.c:2: /opt/crosstool/go/i386-linux-gnu/i386-linux-gnu/include/linux/config.h:4 :28: linux/autoconf.h: No such file or directory #----------------------- In addition, I get errors like that: #----------------------- /opt/crosstool/go/i386-linux-gnu/i386-linux-gnu/include/asm/processor.h: 68: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) #----------------------- Google and this mailing list told me that the reason is a not configured kernel (for the second error you maybe can see here: http://perspex.com/hacks/linux/distros/mandrake/9.0/driver-barfs.html) So I tried those things which are already mentioned in this mailing list to (re-?)configure the kernel which was build during the crosstool-process. But this doesn't work, because of the following errors: #----------------------- twedde@xxxx /a/build/i386-linux-gnu/go/linux-2.6.9 $ make defconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/split-include HOSTCC scripts/basic/docproc HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/mconf.o HOSTCC -fPIC scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c:1: warning: -fPIC ignored for target (all code is position independent) HOSTLLD -shared scripts/kconfig/libkconfig.so HOSTLD scripts/kconfig/conf scripts/kconfig/conf -d arch/i386/Kconfig make[1]: *** [defconfig] Error 186 make: *** [defconfig] Error 2 twedde@xxxx /a/build/i386-linux-gnu/go/linux-2.6.9 $ yes "" | make config HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/split-include HOSTCC scripts/basic/docproc SHIPPED scripts/kconfig/zconf.tab.h HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/mconf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/lex.zconf.c HOSTCC -fPIC scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c:1: warning: -fPIC ignored for target (all code is position independent) HOSTLLD -shared scripts/kconfig/libkconfig.so HOSTLD scripts/kconfig/conf scripts/kconfig/conf arch/i386/Kconfig make[1]: *** [config] Error 186 make: *** [config] Error 2 #---------------------------- Those errors come with a window containing a simply error message with a memory-address. It seems that I cannot reconfigure the kernel in cygwin, but how did it work during the build of the toolchain then!? Maybe you can tell how I can work around this. Thank you for your time, Thomas ------ 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] |