Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-20-2004, 08:29 AM   #1
LQ Newbie
Registered: Nov 2004
Location: japan
Distribution: plamo, fedora
Posts: 27

Rep: Reputation: 15
Unhappy Could not compile glibc-2.3.3 for powerpc on x86 architecture

There is a problem to compile glibc-2.3.3 for cross compile.
im compiling cross tools for powerpc linux on x86 one.

binutils and bootstrap gcc finished. Next, glibc.
i did configure glibc, failed to configure, and error is happened:S
my idea is compiling gcc or binutils have been already failed...
how do u think this problem?

please look at the configure argument and error:

<configure argument>
# cd /usr/tmp/glibc-2.3.3
# export PATH=$PATH:/usr/local/ppc/bin
# TARGET=powerpc-linux
# CC=$TARGET-gcc AR=$TARGET-ar RANLIB=$TARGET-ranlib ../glibc-2.3.3/configure --prefix=/usr/local/ppc/powerpc-linux --enable-add-ons=linuxthreads --with-headers=/usr/local/ppc/powerpc-linux/include/ --host=powerpc-linux

<configure error>
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long double... yes
checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.

i wrote a part of config.log in the following Quote:

configure:6581: test -s conftest.o
configure:6584: $? = 0
configure:6595: result: yes
configure:6598: checking size of long double
configure:6873: powerpc-linux-gcc -o conftest -g -O2 conftest.c >&5
/usr/local/ppc/lib/gcc/powerpc-linux/3.4.2/../../../../powerpc-linux/bin/ld: /usr/local/ppc/lib/gcc/powerpc-linux/3.
4.2/../../../../powerpc-linux/lib/crt1.o: Relocations in generic ELF (EM: 3)
/usr/local/ppc/lib/gcc/powerpc-linux/3.4.2/../../../../powerpc-linux/lib/crt1.o: could not read symbols: File in wrong fo
collect2: ld returned 1 exit status
configure:6876: $? = 1
configure: program exited with status 1
configure: failed program was:

/usr/local/ppc: directory installed cross compile tools.
/usr/tmp/glibc-2.3.3: directory to build glibc-2.3.3.

the versions in this case
kernel 2.4.26

Last edited by kaito; 12-20-2004 at 08:35 AM.
Old 12-20-2004, 08:36 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
What makes you think glibc compiled for ppc computers is going to work on x86? I'm not programmer but I would think that is like trying to install an .exe in Linux and it would be probably a lot of work to get it working, changing source code, etc..
Old 12-20-2004, 08:47 AM   #3
LQ Newbie
Registered: Nov 2004
Location: japan
Distribution: plamo, fedora
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks reply, trickykid

i need glibc compiled for ppc computers for making ppc binary files.
Compact Linux Sever(ppc-based) has no build tool.
So, compiled binary file on other x86 computer copies to the Linux Server.
Old 12-20-2004, 11:13 AM   #4
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Have you read this:

It might direct you in compiling for PPC. Or you can pull down other versions that others have ported over, etc.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to force compile for a specific architecture ie Athlon ? hadding Programming 6 02-15-2016 04:00 PM
glibc re-install & ld-linux-x86-64 ricmitch Linux - Software 4 09-12-2005 03:03 PM
How to compile Slackware 10.1 packages for the 64-bit Architecture? Basel Slackware 14 07-27-2005 04:28 AM
Do powerpc drivers work on x86 hardware? (vise versa?) Thaidog Linux - General 2 04-19-2005 06:27 PM
3rd LFS build (this time on x86-64): about GCC and GLIBC and other questions... ParticleHunter Linux From Scratch 1 08-16-2004 10:47 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:44 AM.

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