Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114359 - gcc fails to build with objc-gc enabled
Summary: gcc fails to build with objc-gc enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR13946
Whiteboard:
Keywords:
: 115759 124254 124686 128063 134407 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-03 08:20 UTC by David Gurvich
Modified: 2006-08-12 22:55 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tail -n 100 log of emerge gcc (gccojbc-gc.log,16.19 KB, text/plain)
2005-12-04 12:21 UTC, David Gurvich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Gurvich 2005-12-03 08:20:55 UTC
gcc versions 3.4.4 and 4.0.2 fail to build with objc-gc enabled. I have tried 
with gcc-3.4.4 and gcc-4.0.2, along with different versions of glibc (2.3.5 and 
2.3.6).  All fail at the same point.

All emerge cleanly once objc-gc is removed from the USE flags.

Reproducible: Always
Steps to Reproduce:
1.Add objc-gc to USE flags
2.emerge gcc
3.

Actual Results:  
powerpc-unknown-linux-gnu-ranlib .libs/libgfortran.a
creating libgfortran.la
(cd .libs && rm -f libgfortran.la && ln -s ../libgfortran.la libgfortran.la)
make[3]: Leaving directory `/var/tmp/portage/gcc-4.0.2-r1/work/build/powerpc-
unknown-linux-gnu/libgfortran'
make[2]: Leaving directory `/var/tmp/portage/gcc-4.0.2-r1/work/build/powerpc-
unknown-linux-gnu/libgfortran'
make[1]: Leaving directory `/var/tmp/portage/gcc-4.0.2-r1/work/build'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-4.0.2-r1 failed.
!!! Function gcc_do_make, Line 1311, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
gcc should emerge cleanly with objc-gc flag.

Portage 2.0.53 (default-linux/ppc/2005.0, gcc-4.0.2, glibc-2.3.6-r1, 2.6.14-
gentoo-r2 ppc)
=================================================================
System uname: 2.6.14-gentoo-r2 ppc 7455, altivec supported
Gentoo Base System version 1.12.0_pre10
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/
share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /
usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ 
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/
texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/
gentoo/ http://gentoo.mirrors.tds.net/gentoo http://distro.ibiblio.org/pub/
linux/distributions/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac alsa altivec arts audiofile berkdb bidi bitmap-fonts bonobo bzip2 
cairo cdda cdr crypt cups curl dbus dvd dvdr dvdread eds emboss esd exif expat 
fam fbcon ffmpeg flac foomaticdb fortran gd gdbm ggi gif glut gmp gnome gnutls 
gpm gstreamer gtk gtk2 guile hal howl idn imagemagick imlib ipv6 jack java jpeg 
junit kde kdeenablefinal lcms libwww live lua mad matroska mikmod mng motif 
mozilla mp3 mpeg multislot ncurses nls nptl nptlonly ogg oggvorbis openal opengl 
oss pam pcre pdflib perl pic png ppc ppds python qt readline samba scanner sdl 
slang smp snmp spell ssl stream tcltk tcpd tetex theora tiff truetype truetype-
fonts type1-fonts udev unicode usb vorbis xine xml xml2 xmms xosd xv xvid zlib 
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-12-03 09:47:05 UTC
what you posted wasnt the error
Comment 2 David Gurvich 2005-12-03 20:13:04 UTC
(In reply to comment #1)
> what you posted wasnt the error
It is the only error that I see.  Where would I find more error logs?
Comment 3 SpanKY gentoo-dev 2005-12-04 09:53:33 UTC
just run `MAKEOPTS=-j1 emerge gcc >& log` and post the log as an attachment
Comment 4 David Gurvich 2005-12-04 12:21:50 UTC
Created attachment 74058 [details]
tail -n 100 log of emerge gcc

Last 100 lines of error log generated with
#MAKEOPTS="-j1" USE="objc-gc" emerge gcc
Comment 5 SpanKY gentoo-dev 2005-12-04 13:05:36 UTC
that log shows the error nicely, thanks
Comment 6 Michael Cramer 2005-12-10 02:49:59 UTC
when boehm-gc is installed on the system everything is fine, perhaps some
include paths are wrong, because boehm-gc is in the gcc package
Comment 7 SpanKY gentoo-dev 2005-12-16 06:59:09 UTC
*** Bug 115759 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-03-02 13:05:14 UTC
*** Bug 124686 has been marked as a duplicate of this bug. ***
Comment 9 Mark Loeser (RETIRED) gentoo-dev 2006-03-13 22:16:15 UTC
I added a patch to fix this for 4.0.3 and 4.1.0, which will be in the tree shortly.
Comment 10 Mark Loeser (RETIRED) gentoo-dev 2006-03-13 22:17:17 UTC
*** Bug 124254 has been marked as a duplicate of this bug. ***
Comment 11 Colin Macdonald 2006-03-26 14:28:03 UTC
I'm seeing something similar.  I unmasked gcc 4.1 on my ~x86 box today and got the following error with USE="fortran gcj gtk nls objc objc++ objc-gc -bootstrap -build -doc -hardened -ip28 -mudflap -multislot -nocxx -vanilla":

/var/tmp/portage/gcc-4.1.0/work/build/./gcc/xgcc -B/var/tmp/portage/gcc-4.1.0/work/build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -c -I. -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc -O2 -march=i686 -O2 -pipe -W -Wall -Wwrite-strings -Wstrict-prototypes -DIN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing -fexceptions -DOBJC_WITH_GC=1 -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/objc -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../gcc -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../gcc/config -I../.././gcc -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../include -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../boehm-gc/include -I../boehm-gc/include /var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/gc.c  -fPIC -DPIC -o .libs/gc_gc.o
In file included from /var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/gc.c:38:
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../boehm-gc/include/gc.h:55:24: error: gc_config.h: No such file or directory
In file included from /var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/gc.c:38:
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../boehm-gc/include/gc.h:155: warning: function declaration isn't a prototype
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/gc.c: In function '__objc_class_structure_encoding':
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/gc.c:253: warning: value computed is not used
make[3]: *** [gc_gc.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.0/work/build/i686-pc-linux-gnu/libobjc'
make[2]: *** [all-target-libobjc] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.0/work/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.0/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.0 failed.
Call stack:
  ebuild.sh, line 1526:   Called dyn_compile
  ebuild.sh, line 923:   Called src_compile
  ebuild.sh, line 1236:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1487:   Called gcc_do_make
  toolchain.eclass, line 1361:   Called die

!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.

I checked and found var/tmp/portage/gcc-4.1.0/boehm-gc/include/gc_config.h.in but no gc_config.  To me, that seems like a makefile or auto* problem (presumably something was supposed to generate qc_config.h form qc_config.h.in but didn't).

Let me know if I should post this as a seperate bug.

emerge info:
Portage 2.1_pre7-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15.2 i686)
=================================================================
System uname: 2.6.15.2 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/globus-2.4/etc /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protection distcc distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo ftp://194.117.143.71/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/ag-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d a52 aac aalib acpi alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cairo cdr cjk crypt cups curl dbus dga dri dts dv dvb dvd dvdr eds emacs emboss encode esd exif expat f77 faad fbcon ffmpeg fftw flac fortran gcj gd gdbm gif gimpprint ginac gmp gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal idn imagemagick imlib jack java jpeg lcms ldap leim libcaca libg++ libwww lirc live mad matroska mikmod mmx mng mono motif mozilla mp3 mpeg mysql nas ncurses nls nptl objc offensive ogg oggvorbis openal opengl oss pam pdf pdflib perl plotutils png ppds python qhull qt quicktime radeon readline rtc samba scanner sdk sdl slang speex spell sqlite sse ssl svg tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vorbis wmf wxwindows xinerama xml xml2 xmms xosd xprint xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_ati video_cards_vesa video_cards_vga"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS


Comment 12 SpanKY gentoo-dev 2006-03-30 07:19:46 UTC
*** Bug 128063 has been marked as a duplicate of this bug. ***
Comment 13 Mark Loeser (RETIRED) gentoo-dev 2006-03-30 07:36:22 UTC
So, I didn't completely fix it :)
Comment 14 Charles Christie 2006-04-09 17:41:47 UTC
        -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/objc  -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../gcc -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../gcc/config -I../.././gcc -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../include -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../boehm-gc/include -I../boehm-gc/include /var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/gc.c
/var/tmp/portage/gcc-4.1.0/work/build/./gcc/xgcc -B/var/tmp/portage/gcc-4.1.0/work/build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -c -I. -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc -O2 -march=pentium3 -O2 -pipe -W -Wall -Wwrite-strings -Wstrict-prototypes -DIN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing -fexceptions -DOBJC_WITH_GC=1 -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/objc -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../gcc -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../gcc/config -I../.././gcc -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../include -I/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../boehm-gc/include -I../boehm-gc/include /var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/gc.c  -fPIC -DPIC -o .libs/gc_gc.o
In file included from /var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/gc.c:38:
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../boehm-gc/include/gc.h:55:24: error: gc_config.h: No such file or directory
In file included from /var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/gc.c:38:
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/../boehm-gc/include/gc.h:155: warning: function declaration isn't a prototype
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/gc.c: In function '__objc_class_structure_encoding':
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libobjc/gc.c:253: warning: value computed is not used
make[3]: *** [gc_gc.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.0/work/build/i686-pc-linux-gnu/libobjc'
make[2]: *** [all-target-libobjc] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.0/work/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.0/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.0 failed.
!!! Function gcc_do_make, Line 1302, Exitcode 2
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.

Same problem, same error message...

emerge --info output:
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.4-r1, 2.6.15.6-kanotix-1 i686)
=================================================================
System uname: 2.6.15.6-kanotix-1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LC_ALL="C"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acl acpi aim aimextras akode alsa amr apache2 apm arts artworkextra asf audiofile avahi avi bash-completion bidi bitmap-fonts bittorrent bookmarks bzip2 cairo cap cddb cdparanoia cdrom cgi cjk clamav clamd cli crypt ctype cups curl curlwrappers cvs cvsgraph dba dbase dga dio directfb dlloader dmi dri dvd dvdread eds emacs-w3 emboss encode esd expat fam fastbuild fbcon fbdev fbsplash ffmpeg firefox flac fltk foomaticdb force-cgi-redirect fortran freetds ftp fuse gd gdbm gif glut glx gmail gmailtimestamps gmp gnome gnustep gpm grammar gstreamer gtk gtk2 gzip hal hash ibam imlib inifile input_devices_keyboard input_devices_mouse insecure-drivers iodbc ipod ipv6 isdnlog jack java javascript jikes jpeg jpeg2k kde lame lash lcms libclamav libg++ libsexy libwww linuxthreads-tls mad memlimit mikmod mmx mode-owner motif mouse mp3 mpeg mpi mplayer msn msnextras mssql music mysql nas ncurses neXt nls nowin nptl nptlonly nsplugin nspr ntfs objc objc++ objc-gc ogg openal opengl opera oss pam pcmcia pcre pdf pdflib perl php png pnp posix pppd python qt quicktime readline real reflection reiserfs remix samba sdl session simplexml sndfile soap sockets spell spl sql sqlite3 sse sse-filters ssl svg svga swat syslog tcpd threads tokenizer truetype truetype-fonts type1-fonts udev unicode user-homedirs userlocales utf8 vcd vcdimager video_cards_savage virus-scan voice vorbis wifi win32codecs wxgtk1 xemacs xine xml xmlreader xmlrpc xmlwriter xmms xosd xscreensaver xsl xv yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

I'm going to go get rid of the objc flags in my make.conf now...
Comment 15 Colin Macdonald 2006-04-10 17:48:34 UTC
I notice that I have boehm-gc emerged on my system.  Could that be related to this bug?  I haven't tried building gcc 4.1 after unmerging boehm-gc but it might be worth trying.
Comment 16 Colin Macdonald 2006-04-10 23:06:13 UTC
Re: comment #15, no that didn't change anything.

Though I am curious about the relation between dev-libs/boehm-gc and the gc included in gcc.
Comment 17 Jörg Walter 2006-04-22 01:24:25 UTC
The included boehm-gc isn't configured at the right time. When libobjc is built, boehm-gc is still untouched. If you already have a gcc with boehm-gc installed, the problem won't appear. This small patch changes the build order so that boehm-gc is built first:

--- Makefile.in.orig    2006-04-22 10:17:31.000000000 +0200
+++ Makefile.in 2006-04-22 10:11:35.000000000 +0200
@@ -732,6 +732,7 @@
     maybe-all-target-libssp \
     maybe-all-target-newlib \
     maybe-all-target-libgfortran \
+    maybe-all-target-boehm-gc \
     maybe-all-target-libobjc \
     maybe-all-target-libtermcap \
     maybe-all-target-winsup \
@@ -742,7 +743,6 @@
     maybe-all-target-libffi \
     maybe-all-target-libjava \
     maybe-all-target-zlib \
-    maybe-all-target-boehm-gc \
     maybe-all-target-qthreads \
     maybe-all-target-rda \
     maybe-all-target-libada
Comment 18 SpanKY gentoo-dev 2006-04-28 21:02:35 UTC
unless i'm mistaken, that just hides the issue ... if you build gcc in parallel, it'd still be possible to hit the bug right ?
Comment 19 Mark Loeser (RETIRED) gentoo-dev 2006-04-29 20:13:11 UTC
Yea, it will most likely still break.  You need to add the dependency on boehm-gc being built for the libobjc rules as well, where necessary.
Comment 20 David Gurvich 2006-05-10 11:08:24 UTC
I have recently updated to gcc-4.1.0.  It compiled cleanly using gcc-3.4.5.
However, when trying to compile gcc-4.1 with gcc-4.1, it failed during compilation of the gfortran module.  With USE="-fortran" it failed somewhere else.

With USE="-objc-gc" everything compiles cleanly and works with no problems.

That is despite having boehm-gc installed.  Or, perhaps, because of having boehm-gc installed.  Not sure which.

Will uninstalling boehm-gc and compiling gcc with "objc-gc" have any purpose?
Comment 21 Mark Loeser (RETIRED) gentoo-dev 2006-05-11 11:22:58 UTC
Just updated the boehm-gc patch in CVS.  This should be fixed the next time I roll out a patchset, which I'll do in a day or two.
Comment 22 Colin Macdonald 2006-05-14 21:56:09 UTC
Were those patches in the new 4.0.1-r1?  Because I just built 4.1.0-r1 and I'm still seeing this bug.

/var/tmp/portage/gcc-4.1.0-r1/work/build/./gcc/xgcc -B/var/tmp/portage/gcc-4.1.0-r1/work/build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -c -I. -I/var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc -O2 -march=i686 -O2 -pipe -W -Wall -Wwrite-strings -Wstrict-prototypes -DIN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing -fexceptions -DOBJC_WITH_GC=1 -I/var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc/objc -I/var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc/../gcc -I/var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc/../gcc/config -I../.././gcc -I/var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc/../include -I/var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc/../boehm-gc/include -I../boehm-gc/include /var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc/gc.c  -fPIC -DPIC -o .libs/gc_gc.o
In file included from /var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc/gc.c:38:
/var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc/../boehm-gc/include/gc.h:55:24: error: gc_config.h: No such file or directory
In file included from /var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc/gc.c:38:
/var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc/../boehm-gc/include/gc.h:155: warning: function declaration isn't a prototype
/var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc/gc.c: In function '__objc_class_structure_encoding':
/var/tmp/portage/gcc-4.1.0-r1/work/gcc-4.1.0/libobjc/gc.c:253: warning: value computed is not used
make[3]: *** [gc_gc.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.0-r1/work/build/i686-pc-linux-gnu/libobjc'
make[2]: *** [all-target-libobjc] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.0-r1/work/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.0-r1/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.0-r1 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  ebuild.sh, line 1240:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1466:   Called gcc_do_make
  toolchain.eclass, line 1340:   Called die

!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.

Comment 23 Mark Loeser (RETIRED) gentoo-dev 2006-05-26 09:11:11 UTC
*** Bug 134407 has been marked as a duplicate of this bug. ***
Comment 24 Mark Loeser (RETIRED) gentoo-dev 2006-05-26 09:17:53 UTC
I'm getting tired of this bug...reopening so I remember to look at this again. :)
Comment 25 Mehmet Kemal EROL 2006-05-27 15:30:14 UTC
Same on 4.1.1 ... btw:

-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/objc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../gcc/config -I../.././gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../include -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../boehm-gc/include -I../boehm-gc/include /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/encoding.c  -fPIC -DPIC -o .libs/encoding_gc.o
/var/tmp/portage/gcc-4.1.1/work/build/./gcc/xgcc -B/var/tmp/portage/gcc-4.1.1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -c -I. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc -O2 -march=k8 -O2 -pipe -W -Wall -Wwrite-strings -Wstrict-prototypes -DIN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing -fexceptions -DOBJC_WITH_GC=1 -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/objc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../gcc/config -I../.././gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../include -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../boehm-gc/include -I../boehm-gc/include /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/encoding.c -o encoding_gc.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /var/tmp/portage/gcc-4.1.1/work/build/./gcc/xgcc -B/var/tmp/portage/gcc-4.1.1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -c -o gc_gc.lo -I. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc   -O2 -march=k8 -O2 -pipe  -W -Wall -Wwrite-strings -Wstrict-prototypes -DIN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing -fexceptions -DOBJC_WITH_GC=1 \
		-I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/objc  -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../gcc/config -I../.././gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../include -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../boehm-gc/include -I../boehm-gc/include /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/gc.c
/var/tmp/portage/gcc-4.1.1/work/build/./gcc/xgcc -B/var/tmp/portage/gcc-4.1.1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -c -I. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc -O2 -march=k8 -O2 -pipe -W -Wall -Wwrite-strings -Wstrict-prototypes -DIN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing -fexceptions -DOBJC_WITH_GC=1 -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/objc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../gcc/config -I../.././gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../include -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../boehm-gc/include -I../boehm-gc/include /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/gc.c  -fPIC -DPIC -o .libs/gc_gc.o
In file included from /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/gc.c:38:
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../boehm-gc/include/gc.h:55:24: error: gc_config.h: No such file or directory
In file included from /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/gc.c:38:
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/../boehm-gc/include/gc.h:155: warning: function declaration isn't a prototype
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/gc.c: In function '__objc_class_structure_encoding':
/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libobjc/gc.c:253: warning: value computed is not used
make[3]: *** [gc_gc.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/x86_64-pc-linux-gnu/libobjc'
make[2]: *** [all-target-libobjc] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.1 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  ebuild.sh, line 1240:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1460:   Called gcc_do_make
  toolchain.eclass, line 1334:   Called die

!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 26 Mark Loeser (RETIRED) gentoo-dev 2006-05-28 17:07:09 UTC
This should really be fixed now.  A chunk of the patch was missing when I put it in CVS.
Comment 27 Martin Dobrev 2006-05-29 05:28:07 UTC
(In reply to comment #26)
> This should really be fixed now.  A chunk of the patch was missing when I put
> it in CVS.
> 

Hmm, I synced the portage tree and tried the compilation of gcc 4.1.1. still the same problem. Can you pls. provide me a link to the patched ebuild and files?!
Comment 28 Mehmet Kemal EROL 2006-05-29 15:12:30 UTC
Hans-J.Boehm [http://www.hpl.hp.com/personal/Hans_Boehm/gc/] says:
"A slightly older version of the garbage collector is now also included as part of the GNU compiler distribution. ..." Is this the reason of our problems?!

`gcc' is a monster enough, could'nt we leave this `objc-gc' switch out? We DO have a `boehm-gc' collection already, so linking might be the adequate solution, if it's possible though?!
Comment 29 Jakub Moc (RETIRED) gentoo-dev 2006-06-16 14:35:30 UTC
*** Bug 137024 has been marked as a duplicate of this bug. ***
Comment 30 William 2006-06-16 16:10:02 UTC
(In reply to comment #29)
> *** Bug 137024 has been marked as a duplicate of this bug. ***
> 

K im the one who post the bug 137024, why i still have the problem 
if this one is marked as RESOLVED FIXED,
thanks
Comment 31 Heiko Baums 2006-08-12 18:38:01 UTC
Unfortunately I can't reopen this bug, so it would be nice if someone else could do that because my bug was marked as a duplicate of this bug but in this bug there seems only gcc-4.x to be fixed.

I'm having the same bug with gcc-3.4.6-r2. When dev-libs/boehm-gc-6.7 is installed gcc-3.4.6-r2 compiles without any problems.

So it would be nice if this bug could also be fixed in gcc-3.4.6-r2.
Comment 32 Ryan Hill (RETIRED) gentoo-dev 2006-08-12 22:18:06 UTC
(In reply to comment #31)
> Unfortunately I can't reopen this bug, so it would be nice if someone else
> could do that because my bug was marked as a duplicate of this bug but in this
> bug there seems only gcc-4.x to be fixed.

That error seems to be very different from the one here.  I'll reopen your report and take a look.

 

Comment 33 Jakub Moc (RETIRED) gentoo-dev 2006-08-12 22:55:59 UTC
*** Bug 137024 has been marked as a duplicate of this bug. ***