Reproducible: Always Steps to Reproduce: 1. env MAKEOPTS="V=1" emerge =dev-libs/gobject-introspection-1.30.0-r1 > /tmp/emerge.out Actual Results: Emerge crashes as follows. The error is always in the same place but the number in front of "Segmentation fault" varies and occasionally I get "Illegal instruction" instead of "Segmentation fault". /bin/sh: line 1: 318 Segmentation fault env PATH=.libs:/usr/lib64/portage/bin/ebuild-helpers/4:/usr/lib64/portage/bin/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3:/opt/intel/Compiler/11.1/046/bin/intel64:/usr/qt/3/bin:/usr/x86_64-pc-linux-gnu/gnat-gcc-bin/4.3:/usr/libexec/gnat-gcc/x86_64-pc-linux-gnu/4.3:/usr/x86_64-pc-linux-gnu/gnat-gcc-bin/4.4:/usr/libexec/gnat-gcc/x86_64-pc-linux-gnu/4.4 LPATH=.libs PYTHONPATH=.:. UNINSTALLED_INTROSPECTION_SRCDIR=. UNINSTALLED_INTROSPECTION_BUILDDIR=. ./g-ir-scanner --quiet --verbose -I. --add-include-path=. --add-include-path=./gir --add-include-path=. --add-include-path=. --namespace=GLib --nsversion=2.0 --libtool="/bin/sh ./libtool" --pkg=glib-2.0 --library=glib-2.0 --library=gobject-2.0 --external-library --reparse-validate --identifier-prefix=G --symbol-prefix=g --symbol-prefix=glib --c-include="glib.h" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DGETTEXT_PACKAGE=Dummy -DGLIB_COMPILATION -D__G_I18N_LIB_H__ /usr/lib64/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glib/gutils.h /usr/include/glib-2.0/glib/gthreadpool.h /usr/include/glib-2.0/glib/gasyncqueue.h /usr/include/glib-2.0/glib/gspawn.h /usr/include/glib-2.0/glib/gshell.h /usr/include/glib-2.0/glib/gcompletion.h /usr/include/glib-2.0/glib/gprintf.h /usr/include/glib-2.0/glib/gcache.h /usr/include/glib-2.0/glib/gmem.h /usr/include/glib-2.0/glib/gmacros.h /usr/include/glib-2.0/glib/gprimes.h /usr/include/glib-2.0/glib/gstrfuncs.h /usr/include/glib-2.0/glib/gvariant.h /usr/include/glib-2.0/glib/garray.h /usr/include/glib-2.0/glib/gdatetime.h /usr/include/glib-2.0/glib/gmappedfile.h /usr/include/glib-2.0/glib/gerror.h /usr/include/glib-2.0/glib/gi18n-lib.h /usr/include/glib-2.0/glib/gkeyfile.h /usr/include/glib-2.0/glib/gqueue.h /usr/include/glib-2.0/glib/gsequence.h /usr/include/glib-2.0/glib/gnode.h /usr/include/glib-2.0/glib/goption.h /usr/include/glib-2.0/glib/gscanner.h /usr/include/glib-2.0/glib/ghash.h /usr/include/glib-2.0/glib/gbase64.h /usr/include/glib-2.0/glib/gpoll.h /usr/include/glib-2.0/glib/gdataset.h /usr/include/glib-2.0/glib/ghmac.h /usr/include/glib-2.0/glib/gurifuncs.h /usr/include/glib-2.0/glib/gslice.h /usr/include/glib-2.0/glib/gthread.h /usr/include/glib-2.0/glib/grel.h /usr/include/glib-2.0/glib/gmain.h /usr/include/glib-2.0/glib/ghostutils.h /usr/include/glib-2.0/glib/gi18n.h /usr/include/glib-2.0/glib/gtimezone.h /usr/include/glib-2.0/glib/glist.h /usr/include/glib-2.0/glib/gmessages.h /usr/include/glib-2.0/glib/gfileutils.h /usr/include/glib-2.0/glib/gdate.h /usr/include/glib-2.0/glib/gtestutils.h /usr/include/glib-2.0/glib/galloca.h /usr/include/glib-2.0/glib/gwin32.h /usr/include/glib-2.0/glib/gregex.h /usr/include/glib-2.0/glib/gbookmarkfile.h /usr/include/glib-2.0/glib/gstring.h /usr/include/glib-2.0/glib/ghook.h /usr/include/glib-2.0/glib/gbacktrace.h /usr/include/glib-2.0/glib/gmarkup.h /usr/include/glib-2.0/glib/gqsort.h /usr/include/glib-2.0/glib/gslist.h /usr/include/glib-2.0/glib/gconvert.h /usr/include/glib-2.0/glib/gpattern.h /usr/include/glib-2.0/glib/gtimer.h /usr/include/glib-2.0/glib/gstdio.h /usr/include/glib-2.0/glib/gatomic.h /usr/include/glib-2.0/glib/giochannel.h /usr/include/glib-2.0/glib/gbitlock.h /usr/include/glib-2.0/glib/gchecksum.h /usr/include/glib-2.0/glib/gtree.h /usr/include/glib-2.0/glib/gquark.h /usr/include/glib-2.0/glib/gvarianttype.h /usr/include/glib-2.0/glib/gunicode.h /usr/include/glib-2.0/glib/grand.h /usr/include/glib-2.0/glib/gdir.h /usr/include/glib-2.0/glib/gtypes.h /usr/include/glib-2.0/gobject/glib-types.h gir/glib-2.0.c g-ir-scanner g-ir-compiler --output GLib-2.0.gir make[2]: *** [GLib-2.0.gir] Error 139 make[2]: Leaving directory `/var/tmp/portage/dev-libs/gobject-introspection-1.30.0-r1/work/gobject-introspection-1.30.0' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-libs/gobject-introspection-1.30.0-r1/work/gobject-introspection-1.30.0' make: *** [all] Error 2 * ERROR: dev-libs/gobject-introspection-1.30.0-r1 failed (compile phase): * emake failed * * If you need support, post the output of 'emerge --info =dev-libs/gobject-introspection-1.30.0-r1', * the complete build log and the output of 'emerge -pqv =dev-libs/gobject-introspection-1.30.0-r1'. * The complete build log is located at '/var/log/portage/dev-libs:gobject-introspection-1.30.0-r1:20120102-042004.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/gobject-introspection-1.30.0-r1/temp/environment'. * S: '/var/tmp/portage/dev-libs/gobject-introspection-1.30.0-r1/work/gobject-introspection-1.30.0' >>> Failed to emerge dev-libs/gobject-introspection-1.30.0-r1, Log file: >>> '/var/log/portage/dev-libs:gobject-introspection-1.30.0-r1:20120102-042004.log' Expected Results: Compilation doesn't crash. A similar problem is discussed in the forums at <http://forums.gentoo.org/viewtopic-t-897374-start-0.html>. As in that discussion, with FEATURES="keeptemp keepwork", if I go to the work directory (/var/tmp/portage/dev-libs/gobject-introspection-1.30.0-r1/work/gobject-introspection-1.30.0) and type 'make', I don't get a crash and then can rerun emerge to get gobject-introspection-1.30.0 to install. I will attach emerge --info and the complete build log to the bug.
Created attachment 297603 [details] emerge --info =dev-libs/gobject-introspection-1.30.0-r1 output
Created attachment 297605 [details] The complete build log
It looks like my work-around (running the make myself) is not useful; the installed g-ir-scanner crashes when (e.g.) udev-171-r5 is emerged, preventing it (and presumably other dependencies) from emerging.
Try rebuilding it with CFLAGS="-O2 -pipe"
(In reply to comment #4) > Try rebuilding it with CFLAGS="-O2 -pipe" Hmm, this didn't work for me. I changed my CFLAGS to "-O2 -pipe" from my usual "-march=native" and still got the same error when emerging gobject-introspection.
(In reply to comment #5) > (In reply to comment #4) > > Try rebuilding it with CFLAGS="-O2 -pipe" > > Hmm, this didn't work for me. I changed my CFLAGS to "-O2 -pipe" from my usual > "-march=native" and still got the same error when emerging > gobject-introspection. Likewise. I also tried CFLAGS="" and got the same error.
Please show "emerge -pv gobject-introspection glib sandbox portage"
I guess you reemerged dbus-glib and gobject-introspection after updating to glib-2.30.x no?
We go to bug 396609, please reply there as we still don't know why some people are getting this problems we cannot reproduce :( *** This bug has been marked as a duplicate of bug 396609 ***