Closed glaubitz closed 6 years ago
Definitely a regression:
root@nofan:~> cp -av qemu-m68k-static.20171228 /local_scratch/sid-m68k-sbuild/usr/bin/qemu-m68k-static
'qemu-m68k-static.20171228' -> '/local_scratch/sid-m68k-sbuild/usr/bin/qemu-m68k-static'
root@nofan:~> cp -av qemu-m68k-static.20171228 /usr/bin/qemu-m68k-static
'qemu-m68k-static.20171228' -> '/usr/bin/qemu-m68k-static'
root@nofan:~> chroot /local_scratch/sid-m68k-sbuild/
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
(sid-m68k-sbuild)root@nofan:/# gcc -o rrdtool-test rrdtool-test.c
(sid-m68k-sbuild)root@nofan:/# ./rrdtool-test
not isinf(oo) ... (sid-m68k-sbuild)root@nofan:/# exit
root@nofan:~>
root@nofan:~> cp -av qemu-m68k-static.20170705 /usr/bin/qemu-m68k-static
'qemu-m68k-static.20170705' -> '/usr/bin/qemu-m68k-static'
root@nofan:~> cp -av qemu-m68k-static.20170705 /local_scratch/sid-m68k-sbuild/usr/bin/qemu-m68k-static
'qemu-m68k-static.20170705' -> '/local_scratch/sid-m68k-sbuild/usr/bin/qemu-m68k-static'
root@nofan:~> chroot /local_scratch/sid-m68k-sbuild/
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
(sid-m68k-sbuild)root@nofan:/# gcc -o rrdtool-test rrdtool-test.c
(sid-m68k-sbuild)root@nofan:/# ./rrdtool-test
(sid-m68k-sbuild)root@nofan:/#
The compiled binary from July 2017 works, the binary from December 2017 has the bug.
Please try latest version of qemu from branch m68k-dev: it works for me.
Just cloned freshly from git, switched to m68k-dev branch and built a static binary. Doesn't work.
With this version, even gcc is crashing.
(sid-m68k-sbuild)root@nofan:/# gcc -o rrdtool-test rrdtool-test.c
rrdtool-test.c:1:0: internal compiler error: Segmentation fault
#include <stdio.h>
executable file is not ELF
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
(sid-m68k-sbuild)root@nofan:/# ./rrdtool-test
not isinf(oo) ... (sid-m68k-sbuild)root@nofan:/#
OK, I'm able to reproduce it
Please try this isinf-fix.txt
Fix pushed in m68k-dev branch.
Please, open a new issue for the gcc internal error
Yes, the latest revision of m68k-dev fixes the problem. Closing.
gcc is still segfaulting though.
The following code produces incorrect code on qemu-m68k while working on real hardware:
On my Amiga 4000, I get:
On qemu-m68k, I get:
See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890466