Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231486 - dev-libs/glib-2.16.3-r1 emerge fails on syntax error (?)
Summary: dev-libs/glib-2.16.3-r1 emerge fails on syntax error (?)
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-11 07:25 UTC by Brandon Mintern
Modified: 2008-10-19 10:43 UTC (History)
1 user (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 Brandon Mintern 2008-07-11 07:25:39 UTC
While trying to emerge glib-2.16.3-r1, it fails with what appears to be a syntax error while libtool is executing /usr/bin/nm. I tried simply masking this version, but then my "emerge -uDNav world" fails with a similar problem on media-libs/gstreamer-0.10.20 and it's leading me to believe that I may have other problems.

Reproducible: Always




The command with the syntax error, along with the backtrace that follows it:

../libtool: eval: line 4344: `/usr/bin/nm -B  .libs/garray.o .libs/gasyncqueue.o .libs/gatomic.o .libs/gbacktrace.o .libs/gbase64.o .libs/gbookmarkfile.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/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/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/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'
make[4]: *** [libglib-2.0.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.16.3-r1/work/glib-2.16.3/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.16.3-r1/work/glib-2.16.3/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.16.3-r1/work/glib-2.16.3/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.16.3-r1/work/glib-2.16.3'
make: *** [all] Error 2
 * 
 * ERROR: dev-libs/glib-2.16.3-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2729:  Called die
 * The specific snippet of code:
 *       emake || die "make failed"
 *  The die message:
 *   make failed

Note the "|  |" near the end of the command. My emerge --info is:

Portage 2.2_rc1 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-tuxonice-r5 x86_64)
=================================================================
System uname: Linux-2.6.25-tuxonice-r5-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-50-with-glibc2.2.5
Timestamp of tree: Fri, 11 Jul 2008 07:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3 -fgcse-after-reload -fomit-frame-pointer -fno-ident -fweb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3 -fgcse-after-reload -fomit-frame-pointer -fno-ident -fweb -fno-enforce-eh-specs"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ ftp://ftp.ndlug.nd.edu/pub/gentoo/ ftp://lug.mtu.edu/gentoo ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 amr amrnb amrwb ansi aotuv apm artswrappersuid avahi bash-completion bitmap-fonts bluetooth branding cairo caps cddb cdr cli cpudetection cracklib crypt cups dbus dri dts dvd dvdnav dvdr dvdread emacs emboss encode evo fam fastcgi fftw flac fortran gdbm gif glibc-omitfp glitz gnome gpm gprof gstreamer gtk hal iconv isdnlog ithreads jpeg kerberos lcms libnotify logrotate mad madwifi midi mikmod mmap mmx mmxext mozbranding mozdevelop moznopango mp3 mpeg mudflap mule multilib ncurses new-login nls nogksu nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pcre pdf perl png ppds pppd qt3support quicktime readline reflection sdl session sndfile sound spell spl sse sse2 ssl ssse3 startup-notification svg tcpd theora threads tiff tk truetype truetype-fonts type1-fonts unicode vim-syntax vorbis xanim xft xml xorg xprint xulrunner xv xvid xvmc 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 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="dummy nvidia"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-11 08:12:47 UTC
Yes, it appears that "sed -n -e 's/^.*[      ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][      ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'" is missing. :)
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-07-11 08:44:29 UTC
try with saner CFLAGS
Comment 3 Brandon Mintern 2008-07-11 16:47:14 UTC
(In reply to comment #1)
> Yes, it appears that "sed -n -e 's/^.*[      ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[   
     ][      ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'" is missing. :)

Wow... so what is that for? And where can I fix it?

(In reply to comment #2)
> try with saner CFLAGS
> 

Are my CFLAGS really that bad? I've been using them for well over a year with no issue, and I don't see why they would cause a syntax error in a command. It seems to me to be a problem with the Makefile that is created during the configure step (or something similar).
Comment 4 Jonathan Manning 2008-07-11 21:08:33 UTC
I have simple CFLAGS and get the same error. CFLAGS="-O2 -pipe -march=nocona"

I thought it was libtool related, but then I stumbled on bug 196243.

I can confirm that building with:
FEATURES="-ccache" emerge -av1 glib
was successful.

Please try that workaround, and devs - please add as a depends or dup of bug 196243.
Comment 5 Michael Dukelsky 2008-07-12 18:08:50 UTC
(In reply to comment #4)
> I have simple CFLAGS and get the same error. CFLAGS="-O2 -pipe -march=nocona"

I have the same CFLAGS and get the same error.

> I can confirm that building with:
> FEATURES="-ccache" emerge -av1 glib
> was successful.

Unfortunately that does not work for me. I tried it both with the CFLAGS mentioned above and with CFLAGS="". Both result in the error.
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2008-08-21 12:02:58 UTC
Please provide a full build.log as suggested by portage.

Thanks
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-10-19 10:43:00 UTC
per comment #6