0

I'm following a short bnfc example, to generate an haskell parser. When I launch the make command I get these errors:

latex DocCalc.tex; dvips DocCalc.dvi -o DocCalc.ps
/bin/sh: 1: latex: not found
/bin/sh: 1: dvips: not found
make: *** [all] Error 127

I don't have latex installed, neither divps (what is the last?). So I removed the line:

latex DocCalc.tex; dvips DocCalc.dvi -o DocCalc.ps

in the make file, because I don't know exactly the names of the needed packages to install, and because I don't need documetation files. So I relaunch the make command, and this time I get these errors, after the building phase:

Linking TestCalc ...
/usr/bin/ld: --hash-size=31: unknown option
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

Can you help me to understand what I'm missing?

2

1 Answer 1

0

As kosmikus said, it's a problem caused from ghc and the gold linker.

I resolved my problem reading this question

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.