HEAD fails to build with -g1
I wanted to see how -g1
vs -g2
impact compile speed. Unfortunately I get linking errors trying to build GHC with -g1
.
Steps:
- Add:
GhcLibHcOpts += -g1
GhcRtsHcOpts += -g1
to mk/build.mk
. I used devel2 flavor.
./boot && ./configure && make -j
- 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'