port devel/gobject-introspection fails to build on sparc
Anton Shterenlikht
mexas at bristol.ac.uk
Fri Dec 18 13:41:07 UTC 2009
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
More information about the freebsd-sparc64
mailing list