Fwd: Trying to compile GHC under Ubuntu as a cross-compiler for ARM
carter.schonwald at gmail.com
Wed Apr 2 16:58:34 UTC 2014
have you read the cross compiler directions on the wiki? :)
On Wed, Apr 2, 2014 at 12:30 PM, eng. Vassil Ognyanov Keremidchiev <
varosi at gmail.com> wrote:
> Thanks, it continued with building until some LLVM errors.
> But will --with-gcc= arm based compiler will create GHC with:
> Host: x86 Ubuntu (where compilation should happen)
> Target: ARMv7 Linux ?
> Because I don't want to have GHC on my slow and restricted ARM machine.
> Best regards,
> 2014-03-28 20:09 GMT+02:00 Karel Gardas <karel.gardas at centrum.cz>:
>> Last time I did that (crossing to ARMv8) I needed to use
>> --with-gcc=<cross compiler> option since for some reason I had not time to
>> debug setting target triple with --target was not enough. Speaking about
>> GHC HEAD as of new year eve (2014) time...
>> But well, since it this is already some time I'm not sure this was to
>> cure issue like you have now, but at least you may give it a try...
>> On 03/28/14 06:08 PM, eng. Vassil Ognyanov Keremidchiev wrote:
>>> 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
>>> 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 <http://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"
>>> 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: *** [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.
>>> ghc-devs mailing list
>>> ghc-devs at haskell.org
> ghc-devs mailing list
> ghc-devs at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ghc-devs