[GHC] #5889: -fno-prof-count-entries leads to linking errors
GHC
ghc-devs at haskell.org
Sun Oct 29 22:09:52 UTC 2017
#5889: -fno-prof-count-entries leads to linking errors
-------------------------------------+-------------------------------------
Reporter: akio | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.3
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64
Type of failure: GHC rejects | (amd64)
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by duog):
* status: closed => new
* version: 7.4.1 => 8.3
* resolution: fixed =>
* milestone: 7.6.2 =>
Comment:
I've encountered this error while building ghc; let me know if it would be
more appropriate to create a new ticket.
When building ghc, booting with ghc-8.2.1, with the following build.mk:
{{{
BuildFlavour = prof
ifneq "$(BuildFlavour)" ""
include mk/flavours/$(BuildFlavour).mk
endif
GhcStage2HcOpts += -fprof-auto -fno-prof-count-entries
}}}
I get the following error while linking libHSghc-8.3.p_a:
{{{
/home/doug/ghc-
dev/validate/compiler/stage2/build/libHSghc-8.3_p.a(HscMain.p_o):s1afa_info:
error: undefined reference to 'ghc_CoreToStg_coreToStgzipgmzq_Cq7W_cc'
/home/doug/ghc-
dev/validate/compiler/stage2/build/libHSghc-8.3_p.a(StgLint.p_o):sort_info:
error: undefined reference to 'ghc_Type_newTyConInstRhszirhs_ChfI_cc'
/home/doug/ghc-
dev/validate/compiler/stage2/build/libHSghc-8.3_p.a(StgLint.p_o):soru_info:
error: undefined reference to 'ghc_Type_newTyConInstRhszitvs_ChfH_cc'
/home/doug/ghc-
dev/validate/compiler/stage2/build/libHSghc-8.3_p.a(StgLint.p_o):sorC_info:
error: undefined reference to 'ghc_Type_newTyConInstRhszirhs_ChfI_cc'
/home/doug/ghc-
dev/validate/compiler/stage2/build/libHSghc-8.3_p.a(StgLint.p_o):sorD_info:
error: undefined reference to 'ghc_Type_newTyConInstRhszitvs_ChfH_cc'
/home/doug/ghc-
dev/validate/compiler/stage2/build/libHSghc-8.3_p.a(RtClosureInspect.p_o):sMUb_info:
error: undefined reference to 'ghc_Type_newTyConInstRhszirhs_ChfI_cc'
/home/doug/ghc-
dev/validate/compiler/stage2/build/libHSghc-8.3_p.a(RtClosureInspect.p_o):sMUd_info:
error: undefined reference to 'ghc_Type_newTyConInstRhszitvs_ChfH_cc'
/home/doug/ghc-
dev/validate/compiler/stage2/build/libHSghc-8.3_p.a(TcForeign.p_o):sy5L_info:
error: undefined reference to 'ghc_Type_newTyConInstRhszirhs_ChfI_cc'
/home/doug/ghc-
dev/validate/compiler/stage2/build/libHSghc-8.3_p.a(TcForeign.p_o):sy5W_info:
error: undefined reference to 'ghc_Type_newTyConInstRhszitvs_ChfH_cc'
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/5889#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list