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

GHC ghc-devs at haskell.org
Thu Dec 3 09:04:31 UTC 2015


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

 * priority:  normal => high


Comment:

 Fyi, I'm seeing this during GHC building as well (which makes the current
 Ubuntu PPA nightlies fail):

 {{{
 ...
   AR compiler/stage2/build/libHSghc-7.11.20151202.a
   HC [stage 1]
 compiler/stage2/build/libHSghc-7.11.20151202-ghc7.11.20151202.so
 /usr/bin/ar: creating compiler/stage2/build/libHSghc-7.11.20151202.a
 Warning: -rtsopts and -with-rtsopts have no effect with -shared.
     Call hs_init_ghc() from your main() function to set these options.
 "rm" -f compiler/stage2/build/libHSghc-7.11.20151202.a.contents
   HC [stage 1] ghc/stage2/build/GhciTags.dyn_o
   HC [stage 1] ghc/stage2/build/InteractiveUI.dyn_o
   HC [stage 1] ghc/stage2/build/Main.dyn_o
   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.
 /«PKGBUILDDIR»/compiler/stage2/build/libHSghc-7.11.20151202-ghc7.11.20151202.so:
 undefined reference to `stg_ap_0_upd_info'
 collect2: ld returned 1 exit status
 `gcc' failed in phase `Linker'. (Exit code: 1)
 make[3]: *** [ghc/stage2/build/tmp/ghc-stage2] Error 1
 make[2]: *** [all] Error 2
 make[2]: Leaving directory `/«PKGBUILDDIR»'
 make[1]: *** [override_dh_auto_build] Error 2
 make[1]: Leaving directory `/«PKGBUILDDIR»'
 make: *** [build] Error 2
 }}}

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


More information about the ghc-tickets mailing list