This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GCC3.3.3: building cross compiler powerpc-linux undefined symbol
- From: Gazelle Jean-Laurent <jean-laurent dot gazelle at thalescomputers dot fr>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 10 Mar 2004 18:50:40 +0100
- Subject: GCC3.3.3: building cross compiler powerpc-linux undefined symbol
- Organization: Thales Computers
Hi,
I tried to build my cross compiler from the 3.3.3 released version of GCC.
First I've already built 686-pc-linux-gnu --> powerpc64-linux. OK.
Now that I'm trying with target=powerpc-linux, the compilation fails with undefined symbol.
Here is my config.status file :
../gcc-3.3.3/configure --with-gcc-version-trigger=/CrossCompiler/gcc-3.3.3/gcc/version.c --host=i686-pc-linux-gnu --enable-languages=c,c++ --target=powerpc-thales-linux --enable-altivec --disable-nls --with-sysroot=/opt/cross-linuxppc32-3.3/include_glibc2.2.5-139 --with-libs=/opt/cross-linuxppc32-3.3/lib_glibc2.2.5-139 --prefix=/opt/cross-linuxppc32-3.3 --program-prefix=ppc32-33- --with-headers=/opt/cross-linuxppc32-3.3/include_glibc2.2.5-139
Here is the compilation error :
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -o cc1 \
c-parse.o c-lang.o c-pretty-print.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-objc-common.o c-dump.o libcpp.a rs6000-c.o main.o libbackend.a ../libiberty/libiberty.a
libbackend.a(builtins.o): In function `expand_builtin_return_addr':
/CrossCompiler/build-ppc32-gcc-3.3.3/gcc/../../gcc-3.3.3/gcc/builtins.c:402: undefined reference to `rs6000_aix_emit_builtin_unwind_init'
libbackend.a(except.o): In function `expand_builtin_unwind_init':
/CrossCompiler/build-ppc32-gcc-3.3.3/gcc/../../gcc-3.3.3/gcc/except.c:2981: undefined reference to `rs6000_aix_emit_builtin_unwind_init'
collect2: ld returned 1 exit status
make[1]: *** [cc1] Error 1
make[1]: Leaving directory `/CrossCompiler/build-ppc32-gcc-3.3.3/gcc'
make: *** [all-gcc] Error 2
Maybe I do something wrong but I can't see my mistake. It looks like the compilation search for AIX symbols ???
So if someone already experienced this problem, or if you have an idea of what is wrong...
thanks,
Jean-Laurent