public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug boehm-gc/46311] New: boehm-gc build problem with uclibc
@ 2010-11-05 10:44 dougmencken at gmail dot com
  2010-11-07 19:57 ` [Bug boehm-gc/46311] " dje at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dougmencken at gmail dot com @ 2010-11-05 10:44 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-01 19:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-05 10:44 [Bug boehm-gc/46311] New: boehm-gc build problem with uclibc dougmencken at gmail dot com
2010-11-07 19:57 ` [Bug boehm-gc/46311] " dje at gcc dot gnu.org
2012-02-01  2:44 ` pinskia at gcc dot gnu.org
2012-02-01 19:04 ` dougmencken at gmail dot com
2012-02-01 19:52 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).