gamin causing failure in freebsd ports. [INFO] gobject-introspection-0.6.5: Segmentation fault: 11 (core dumped)

Mick Russom mickrussom at
Thu May 13 03:46:55 UTC 2010

[INFO] gobject-introspection-0.6.5: gmake[2]: ***  Segmentation fault: 11 (core dumped)


/usr/include/machine/endian.h:107: syntax error, unexpected '{' in '   return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap   %0" : "+r" (__X)); __X; }));' at '{' 


hanging "glib-2.0", hanging g-ir-scanner, etc. 

Removing GAMIN allows gobject-introspection to build. 

This problem has been bothering me for some time and I filed a bug but my system was blamed and "tinderbox works for me" stuff. 

Lots of people cant built gobject-introspection its easy to see on google.
Anyway, gamin is causing this and things like g-ir-scanner to fail on a number of systems and removing gamin allowed things to start working again. 

reference below.

Newsgroups: mailing.freebsd.ports
From: g... at (Gert Lynge)
Date: Tue, 27 Apr 2010 16:29:37 +0200
Local: Tues, Apr 27 2010 7:29 am 
Subject: Make of devel/gobject-introspection prevented by devel/gamin
Reply | Reply to author | Forward | Print | Individual message | Show original | Report this message | Find messages by this author 
Hi list 

This one has been annoing me for a while. I have not been able to   
google a solution, but it seems several people are having this   
problem, so I would like to share my findings. 

Both on FreeBSD 7.2, 7.3 and 8.0 I have experienced problems making   
devel/gobject-introspection. It simply freezes after outputting: 
libtool: link: (cd ".libs" && rm -f   
"" && ln -s   
libtool: link: (cd ".libs" && rm -f   
"" && ln -s   
libtool: link: ar cru .libs/libgirepository-everything-1.0.a   
libtool: link: ranlib .libs/libgirepository-everything-1.0.a 
libtool: link: ( cd ".libs" && rm -f   
"" && ln -s   
"" ) 
env LPATH=.libs  env PYTHONPATH=..:..:YTHONPATH   
UNINSTALLED_INTROSPECTION_BUILDDIR=.. ../tools/g-ir-scanner -v   
--add-include-path=../gir --add-include-path=. -v   
--add-include-path=../gir --add-include-path=. --namespace=GLib   
--nsversion=2.0 --libtool="/bin/sh /usr/local/bin/libtool"   
--library=glib-2.0 --pkg=glib-2.0  --noclosure --strip-prefix=g   
--c-include="glib.h" -I/usr/local/include   
-I/usr/local/include/glib-2.0 -DGETTEXT_PACKAGE=Dummy   
-D__G_I18N_LIB_H__ /usr/local/include/glib-2.0/glibconfig.h   
/usr/local/include/glib-2.0/glib/*.h ./glib-2.0.c --output GLib-2.0.gir 
In file included from <stdin>:23: 
/usr/local/include/glib-2.0/glib/ghostutils.h:21:2: error: #error   
"Only <glib.h> can be included directly." 
/usr/include/machine/endian.h:107: syntax error, unexpected '{' in '   
return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap   
%0" : "+r" (__X)); __X; }));' at '{' 
/usr/include/machine/endian.h:107: syntax error, unexpected ';' in '   
return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap   
%0" : "+r" (__X)); __X; }));' at ';' 

Finaly I setup a cloned system in a Sun Virtual Box and made a script   
which removes my 250 ports one by one while trying to portupgrade   
devel/gobject-introspection. A separate script killed the process   
named "[GLib-2.0]" (which seems to be the process hanging the make) a   
couple of seconds after it was found. 
The script was run on: 
bsd# uname -a 
FreeBSD bsd.xxxxxxx 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan   
5 16:02:27 UTC 2010       
r... at  i386 

My findings is that if devel/gamin is installed, a make of   
devel/gobject-introspection will hang. If I deinstall devel/gamin   
first, I'm able to make devel/gobject-introspection without any   
problems. But as soon as I install devel/gamin again a make in   
devel/gobject-introspection will hang. 

I hope this will help others having this problem. 
Please let me know if anyone is interested in looking into fixing the   
problem and I can provide more info. (I've been using FreeBSD for   
several years but are not familiar with debugging or bug-reporting :-)). 

     Gert Lynge 


More information about the freebsd-ports mailing list