From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4802 invoked by alias); 5 Nov 2010 10:44:44 -0000 Received: (qmail 4784 invoked by uid 22791); 5 Nov 2010 10:44:42 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_GC,TW_IB X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Nov 2010 10:44:38 +0000 From: "dougmencken at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug boehm-gc/46311] New: boehm-gc build problem with uclibc X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: boehm-gc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dougmencken at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 05 Nov 2010 10:44:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-11/txt/msg00613.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: dougmencken@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.