Hi,
I'm getting the above error message when trying to build HEAD on
OpenBSD. This happens when running cabal-bin ... configure in
./compiler for stage1.
After running cabal-bin ... configure --verbose=3 ..., the problem boils
down to a wrong invocation of /usr/bin/ld:
Configuring ghc-6.9...
Creating dist-stage1 (and its parents)
("/usr/local/bin/ghc",["--numeric-version"])
/usr/local/bin/ghc is version 6.6.1
("/usr/local/bin/ghc-pkg",["--version"])
/usr/local/bin/ghc-pkg is version 6.6.1
searching for gcc in path.
found gcc at /usr/bin/gcc
("/usr/bin/gcc",["--version"])
/usr/bin/gcc is version 3.3.5
("/usr/local/bin/ghc",["-#include","cutils.h","-DSTAGE=1","-c","/tmp/5110.c","-o","/tmp/5110.o"])
("/usr/bin/ld",["-Xlinker","-E","-x","-r","/tmp/5110.o","-o","/tmp/5111.o"])
/usr/bin/ld returned ExitFailure 1 with error message:
/usr/bin/ld: cannot find -linker
cabal-bin: /tmp/5111.o: removeFile: does not exist (No such file or directory)
The "-Xlinker -E" comes from compiler/Makefile, and is explicitely
set for OpenBSD. Does anyone remember when and why this has been
added, and for which version of OpenBSD? (I've only a ghc fetched
with --partial here[1], so darcs annotate doesn't work).
Ciao,
Kili
[1] And darcs.haskell.org is dead-slow, fetching
ghc-HEAD-2008-08-17-ghc-corelibs-testsuite.tar.bz2 is running for
more than two hours now.
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc