-g causes "cc failed in phase Assembler" in yaml package
git clone https://github.com/snoyberg/yaml
cd yaml
git checkout yaml-0.8.28
stack build yaml --resolver=lts-10.5 --ghc-options='-g'
With this I get (I'm using nix below but should be irrelevant):
[nix-shell:~/programming/yaml]$ stack build yaml --nix -j1 --resolver=lts-10.5 --ghc-options='-g'
raw-strings-qq-1.1: download
raw-strings-qq-1.1: configure
raw-strings-qq-1.1: build
raw-strings-qq-1.1: copy/register
Building all executables for `yaml' once. After a successful build of all of them, only specified executables will be rebuilt.
yaml-0.8.28: configure (lib + exe)
Configuring yaml-0.8.28...
yaml-0.8.28: build (lib + exe)
Preprocessing library for yaml-0.8.28..
Building library for yaml-0.8.28..
[ 1 of 10] Compiling Text.Libyaml ( Text/Libyaml.hs, .stack-work/dist/x86_64-linux-nix/Cabal-2.0.1.0/build/Text/Libyaml.o )
[ 2 of 10] Compiling Data.Yaml.Parser ( Data/Yaml/Parser.hs, .stack-work/dist/x86_64-linux-nix/Cabal-2.0.1.0/build/Data/Yaml/Parser.o )
[ 3 of 10] Compiling Data.Yaml.Internal ( Data/Yaml/Internal.hs, .stack-work/dist/x86_64-linux-nix/Cabal-2.0.1.0/build/Data/Yaml/Internal.o )
/run/user/1000/ghc25193_0/ghc_30.s: Assembler messages:
/home/shana/programming/yaml//run/user/1000/ghc25193_0/ghc_30.s:67519:0: error:
Error: can't resolve `.Lc1azh_entry_end' {*UND* section} - `c1azh_entry' {*UND* section}
|
67519 | .quad .Lc1azh_entry_end-c1azh_entry
| ^
`cc' failed in phase `Assembler'. (Exit code: 1)
Progress: 1/2
-- While building custom Setup.hs for package yaml-0.8.28 using:
/home/shana/.stack/setup-exe-cache/x86_64-linux-nix/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux-nix/Cabal-2.0.1.0 build lib:yaml exe:examples exe:json2yaml exe:yaml2json --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1 Completed 2 action(s).
$ uname -a
Linux kagami 4.14.12 #1-NixOS SMP Fri Jan 5 14:48:59 UTC 2018 x86_64 GNU/Linux
Trac metadata
Trac field | Value |
---|---|
Version | 8.2.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |