Ticket #3148 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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

Reported by: kgardas Owned by:
Priority: normal Milestone:
Component: Build System Version: 6.10.1
Keywords: Cc:
Operating System: Linux Architecture: arm
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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:~# 

Change History

Changed 3 years ago by igloo

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to invalid

I'm afraid registerised builds aren't supported on arm, so you'll need to do an unregisterised build:  http://hackage.haskell.org/trac/ghc/wiki/Building/Unregisterised

Note: See TracTickets for help on using tickets.