I'm trying to compiling the "gcc world" for mips under kernel 2.4 but: .. celeron portage # crossdev --kernel 2.4.28-r1 --target mips -------------------------------------------------------------------------------- * Host Portage ARCH: amd64 * Target Portage ARCH: mips * Target System: mips-unknown-linux-gnu * Stage: 4 (C/C++ compiler) * binutils: binutils-[latest] * gcc: gcc-[latest] * headers: mips-headers-2.4.28-r1 * libc: glibc-[latest] * PORTDIR_OVERLAY: /usr/local/portage * PORT_LOGDIR: /var/log/portage * PKGDIR: /usr/portage/packages/cross/mips-unknown-linux-gnu * PORTAGE_TMPDIR: /var/tmp/cross/mips-unknown-linux-gnu _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - * Forcing the latest versions of binutils-config/gcc-config ... [ ok ] * Log: /var/log/portage/cross-mips-unknown-linux-gnu-binutils.log * Emerging cross-binutils ... [ ok ] * Log: /var/log/portage/cross-mips-unknown-linux-gnu-gcc-stage1.log * Emerging cross-gcc-stage1 ... [ ok ] * Log: /var/log/portage/cross-mips-unknown-linux-gnu-mips-headers.log * Emerging cross-mips-headers ... [ ok ] * Log: /var/log/portage/cross-mips-unknown-linux-gnu-glibc.log * Emerging cross-glibc ... * glibc failed :( * If you file a bug, please attach the following logfiles: * /var/log/portage/cross-mips-unknown-linux-gnu-info.log (http://rafb.net/paste/results/XuuHB850.html) * /var/log/portage/cross-mips-unknown-linux-gnu-glibc.log (http://rafb.net/paste/results/GQwW0s98.html) celeron portage #
post the specified log as attachments ... if they are large, compress them
Created attachment 101164 [details] MIPS glib log
Created attachment 101165 [details] MIPS compiling info
Done
well, that error is pretty clear
forcing kernel headers to 2.4 and then trying to build glibc with nptl obviously wont work
And so which glibc version I would have to use?
I've try again with: crossdev --kernel 2.4.28-r1 -t mips --libc 2.3.2-r12 and this time the error are other (see the attachment).
Created attachment 101492 [details] New GLIBC error ..
2.3.2 is not supported only 2.3.6-r5 and newer is
(In reply to comment #10) > 2.3.2 is not supported > > only 2.3.6-r5 and newer is > But with that version: checking installed Linux kernel header files... TOO OLD! configure: error: GNU libc requires kernel header files from Linux 2.0.10 or later to be installed before configuring. The kernel header files are found usually in /usr/include/asm and /usr/include/linux; make sure these directories use files from Linux 2.0.10 or later. This check uses <linux/version.h>, so make sure that file was built correctly when installing the kernel header files. To use kernel headers not from /usr/include/linux, use the configure option --with-headers. !!! ERROR: cross-mips-unknown-linux-gnu/glibc-2.3.6-r5 failed. ..
mips-headers-2.4.28-r1 is not supported sucks huh ;)
Let me put it this way. What is the reason you are trying to build against 2.4 kernel in the first place?
Becouse i try to build binaries for my router with kernel 2.4
glibc will work fine if you build it against 2.6 headers ... it contains all the backwards compat support to run on 2.4 kernels
Which means you are wasting your time. Either use uClibc based stages (Gentoo/embedded project), or something actually suitable for router, like OpenWRT or snapgear. Of course, another alternative would be to get 2.6 kernel on your machine...