http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46311
Summary: boehm-gc build problem with uclibc Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: boehm-gc AssignedTo: unassig...@gcc.gnu.org ReportedBy: dougmenc...@gmail.com I'm trying to get GCC with GCJ (and related libs). The ./configure options I use are the following: -------------------------------------------------------------------------------- ../"${SOURCE_DIR}"/configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \ --enable-languages=c,c++,fortran,java --with-cpu=default32 \ --with-system-zlib --enable-threads=posix \ --disable-nls --disable-werror --disable-multilib --disable-libssp \ --disable-__cxa_atexit --disable-checking --enable-shared \ --enable-libgcj --enable-libgcj-multifile --enable-interpreter --disable-libjava-multilib -------------------------------------------------------------------------------- At stage 3, make fails with the following error: -------------------------------------------------------------------------------- /bin/bash ./libtool --mode=compile /root/build-farm/_gcc_bootstrap/./gcc/xgcc -B/root/build-farm/_gcc_bootstrap/./gcc/ -B/usr/powerpc-gnu-linux-uclibc/bin/ -B/usr/powerpc-gnu-linux-uclibc/lib/ -isystem /usr/powerpc-gnu-linux-uclibc/include -isystem /usr/powerpc-gnu-linux-uclibc/sys-include -DHAVE_CONFIG_H -I/root/build-farm/gcc-v4.5.1.sourcedir/boehm-gc/include -fexceptions -Iinclude -I././targ-include -I.//libc/include -g -O2 -fexceptions -Iinclude -I././targ-include -I.//libc/include -c -o os_dep.lo ../../../gcc-v4.5.1.sourcedir/boehm-gc/os_dep.c libtool: compile: /root/build-farm/_gcc_bootstrap/./gcc/xgcc -B/root/build-farm/_gcc_bootstrap/./gcc/ -B/usr/powerpc-gnu-linux-uclibc/bin/ -B/usr/powerpc-gnu-linux-uclibc/lib/ -isystem /usr/powerpc-gnu-linux-uclibc/include -isystem /usr/powerpc-gnu-linux-uclibc/sys-include -DHAVE_CONFIG_H -I/root/build-farm/gcc-v4.5.1.sourcedir/boehm-gc/include -fexceptions -Iinclude -I././targ-include -I.//libc/include -g -O2 -fexceptions -Iinclude -I././targ-include -I.//libc/include -c ../../../gcc-v4.5.1.sourcedir/boehm-gc/os_dep.c -fPIC -DPIC -o .libs/os_dep.o ../../../gcc-v4.5.1.sourcedir/boehm-gc/os_dep.c:4025:23: fatal error: execinfo.h: No such file or directory compilation terminated. make[3]: *** [os_dep.lo] Error 1 make[3]: Leaving directory `/root/build-farm/_gcc_bootstrap/powerpc-gnu-linux-uclibc/boehm-gc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/build-farm/_gcc_bootstrap/powerpc-gnu-linux-uclibc/boehm-gc' make[1]: *** [all-target-boehm-gc] Error 2 make[1]: Leaving directory `/root/build-farm/_gcc_bootstrap' make: *** [all] Error 2 -------------------------------------------------------------------------------- Diving into that problem, I figured out that boehm-gc sources (actually, ./boehm-gc/include/gc.h) checks if __GLIBC__ is defined, and then trying to include execinfo.h. Back in 2006, Solar from Gentoo team already wrote a patch to fix that issue: http://bugs.gentoo.org/121463 (the patch itself: http://bugs.gentoo.org/attachment.cgi?id=80702 ). With this patch, boehm-gc builds without errors.