Building toolchain for 2.4.x target

Filipe Felisbino
Wed Nov 13 16:00:00 GMT 2013


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:


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
so I copied it from my /usr/include/linux/version.h and changed it to
#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

More information about the crossgcc mailing list