Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417461 - sys-devel/gcc-4.6.2 - build fails with "./.libs/libgcj.so: undefined reference to `__cxa_call_unexpected'"
Summary: sys-devel/gcc-4.6.2 - build fails with "./.libs/libgcj.so: undefined referenc...
Status: RESOLVED DUPLICATE of bug 416857
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-05-25 08:05 UTC by Markus Wernig
Modified: 2012-05-29 00:38 UTC (History)
0 users

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


Attachments
build log (only last 50 lines) (build.log,7.78 KB, text/plain)
2012-05-25 08:09 UTC, Markus Wernig
Details
updated ebuild file to use isspace patch from gnu.org (gcc-4.6.2.ebuild,1.80 KB, text/plain)
2012-05-27 12:15 UTC, Markus Wernig
Details
isspace patch from gnu.org (gcc-isspace.patch,1.57 KB, patch)
2012-05-27 12:16 UTC, Markus Wernig
Details | Diff
gzipped build.log (gcc-4.6.2-build.log.gz,491.41 KB, text/plain)
2012-05-28 11:27 UTC, Markus Wernig
Details
gzipped build.log (gcc-4.6.2-build.log.gz,491.41 KB, application/octet-stream)
2012-05-28 12:55 UTC, Markus Wernig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Wernig 2012-05-25 08:05:23 UTC
During emerge world on ~amd64 gcc-4.6.2 fails to build with the above error.

Notes:
1) I had already installed gcc-4.6.2 while it was still masked (unmasked it, installed, then masked again) because a third-party software required GLIBCXX_3.4.15 ABI on libstdc++.so.6
2) There is a bug report on gnu.org that might be related: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50888
3) This also seems related: https://bugs.gentoo.org/show_bug.cgi?id=407651

Reproducible: Always




# gcc --version
gcc (Gentoo 4.5.3-r2 p1.2, pie-0.4.7) 4.5.3

# emerge --info
Portage 2.1.10.57 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.15-r2, 3.3.3-gentoo x86_64)
=================================================================
System uname: Linux-3.3.3-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-gentoo-2.1
Timestamp of tree: Thu, 24 May 2012 05:45:01 +0000
app-shells/bash:          4.2_p28
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3, 3.2.2-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2, 4.6.2
sys-devel/gcc-config:     1.7.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo x11 x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi alsa amd64 arts avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cddax cddb cdparanoia cdr cli consolekit cracklib crypt css cups cxx dbus device-mapper dga dirac dns dri dts dv dvb dvd dvdnav dvdr dvdread emboss encode esd exif faac faad fam ffmpeg firefox flac fortran ftp gd gdbm gdu ggi gif gimp git gmp gnome gphoto2 gpm gstreamer gtk gtkhtml gzip h323 hal hdmi http iconv icu imagemagick imap imlib ipv6 java jce jpeg jpeg2k kde kdrive kontact lame laptop lcms ldap libnotify live lzo mad matroska mdnsresponder-compat mikmod mime mmap mmx mmxext mng modplug modules mozilla mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses network networkmanager nls nptl nsplugin nss obex ogg opencore-amr opengl openmp openssl osdmenu oss otr pam pango pcmcia pcre pcsc pcsc-lite pda pdf perl php pipechan plasma png pnm policykit ppds pppd pvr qt3 qt3support qt4 radio raw rdesktop readline rss sasl scanner sdl secure-delete semantic-desktop session sip smartcard smp sockets spell sql sqlite sse sse2 ssl ssse3 startup-notification static-libs subversion svg tcpd theora threads tiff timidity toolame tremor truetype twolame udev udisks unicode upower usb utils v4l v4l2 vcd vnc vorbis wav wavpack webkit wifi wmf wxwidgets x264 xanim xattr xcb xcomposite xine xinerama xml xorg xpm xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="all" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics void alps" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev radeon radeonhd vesa r128" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Markus Wernig 2012-05-25 08:09:33 UTC
Created attachment 313029 [details]
build log (only last 50 lines)
Comment 2 Markus Wernig 2012-05-25 09:50:09 UTC
I have tried unmerging the installed instance of gcc-4.6.2 - the error persists.
Comment 3 Markus Wernig 2012-05-25 09:59:07 UTC
(In reply to comment #0)

> 3) This also seems related: https://bugs.gentoo.org/show_bug.cgi?id=407651

OK, not sure about that anymore, given that the problem persists with 4.6.2 unmerged.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-25 16:44:32 UTC
Please attach the entire build log to this bug report.
Comment 5 Markus Wernig 2012-05-25 20:22:54 UTC
(In reply to comment #4)
> Please attach the entire build log to this bug report.

The file is 14MB. Unfortunately bugzilla won't let me upload it (limit seems to be 1MB). You can find it here: http://markus.wernig.net/files/gcc-4.6.2-build.log
Comment 6 Markus Wernig 2012-05-27 12:09:53 UTC
OK, applying the patch from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50888 fixes the problem: gcc builds normally
Comment 7 Markus Wernig 2012-05-27 12:15:53 UTC
Created attachment 313245 [details]
updated ebuild file to use isspace patch from gnu.org
Comment 8 Markus Wernig 2012-05-27 12:16:25 UTC
Created attachment 313247 [details, diff]
isspace patch from gnu.org
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-28 11:20:56 UTC
Comment on attachment 313245 [details]
updated ebuild file to use isspace patch from gnu.org

--- gcc-4.6.2.ebuild    2012-05-28 02:43:31.000000000 +0200
+++ -   2012-05-28 13:20:46.534473373 +0200
@@ -49,6 +49,8 @@
        use vanilla && return 0
 
        [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
+
+       epatch "${FILESDIR}"/gcc-isspace.patch
 }
 
 pkg_setup() {
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-28 11:22:40 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Please attach the entire build log to this bug report.
> 
> The file is 14MB. Unfortunately bugzilla won't let me upload it (limit seems
> to be 1MB). You can find it here:
> http://markus.wernig.net/files/gcc-4.6.2-build.log

Use compression....
Comment 11 Markus Wernig 2012-05-28 11:27:18 UTC
Created attachment 313365 [details]
gzipped build.log
Comment 12 Markus Wernig 2012-05-28 12:55:00 UTC
Created attachment 313375 [details]
gzipped build.log
Comment 13 SpanKY gentoo-dev 2012-05-29 00:38:48 UTC

*** This bug has been marked as a duplicate of bug 416857 ***