can't build ghc on Mac with any level of dwarf for base library
i tried building base in 8.6.2 with -g1 and i get the following error pretty consitently from the system linker
ld: in /Users/carter/dev-checkouts/ghc-tree/ghc-8.6.2-checkout-build/libraries/base/dist-install/build/libHSbase-220.127.116.11_p.a(Base.p_o), sectionForAddress(0x8066) address not in any section for architecture x86_64
if i do
GhcLibHcOpts += -g1
or higher in the build.mk file, i get this linker error at some point in building ghc or resulting executables .
I'm not sure if its *just* for profiled libs or every lib, but it looks like theres actually no way to handle the number of dwarf sections for large archives on OSX?!
or equivalently, we may need support for more parsimonious dwarf annotations if at all?
point being: if we can't support debug symbols for base on a tier 1 platform, either debug symbols working isn't part of our support SLA for tier 1 platforms, OR its a release blocker we've not had in our validate configuration matrix.