[GHC] #8921: ghc-stage2 fails with ld: fatal: library -lrt: not found on topHandler02(profthreaded) test

GHC ghc-devs at haskell.org
Mon Mar 31 18:21:43 UTC 2014


#8921: ghc-stage2 fails with ld: fatal: library -lrt: not found on
topHandler02(profthreaded) test
-------------------------------------+-------------------------------------
        Reporter:  AlainODea         |            Owner:  AlainODea
            Type:  bug               |           Status:  patch
        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 will break Solaris 9 and earlier.

 On Solaris 10, OpenSolaris, Illumos, and Solaris 11 librt in libc.

 I don't think GHC 7.8 can reasonably support Solaris 9 due to issues with
 porting the needed GCC toolchain.

 An alternative would be to identify recent Solaris/Illumos operating
 systems as something other than '''OSSolaris2''' when generating
 '''GHCConstantsHaskellType'''.   That seems far more problematic as it
 would require changes everywhere '''OSSolaris2''' is used.

 Doing a similar trick for Solaris 9 and earlier would have the same
 problem.

 Solaris 10 was released on 2005-01-31.  Solaris 9's latest release is 9/05
 which was released on 2005-09-03.

 I think support for **-profthreaded** on Solaris 9 and earlier can be
 safely excluded by default.  Users who need **--profthreaded** on GHC 7.8+
 on those systems can easily reverse this patch in their build process.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8921#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list