LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 02: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 02:24 AM.
 
Old 01-19-2011, 08:36 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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 08:37 AM.
 
Old 01-19-2011, 11:41 AM   #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



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 02:51 PM
Installed Curl and GD extension and get error: XBM Support required Nickalf Linux - Software 7 02-18-2009 03:22 PM
Got configure: error: "compiler support for __thread is required" rbharath Linux - General 0 10-17-2008 02:30 AM
Glibc .fini_array support error Pytus Linux From Scratch 7 11-09-2007 05:27 PM
glibc 2.3.6 - configure: error: compiler support for __thread is required egghead Linux - General 0 02-26-2006 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:14 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
Open Source Consulting | Domain Registration