[GHC] #8451: Link problem on FreeBSD
#8451: Link problem on FreeBSD ------------------------------+-------------------------------------------- Reporter: kazu- | Owner: yamamoto | Status: new Type: bug | Milestone: Priority: high | Version: 7.7 Component: Compiler | Operating System: FreeBSD Keywords: | Type of failure: GHC doesn't work at all Architecture: | Test Case: Unknown/Multiple | Blocking: Difficulty: Unknown | Blocked By: | Related Tickets: | ------------------------------+-------------------------------------------- GHC head on FreeBSD causes a link error if -prof and -threaded are specified: {{{ % cat main.hs main = putStrLn "hello" % ghc -prof -threaded main.hs [1 of 1] Compiling Main ( main.hs, main.o ) /usr/local/lib/gcc47/gcc/x86_64-portbld- freebsd9.1/4.7.3/../../../../../x86_64-portbld-freebsd9.1/bin/ld: cannot find -lthr collect2: error: ld returned 1 exit status }}} Note that libHSrts_thr* are certainly installed. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8451> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8451: Link problem on FreeBSD --------------------------------------------+------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: new Priority: high | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: FreeBSD | Architecture: Type of failure: GHC doesn't work at all | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: --------------------------------------------+------------------------------ Changes (by pgj): * owner: => pgj Comment: I can take a look at this issue. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8451#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8451: Link problem on FreeBSD --------------------------------------------+------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: new Priority: high | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: FreeBSD | Architecture: Type of failure: GHC doesn't work at all | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: --------------------------------------------+------------------------------ Comment (by kazu-yamamoto): I can reproduce this today. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8451#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8451: Link problem on FreeBSD --------------------------------------------+------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: new Priority: high | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: FreeBSD | Architecture: Type of failure: GHC doesn't work at all | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: --------------------------------------------+------------------------------ Comment (by Gabor Pali <pali.gabor@…>): In [changeset:"1ad599ea241626f47006fa386e4aaf38dc91fdbb/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="1ad599ea241626f47006fa386e4aaf38dc91fdbb" Fix #8451 On FreeBSD, /usr/lib has to be added to the library path on linking when libthr is needed but -nostdlib is used (which is the case when the -prof and -threaded flags are combined). }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8451#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8451: Link problem on FreeBSD --------------------------------------------+------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: closed Priority: high | Milestone: Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Operating System: FreeBSD | Architecture: Type of failure: GHC doesn't work at all | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: --------------------------------------------+------------------------------ Changes (by pgj): * status: new => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8451#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC