[GHC] #14894: HEAD fails to build with -g1

GHC ghc-devs at haskell.org
Mon Mar 5 21:39:30 UTC 2018


#14894: HEAD fails to build with -g1
-------------------------------------+-------------------------------------
           Reporter:  niteria        |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.5
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:  x86_64         |   Type of failure:  Debugging
  (amd64)                            |  information is incorrect
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 I wanted to see how `-g1` vs `-g2` impact compile speed. Unfortunately I
 get linking errors trying to build GHC with `-g`.

 Steps:
 1) Add {{{
 GhcLibHcOpts += -g1
 GhcRtsHcOpts += -g1
 }}}
 to `mk/build.mk`. I used devel2 flavor.
 2) `./boot && ./configure && make -j`
 3) Observe failure

 The failure (trimmed):
 {{{
 /data/users/bnitka/ghc-HEAD-dwarf-lint-fixes-g/libraries/base/dist-
 install/build/libHSbase-4.11.0.0.a(Internals.o)(.debug_info+0x1c94):
 error: undefined refe
 rence to '.LcbG2_info_die'
 /data/users/bnitka/ghc-HEAD-dwarf-lint-fixes-g/libraries/base/dist-
 install/build/libHSbase-4.11.0.0.a(Internals.o)(.debug_info+0x1cc7):
 error: undefined refe
 rence to '.LcbGL_die'
 /data/users/bnitka/ghc-HEAD-dwarf-lint-fixes-g/libraries/base/dist-
 install/build/libHSbase-4.11.0.0.a(Internals.o)(.debug_info+0x1cfa):
 error: undefined refe
 rence to '.LcbI0_die'
 /data/users/bnitka/ghc-HEAD-dwarf-lint-fixes-g/libraries/base/dist-
 install/build/libHSbase-4.11.0.0.a(Internals.o)(.debug_info+0x1d2d):
 error: undefined refe
 rence to '.LcbIh_die'
 /data/users/bnitka/ghc-HEAD-dwarf-lint-fixes-g/libraries/base/dist-
 install/build/libHSbase-4.11.0.0.a(Internals.o)(.debug_info+0x21a4):
 error: undefined refe
 rence to '.LcbSn_info_die'
 /data/users/bnitka/ghc-HEAD-dwarf-lint-fixes-g/libraries/base/dist-
 install/build/libHSbase-4.11.0.0.a(Internals.o)(.debug_info+0x21d1):
 error: undefined refe
 rence to '.LcbTc_die'
 /data/users/bnitka/ghc-HEAD-dwarf-lint-fixes-g/libraries/base/dist-
 install/build/libHSbase-4.11.0.0.a(Internals.o)(.debug_info+0x234f):
 error: undefined refe
 rence to '.Lcc18_die'
 /data/users/bnitka/ghc-HEAD-dwarf-lint-fixes-g/libraries/base/dist-
 install/build/libHSbase-4.11.0.0.a(Internals.o)(.debug_info+0x2c76):
 error: undefined refe
 rence to '.Lccmj_info_die'
 /data/users/bnitka/ghc-HEAD-dwarf-lint-fixes-g/libraries/base/dist-
 install/build/libHSbase-4.11.0.0.a(Internals.o)(.debug_info+0x2dff):
 error: undefined refe
 rence to '.LccsV_die'
 /data/users/bnitka/ghc-HEAD-dwarf-lint-fixes-g/libraries/base/dist-
 install/build/libHSbase-4.11.0.0.a(Internals.o)(.debug_info+0x2e2f):
 error: undefined refe
 rence to '.Lcct6_info_die'
 /data/users/bnitka/ghc-HEAD-dwarf-lint-fixes-g/libraries/base/dist-
 install/build/libHSbase-4.11.0.0.a(Internals.o)(.debug_info+0x2f38):
 error: undefined refe
 rence to '.Lccv1_info_die'
 /data/users/bnitka/ghc-HEAD-dwarf-lint-fixes-g/libraries/base/dist-
 install/build/libHSbase-4.11.0.0.a(Internals.o)(.debug_info+0x2f66):
 error: undefined refe
 rence to '.Lccve_die'
 }}}

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


More information about the ghc-tickets mailing list