Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196301 - dev-libs/glib-2.14.2: compile fails - syntax error near unexpected token `|'
Summary: dev-libs/glib-2.14.2: compile fails - syntax error near unexpected token `|'
Status: RESOLVED DUPLICATE of bug 196243
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 16:45 UTC by David Neumann
Modified: 2007-10-19 07:29 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,118.17 KB, text/plain)
2007-10-18 16:46 UTC, David Neumann
Details
config.log with ccache (config.log,161.79 KB, text/plain)
2007-10-18 23:02 UTC, David Neumann
Details
config.log w/o ccache (config.log,161.38 KB, text/plain)
2007-10-18 23:06 UTC, David Neumann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Neumann 2007-10-18 16:45:11 UTC
See results and atached build.log

Reproducible: Always

Steps to Reproduce:
1. emerge glib
2.
3.

Actual Results:  
[snip]
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -march=athlon64 -O2 -pipe -Wall -MT gspawn.lo -MD -MP -MF .deps/gspawn.Tpo -c gspawn.c  -fPIC -DPIC -o .libs/gspawn.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -march=athlon64 -O2 -pipe -Wall -MT gspawn.lo -MD -MP -MF .deps/gspawn.Tpo -c gspawn.c -o gspawn.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -march=athlon64 -O2 -pipe -Wall -MT gprintf.lo -MD -MP -MF .deps/gprintf.Tpo -c gprintf.c  -fPIC -DPIC -o .libs/gprintf.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -march=athlon64 -O2 -pipe -Wall -MT giounix.lo -MD -MP -MF .deps/giounix.Tpo -c giounix.c  -fPIC -DPIC -o .libs/giounix.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -march=athlon64 -O2 -pipe -Wall -MT gprintf.lo -MD -MP -MF .deps/gprintf.Tpo -c gprintf.c -o gprintf.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -march=athlon64 -O2 -pipe -Wall -MT giounix.lo -MD -MP -MF .deps/giounix.Tpo -c giounix.c -o giounix.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link x86_64-pc-linux-gnu-gcc  -march=athlon64 -O2 -pipe -Wall   -o libglib-2.0.la -rpath /usr/lib64  -version-info 1400:2:1400 -export-dynamic  -export-symbols-regex "^g.*" garray.lo gasyncqueue.lo gatomic.lo gbacktrace.lo gbase64.lo gbookmarkfile.lo gcache.lo gcompletion.lo gconvert.lo gdataset.lo gdate.lo gdir.lo gerror.lo gfileutils.lo ghash.lo ghook.lo giochannel.lo gkeyfile.lo glist.lo gmain.lo gmappedfile.lo gmarkup.lo gmem.lo gmessages.lo gnode.lo goption.lo gpattern.lo gprimes.lo gqsort.lo gqueue.lo grel.lo grand.lo gregex.lo gscanner.lo gsequence.lo gshell.lo gslice.lo gslist.lo gstdio.lo gstrfuncs.lo gstring.lo gthread.lo gthreadpool.lo gtimer.lo gtree.lo guniprop.lo gutf8.lo gunibreak.lo gunicollate.lo gunidecomp.lo gutils.lo gprintf.lo libcharset/libcharset.la  giounix.lo gspawn.lo    pcre/libpcre.la
generating symbol list for `libglib-2.0.la'
/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/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/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/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
../libtool: eval: line 4297: syntax error near unexpected token `|'
../libtool: eval: line 4297: `/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/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/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/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.14.2/work/glib-2.14.2/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.2/work/glib-2.14.2/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.2/work/glib-2.14.2/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.2/work/glib-2.14.2'
make: *** [all] Error 2
 *
 * ERROR: dev-libs/glib-2.14.2 failed.
 * Call stack:
 *            ebuild.sh, line 1695:  Called dyn_compile
 *            ebuild.sh, line 1033:  Called qa_call 'src_compile'
 *            ebuild.sh, line   44:  Called src_compile
 *   glib-2.14.2.ebuild, line   67:  Called die
 * The specific snippet of code:
 *      emake || die "make failed"
 *  The die message:
 *   make failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-libs/glib-2.14.2/temp/build.log'.



Portage 2.1.3.14 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.19-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Thu, 18 Oct 2007 16:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
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/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/xgl-coffee /usr/local/overlays/moodbar /usr/local/initng-portage /usr/local/overlays/mac"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility administrator alsa amd64 aoss apache2 bcp berkdb bitmap-fonts bzip2 cdb cdparanoia cli cracklib crypt cups dri dvb dvd dvdr dvdread encode ffmpeg flac fortran gdbm gif gimp glitz gnome gpm gtk iconv ipv6 isdnlog ithreads java javascript joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility logitech-mouse lzo mad midi mp3 mp4 mudflap musepack mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl php png ppds pppd python qt qt3 rdesktop readline reflection samba scanner sdl session slang smp speex spell spl sse3 ssl subtitles svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb visualization vorbis workbench x264 xcompositepda xine xinerama xinerdesktop xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0 usb-audio" 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" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 David Neumann 2007-10-18 16:46:16 UTC
Created attachment 133791 [details]
build.log
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-10-18 17:33:22 UTC
Post the output of `grep global_symbol_pipe /usr/bin/libtool` please.
Comment 3 David Neumann 2007-10-18 18:35:25 UTC
(In reply to comment #2)
> Post the output of `grep global_symbol_pipe /usr/bin/libtool` please.

global_symbol_pipe="sed -n -e 's/^.*[   ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[       ][      ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'"
export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"
              if test -z "$global_symbol_pipe"; then
            if test -z "$global_symbol_pipe"; then
        if test -n "$NM" && test -n "$global_symbol_pipe"; then
              $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
            $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
        # lt_preloaded_symbols.  The linker will fail if global_symbol_pipe
global_symbol_pipe="sed -n -e 's/^.*[   ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[       ][      ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'"
export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"
global_symbol_pipe="sed -n -e 's/^.*[   ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[       ][      ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'"
export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"

Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-10-18 18:53:21 UTC
Hmm.... same mess as in Bug 196243

<snip>
../libtool: eval: line 4297: syntax error near unexpected token `|'
</snip>
Comment 5 Bernard Cafarelli gentoo-dev 2007-10-18 19:45:36 UTC
Can you post /var/tmp/portage/dev-libs/glib-2.14.2/work/glib-2.14.2/config.log too?

It looks like the configure script has a problem with ccache here
Comment 6 David Neumann 2007-10-18 23:02:06 UTC
Created attachment 133844 [details]
config.log with ccache
Comment 7 David Neumann 2007-10-18 23:06:31 UTC
Created attachment 133845 [details]
config.log w/o ccache

You are right, just tried FEATURES=-ccache emerge glib and it worked.

I've attached both config logs (with ccache and without, canceled after configure) now, maybe whis will give you a hint whats going wrong here.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-10-19 07:29:54 UTC

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