[Haskell-cafe] Building Plaftorm 2010 2 on 64bit Linux
Christian Maeder
Christian.Maeder at dfki.de
Tue Feb 8 12:56:46 CET 2011
Ok, gcc is used as linker, too. So maybe try to
-pgml /usr/local/bin/gcc
add to your command line.
C.
Am 08.02.2011 12:50, schrieb Dušan Kolář:
> Not the problem, ghc script:
>
> cat /usr/local/lib/ghc-6.10.4/V12/bin/ghc
> #!/bin/sh
> exedir="/usr/local/lib/ghc-6.10.4/V12//lib/ghc-6.12.3"
> exeprog="ghc-stage2"
> executablename="$exedir/$exeprog"
> datadir="/usr/local/lib/ghc-6.10.4/V12/share"
> bindir="/usr/local/lib/ghc-6.10.4/V12/bin"
> topdir="/usr/local/lib/ghc-6.10.4/V12/lib/ghc-6.12.3"
> pgmgcc="/usr/local/bin/gcc"
> executablename="$exedir/ghc"
> exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" ${1+"$@"}
>
> while:
>
> which gcc
> /usr/local/bin/gcc
>
>
> Dusan
>
>
> On 02/08/2011 12:42 PM, Christian Maeder wrote:
>> Am 08.02.2011 11:39, schrieb Dušan Kolář:
>>> ghc -O2 --make test.hs -o test
>>> [1 of 1] Compiling Main ( test.hs, test.o )
>>> ghc: could not execute: /usr/bin/gcc
>>>
>>> Even if I can easily compile gcc testc.c -o testc and run testc.
>> Your ghc script (under /usr/local/bin or elsewhere "type -all ghc")
>> contains a line:
>>
>> pgmgcc="/usr/bin/gcc"
>>
>> This line should be corrected to point to your gcc that is probably not
>> under /usr/bin/. Try by "which gcc" or "type -all gcc".
>>
>> (The official binaries only work for "sane systems".)
>>
>> HTH Christian
More information about the Haskell-Cafe
mailing list