From: Joe Marcus Clarke on
On Mon, 2009-11-30 at 15:16 -0800, David Wolfskill wrote:
> Running:
>
> FreeBSD g1-112.catwhisker.org 6.4-STABLE FreeBSD 6.4-STABLE #704 r199797: Wed Nov 25 04:58:59 PST 2009 root(a)g1-112.catwhisker.org:/common/S1/obj/usr/src/sys/CANARY i386
>
> An attemmpt to use portmaster to update ports dies when portmaster
> tries to build devel/gobject-introspection; the attempt's last gasps are:
>
> ...
> gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/girepository'
> Making all in giscanner
> gmake[2]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> gmake all-am
> gmake[3]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> CC libgiscanner_la-sourcescanner.lo
> CC libgiscanner_la-scannerlexer.lo
> CC libgiscanner_la-scannerparser.lo
> CCLD libgiscanner.la
> CC _giscanner_la-giscannermodule.lo
> CCLD _giscanner.la
> gmake[3]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> Making all in tools
> gmake[2]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/tools'
> CC g_ir_compiler-compiler.o
> CCLD g-ir-compiler
> CC g_ir_generate-generate.o
> CCLD g-ir-generate
> sed -e s,@libdir\@,/usr/local/lib, -e s,@PYTHON\@,/usr/local/bin/python2.6, g-ir-scanner.in > g-ir-scanner.tmp && mv g-ir-scanner.tmp g-ir-scanner
> chmod a+x g-ir-scanner
> gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/tools'
> Making all in gir
> gmake[2]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/gir'
> CC libgirepository_everything_1_0_la-everything.lo
> CCLD libgirepository-everything-1.0.la
> GEN GLib-2.0.gir
> /usr/include/machine/endian.h:146: syntax error, unexpected '{'
> /usr/include/machine/endian.h:146: syntax error, unexpected ';'
> /usr/include/machine/endian.h:153: syntax error, unexpected '{'
> /usr/include/machine/endian.h:153: syntax error, unexpected ';'
> GEN GLib-2.0.gir
> Traceback (most recent call last):
> File "../tools/g-ir-scanner", line 38, in <module>
> sys.exit(scanner_main(sys.argv))
> File "/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner/scannermain.py", line 239, in scanner_main
> return validate(options.xpath_assertions, args[1])
> File "/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner/scannermain.py", line 182, in validate
> xpath_assert(root, assertion)
> File "/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner/minixpath.py", line 77, in xpath_assert
> raise AssertionError("Failed to find %r" % (path, ))
> AssertionError: Failed to find "/namespace/alias[@name='Quark']"

This is almost certainly a problem with your installed devel/glib20.
Try reinstalling this port, and make sure it is at the latest version.
The generated gir/GLib-2.0.gir should have a line:

<alias name="Quark" target="uint32" c:type="GQuark"/>

Joe

