[GHC] #5950: Linking standard library fails
GHC
cvs-ghc at haskell.org
Tue Mar 20 13:08:14 CET 2012
#5950: Linking standard library fails
----------------------------------------+-----------------------------------
Reporter: volker-wysk | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.0.4
Resolution: invalid | Keywords: link
Os: Linux | Architecture: Unknown/Multiple
Failure: GHC rejects valid program | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
----------------------------------------+-----------------------------------
Changes (by simonmar):
* status: new => closed
* difficulty: => Unknown
* resolution: => invalid
Comment:
When you're doing "batch linking", you have to specify all the packages
manually, like this:
{{{
$ ghc -o test test.o -package haskell98
}}}
This is documented with the `-package` flag:
[http://www.haskell.org/ghc/docs/latest/html/users_guide/packages.html].
It has always been like this, except that there are two recent changes
which apparently tripped you up here: now `--make` is the default, which
is why when you give the `.hs` file it works, and the `haskell98` package
used to be linked in by default (now it isn't).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5950#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list