[Haskell-cafe] Building Plaftorm 2010 2 on 64bit Linux

Dušan Kolář kolar at fit.vutbr.cz
Thu Feb 10 16:53:02 CET 2011


I have the following ghc script:

cat ghc
#!/bin/sh
exedir="/usr/local/lib/ghc-6.12i386/lib/ghc-6.12.3"
exeprog="ghc-stage2"
executablename="$exedir/$exeprog"
datadir="/usr/local/lib/ghc-6.12i386/share"
bindir="/usr/local/lib/ghc-6.12i386/bin"
topdir="/usr/local/lib/ghc-6.12i386/lib/ghc-6.12.3"
pgmgcc="/usr/local/bin/gcc"
executablename="$exedir/ghc"
exec "$executablename" -B"$topdir" -pgmc "$pgmgcc"  -pgml "$pgmgcc" 
-pgma "$pgmgcc"  ${1+"$@"}

Dušan

On 02/10/2011 04:38 PM, Christian Maeder wrote:
> Am 10.02.2011 13:15, schrieb Dušan Kolář:
>> Well, that was probably the main problem :-(
>>
>> Unfortunately, even if, after performing all the stuff once again, I
>> made platform configured, make ended in compilation of happy with "old
>> story":
>>
>> Configuring happy-1.18.5...
>> "./Setup" "build"
>> Preprocessing executables for happy-1.18.5...
>> Building happy-1.18.5...
>> ghc: could not execute: /usr/bin/gcc
>>
>> Error:
>> Building the happy-1.18.5 package failed
>> make: *** [build.stamp] Error 2
> Maybe this time indeed gcc is called as linker and you should add
>   -pgml /usr/local/bin/gcc
>
> In fact my ghc script for ghc-7.0.1 contains:
>
> pgmgcc="/usr/bin/gcc"
> executablename="$exedir/ghc"
> exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc" -pgml
> "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional" ${1+"$@"}
>
> Christian
>
>>
>> Even if all other items went OK, until happy :-(  and it is called happy
>> ;-) :-D
>>
>>
>> Dusan



More information about the Haskell-Cafe mailing list