Error while compiling cross-compiler

Eric Schug schugschug at gmail.com
Sat Mar 9 21:18:05 CET 2013


Ok using git HEAD, which got me further, but now errors when compiling 
terminfo.
Its having problems locating the headers and libraries for cursers/ncursers
Although, I have the host headers and libraries, but I expect it is 
searching for the target versions.
These I can pull from my raspberry pi, but I am not sure where to put 
them such that the
cross compiler will find them.


On 03/08/13 20:19, Austin Seipp wrote:
> 7.6.2 doesn't really support cross compilation. The bulk of the work
> has been done in the git repository. Any artifacts of cross
> compilation support in released tarballs can be ignored.
>
> Please do try the steps on the wiki page, using a copy of HEAD from
> git. I tried this a week or two ago and encountered no difficulties if
> my memory serves correctly.
>
> Sent from my iPhone^H^H^H^H^HPortable Turing machine
>
> On Mar 8, 2013, at 6:34 PM, Eric Schug<schugschug at gmail.com>  wrote:
>
>> I am following the instructions for creating a cross compiler for Raspberry Pi, but I get a file does not exist error during stage 1 (see below).
>> The basic steps I have taken are
>> apt-get install llvm
>> git clone https://github.com/raspberrypi/tools.git
>> export rpitools=`pwd`/rpitools/
>> export tools=`pwd`/tools
>> export PATH=$PATH:$tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin
>> wget http://www.haskell.org/ghc/dist/7.6.2/ghc-7.6.2-src.tar.bz2
>> tar jxvf ghc-7.6.2-src.tar.bz2
>> cd ghc-7.6.2/
>> ./configure --target=arm-linux-gnueabihf --prefix=$rpitools
>> make
>>
>> make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds
>> CROSS_COMPILE="arm-unknown-linux-gnueabihf-" "inplace/bin/ghc-cabal" configure --with-ghc="/media/2612bbee-1ea0-43dd-82f4-c7e7d3fe634b_/eric/haskell/ghc-7.6.2/inplace/bin/ghc-stage1" --with-ghc-pkg="/media/2612bbee-1ea0-43dd-82f4-c7e7d3fe634b_/eric/haskell/ghc-7.6.2/inplace/bin/ghc-pkg" --flag=include-ghc-prim --enable-library-for-ghci --configure-option=CFLAGS=" -fno-stack-protector   " --configure-option=LDFLAGS=" -Wl,--hash-size=31 -Wl,--reduce-memory-overheads  " --configure-option=CPPFLAGS="   " --with-gcc="/media/2612bbee-1ea0-43dd-82f4-c7e7d3fe634b_/eric/haskell/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc" --configure-option=--with-cc="/media/2612bbee-1ea0-43dd-82f4-c7e7d3fe634b_/eric/haskell/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc" --with-ar="/usr/bin/ar" --with-ranlib="true" --with-alex="/usr/bin/alex" --with-happy="/usr/bin/happy" -- dist-install libraries/ghc-prim
>> Configuring ghc-prim-0.3.0.0...
>> ghc-cabal: /tmp/22147.o: does not exist
>> make[1]: *** [libraries/ghc-prim/dist-install/package-data.mk] Error 1
>> make: *** [all] Error 2
>>
>> I am not sure if I need to create a mk/build.mk file using the mk/build.mk.sample, but when I do so and add the line
>> Stage1Only = YES
>> I still get the same error only with a different temp filename.
>>
>>
>> _______________________________________________
>> ghc-devs mailing list
>> ghc-devs at haskell.org
>> http://www.haskell.org/mailman/listinfo/ghc-devs





More information about the ghc-devs mailing list