GCC3.3.3: building cross compiler powerpc-linux undefined symbol

Jim Wilson wilson@specifixinc.com
Thu Mar 11 19:23:00 GMT 2004


Gazelle Jean-Laurent wrote:
> 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'

I am not able to reproduce this from the current gcc-3.3.x sources. 
Looking at the sources, I don't see how this could have happened.

There is a macro SETUP_FRAME_ADDRESSES that calls 
rs6000_aix_emit_builtin_unwind_emit.  This function is defined only if 
TARGET_AIX is true.  This macro is only defined for aix and 
powerpc64-linux targets, both of which define the TARGET_AIX macro.  It 
should not be used for a powerpc-linux target.

You should check your build tree to see what happened.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list