From owner-freebsd-gnome@FreeBSD.ORG Fri Dec 18 13:41:07 2009 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1838B106566B; Fri, 18 Dec 2009 13:41:07 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id C59298FC21; Fri, 18 Dec 2009 13:41:04 +0000 (UTC) Received: from isis.bris.ac.uk ([137.222.10.63]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1NLd4m-0000Ey-7U; Fri, 18 Dec 2009 13:41:04 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by isis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1NLd4l-0001AI-9N; Fri, 18 Dec 2009 13:40:59 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.3/8.14.3) with ESMTP id nBIDexB3089244; Fri, 18 Dec 2009 13:40:59 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.3/8.14.3/Submit) id nBIDewV0089243; Fri, 18 Dec 2009 13:40:58 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Fri, 18 Dec 2009 13:40:58 +0000 From: Anton Shterenlikht To: Andrew Belashov Message-ID: <20091218134058.GA89230@mech-cluster241.men.bris.ac.uk> References: <20091215162601.GA22008@mech-cluster241.men.bris.ac.uk> <4B2B72E4.4060808@orel.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B2B72E4.4060808@orel.ru> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Score: -1.5 X-Spam-Level: - Cc: gnome@freebsd.org, Anton Shterenlikht , freebsd-sparc64@freebsd.org, freebsd-ports@freebsd.org Subject: Re: port devel/gobject-introspection fails to build on sparc X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Dec 2009 13:41:07 -0000 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