LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2011, 03:23 AM   #1
StefanTh
LQ Newbie
 
Registered: Jan 2011
Posts: 7

Rep: Reputation: 0
glibc, error: compiler support for __thread is required


Hi

I have a NAS (dlink-320) with a fully working fun_plug (http://wiki.dns323.info/) Linux system.

However when I try to install x263 the configuration scripts says it need the math function log2f()

But because fun_plug uses uClib instead of glibc and uClib have not yet implemented log2f() function I am trying to compile the glibc instead.

I am only interested in the math part of glibc but have not found any documentation to just compile this part so it seems that I have to compile "most" of it.

I have glibc-2.11.2 and glibc-ports-2.9

I have copied glibc-ports-2.9/sysdeps/arm to glibc-2.11.2/sysdeps.

and I enter
Code:
../configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include --enable-shared --build=arm-linux
but get the following error message
Code:
running configure fragment for sysdeps/arm/elf
checking for ARM TLS support... yes
running configure fragment for nptl/sysdeps/pthread
configure: error: compiler support for __thread is required
1)
Why is this error occur and how do I fix this problem fairly easy?
I have tried to removing the nptl directory and used flag --disable-sanity-checks but this does not feels like the right way.

2)
Is it correct to glibc-ports-2.9/sysdeps/arm to glibc-2.11.2/sysdeps or should it have been done in some other way ?

/Stefan

Last edited by StefanTh; 01-19-2011 at 03:24 AM.
 
Old 01-19-2011, 09:36 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,570

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Think twice about this: The toolchain comprises gcc, kernel headers, and libc (uClibc or glibc). You could easily end up with an unworkable system, where programs don't run. Back up first.

I would go to linuxfromscratch.org where they have very detailed instructions in their stable book for compiling glibc. Compile plenty, install little - that's my advice.

Last edited by business_kid; 01-19-2011 at 09:37 AM.
 
Old 01-19-2011, 12:41 PM   #3
StefanTh
LQ Newbie
 
Registered: Jan 2011
Posts: 7

Original Poster
Rep: Reputation: 0
[QUOTE

I would go to linuxfromscratch.org where they have very detailed instructions in their stable book for compiling glibc. Compile plenty, install little - that's my advice.[/QUOTE]

thanks for your response,
I will check them up, I am only interested in the math libraries, not really to install the whole glibc.

/Stefan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPTP Error: MPPE required, but kernel has no support. lennysokol Linux - Software 2 03-22-2009 03:51 PM
Installed Curl and GD extension and get error: XBM Support required Nickalf Linux - Software 7 02-18-2009 04:22 PM
Got configure: error: "compiler support for __thread is required" rbharath Linux - General 0 10-17-2008 03:30 AM
Glibc .fini_array support error Pytus Linux From Scratch 7 11-09-2007 06:27 PM
glibc 2.3.6 - configure: error: compiler support for __thread is required egghead Linux - General 0 02-26-2006 10:00 AM


All times are GMT -5. The time now is 04:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration