i am trying to update my gentoo with emerge world but it cant compile dev-libs/glib, wanted to install dev-libs/glib-2.24.2 but tried also dev-libs/glib-2.6.1 with the same error Reproducible: Always Steps to Reproduce: 1. emerge dev-libs/glib 2. fails 3. Actual Results: compilation fails Expected Results: compilation success
Created attachment 263803 [details] emerge --info dev-libs/glib
Please attach the build log file to this bug.
Created attachment 263807 [details] build lol
libtool: link: /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: eval: line 1133: syntax error near unexpected token `|' ../libtool: eval: line 1133: `/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 1133: 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
The actual problem lies here: pcre/.libs/libpcre.a | | /bin/sed 's/.* //' | '| |' part is missing a command. I vaguely recall such bugs being filed long time ago. IIRC, yhey were invalid, but I don't quite remember what the problem was.
This seems to be bug 196243.
(In reply to comment #6) > This seems to be bug 196243. From the build log: checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... failed So it does look indeed like that bug. @toolchain: was the fix "reverted" or this something new?
it isnt something that fixes itself. you need to flush your cache entirely. so clear out your ccache and see if it still fails.
i run ccache -C, but problem still persist some other hints?
when i disabled ccache in make.conf, problem not occurs
the CCACHE_DIR in make.conf might be different from in your user environment. try `CCACHE_DIR="/whatever/path/from/make.conf/ ccache -C` *** This bug has been marked as a duplicate of bug 196243 ***
yes, that helps thanks to all