Hi Stéphane,

On Wed, 2024-06-19 at 12:37 +0200, Stéphane Glondu wrote:
> Le 19/06/2024 à 09:06, John Paul Adrian Glaubitz a écrit :
> > > To reproduce the problem quickly:
> > > - unpack ocaml 5.2.0 source package
> > > - ./configure --enable-imprecise-c99-float-ops
> > > - make coldstart
> > > 
> > > Is there some subtlety with thread local variables on m68k?
> > 
> > Can you please try reproduce the issue on the porterbox mitchy.debian.net 
> > first to
> > make sure it's not related to the QEMU build environment on the buildds?
> 
> I can reproduce the issue on mitchy.debian.net.

OK, then it's actually a bug.

One important thing to know is that the natural alignment on m68k is actually 
16 bits
and not 32 bits which causes quite some issues with various upstream projects.

We're currently planning on switching the alignment on m68k to 32 bits and 
chances are
that this could this issue as well.

Can you maybe try passing "-malign-int" to CFLAGS/CXXFLAGS when building OCaml 
on m68k
to verify this hypothesis? Please note that this also breaks the SysV ABI, so 
it's not
possible to easily do this on a per-package basis.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to