Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324107 - sys-devel/libtool-2.2.{8,10} breaks when using gcc-4.5 -flto
Summary: sys-devel/libtool-2.2.{8,10} breaks when using gcc-4.5 -flto
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://lists.gnu.org/archive/html/bug...
Whiteboard:
Keywords:
: 331759 468958 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-15 11:42 UTC by Piotrek Juzwiak
Modified: 2013-12-24 12:50 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotrek Juzwiak 2010-06-15 11:42:49 UTC
.libs/gpattern.o .libs/gpoll.o .libs/gprimes.o .libs/gqsort.o .libs/gqueue.o .libs/grel.o .libs/grand.o .libs/gregex.o .libs/gscanner.o .libs/gsequence.o .libs/gshell.o .libs/gslice.o .libs/gslist.o .libs/gstdio.o .libs/gstrfuncs.o .libs/gstring.o .libs/gtestutils.o .libs/gthread.o .libs/gthreadpool.o .libs/gtimer.o .libs/gtree.o .libs/guniprop.o .libs/gutf8.o .libs/gunibreak.o .libs/gunicollate.o .libs/gunidecomp.o .libs/gurifuncs.o .libs/gutils.o .libs/gvariant.o .libs/gvariant-core.o .libs/gvariant-parser.o .libs/gvariant-serialiser.o .libs/gvarianttypeinfo.o .libs/gvarianttype.o .libs/gprintf.o .libs/giounix.o .libs/gspawn.o   libcharset/.libs/libcharset.a pcre/.libs/libpcre.a |  | /bin/sed 's/.* //' | sort | uniq > .libs/libglib-2.0.exp'
../libtool: line 964: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires
make[4]: *** [libglib-2.0.la] Error 1
make[4]: Leaving directory `/dev/shm/portage/dev-libs/glib-2.24.1/work/glib-2.24.1/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/dev/shm/portage/dev-libs/glib-2.24.1/work/glib-2.24.1/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/dev/shm/portage/dev-libs/glib-2.24.1/work/glib-2.24.1/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/dev/shm/portage/dev-libs/glib-2.24.1/work/glib-2.24.1'
make: *** [all] Error 2
 * ERROR: dev-libs/glib-2.24.1 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2980:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/glib-2.24.1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.24.1'.
 * The complete build log is located at '/dev/shm/portage/dev-libs/glib-2.24.1/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/dev-libs/glib-2.24.1/temp/environment'.
 * S: '/dev/shm/portage/dev-libs/glib-2.24.1/work/glib-2.24.1'

>>> Failed to emerge dev-libs/glib-2.24.1, Log file:

>>>  '/dev/shm/portage/dev-libs/glib-2.24.1/temp/build.log'

 * Messages for package dev-libs/glib-2.24.1:

 * ERROR: dev-libs/glib-2.24.1 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2980:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/glib-2.24.1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.24.1'.
 * The complete build log is located at '/dev/shm/portage/dev-libs/glib-2.24.1/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/dev-libs/glib-2.24.1/temp/environment'.
 * S: '/dev/shm/portage/dev-libs/glib-2.24.1/work/glib-2.24.1'


Reproducible: Always

Steps to Reproduce:
1.Try to compile gstreamer/gtk+/glib/
2.Building fails
3.

Actual Results:  
Build fails at some exact line

Expected Results:  
Should build just fine
Comment 1 Piotrek Juzwiak 2010-06-15 11:43:53 UTC
emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop/kde, gcc-4.5.0, glibc-2.11.2-r0, 2.6.34-gentoo i686)
=================================================================
System uname: Linux-2.6.34-gentoo-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 15 Jun 2010 00:30:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=atom -mtune=atom -mfpmath=sse -mmovbe -msahf -flto -fomit-frame-pointer -pipe -Wno-deprecated"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
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=atom -mtune=atom -mfpmath=sse -mmovbe -msahf -flto -fomit-frame-pointer -pipe -Wno-deprecated"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dev/shm"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="32bit X a52 aac accessibility acl acpi akonadi alsa archive aspell bash-completion bindist branding bzip2 cairo cli consolekit cpudetection cracklib cups cxx dbus dhcpcd dri dts emboss encode exceptions exif fam ffmpeg firefox fortran gif glib gnutls graphite hyperestraier iconv inotify ipod jpeg kde kipi laptop lcms libnotify lzma lzo mad matroska metalink mikmod minimal mmap mmx mng modules mp3 mp4 mpeg mudflap mysql ncurses networkmanager nls nptl nptlonly nsplugin nss ogg opengl openmp optimized-qmake pam pango pcre pdf perl phonon plasma png policykit ppds python qt3support qt4 readline rss samba scanner sdl semantic-desktop session smp solid spell sse sse2 ssl ssse3 startup-notification svg svga symlink sysfs taglib tcpd theora threads tiff truetype udev unicode usb v4l2 vaapi virtuoso vorbis wifi wpd wv2 x264 x86 xattr xcb xcomposite xine xinerama xml xorg xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="hda-intel" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Piotrek Juzwiak 2010-06-15 11:44:30 UTC
libtool version 2.2.10 (the same happend with the 2.2.8 version)
Comment 3 Piotrek Juzwiak 2010-06-15 13:32:08 UTC
I fail building gstreamer 


gstreamer_0.10_la-gstquery.o .libs/libgstreamer_0.10_la-gstregistry.o .libs/libgstreamer_0.10_la-gstregistrychunks.o .libs/libgstreamer_0.10_la-gstsegment.o .libs/libgstreamer_0.10_la-gststructure.o .libs/libgstreamer_0.10_la-gstsystemclock.o .libs/libgstreamer_0.10_la-gsttaglist.o .libs/libgstreamer_0.10_la-gsttagsetter.o .libs/libgstreamer_0.10_la-gsttask.o .libs/libgstreamer_0.10_la-gsttaskpool.o .libs/libgstreamer_0.10_la-gsttrace.o .libs/libgstreamer_0.10_la-gsttypefind.o .libs/libgstreamer_0.10_la-gsttypefindfactory.o .libs/libgstreamer_0.10_la-gsturi.o .libs/libgstreamer_0.10_la-gstutils.o .libs/libgstreamer_0.10_la-gstvalue.o .libs/libgstreamer_0.10_la-gstparse.o .libs/libgstreamer_0.10_la-gstregistrybinary.o .libs/libgstreamer_0.10_la-gstxml.o .libs/libgstreamer_0.10_la-gstenumtypes.o .libs/libgstreamer_0.10_la-gstmarshal.o   parse/.libs/libgstparse.a |  | /bin/sed 's/.* //' | sort | uniq > .libs/libgstreamer-0.10.exp'
../libtool: line 950: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires
make[4]: *** [libgstreamer-0.10.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
 * ERROR: media-libs/gstreamer-0.10.28 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2549:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =media-libs/gstreamer-0.10.28',
 * the complete build log and the output of 'emerge -pqv =media-libs/gstreamer-0.10.28'.
 * The complete build log is located at '/dev/shm/portage/media-libs/gstreamer-0.10.28/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/media-libs/gstreamer-0.10.28/temp/environment'.
 * S: '/dev/shm/portage/media-libs/gstreamer-0.10.28/work/gstreamer-0.10.28'

>>> Failed to emerge media-libs/gstreamer-0.10.28, Log file:

>>>  '/dev/shm/portage/media-libs/gstreamer-0.10.28/temp/build.log'

 * Messages for package media-libs/gstreamer-0.10.28:

 * ERROR: media-libs/gstreamer-0.10.28 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2549:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =media-libs/gstreamer-0.10.28',
 * the complete build log and the output of 'emerge -pqv =media-libs/gstreamer-0.10.28'.
 * The complete build log is located at '/dev/shm/portage/media-libs/gstreamer-0.10.28/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/media-libs/gstreamer-0.10.28/temp/environment'.
 * S: '/dev/shm/portage/media-libs/gstreamer-0.10.28/work/gstreamer-0.10.28'
Comment 4 Piotrek Juzwiak 2010-06-15 13:43:59 UTC
glib failing

typeinfo.o .libs/gvarianttype.o .libs/gprintf.o .libs/giounix.o .libs/gspawn.o   libcharset/.libs/libcharset.a pcre/.libs/libpcre.a |  | /bin/sed 's/.* //' | sort | uniq > .libs/libglib-2.0.exp
../libtool: eval: line 964: syntax error near unexpected token `|'
../libtool: eval: line 964: `/usr/bin/nm -B  .libs/garray.o .libs/gasyncqueue.o .libs/gatomic-gcc.o .libs/gbacktrace.o .libs/gbase64.o .libs/gbitlock.o .libs/gbookmarkfile.o .libs/gbuffer.o .libs/gcache.o .libs/gchecksum.o .libs/gcompletion.o .libs/gconvert.o .libs/gdataset.o .libs/gdate.o .libs/gdir.o .libs/gerror.o .libs/gfileutils.o .libs/ghash.o .libs/ghook.o .libs/ghostutils.o .libs/giochannel.o .libs/gkeyfile.o .libs/glist.o .libs/gmain.o .libs/gmappedfile.o .libs/gmarkup.o .libs/gmem.o .libs/gmessages.o .libs/gnode.o .libs/goption.o .libs/gpattern.o .libs/gpoll.o .libs/gprimes.o .libs/gqsort.o .libs/gqueue.o .libs/grel.o .libs/grand.o .libs/gregex.o .libs/gscanner.o .libs/gsequence.o .libs/gshell.o .libs/gslice.o .libs/gslist.o .libs/gstdio.o .libs/gstrfuncs.o .libs/gstring.o .libs/gtestutils.o .libs/gthread.o .libs/gthreadpool.o .libs/gtimer.o .libs/gtree.o .libs/guniprop.o .libs/gutf8.o .libs/gunibreak.o .libs/gunicollate.o .libs/gunidecomp.o .libs/gurifuncs.o .libs/gutils.o .libs/gvariant.o .libs/gvariant-core.o .libs/gvariant-parser.o .libs/gvariant-serialiser.o .libs/gvarianttypeinfo.o .libs/gvarianttype.o .libs/gprintf.o .libs/giounix.o .libs/gspawn.o   libcharset/.libs/libcharset.a pcre/.libs/libpcre.a |  | /bin/sed 's/.* //' | sort | uniq > .libs/libglib-2.0.exp'
../libtool: line 964: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires
make[4]: *** [libglib-2.0.la] Error 1
make[4]: Leaving directory `/dev/shm/portage/dev-libs/glib-2.24.1/work/glib-2.24.1/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/dev/shm/portage/dev-libs/glib-2.24.1/work/glib-2.24.1/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/dev/shm/portage/dev-libs/glib-2.24.1/work/glib-2.24.1/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/dev/shm/portage/dev-libs/glib-2.24.1/work/glib-2.24.1'
make: *** [all] Error 2
 * ERROR: dev-libs/glib-2.24.1 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2980:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/glib-2.24.1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.24.1'.
 * The complete build log is located at '/dev/shm/portage/dev-libs/glib-2.24.1/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/dev-libs/glib-2.24.1/temp/environment'.
 * S: '/dev/shm/portage/dev-libs/glib-2.24.1/work/glib-2.24.1'

>>> Failed to emerge dev-libs/glib-2.24.1, Log file:

>>>  '/dev/shm/portage/dev-libs/glib-2.24.1/temp/build.log'

 * Messages for package dev-libs/glib-2.24.1:

 * ERROR: dev-libs/glib-2.24.1 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2980:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/glib-2.24.1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.24.1'.
 * The complete build log is located at '/dev/shm/portage/dev-libs/glib-2.24.1/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/dev-libs/glib-2.24.1/temp/environment'.
 * S: '/dev/shm/portage/dev-libs/glib-2.24.1/work/glib-2.24.1
Comment 5 Rafał Mużyło 2010-06-15 13:58:16 UTC
From one of those failing packages, attach:
- full build log
- config log
- output of './libtool --config' (that is libtool script
in the source tree, not one from /usr/bin)
Comment 6 Piotrek Juzwiak 2010-06-15 14:07:54 UTC
I have found the culprit (at least for gstreamer), -flto. After removing that gstreamer compiles just fine.
Comment 7 Piotrek Juzwiak 2010-06-15 14:09:51 UTC
I will check with other packages if the cause is the same.
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-06-15 14:12:42 UTC
-flto is not supported by Gentoo (yet).
Comment 9 Piotrek Juzwiak 2010-06-15 14:14:16 UTC
I will check with other packages if the cause is the same.
Comment 10 Piotrek Juzwiak 2010-06-15 14:15:17 UTC
(In reply to comment #8)
> -flto is not supported by Gentoo (yet).
> 

So i uderstand bugs connected with -flto should be reported to gstreamer devs or gcc devs?
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-06-15 14:17:18 UTC
To the upstream project involved, in this case it's libtool at fault, so you should report to them.
Comment 12 SpanKY gentoo-dev 2010-08-10 02:16:38 UTC
*** Bug 331759 has been marked as a duplicate of this bug. ***
Comment 13 Pacho Ramos gentoo-dev 2013-12-24 12:50:01 UTC
*** Bug 468958 has been marked as a duplicate of this bug. ***