Re: port devel/gobject-introspection fails to build on sparc

2010-01-06 Thread Anton Shterenlikht
On Tue, Jan 05, 2010 at 08:24:26PM -, Simon Griffiths wrote:
> Hello,
> 
> > -Original Message-
> > From: owner-freebsd-spar...@freebsd.org [mailto:owner-freebsd-
> > spar...@freebsd.org] On Behalf Of Anton Shterenlikht
> > Sent: 18 December 2009 13:41
> > To: Andrew Belashov
> > Cc: gn...@freebsd.org; freebsd-spar...@freebsd.org; freebsd-
> > po...@freebsd.org
> > Subject: Re: port devel/gobject-introspection fails to build on sparc
> > 
> > On Fri, Dec 18, 2009 at 03:17:40PM +0300, Andrew Belashov wrote:
> > **
> > 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
> 
> Did you find a way around this problem Anton?

no, but I haven't tried too hard.
I'm trying again right now and will report back.


-- 
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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


RE: port devel/gobject-introspection fails to build on sparc

2010-01-05 Thread Simon Griffiths
> -Original Message-
> From: owner-freebsd-po...@freebsd.org [mailto:owner-freebsd-
> po...@freebsd.org] On Behalf Of Andreas Tobler
> Sent: 05 January 2010 22:00
> To: Simon Griffiths
> Cc: gn...@freebsd.org; 'Anton Shterenlikht'; freebsd-
> spar...@freebsd.org; freebsd-ports@freebsd.org; 'Andrew Belashov'
> Subject: Re: port devel/gobject-introspection fails to build on sparc
> 
> > Did you find a way around this problem Anton?
> >
> 
> I ran into the same issue and in my situation it was enough to satisfy
> the dependency issue. So I commented the assert in ginfo.c around line
> 337.
> This is not _the_ solution, but for me it was enough.
> 
> Andreas

Cool, that worked, thanks! 

Cheers,

Si.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: port devel/gobject-introspection fails to build on sparc

2010-01-05 Thread Andreas Tobler

On 05.01.10 21:24, Simon Griffiths wrote:

Hello,


-Original Message-
From: owner-freebsd-spar...@freebsd.org [mailto:owner-freebsd-
spar...@freebsd.org] On Behalf Of Anton Shterenlikht
Sent: 18 December 2009 13:41
To: Andrew Belashov
Cc: gn...@freebsd.org; freebsd-spar...@freebsd.org; freebsd-
po...@freebsd.org
Subject: Re: port devel/gobject-introspection fails to build on sparc

On Fri, Dec 18, 2009 at 03:17:40PM +0300, Andrew Belashov wrote:
**
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


Did you find a way around this problem Anton?



I ran into the same issue and in my situation it was enough to satisfy 
the dependency issue. So I commented the assert in ginfo.c around line 337.

This is not _the_ solution, but for me it was enough.

Andreas
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


RE: port devel/gobject-introspection fails to build on sparc

2010-01-05 Thread Simon Griffiths
Hello,

> -Original Message-
> From: owner-freebsd-spar...@freebsd.org [mailto:owner-freebsd-
> spar...@freebsd.org] On Behalf Of Anton Shterenlikht
> Sent: 18 December 2009 13:41
> To: Andrew Belashov
> Cc: gn...@freebsd.org; freebsd-spar...@freebsd.org; freebsd-
> po...@freebsd.org
> Subject: Re: port devel/gobject-introspection fails to build on sparc
> 
> On Fri, Dec 18, 2009 at 03:17:40PM +0300, Andrew Belashov wrote:
> **
> 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

Did you find a way around this problem Anton?

Many Thanks,

Si.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: port devel/gobject-introspection fails to build on sparc

2009-12-20 Thread Anton Shterenlikht
On Fri, Dec 18, 2009 at 01:40:58PM +, Anton Shterenlikht wrote:
> 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

just to say that the same error is present in 0.6.7

-- 
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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: port devel/gobject-introspection fails to build on sparc

2009-12-18 Thread Anton Shterenlikht
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.0 +0400
> +++ girepository/girnode.c2009-12-09 16:12:24.0 +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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: port devel/gobject-introspection fails to build on sparc

2009-12-18 Thread Andrew Belashov

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.0 +0400
+++ girepository/girnode.c  2009-12-09 16:12:24.0 +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:
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

port devel/gobject-introspection fails to build on sparc

2009-12-15 Thread Anton Shterenlikht
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

-- 
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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"