consolekit 0.4.1_1 ports build failure, workaround or i386 binary package available?

mickrussom

New Member

Reaction score: 1
Messages: 8

consolekit 0.4.1_1 ports build failure, workaround or i386 binary package available?

Code:
GEN GLib-2.0.gir
/usr/include/machine/endian.h:107: syntax error, unexpected '{'
/usr/include/machine/endian.h:107: syntax error, unexpected ';'
Command 
'['/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/gir/tmp-introspectMS1zp2/GLib-2.0', '--introspect-dump=/usr/ports
/devel/gobject-introspection/work/gobject-introspection-0.6.5/gir/tmp-introspectMS1zp2/types.txt,/usr/ports/devel/gobject-introspection
/work/gobject-introspection-0.6.5/gir/tmp-introspectMS1zp2/dump.xml']' 
returned non-zero exit status -15
gmake[2]: *** [GLib-2.0.gir] Error 1
gmake[2]: Leaving directory 
`/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/gir'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5'
gmake: *** [all] Error 2
*** Error code 1
Stop in /usr/ports/devel/gobject-introspection.
*** Error code 1
Stop in /usr/ports/sysutils/polkit.
*** Error code 1
Stop in /usr/ports/sysutils/consolekit.
consolekit refuses to build, it sits at:

Code:
GEN GLib-2.0.gir
(FOREVER)


I waited for 6 hours for completion, never happened.
process seems to hang:
Code:
34827 root 1 76 0 21112K 4416K umtxn 0:00 0.00% GLib-2.0
# procstat -k 34827
 PID TID COMM TDNAME KSTACK 
 34827 100148 GLib-2.0 initial thread mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep _do_lock_umutex do_lock_umutex 
__umtx_op_wait_umutex _umtx_op syscall Xint0x80_syscall

Nothing I've been able to try gets this package to compile. All other port builds (about 380 packages) work fine. (Rebuild ALL with portupgrade -af), only this *one* fails.

Any help here would be great, but I'm more than happy to use a binary package (i386) to move past this. It seems like a rather uninteresting dependency which I really could care anything about.

References:
http://www.freshports.org/sysutils/consolekit/

http://pointyhat.freebsd.org/errorlogs/i386-8-latest-logs/consolekit-0.3.0_8.log

(Note: isnt it odd to allow ports to be checked in without first building them here to see if they work?, not that 0.4.1_1 is not there as of 12/2/2009)

0.4.1_1 claims success on tinderbox:
http://tinderbox.sigabrt.org/index.php?action=describe_port&id=166

but the package offered there is only x86_64.
 
OP
OP
mickrussom

mickrussom

New Member

Reaction score: 1
Messages: 8

Its really gobject-introspection-0.6.5 that isnt building.

I tried both the ports version of gobject-introspection-0.6.5 and the latest from the git-repo.

Neither will compile.

The process seems to get hung here:


Code:
env LPATH=.libs env PYTHONPATH=..:..:$PYTHONPATH UNINSTALLED_INTROSPECTION_SRCDIR=.. UNINSTALLED_INTROSPECTION_BUILDDIR=.. ../tools/g-ir-
scanner -v --add-include-path=../gir --add-include-path=. --namespace GLib --nsversion=2.0 --noclosure --output GLib-2.0.gir --strip-prefix=g 
--libtool="/bin/sh /usr/local/bin/libtool" --c-include="glib.h" --library=glib-2.0 --pkg glib-2.0 -I/usr/local/include -I`pkg-config 
--variable=includedir glib-2.0`/glib-2.0 -DGETTEXT_PACKAGE=Dummy -D__G_I18N_LIB_H__ `pkg-config --variable=includedir glib-2.0`/glib-
2.0/glibconfig.h ./glib-2.0.c -DGLIB_COMPILATION `pkg-config --variable=includedir glib-2.0`/glib-2.0/glib/*.h
What this does is makes a file in some temp directory called glib-2.0c. This file gets compiled into GLib-2.0.o, this seems to then run and this seems to hang at this point. The types.txt file in the directory with GLib-2.0 / GLib-2.0.o is empty, and nothing happens.

All packages that glib2, consolekit and gnome-introspection where rebuilt on this system to eliminate problems. All the other ports were rebuilt insitu on this unit as well.
I can't figure out what is causing this GLib-2.0 process to basically do nothing.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 6,938
Messages: 28,885

It builds fine. Make sure all it's dependencies are also up to date.
 
OP
OP
mickrussom

mickrussom

New Member

Reaction score: 1
Messages: 8

You mind just giving me the package file for ConsoleKit 0.4.1_1 for i386 or pointing to a place where I can get it. I rebuilt all the packages on the system already and this is the one, single port that wont built I've run into issues from time to time when dealing with gnome's mess, and I really just want to get the consolekit updated to 0.4.1_1.

If its easy to build for i386, then the pacakge file should be available somewhere, right?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 6,938
Messages: 28,885

Do you have any compiler options in /etc/make.conf?
 
OP
OP
mickrussom

mickrussom

New Member

Reaction score: 1
Messages: 8

SirDice said:
Do you have any compiler options in /etc/make.conf?
This is it:

Code:
# cat /etc/make.conf | grep -v ^#
BATCH=yes
PERL_VERSION=5.8.9
 

Rick

New Member


Messages: 5

Having the same problem on 7.1-RELEASE-p2, the it appears to be hanging on the g_file_new_for_path function calls in girepository/gdump.c function g_irepository_dump.

Tried rebuilding various ports (glib20, libiff, etc) with no result.

Code:
  PID    TID COMM             TDNAME           KSTACK                       
22754 100154 GLib-2.0         initial thread   mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep _do_lock_umutex 
do_lock_umutex __umtx_op_lock_umutex _umtx_op syscall Xint0x80_syscall
My make.conf:
Code:
CPUTYPE=nocona
PERL_VERSION=5.8.9
Don't think glib2/gio is broken, wrote a quick test that uses g_file_new_for_path with no issues.
 
OP
OP
mickrussom

mickrussom

New Member

Reaction score: 1
Messages: 8

gobject-introspection still not building.

gobject-introspection is still not building. The consolekit ports was bumped 0.4.1_2 and gobject-introspection still doesnt build.

400 ports. Only gobject-introspection isnt building. World doesnt seem to care. Others have same problem.
 
OP
OP
mickrussom

mickrussom

New Member

Reaction score: 1
Messages: 8

After installing:

ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/gobject-introspection-0.6.7.tbz

ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/polkit-0.95_3.tbz

Consolekit built and installed.

polkit had to be installed due to some syntax error indicated by an unexpected "{" in 107 of endian.h.

Cursory searches on google (try [freebsd "endian.h" "syntax error" unexpected]) reveal a number of complaints regarding endian.h

I've been churning ports for some time, and this seems like the gnome stuff is quite a mess due to generated code failures and failures which are "hangs" rather than having useful output.
 
OP
OP
mickrussom

mickrussom

New Member

Reaction score: 1
Messages: 8

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

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

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

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.

Lots of people cant build 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.

[]http://groups.google.com/group/mailing.freebsd.ports/browse_thread/thread/7a82aab09d3c66ba/0216cfcffb65b81a?lnk=raot

Code:
Newsgroups: mailing.freebsd.ports
From: g...@lynge.org (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
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:
---
Code:
libtool: link: (cd ".libs" && rm -f  
"libgirepository-everything-1.0.so" && ln -s  
"libgirepository-everything-1.0.so.1"  
"libgirepository-everything-1.0.so")
libtool: link: (cd ".libs" && rm -f  
"libgirepository-everything-1.0.so" && ln -s  
"libgirepository-everything-1.0.so.1"  
"libgirepository-everything-1.0.so")
libtool: link: ar cru .libs/libgirepository-everything-1.0.a  
libgirepository_everything_1_0_la-everything.o
libtool: link: ranlib .libs/libgirepository-everything-1.0.a
libtool: link: ( cd ".libs" && rm -f  
"libgirepository-everything-1.0.la" && ln -s  
"../libgirepository-everything-1.0.la"  
"libgirepository-everything-1.0.la" )
env LPATH=.libs  env PYTHONPATH=..:..:YTHONPATH  
UNINSTALLED_INTROSPECTION_SRCDIR=..  
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:
Code:
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...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  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 :)).

Regards
Gert Lynge
 

Rick

New Member


Messages: 5

Props to you for figuring out the issue, I can confirm that removing gamin on my system allows for gobject-introspection to build properly.
 

Giraya

New Member

Reaction score: 6
Messages: 6

I had the same error here.
The python port installed on my system is 2.5.
I've done # portupgrade -o lang/python26 lang/python25 (with THREADS option selected) and now it compiles without segfault.
 
OP
OP
mickrussom

mickrussom

New Member

Reaction score: 1
Messages: 8

gamin / fam problems back again.

FreeBSD 8.1 and the problem comes back again.

Seems another person thinks this issue has to do with the following:

From: Andrew Bliznak
Date: Tue, 13 Jul 2010 11:20:13 +0300
just hit this bug

Problem appears to be lost link /usr/lib/libpthread.so -> libthr.so
This produces broken libgthread-2.0.so, it misses libthr.so.3 =>
/lib/libthr.so.3 and uses stubs from libc.so
 
Top