yaml-0.8.23.3 fails to build with -g
yaml-0.8.23.3
fails to build with an assembler error,
$ cabal unpack yaml-0.8.23.3
$ ghc Data/Yaml/Internal.hs -O -g -keep-tmp-files -ddump-cmm -ddump-to-file -ddump-stg -ddump-cmm-verbose
[2 of 2] Compiling Data.Yaml.Internal ( Data/Yaml/Internal.hs, Data/Yaml/Internal.o )
/tmp/ghc26515_0/ghc_6.s: Assembler messages:
/tmp/ghc26515_0/ghc_6.s:64491:0: error:
Error: can't resolve `.LcsyP_entry_end' {*UND* section} - `csyP_entry' {*UND* section}
|
64491 | .quad .LcsyP_entry_end-csyP_entry
| ^
`gcc' failed in phase `Assembler'. (Exit code: 1)
Strangely enough, there are local symbols .LcsyP
and .LcsyP_end
are defined in the resulting assembler (as local labels within DataziYamlziInternal_zdwisNumeric_info
), but not .LcsyP_entry_end
nor csyP_entry
.