[GHC] #11155: Trivial thunk gives "undefined reference to stg_ap_0_upd_info"

GHC ghc-devs at haskell.org
Mon Apr 4 20:36:54 UTC 2016


#11155: Trivial thunk gives "undefined reference to stg_ap_0_upd_info"
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  high              |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  7.10.2
      Resolution:  fixed             |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
                                     |  simplCore/should_compile/T11155
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by gridaphobe):

 I just ran into this (or a similar issue) when building GHC
 (9b6820cdd6bac8b8346be48224627e3feefa9036) on OSX. This is a clean build
 with the default settings, and it fails at the very last step of stage 2.

 {{{
   HC [stage 1] ghc/stage2/build/tmp/ghc-stage2
 Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main.
     Call hs_init_ghc() from your main() function to set these options.
 Undefined symbols for architecture x86_64:
   "_stg_sel_17_upd_info", referenced from:
       _s1s8Z_info in UI.dyn_o
       _s1s9w_info in UI.dyn_o
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 `gcc' failed in phase `Linker'. (Exit code: 1)
 }}}

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


More information about the ghc-tickets mailing list