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 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe