[GHC] #5495: simple program fails with -shared on mac

GHC ghc-devs at haskell.org
Fri Nov 28 03:10:24 UTC 2014


#5495: simple program fails with -shared on mac
-------------------------------------+-------------------------------------
              Reporter:  mwotton     |            Owner:
                  Type:  bug         |           Status:  infoneeded
              Priority:  low         |        Milestone:  7.10.1
             Component:  Compiler    |          Version:  7.2.1
            Resolution:              |         Keywords:
      Operating System:  MacOS X     |     Architecture:  x86_64 (amd64)
       Type of failure:  Compile-    |       Difficulty:  Unknown
  time crash                         |       Blocked By:
             Test Case:              |  Related Tickets:
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by carter):

 I think so ...

 {{{
 > cat "main=putStrLn \"hi\""
 > ghc --make foo.hs -shared -fforce-recomp
 [1 of 1] Compiling Main             ( foo.hs, foo.o )
 Linking foo ...
 ld: illegal text reloc in '_c1Hl_info' to '_stg_ap_2_upd_info' for
 architecture x86_64
 collect2: error: ld returned 1 exit status
 }}}

 a linker error seems to happen, though when GHC is configured to use
 clang, clang reports the error, whereas when using via GCC, its reported
 as a ld error

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


More information about the ghc-tickets mailing list