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.