Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153960 - crossdev and mips error
Summary: crossdev and mips error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-03 12:43 UTC by Fabio C.
Modified: 2006-11-08 23:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
MIPS glib log (cross-mips-unknown-linux-gnu-glibc.log,17.03 KB, text/plain)
2006-11-03 13:22 UTC, Fabio C.
Details
MIPS compiling info (cross-mips-unknown-linux-gnu-info.log,3.68 KB, text/plain)
2006-11-03 13:23 UTC, Fabio C.
Details
New GLIBC error .. (cross-mips-unknown-linux-gnu-glibc.log.bz2,73.17 KB, application/octet-stream)
2006-11-08 11:51 UTC, Fabio C.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio C. 2006-11-03 12:43:37 UTC
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 #
Comment 1 SpanKY gentoo-dev 2006-11-03 13:20:06 UTC
post the specified log as attachments ... if they are large, compress them
Comment 2 Fabio C. 2006-11-03 13:22:37 UTC
Created attachment 101164 [details]
MIPS glib log
Comment 3 Fabio C. 2006-11-03 13:23:34 UTC
Created attachment 101165 [details]
MIPS compiling info
Comment 4 Fabio C. 2006-11-03 13:23:55 UTC
Done
Comment 5 SpanKY gentoo-dev 2006-11-03 13:29:05 UTC
well, that error is pretty clear
Comment 6 SpanKY gentoo-dev 2006-11-03 13:29:59 UTC
forcing kernel headers to 2.4 and then trying to build glibc with nptl obviously wont work
Comment 7 Fabio C. 2006-11-08 07:50:53 UTC
And so which glibc version I would have to use?
Comment 8 Fabio C. 2006-11-08 11:49:28 UTC
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).
Comment 9 Fabio C. 2006-11-08 11:51:03 UTC
Created attachment 101492 [details]
New GLIBC error ..
Comment 10 SpanKY gentoo-dev 2006-11-08 11:53:44 UTC
2.3.2 is not supported

only 2.3.6-r5 and newer is
Comment 11 Fabio C. 2006-11-08 12:46:52 UTC
(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.

..
Comment 12 SpanKY gentoo-dev 2006-11-08 12:51:57 UTC
mips-headers-2.4.28-r1 is not supported

sucks huh ;)
Comment 13 Ilya Volynets (RETIRED) gentoo-dev 2006-11-08 15:23:13 UTC
Let me put it this way. What is the reason you are trying to build against 2.4 kernel in the first place?
Comment 14 Fabio C. 2006-11-08 23:01:30 UTC
Becouse i try to build binaries for my router with kernel 2.4
Comment 15 SpanKY gentoo-dev 2006-11-08 23:35:08 UTC
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
Comment 16 Ilya Volynets (RETIRED) gentoo-dev 2006-11-08 23:53:25 UTC
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...