Compiling a main program yields: /usr/bin/ld: cannot find -lHSrtsmain
I have installed the generic Linux binary package for GHC-6.12.1 from
http://www.haskell.org/ghc/dist/6.12.1/ghc-6.12.1-i386-unknown-linux-n.tar.bz2
on Kubuntu.
When I try to compile a simple main program, like
main = putStr "Hello world!\n"
I get
/usr/bin/ld: cannot find -lHSrtsmain
The reason is, that /usr/local/lib/ghc-6.12.1/libHSrtsmain.a is not readable by users.
I could fix the problem for me using
sudo chmod a+r /usr/local/lib/ghc-6.12.1/libHS*
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.12.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | ghc@henning-thielemann.de |
| Operating system | |
| Architecture |