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] |
Hello. I'm using crosstool-ng(1.9.3) to create a toolchain that will target a x86 2.4 kernel with a 2.3.2 glibc ( to build a legacy service ). Here are some of the options in my .config: CT_CC_VERSION="4.2.4" CT_LIBC_VERSION="2.3.2" CT_LIBC_glibc=y CT_KERNEL_LINUX_CUSTOM_TARBALL="/home/.../Downloads/linux-2.4.22.tar.bz2" CT_LIBC_GLIBC_MIN_KERNEL_VERSION="2.4.2" Here is the output... [ERROR] configure: error: GNU libc requires kernel header files from [CFG ] Linux 2.0.10 or later to be installed before configuring. [CFG ] The kernel header files are found usually in /usr/include/asm and [CFG ] /usr/include/linux; make sure these directories use files from [CFG ] Linux 2.0.10 or later. This check uses <linux/version.h>, so [CFG ] make sure that file was built correctly when installing the kernel header [CFG ] files. To use kernel headers not from /usr/include/linux, use the [CFG ] configure option --with-headers. I found out that there was no version.h in the linux includes (~/x-tools/i686-nptl-linux-gnu/i686-nptl-linux-gnu/sys-root/usr/include/version.h) so I copied it from my /usr/include/linux/version.h and changed it to fit: #define LINUX_VERSION_CODE 132098 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) the version code 132098 is equivalent to 2.4.2, but when I tried to build it I got the same error. Then I noticed that the file wasn't there anymore. What is the correct way to provide the version.h file to the glibc's build? Thank you -- 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] |