Linking problem

Simon Peyton Jones simonpj at microsoft.com
Wed Oct 30 08:25:19 UTC 2019


Devs
On the branch wip/inline-compulsory, I'm getting a strange link error:

simonpj at MSRC-3645512:~/tmp$ ~/code/HEAD-2/inplace/bin/ghc-stage1 Hello.hs

[1 of 1] Compiling Main             ( Hello.hs, Hello.o )

Linking Hello ...

/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(Updates.o):stg_bh_upd_frame_info: error: undefined reference to 'stg_marked_upd_frame_ret'

/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(StgMiscClosures.o):stg_CAF_BLACKHOLE_info: error: undefined reference to 'stg_BLACKHOLE_entry'

/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(StgMiscClosures.o):__stg_EAGER_BLACKHOLE_info: error: undefined reference to 'stg_BLACKHOLE_entry'

/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(Apply.o):stg_AP_STACK_info: error: undefined reference to 'stg_WHITEHOLE_entry'

/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(Exception.o):function stg_raisezh: error: undefined reference to 'stg_ap_n_ret'

/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(Exception.o):function stg_raisezh: error: undefined reference to 'stg_ap_pv_ret'

/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(AutoApply.o):stg_ap_v_info: error: undefined reference to 'stg_BCO_entry'

/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(AutoApply.o):stg_ap_f_info: error: undefined reference to 'stg_BCO_entry'

/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(AutoApply.o):stg_ap_d_info: error: undefined reference to 'stg_BCO_entry'

/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(AutoApply.o):stg_ap_l_info: error: undefined reference to 'stg_BCO_entry'

               ... etc...


But I have done nothing in the RTS!
If I try 'nm' I get

bash$ nm rts/dist/build/libHSrts.a | grep stg_ap_p_fast

                 U stg_ap_p_fast

                 U stg_ap_p_fast

0000000000003f58 T stg_ap_p_fast
So somehow the same symbol is defined and unresolved.  Really strange.
Can you help?  Thanks
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20191030/866475b9/attachment.html>


More information about the ghc-devs mailing list