--
PGP Key : http://www.marcuscom.com/pgp.asc
From: Kostik Belousov on
On Mon, Nov 30, 2009 at 06:38:08PM -0500, Joe Marcus Clarke wrote:
> On Mon, 2009-11-30 at 15:16 -0800, David Wolfskill wrote:
> > Running:
> >
> > FreeBSD g1-112.catwhisker.org 6.4-STABLE FreeBSD 6.4-STABLE #704 r199797: Wed Nov 25 04:58:59 PST 2009 root(a)g1-112.catwhisker.org:/common/S1/obj/usr/src/sys/CANARY i386
> >
> > An attemmpt to use portmaster to update ports dies when portmaster
> > tries to build devel/gobject-introspection; the attempt's last gasps are:
> >
> > ...
> > gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/girepository'
> > Making all in giscanner
> > gmake[2]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> > gmake all-am
> > gmake[3]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> > CC libgiscanner_la-sourcescanner.lo
> > CC libgiscanner_la-scannerlexer.lo
> > CC libgiscanner_la-scannerparser.lo
> > CCLD libgiscanner.la
> > CC _giscanner_la-giscannermodule.lo
> > CCLD _giscanner.la
> > gmake[3]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> > gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> > Making all in tools
> > gmake[2]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/tools'
> > CC g_ir_compiler-compiler.o
> > CCLD g-ir-compiler
> > CC g_ir_generate-generate.o
> > CCLD g-ir-generate
> > sed -e s,@libdir\@,/usr/local/lib, -e s,@PYTHON\@,/usr/local/bin/python2.6, g-ir-scanner.in > g-ir-scanner.tmp && mv g-ir-scanner.tmp g-ir-scanner
> > chmod a+x g-ir-scanner
> > gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/tools'
> > Making all in gir
> > gmake[2]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/gir'
> > CC libgirepository_everything_1_0_la-everything.lo
> > CCLD libgirepository-everything-1.0.la
> > GEN GLib-2.0.gir
> > /usr/include/machine/endian.h:146: syntax error, unexpected '{'
> > /usr/include/machine/endian.h:146: syntax error, unexpected ';'
> > /usr/include/machine/endian.h:153: syntax error, unexpected '{'
> > /usr/include/machine/endian.h:153: syntax error, unexpected ';'
> > GEN GLib-2.0.gir
> > Traceback (most recent call last):
> > File "../tools/g-ir-scanner", line 38, in <module>
> > sys.exit(scanner_main(sys.argv))
> > File "/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner/scannermain.py", line 239, in scanner_main
> > return validate(options.xpath_assertions, args[1])
> > File "/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner/scannermain.py", line 182, in validate
> > xpath_assert(root, assertion)
> > File "/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner/minixpath.py", line 77, in xpath_assert
> > raise AssertionError("Failed to find %r" % (path, ))
> > AssertionError: Failed to find "/namespace/alias[@name='Quark']"
>
> This is almost certainly a problem with your installed devel/glib20.
> Try reinstalling this port, and make sure it is at the latest version.
> The generated gir/GLib-2.0.gir should have a line:
>
> <alias name="Quark" target="uint32" c:type="GQuark"/>
The line you mentioned is not present.

Forced rebuild of devel/glib2 did not helped.

Please note the following errors:

GEN GLib-2.0.gir
/usr/include/machine/endian.h:107: syntax error, unexpected '{'
/usr/include/machine/endian.h:107: syntax error, unexpected ';'
GEN GLib-2.0.gir

From: Kostik Belousov on
On Mon, Nov 30, 2009 at 03:16:29PM -0800, David Wolfskill wrote:
> Running:
>
> FreeBSD g1-112.catwhisker.org 6.4-STABLE FreeBSD 6.4-STABLE #704 r199797: Wed Nov 25 04:58:59 PST 2009 root(a)g1-112.catwhisker.org:/common/S1/obj/usr/src/sys/CANARY i386
>
> An attemmpt to use portmaster to update ports dies when portmaster
> tries to build devel/gobject-introspection; the attempt's last gasps are:
>
> ...
> gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/girepository'
> Making all in giscanner
> gmake[2]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> gmake all-am
> gmake[3]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> CC libgiscanner_la-sourcescanner.lo
> CC libgiscanner_la-scannerlexer.lo
> CC libgiscanner_la-scannerparser.lo
> CCLD libgiscanner.la
> CC _giscanner_la-giscannermodule.lo
> CCLD _giscanner.la
> gmake[3]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> Making all in tools
> gmake[2]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/tools'
> CC g_ir_compiler-compiler.o
> CCLD g-ir-compiler
> CC g_ir_generate-generate.o
> CCLD g-ir-generate
> sed -e s,@libdir\@,/usr/local/lib, -e s,@PYTHON\@,/usr/local/bin/python2.6, g-ir-scanner.in > g-ir-scanner.tmp && mv g-ir-scanner.tmp g-ir-scanner
> chmod a+x g-ir-scanner
> gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/tools'
> Making all in gir
> gmake[2]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/gir'
> CC libgirepository_everything_1_0_la-everything.lo
> CCLD libgirepository-everything-1.0.la
> GEN GLib-2.0.gir
> /usr/include/machine/endian.h:146: syntax error, unexpected '{'
> /usr/include/machine/endian.h:146: syntax error, unexpected ';'
> /usr/include/machine/endian.h:153: syntax error, unexpected '{'
> /usr/include/machine/endian.h:153: syntax error, unexpected ';'
> GEN GLib-2.0.gir
> Traceback (most recent call last):
> File "../tools/g-ir-scanner", line 38, in <module>
> sys.exit(scanner_main(sys.argv))
> File "/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner/scannermain.py", line 239, in scanner_main
> return validate(options.xpath_assertions, args[1])
> File "/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner/scannermain.py", line 182, in validate
> xpath_assert(root, assertion)
> File "/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner/minixpath.py", line 77, in xpath_assert
> raise AssertionError("Failed to find %r" % (path, ))
> AssertionError: Failed to find "/namespace/alias[@name='Quark']"
> gmake[2]: *** [GLib-2.0.gir] Error 1
> gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/gir'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5'
> gmake: *** [all] Error 2
> *** Error code 1
>
> Stop in /bkp/ports/devel/gobject-introspection.
>
> ===>>> make failed for devel/gobject-introspection
> ===>>> Aborting update
>
> ===>>> Update for devel/gobject-introspection failed
> ===>>> Aborting update
>
> ===>>> Update for sysutils/polkit failed
> ===>>> Aborting update
>
> ===>>> Update for gconf2-2.26.2_1 failed
> ===>>> Aborting update
>
> ===>>> Update for deskutils/gucharmap failed
> ===>>> Aborting update
>
> ===>>> Update for abiword-2.6.8_4 failed
> ===>>> Aborting update
>
>
> How might one figure out what's really wrong -- or what information
> may I provide that would give someone more clueful than I the insight
> to provide appropriate direction?
>
> Reason I ask about devel/gobject-introspection is that it (now?) appears
> to be a requisite for several other ports, so attemmpts to update my
> installed ports (which I normally do daily) are made rather more
> difficult than they usually are....

Nice, you freed me from neccessity to write the same letter.
I have the same problem on RELENG_8/i386.

The only reference to this problem I was able to find is
http://old.nabble.com/-marcuscom-mc_ports--devel-gobject-introspection:-does-not-build-td25833673.html
but solution there is unacceptable for my workstation.
From: David Wolfskill on
On Mon, Nov 30, 2009 at 06:38:08PM -0500, Joe Marcus Clarke wrote:
> ...
> This is almost certainly a problem with your installed devel/glib20.
> Try reinstalling this port, and make sure it is at the latest version.
> The generated gir/GLib-2.0.gir should have a line:
>
> <alias name="Quark" target="uint32" c:type="GQuark"/>

Thanks, but as Kostik Belousov responded, a forced rebuild/install (via
"portmaster devel/glib20"), followed by another attempt to update all
installed ports via portmaster, failed in the same way.

And as Kostik pointed out, there is no line with "Quark" in it in the
generated file; it appears that generation of the file is failing.

Indeed; here's a cut/paste of the file:

<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.0"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<package name="glib-2.0"/>
<c:include name="glib.h"/>
<namespace name="GLib"
version="2.0"
shared-library="libglib-2.0.so.0"
c:prefix="g">
</namespace>
</repository>


I also checked for any other files named "GLib-2.0.gir" in /usr/ports/
or /usr/local/; "find" found none.

I appreciate the help, and don't envy your position -- if that's of any
consolation. :-}

Peace,
david
--
David H. Wolfskill david(a)catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
From: Joe Marcus Clarke on
On Tue, 2009-12-01 at 01:56 +0200, Kostik Belousov wrote:
> On Mon, Nov 30, 2009 at 06:38:08PM -0500, Joe Marcus Clarke wrote:
> > On Mon, 2009-11-30 at 15:16 -0800, David Wolfskill wrote:
> > > Running:
> > >
> > > FreeBSD g1-112.catwhisker.org 6.4-STABLE FreeBSD 6.4-STABLE #704 r199797: Wed Nov 25 04:58:59 PST 2009 root(a)g1-112.catwhisker.org:/common/S1/obj/usr/src/sys/CANARY i386
> > >
> > > An attemmpt to use portmaster to update ports dies when portmaster
> > > tries to build devel/gobject-introspection; the attempt's last gasps are:
> > >
> > > ...
> > > gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/girepository'
> > > Making all in giscanner
> > > gmake[2]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> > > gmake all-am
> > > gmake[3]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> > > CC libgiscanner_la-sourcescanner.lo
> > > CC libgiscanner_la-scannerlexer.lo
> > > CC libgiscanner_la-scannerparser.lo
> > > CCLD libgiscanner.la
> > > CC _giscanner_la-giscannermodule.lo
> > > CCLD _giscanner.la
> > > gmake[3]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> > > gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner'
> > > Making all in tools
> > > gmake[2]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/tools'
> > > CC g_ir_compiler-compiler.o
> > > CCLD g-ir-compiler
> > > CC g_ir_generate-generate.o
> > > CCLD g-ir-generate
> > > sed -e s,@libdir\@,/usr/local/lib, -e s,@PYTHON\@,/usr/local/bin/python2.6, g-ir-scanner.in > g-ir-scanner.tmp && mv g-ir-scanner.tmp g-ir-scanner
> > > chmod a+x g-ir-scanner
> > > gmake[2]: Leaving directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/tools'
> > > Making all in gir
> > > gmake[2]: Entering directory `/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/gir'
> > > CC libgirepository_everything_1_0_la-everything.lo
> > > CCLD libgirepository-everything-1.0.la
> > > GEN GLib-2.0.gir
> > > /usr/include/machine/endian.h:146: syntax error, unexpected '{'
> > > /usr/include/machine/endian.h:146: syntax error, unexpected ';'
> > > /usr/include/machine/endian.h:153: syntax error, unexpected '{'
> > > /usr/include/machine/endian.h:153: syntax error, unexpected ';'
> > > GEN GLib-2.0.gir
> > > Traceback (most recent call last):
> > > File "../tools/g-ir-scanner", line 38, in <module>
> > > sys.exit(scanner_main(sys.argv))
> > > File "/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner/scannermain.py", line 239, in scanner_main
> > > return validate(options.xpath_assertions, args[1])
> > > File "/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner/scannermain.py", line 182, in validate
> > > xpath_assert(root, assertion)
> > > File "/bkp/ports/devel/gobject-introspection/work/gobject-introspection-0.6.5/giscanner/minixpath.py", line 77, in xpath_assert
> > > raise AssertionError("Failed to find %r" % (path, ))
> > > AssertionError: Failed to find "/namespace/alias[@name='Quark']"
> >
> > This is almost certainly a problem with your installed devel/glib20.
> > Try reinstalling this port, and make sure it is at the latest version.
> > The generated gir/GLib-2.0.gir should have a line:
> >
> > <alias name="Quark" target="uint32" c:type="GQuark"/>
> The line you mentioned is not present.
>
> Forced rebuild of devel/glib2 did not helped.
>
> Please note the following errors:
>
> GEN GLib-2.0.gir
> /usr/include/machine/endian.h:107: syntax error, unexpected '{'
> /usr/include/machine/endian.h:107: syntax error, unexpected ';'
> GEN GLib-2.0.gir

These are not real errors. What about do you get for:

pkg-config --variable=includedir glib-2.0
pkg-config --variable=libdir glib-2.0

And what files are in the directories pointed to by those values? If
you set V=1 in your environment, then run make, what output do you get?

Joe

--
PGP Key : http://www.marcuscom.com/pgp.asc