Date: Fri, 18 Dec 2009 13:40:58 +0000 From: Anton Shterenlikht <mexas@bristol.ac.uk> To: Andrew Belashov <bel@orel.ru> Cc: gnome@freebsd.org, freebsd-sparc64@freebsd.org, freebsd-ports@freebsd.org Subject: Re: port devel/gobject-introspection fails to build on sparc Message-ID: <20091218134058.GA89230@mech-cluster241.men.bris.ac.uk> In-Reply-To: <4B2B72E4.4060808@orel.ru> References: <20091215162601.GA22008@mech-cluster241.men.bris.ac.uk> <4B2B72E4.4060808@orel.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 18, 2009 at 03:17:40PM +0300, Andrew Belashov wrote:
> Hi, Anton!
>
> Anton Shterenlikht wrote:
> > on FreeBSD 9.0-CURRENT sparc64
> > port devel/gobject-introspection fails to build:
> >
> >
> > Making all in gir
> > gmake[2]: Entering directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.6.6/gir'
> > ../tools/g-ir-compiler --includedir=. GLib-2.0.gir -o GLib-2.0.typelib
> > gmake[2]: *** [GLib-2.0.typelib] Illegal instruction: 4 (core dumped)
> > gmake[2]: Leaving directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.6.6/gir'
> > gmake[1]: *** [all-recursive] Error 1
> >
> > Any advice?
> >
> > many thanks
> > anton
> >
>
> Try the attached patch on own risk.
>
> With Best Regards,
> Andrew Belashov.
> --- girepository/girnode.c.orig 2009-07-09 21:20:46.000000000 +0400
> +++ girepository/girnode.c 2009-12-09 16:12:24.000000000 +0300
> @@ -2288,7 +2288,8 @@
> break;
> case GI_TYPE_TAG_DOUBLE:
> blob->size = sizeof (gdouble);
> - *(gdouble*)&data[blob->offset] = (gdouble) parse_float_value (constant->value);
> + gdouble tmp = parse_float_value (constant->value);
> + memcpy (&data[blob->offset], &tmp, blob->size);
> break;
> case GI_TYPE_TAG_UTF8:
> case GI_TYPE_TAG_FILENAME:
many thanks. But now fails here:
env LPATH=.libs env PYTHONPATH=../..:../..:$PYTHONPATH UNINSTALLED_INTROSPECTIO
N_SRCDIR=../.. UNINSTALLED_INTROSPECTION_BUILDDIR=../.. ../../tools/g-ir-scanner
-v --add-include-path=../../gir --add-include-path=. \
--include=GObject-2.0 \
--libtool="/bin/sh /usr/local/bin/libtool" \
--program=./barapp \
--namespace=BarApp \
--strip-prefix=Bar \
--nsversion=1.0 \
--pkg gobject-2.0 \
./barapp.c ./barapp.h \
--output BarApp-1.0.gir
../../tools/g-ir-compiler --includedir=. --includedir=../../gir BarApp-1.0.gir -
o BarApp-1.0.typelib
../../tools/g-ir-generate --includedir=. --includedir=../../gir annotation-1.0.t
ypelib -o annotation-1.0.tgir
../../tools/g-ir-generate --includedir=. --includedir=../../gir drawable-1.0.typ
elib -o drawable-1.0.tgir
../../tools/g-ir-generate --includedir=. --includedir=../../gir foo-1.0.typelib
-o foo-1.0.tgir
**
ERROR:ginfo.c:337:g_base_info_get_name: code should not be reached
gmake[3]: *** [foo-1.0.tgir] Abort trap: 6 (core dumped)
gmake[3]: *** Deleting file `foo-1.0.tgir'
gmake[3]: Leaving directory `/usr/ports/devel/gobject-introspection/work/gobject
-introspection-0.6.6/tests/scanner'
gmake[2]: *** [all-recursive] Error 1
--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091218134058.GA89230>
