Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,399
    • Issues 5,399
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 592
    • Merge requests 592
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #14894
Closed
Open
Issue created Mar 05, 2018 by niteria@trac-niteria

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:

  1. Add:
GhcLibHcOpts += -g1
GhcRtsHcOpts += -g1

to mk/build.mk. I used devel2 flavor.

  1. ./boot && ./configure && make -j
  2. 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'
Edited Mar 10, 2019 by niteria
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking