Fwd: Trying to compile GHC under Ubuntu as a cross-compiler for ARM

eng. Vassil Ognyanov Keremidchiev varosi at gmail.com
Fri Mar 28 17:08:00 UTC 2014


Could someone help me with compiling GHC under Ubuntu as a ARM

Currently I have done those steps:
sudo apt-get update
sudo apt-get install autoconf alex happy libtool autopoint zlib1g-dev
libncurses5-dev ghc-haddock
sudo export PATH=~/.cabal/bin:$PATH
sudo cabal install --reinstall happy alex terminfo libffi html regex-compat

git clone http://darcs.haskell.org/ghc.git
cd ghc

./sync-all --no-dph get
./sync-all pull
sudo ./configure --target=arm-linux-gnueabi --enable-unregisterised
cp mk/build.mk.sample mk/build.mk
# here I enable quick-cross configuration
sudo make

and I get:

echo "compiler_stage1_depfile_c_asm_EXISTS = YES" >>
mv compiler/stage1/build/.depend-v.c_asm.tmp
inplace/bin/deriveConstants --gen-header -o
includes/dist-derivedconstants/header/DerivedConstants.h --tmpdir
includes/dist-derivedconstants/header/ --gcc-program "/usr/bin/gcc"
--gcc-flag -fno-stack-protector --gcc-flag -Iincludes --gcc-flag
-Iincludes/dist --gcc-flag -Iincludes/dist-derivedconstants/header
--gcc-flag -Iincludes/dist-ghcconstants/header --gcc-flag -Irts --gcc-flag
-fcommon --nm-program "/usr/bin/arm-linux-gnueabi-nm"
/usr/bin/arm-linux-gnueabi-nm: includes/dist-derivedconstants/header/tmp.o:
File format not recognized
deriveConstants: readProcess: /usr/bin/arm-linux-gnueabi-nm
"includes/dist-derivedconstants/header/tmp.o" (exit 1): failed
make[1]: *** [includes/dist-derivedconstants/header/DerivedConstants.h]
Error 1
make: *** [all] Error 2

What I have done wrong? I did not understand the error message well, too.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140328/f86008e3/attachment.html>

More information about the ghc-devs mailing list