glibc cross compiling error for powerpc
Hans Kim
khs@dr-tech.co.kr
Thu Aug 4 07:09:00 GMT 2011
Dear all,
I am making glibc for powerpc.
I tried to compile using glibc-2.13, glibc-ports-2.13.
But I can't compile successfully.
Below is the compiling message, I met.
---(below)---
[khs@khs-N53SN build]$
[khs@khs-N53SN build]$ ../configure --prefix=/opt/DGS/powerpc-linux
--target=powerpc-linux --build=powerpc-linux --enable-add-ons=ports
--with-headers=/home/khs/PROJECTS/ReLook/common/linux/include
--with-binutils=/opt/DGS/powerpc-linux/powerpc-linux/bin
checking build system type... powerpc-unknown-linux-gnu
checking host system type... powerpc-unknown-linux-gnu
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 how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking add-on ports for preconfigure fragments... alpha am33 arm hppa
m68k mips
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... sysdeps/powerpc/powerpc32/elf
sysdeps/powerpc/elf sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu
sysdeps/powerpc/powerpc32/fpu
ports/sysdeps/unix/sysv/linux/powerpc/powerpc32
sysdeps/unix/sysv/linux/powerpc/powerpc32
ports/sysdeps/unix/sysv/linux/powerpc sysdeps/unix/sysv/linux/powerpc
sysdeps/ieee754/ldbl-128ibm sysdeps/ieee754/ldbl-opt
ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu
sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet
ports/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/powerpc
ports/sysdeps/unix sysdeps/unix sysdeps/posix
ports/sysdeps/powerpc/powerpc32 sysdeps/powerpc/powerpc32
sysdeps/wordsize-32 sysdeps/powerpc/fpu ports/sysdeps/powerpc
sysdeps/powerpc sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32
sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether /opt/DGS/powerpc-linux/powerpc-linux/bin/as is GNU
as... yes
checking whether /opt/DGS/powerpc-linux/powerpc-linux/bin/ld is GNU
ld... yes
checking for /opt/DGS/powerpc-linux/powerpc-linux/bin/as...
/opt/DGS/powerpc-linux/powerpc-linux/bin/as
checking version of /opt/DGS/powerpc-linux/powerpc-linux/bin/as... 2.13, ok
checking for /opt/DGS/powerpc-linux/powerpc-linux/bin/ld...
/opt/DGS/powerpc-linux/powerpc-linux/bin/ld
checking version of /opt/DGS/powerpc-linux/powerpc-linux/bin/ld... 2.13, ok
checking for pwd... /bin/pwd
checking for gcc... gcc -B/opt/DGS/powerpc-linux/powerpc-linux/bin/
checking version of gcc -B/opt/DGS/powerpc-linux/powerpc-linux/bin/...
4.5.2, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.18.1, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.13, ok
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
checking whether ranlib is necessary...
/opt/DGS/powerpc-linux/powerpc-linux/bin/as: unrecognized option '--32'
/opt/DGS/powerpc-linux/powerpc-linux/bin/ar: conftest.o: No such file or
directory
cp: cannot stat `conftest.a': No such file or directory
/opt/DGS/powerpc-linux/powerpc-linux/bin/ranlib: conftest.a: No such
file or directory
yes
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/bash
checking for gawk... no
checking for mawk... mawk
checking for perl... /usr/bin/perl
checking for install-info...
/usr/sbin/install-infofile:///home/khs/PROJECTS/cross-compiler/glibc-2.13/build/config.log
checking for bison... /usr/bin/bison
checking for signed size_t type... no
checking for libc-friendly stddef.h... no
checking whether we need to use -P to assemble .S files... yes
checking for .set assembler directive... no
checking for assembler gnu_unique_object symbol type... no
checking for .symver assembler directive... no
checking for ld --version-script... no
*** WARNING: You should not compile GNU libc without versioning. Not using
*** versioning will introduce incompatibilities so that old binaries
*** will not run anymore.
*** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer).
checking for .previous assembler directive... no
checking for .popsection assembler directive... no
checking for .protected and .hidden assembler directive... configure:
error: assembler support for symbol visibility is required
Basically, I followed
"http://www.pages.drexel.edu/~sg64/stuff/cross-compile.htm" for the
compiling process.
I also attach config.log file.
Could you help me to solve this problem?
Hans Kim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 21211 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-help/attachments/20110804/9ddaee2a/attachment.bin>
More information about the Libc-help
mailing list