Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
which versions for mips toolchain?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
mlau
n00b
n00b


Joined: 02 Jan 2006
Posts: 3

PostPosted: Sun Feb 26, 2006 1:12 pm    Post subject: which versions for mips toolchain? Reply with quote

Hello,

I'm trying to build a mips toolchain (for AMD Au1200 cpu) with crossdev, unfortunately
it does not work out. glibc compilation fails with the following error:

Code:


 [[32;01m*[[0m Checking gcc for __thread support ... no

 [[31;01m*[[0m Could not find a gcc that supports the __thread directive!
 [[31;01m*[[0m please update to gcc-3.2.2-r1 or later, and try again.

!!! ERROR: cross-mips-unknown-linux-gnu/glibc-2.3.6-r3 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_unpack
  ebuild.sh, line 694:   Called src_unpack
  glibc-2.3.6-r3.ebuild, line 1173:   Called toolchain-glibc_src_unpack
  glibc-2.3.6-r3.ebuild, line 190:   Called check_nptl_support

!!! No __thread support in gcc!
!!! If you need support, post the topmost build error, and the call stack if relevant.



compiler is gcc-3.4.5-r1, binutils-2.16.1.

Does anyone have know which versions of the above mentioned packages
can be successfully cross-compiled for mips?


Thanks,
_________________
From the book of Ballmer: "Those without a security hole throw the first chair..."
Back to top
View user's profile Send private message
_lior_
n00b
n00b


Joined: 29 Dec 2004
Posts: 13

PostPosted: Sun Feb 26, 2006 2:03 pm    Post subject: Reply with quote

that will not work with NPTL.

NPTL MIPS is such a pain in the ass. if you nevertheless want to give it a try:

1. you need GCC 4.1 for MIPS NPTL.
2. patch glibc for NPTL: http://www.linuxfromscratch.org/patches/downloads/glibc/glibc-20060220-mips_nptl-1.patch
3. hack the glibc ebuild: libc_cv_forced_unwind=yes, libc_cv_c_cleanup=yes
4. configure glibc with --with-__thread --with-tls
5. you need kernel headers which supports TLS for MIPS. (2.6.15 is good.)


but if you want linuxthreads, you don't need the above at all. just pass to crossdev that you want linuxthreads.
Back to top
View user's profile Send private message
mlau
n00b
n00b


Joined: 02 Jan 2006
Posts: 3

PostPosted: Sun Feb 26, 2006 3:50 pm    Post subject: Reply with quote

_lior_ wrote:
that will not work with NPTL.


Thanks, I thought as much. However, I remeber I built a nptl-only mips toolchain
a few months back.

I just need a compiler to create a bootloader, kernel and busybox.
_________________
From the book of Ballmer: "Those without a security hole throw the first chair..."
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Mon Feb 27, 2006 1:41 pm    Post subject: Reply with quote

Save yourself the heartache... don't bother with NPTL, get it working... then mess with it when you've proven you can build a standard (non-NPTL) toolchain. ;-)

NPTL support requires a lot of bleeding edge tools, and nothing is guaranteed.
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum