[GHC] #8921: ghc-stage2 fails with ld: fatal: library -lrt: not found on topHandler02(profthreaded) test
GHC
ghc-devs at haskell.org
Fri Mar 28 00:31:18 UTC 2014
#8921: ghc-stage2 fails with ld: fatal: library -lrt: not found on
topHandler02(profthreaded) test
-------------------------------------+-------------------------------------
Reporter: AlainODea | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.1-rc2
Resolution: | Keywords:
Operating System: Solaris | Architecture: x86_64 (amd64)
Type of failure: Compile-time | Difficulty: Easy (less than 1
crash | hour)
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+-------------------------------------
Comment (by AlainODea):
This line needs to be removed:
https://github.com/ghc/ghc/blob/master/compiler/main/DynFlags.hs#L1216
It will break -profthreaded on all Solaris and Illumos OSes released since
2006.
It leads to a paradox where gcc is handed -r (relocatable) and -lrt (link
librt) which combined requires librt.a which doesn't and won't ever exist
on any Solaris or Illumos system.
I'll provide a patch once I've done some more testing.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8921#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list