Skip to content

build failure of GHC 6.10.2 release on arm-unknown-linux platform

Hello, I've attempted to build GHC 6.10.2 release on arm-unknown-linux platform, but build fails with:

/home/user/src/ghc-6.10.2/ghc/stage1-inplace/ghc  -H32m -O -optc-O2 -I../includes -I. -Iparallel -Ism -DCOMPILING_RTS -package-name rts -optc-DNOSMP -static  -I../gmp/gmpbuild -I../libffi/build/include -I. -dcmm-lint     -c Apply.cmm -o Apply.o
/tmp/ghc16399_0/ghc16399_0.hc: In function ‘stg_ap_0_fast’:

/tmp/ghc16399_0/ghc16399_0.hc:15:0:
     warning: implicit declaration of function ‘JMP_’
ghc-asm: don't know how to mangle assembly language for: arm-unknown-linux
make[1]: *** [Apply.o] Error 1
make[1]: Leaving directory `/home/user/src/ghc-6.10.2/rts'
make: *** [stage1] Error 2

to perform the build I've done common:

./configure --prefix=/tmp/ghc-6.10.2-bin
make

The linux is Debian 4.0 running on simulated armv5tel (Qemu):

debian-arm:~# cat /proc/cpuinfo 
Processor       : ARM926EJ-S rev 5 (v5l)
BogoMIPS        : 589.82
Features        : swp half fastmult edsp java 
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 5
Cache type      : write-through
Cache clean     : not required
Cache lockdown  : not supported
Cache format    : Harvard
I size          : 4096
I assoc         : 4
I line length   : 32
I sets          : 32
D size          : 65536
D assoc         : 4
D line length   : 32
D sets          : 512

Hardware        : ARM-Versatile PB
Revision        : 0000
Serial          : 0000000000000000
debian-arm:~# 

I'm using Debian provided GHC, which is version 6.6:

debian-arm:~# ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.6
debian-arm:~# ghc-pkg -l
/usr/lib/ghc-6.6/package.conf:
    Cabal-1.1.6, base-2.0, (ghc-6.6), haskell98-1.0, parsec-2.0,
    readline-1.0, regex-base-0.71, regex-compat-0.71, regex-posix-0.71,
    rts-1.0, stm-2.0, template-haskell-2.0, unix-1.0
debian-arm:~# 
Trac metadata
Trac field Value
Version 6.10.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information