[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: test failure: 1.3.1, swig 1.3.28, ruby 1.8, Linux / PowerPC

From: David James <djames_at_collab.net>
Date: 2006-04-07 16:17:54 CEST

On 4/7/06, Peter Samuelson <peter@p12n.org> wrote:
> But he wasn't on a purely Debian system - he had compiled his own
> packages - and he indicates that recompiling ruby with
> -fno-strict-aliasing made it go away.

All SWIG bindings (including the Ruby bindings) must be compiled using
the -fno-strict-aliasing flag, because SWIG uses typecasts which are
not safe under strict aliasing rules. Normally, the Ruby bindings
inherit the -fno-strict-aliasing flag from Ruby, but if it doesn't,
you'll need to hack the Ruby SWIG bindings to also use the flag.

Cheers,

David

--
David James -- http://www.cs.toronto.edu/~james
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 7 16:24:51 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.