[Etoys] A new experimental version of OLPC image for non-XO environments

K. K. Subramaniam subbukk at gmail.com
Thu Feb 28 02:49:54 EST 2008


On Wednesday 27 February 2008 11:29:50 pm Yoshiki Ohshima wrote:
>   Subbu,
>
> > >   A few enhancement since 3.9-8 is nice to have.  If the problem is
> > > only libc, we might be able to have different versions compiled
> > > differently, but this is something we would like to avoid.  Hmm.
> >
> > I would like to avoid such a situation too. I suspect the error could
> > have been introduced by an env setting. Which version of RH was used to
> > compile the binaries?
>
>   That was Fedora Core 7.  I didn't have any non-yum RPM packages
> installed.  So, libc or such are just the ones with FC7.
Uh-oh! FC6's gcc introduced a new hash by default in FC6 which results in FP 
exception on older FC and other linux distributions. If you cannot avoid 
FC6+, use "-Wl,--hash-style=sysv" or "-Wl,--hash-style=both" to generate 
compatible executables. The hash-style option is specific to FC6+ and won't 
be recognized by other gcc so you cannot make a permanent change in the 
Makefile. You may want to do:

  $ make XCFLAGS="-Wl,--hash-style=sysv" XLDFLAGS="--hash-style=sysv"

To check:
$ readelf -l 3.9-12/squeak | grep hash
   02     .interp .note.ABI-tag .gnu.hash .dynsym .dynstr
                                            ^^^^^^ causes FP exception.
$ readelf -l 3.9-12/squeak | grep hash
   02     .interp .note.ABI-tag .hash .dynsym .dynstr 
                                            ^^^^ compatible one

Regards .. Subbu


More information about the Etoys mailing list