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:
<config.log>
-------------------
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
rmat
collect2: ld returned 1 exit status
configure:6876: $? = 1
configure: program exited with status 1
configure: failed program was:
-------------------
<Appendix>
/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
----
binutil-2.15
glibc-2.3.3
gcc-core-3.4.2
kernel 2.4.26
----
Last edited by kaito; 12-20-2004 at 08:35 AM.
|