#3756: Missing -lz option in testsuite
--------------------------------+-------------------------------------------
Reporter: daniel.is.fischer | Type: bug
Status: new | Priority: normal
Milestone: 6.12.2 | Component: Build System
Version: 6.12.1 | Keywords:
Difficulty: | Os: Linux
Testcase: | Architecture: x86
Failure: Other |
--------------------------------+-------------------------------------------
Comment(by simonmar):
Replying to [comment:12 daniel.is.fischer]:
> What's the problem with adding '-optl-lz' to the command line of the
pertinent tests or to EXTRA_HC_OPTS?
That would be the wrong place, the fact that you saw failures in the test
suite is a symptom, not the problem. On your system libbfd depends on
libz, and you're picking up a static libbfd, so hence there's a dependency
from the debug variants of the RTS on libz. If you build any Haskell
program with `-debug` you'll see a link failure. The right way to fix it
is to add "z" to the extra-libraries of the RTS, but we need to figure out
when to do this by adding a configure test.
I'd also like to understand what exactly is making this go wrong on your
system, so we can figure out whether its a distro-specific thing or
something else.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3756#comment:14>
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