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-23-2012, 07:19 PM   #1
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 150

Rep: Reputation: 15
Glibc cross compile for ARM fails


Hello

I am trying to build my toolchain for ARM on my CentOS 6 64bit and I'm having issue compiling glibc.

Here is the instructions I'm following to build my toolchain:
http://frank.harvard.edu/~coldwell/toolchain/

I am trying to build:
Kernel: linux-2.6.25
glibc-2.14
binutils-2.22
gcc-core-4.6.2

When I get to stage 4 (glibc headers) and I try to do "configure" I get the following:

Quote:
# ../../glibc-2.14/configure --prefix=/usr --host=${TARGET} --enable-add-ons=linuxthreads --with-headers=${SYSROOT}/usr/include 2>&1 | tee configure.outconfigure: WARNING: if you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for arm-unknown-linux-gnu-gcc... no
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc... gcc
checking how to run the C preprocessor... gcc -E
checking for arm-unknown-linux-gnu-g++... no
checking for arm-unknown-linux-gnu-c++... no
checking for arm-unknown-linux-gnu-gpp... no
checking for arm-unknown-linux-gnu-aCC... no
checking for arm-unknown-linux-gnu-CC... no
checking for arm-unknown-linux-gnu-cxx... no
checking for arm-unknown-linux-gnu-cc++... no
checking for arm-unknown-linux-gnu-cl.exe... no
checking for arm-unknown-linux-gnu-FCC... no
checking for arm-unknown-linux-gnu-KCC... no
checking for arm-unknown-linux-gnu-RCC... no
checking for arm-unknown-linux-gnu-xlC_r... no
checking for arm-unknown-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: running configure fragment for add-on linuxthreads
configure: error: fragment must set $libc_add_on_canonical
it says arm-unknown-linux-.. wasn't found...and at the end it barfs and quits the process.
I am not sure but I don't have the glibc-linuxthreads package. Because there's none for glibc-2.14.

Anybody can help me figure this thing out please?

Thanks
 
Old 01-23-2012, 07:44 PM   #2
eeekster
Member
 
Registered: Sep 2011
Posts: 163

Rep: Reputation: Disabled
Have you tried it without the "--enable-add-ons=linuxthreads" argument?
 
Old 01-24-2012, 12:06 PM   #3
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 150

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by eeekster View Post
Have you tried it without the "--enable-add-ons=linuxthreads" argument?
Here's what I get without that argument:

Quote:
# ../../glibc-2.14/configure --prefix=/usr --host=${TARGET} --with-headers=${SYSROOT}/usr/include 2>&1 | tee configure.out
configure: WARNING: if you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for arm-unknown-linux-gnu-gcc... no
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc... gcc
checking how to run the C preprocessor... gcc -E
checking for arm-unknown-linux-gnu-g++... no
checking for arm-unknown-linux-gnu-c++... no
checking for arm-unknown-linux-gnu-gpp... no
checking for arm-unknown-linux-gnu-aCC... no
checking for arm-unknown-linux-gnu-CC... no
checking for arm-unknown-linux-gnu-cxx... no
checking for arm-unknown-linux-gnu-cc++... no
checking for arm-unknown-linux-gnu-cl.exe... no
checking for arm-unknown-linux-gnu-FCC... no
checking for arm-unknown-linux-gnu-KCC... no
checking for arm-unknown-linux-gnu-RCC... no
checking for arm-unknown-linux-gnu-xlC_r... no
checking for arm-unknown-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: running configure fragment for add-on libidn
configure: running configure fragment for add-on linuxthreads
linuxthreads disabled because nptl add-on is also in use
configure: running configure fragment for add-on nptl
checking for assembler gnu_indirect_function symbol type support... yes
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for assembler .type directive prefix... @
checking sysdep dirs... configure: error: The arm is not supported.
 
Old 01-24-2012, 03:19 PM   #4
eeekster
Member
 
Registered: Sep 2011
Posts: 163

Rep: Reputation: Disabled
Quote:
checking for arm-unknown-linux-gnu-gcc... no
Looks like it didn't find a cross compiler.
 
Old 01-25-2012, 04:02 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,317

Rep: Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175
The recommended cross compiler is "crosstool-ng" http://crosstool-ng.org/
... which is also the best maintained tool. Last update = 23 Jan 2012.


! Cross compilation cannot be done without a dedicated cross compiler !
And : Please do not try to build a cross compiler yourself.


Note : Please use the "Report button" to ask for your "Arm threads"
to be moved to the 'Embedded Forum'
http://www.linuxquestions.org/questi...x-embedded-78/
That's the right place for getting answers from the arm experts.

.
 
  


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
Cross Compile GLib for ARM striker07 Programming 4 04-27-2011 07:49 AM
Help to cross compile vlc to arm 4monkeys Linux - Embedded & Single-board computer 3 03-14-2011 05:33 AM
cannot compile cross-gcc for arm ecco_the_dolphin Linux - Software 1 05-24-2010 05:02 PM
Trying to cross-compile mono for ARM hal_2001 Programming 2 05-11-2010 03:18 PM
how to cross compile tslib for arm ? sunr2007 Linux - Embedded & Single-board computer 3 06-29-2009 12:41 AM


All times are GMT -5. The time now is 05:00 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