Until proper patch is available I'm using attached temp workaround. After some testing GHC and produced executables appear to work correctly in foreign arch chroot.
I'm sure there will be issues but I only need compilation to work in foreign arch chroot because I will deploy produced executables to Raspberry Pi anyway. cabal-installing works too but I had to comment out anything related to Template Haskell from (to be installed) packages. versions: qemu 1.4.1 (static build) host: Linux proton 3.9.2-1-ARCH #1 SMP PREEMPT Sat May 11 20:31:08 CEST 2013 x86_64 GNU/Linux foreign: Linux proton 3.9.2-1-ARCH #1 SMP PREEMPT Sat May 11 20:31:08 CEST 2013 armv6l GNU/Linux chroot created from 2013-02-09-wheezy-raspbian.img ghc 7.4.1-4+rpi1 armhf ** Patch added: "temp workaround to enable compilation and execution of GHC and produced executables in foreign arch chroot" https://bugs.launchpad.net/qemu/+bug/1042388/+attachment/3682145/+files/0001-temp-workaround-to-enable-compilation-and-execution-.patch -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1042388 Title: qemu: Unsupported syscall: 257 (timer_create) Status in QEMU: Confirmed Bug description: Running qemu-arm-static for git HEAD. When I try to install ghc from debian into my arm chroot I get: Setting up ghc (7.4.1-4) ... qemu: Unsupported syscall: 257 ghc: timer_create: Function not implemented qemu: Unsupported syscall: 257 ghc-pkg: timer_create: Function not implemented dpkg: error processing ghc (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: ghc E: Sub-process /usr/bin/dpkg returned an error code (1) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1042388/+subscriptions