Re: devel/gobject-introspection failure on ARM

2013-01-28 Thread Koop Mast
On Sun, 2013-01-27 at 10:57 -0500, George Mitchell wrote:
 System: Raspberry Pi
 uname: r245840M (Alie Tan's image from 25 January)
 ports: svnversion 308518
 
 Build dies with message sizeof(ArrayTypeBlob) is expected to be 8 but
 is 12.  (Complete build log attached.)  I made a naive attempt to fix
 it by rearranging the order of the structure members, but obviously I
 don't understand structure packing on the ARM and it didn't help.  It
 also didn't get rid of the huge number of cast increases required
 alignment of target type warnings.
 
 I note we're at version 0.10.8 of this package, but upstream is at
 1.34.2.  (It requires glib 2.34.1, though, and we're only at 2.28.8).
 
 What's the best way to proceed?   -- George Mitchell

I'm currently in the process of making a patch [1] for the ports tree
for glib 2.34.3 and gobject-introspection 1.34.1.1. If you want to give
this a shot on ARM. Please note that the patch is WIP. Not all ports
have been tested yet.

-Koop

[1] http://people.freebsd.org/~kwm/glib-2.34_1.diff

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


Re: devel/gobject-introspection failure on ARM

2013-01-28 Thread George Mitchell

On 01/28/13 05:55, Koop Mast wrote:

On Sun, 2013-01-27 at 10:57 -0500, George Mitchell wrote:

System: Raspberry Pi
uname: r245840M (Alie Tan's image from 25 January)
ports: svnversion 308518

Build dies with message sizeof(ArrayTypeBlob) is expected to be 8 but
is 12.  (Complete build log attached.)  I made a naive attempt to fix
it by rearranging the order of the structure members, but obviously I
don't understand structure packing on the ARM and it didn't help.  It
also didn't get rid of the huge number of cast increases required
alignment of target type warnings.

I note we're at version 0.10.8 of this package, but upstream is at
1.34.2.  (It requires glib 2.34.1, though, and we're only at 2.28.8).

What's the best way to proceed?   -- George Mitchell


I'm currently in the process of making a patch [1] for the ports tree
for glib 2.34.3 and gobject-introspection 1.34.1.1. If you want to give
this a shot on ARM. Please note that the patch is WIP. Not all ports
have been tested yet.

-Koop

[1] http://people.freebsd.org/~kwm/glib-2.34_1.diff



Thanks!  I'll try this if I have time later today. -- George
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: devel/gobject-introspection failure on ARM

2013-01-28 Thread Aleksandr Rybalko
On Sun, 27 Jan 2013 10:57:19 -0500
George Mitchell george+free...@m5p.com wrote:

 System: Raspberry Pi
 uname: r245840M (Alie Tan's image from 25 January)
 ports: svnversion 308518
 
 Build dies with message sizeof(ArrayTypeBlob) is expected to be 8 but
 is 12.  (Complete build log attached.)  I made a naive attempt to fix
 it by rearranging the order of the structure members, but obviously I
 don't understand structure packing on the ARM and it didn't help.  It
 also didn't get rid of the huge number of cast increases required
 alignment of target type warnings.
 
 I note we're at version 0.10.8 of this package, but upstream is at
 1.34.2.  (It requires glib 2.34.1, though, and we're only at 2.28.8).
 
 What's the best way to proceed?   -- George Mitchell

Hi,

It can be fixed by just change 
gitypelib.c:  CHECK_SIZE (ArrayTypeBlob, 8);
to
gitypelib.c:  CHECK_SIZE (ArrayTypeBlob, 12);

But problem not in gobject-introspection, but in old ARM ABI.
I was ask andrew@, and he test it with ARM EABI, and it compiled fine
with size 8.

So if somebody will fix it, please #ifdef that fix to make it only with
old ARM ABI.

Or, better help with EABI testing :-D

Thanks!

WBW
-- 
Aleksandr Rybalko r...@ddteam.net
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


devel/gobject-introspection failure on ARM

2013-01-27 Thread George Mitchell

System: Raspberry Pi
uname: r245840M (Alie Tan's image from 25 January)
ports: svnversion 308518

Build dies with message sizeof(ArrayTypeBlob) is expected to be 8 but
is 12.  (Complete build log attached.)  I made a naive attempt to fix
it by rearranging the order of the structure members, but obviously I
don't understand structure packing on the ARM and it didn't help.  It
also didn't get rid of the huge number of cast increases required
alignment of target type warnings.

I note we're at version 0.10.8 of this package, but upstream is at
1.34.2.  (It requires glib 2.34.1, though, and we're only at 2.28.8).

What's the best way to proceed?   -- George Mitchell


typescript.xz
Description: Binary data
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: devel/gobject-introspection failure on ARM

2013-01-27 Thread Tim Kientzle

On Jan 27, 2013, at 7:57 AM, George Mitchell wrote:

 System: Raspberry Pi
 uname: r245840M (Alie Tan's image from 25 January)
 ports: svnversion 308518
 
 Build dies with message sizeof(ArrayTypeBlob) is expected to be 8 but
 is 12.  (Complete build log attached.)  I made a naive attempt to fix
 it by rearranging the order of the structure members, but obviously I
 don't understand structure packing on the ARM and it didn't help.

The easiest way to hack around this is usually to
sprinkle packed decorators on a lot of structure
definitions.

  It also didn't get rid of the huge number of cast increases required
 alignment of target type warnings.

How troublesome these are depends on the processor.
I think the ARMv6 on the RaspberryPi is late enough to
support misaligned accesses.  It's a big performance hit
but better than crashing.

 I note we're at version 0.10.8 of this package, but upstream is at
 1.34.2.  (It requires glib 2.34.1, though, and we're only at 2.28.8).
 
 What's the best way to proceed?  

Given the version numbers you quote, I expect that
a newer glib would be a good start.

Good luck,

Tim

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