On Thu, Jul 13, 2017 at 11:09:08AM +0200, John Paul Adrian Glaubitz wrote: > Just as a heads-up: The current set of patches as they are present in > the tgt-sh4 branch on git://github.com/rth7680/qemu.git are a HUGE > improvement for qemu-sh4 user mode. Several packages which previously > crashed during build or use can now be used properly!
The only thing that still doesn't work is GHC, unfortunately: (sid-sh4-sbuild)root@nofan:/# ghc Main.hs /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) [1 of 1] Compiling Main ( Main.hs, Main.o ) ^C (sid-sh4-sbuild)root@nofan:/# ghc Main.hs /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) [1 of 1] Compiling Main ( Main.hs, Main.o ) ^C (sid-sh4-sbuild)root@nofan:/# ghc Main.hs /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) [1 of 1] Compiling Main ( Main.hs, Main.o ) ^C (sid-sh4-sbuild)root@nofan:/# ghc Main.hs /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) ghc: internal error: scavenge_static: strange closure 8 (GHC version 8.0.1 for sh4_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug qemu: uncaught target signal 6 (Aborted) - core dumped Aborted (sid-sh4-sbuild)root@nofan:/# It either hangs, so I had to use "Ctrl+C" or it segfaulted. Sometimes it would crash with: (sid-sh4-sbuild)root@nofan:/# ghc Main.hs /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) Unhandled trap: 0x180 pc=0x07019782 sr=0x00000000 pr=0x0668c52c fpscr=0x00080000 spc=0x00000000 ssr=0x00000000 gbr=0x7f5ae680 vbr=0x00000000 sgr=0x00000000 dbr=0x00000000 delayed_pc=0x0668c52c fpul=0x05f7595c r0=0x07019780 r1=0x7d9f90d8 r2=0x00019780 r3=0x00009780 r4=0x00000001 r5=0x0000001e r6=0x70000000 r7=0x00000080 r8=0x00000001 r9=0x00000000 r10=0x7f5ae694 r11=0x00000000 r12=0x07099840 r13=0x7f4fe000 r14=0x7ffff4cc r15=0x7ffff4c8 r16=0x00000000 r17=0x00000000 r18=0x00000000 r19=0x00000000 r20=0x00000000 r21=0x00000000 r22=0x00000000 r23=0x00000000 (sid-sh4-sbuild)root@nofan:/# Source file is available here [1]. In order to be able to install, you need to bind-mount /proc into the chroot first: mount -o bind /proc /path/to/sid-sh4-sbuild/proc/ Adrian > [1] https://people.debian.org/~glaubitz/Main.hs -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913