This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Undefined reference in libcommon, libbacktrace GCC 4.8 bootstrap


Hello
I'm using GCC 4.7.0 on an Android device to bootstrap version
4.8.0...specifically the c++ compiler.

After some trial and error I've successfully built and installed
binutils 2.23.2,and have configured gcc 4.8, but make fails with the
following

 cc1-checksum.o libbackend.a main.o  libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
../libcpp/libcpp.a ./../intl/libintl.a
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a   -L/bld/gcc/4.8-buildgcc/./gmp/.libs
-L/bld/gcc/4.8-buildgcc/./mpfr/.libs
-L/bld/gcc/4.8-buildgcc/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic
-L../zlib -lz
libcommon.a(diagnostic.o): In function `diagnostic_action_after_output':
/bld/gcc/4.8-buildgcc/gcc/../../gcc-4.8.0/gcc/diagnostic.c:437:
undefined reference to `backtrace_full'
../libbacktrace/.libs/libbacktrace.a(state.o): In function
`backtrace_create_state':
state.c:(.text+0x3c): undefined reference to `backtrace_alloc'
collect2: error: ld returned 1 exit status
make[2]: *** [cc1] Error 1
make[2]: Leaving directory `/bld/gcc/4.8-buildgcc/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/bld/gcc/4.8-buildgcc'
make: *** [all] Error 2

I've grepped and found backtrace_full in backtrace.o...which I assume
was included in libbacktrace.  Not sure what's failing here, so any
advice/help is appreciated  My configure options were as follows:

/bld/gcc/4.8-buildgcc $ ../gcc-4.8.0/configure --prefix=/usr/gcc-4.8
--build=arm-linux-androideabi --host=arm-linux-androideabi
--target=arm-linux-androideabi --disable-ld
--with-as=/usr/gcc-4.8/bin/as --with-ld=/usr/gcc-4.8/bin/ld
--enable-version-specific-runtime-libs --enable-shared
--enable-languages=c,c++ --disable-bootstrap -disable-gold
--disable-fortran --disable-libssp --disable-libquadmath
--disable-libquadmath-support --disable-libada --disable-werror
--disable-multilib --disable-libgomp --disable-cloog
--with-build-time-tools=/usr/gcc-4.8/bin
--with-build-sysroot=/usr/lib/gcc/arm-linux-androideabi/4.7/arm-linux-androideabi
CC='gcc --sysroot=/usr/lib/gcc/arm-linux-androideabi/4.7/arm-linux-androideabi'
CFLAGS='-Wall -O -mandroid -mbionic'
LDFLAGS='-Wl,--dynamic-linker=/system/bin/linker -lc -ldl -lgcc -lm'
LIBCFLAGS='-O2 -mandroid -mbionic' LIBCPPFLAGS='-O2 -mandroid
-mbionic' LIBCXXFLAGS='-O2 -mandroid -mbionic -fno-implicit-templates'
LIBS='-lc -ldl -lgcc -lm -lsupc++ -lgnustl_shared'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]