#3794: Compiling a main program yields: /usr/bin/ld: cannot find -lHSrtsmain
-----------------------+----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Component: Build System
Version: 6.12.1 | Keywords:
Os: Linux | Testcase:
Architecture: x86 | Failure: Installing GHC failed
-----------------------+----------------------------------------------------
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*
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3794>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs