[GHC] #14814: -g causes "cc failed in phase Assembler" in yaml package

GHC ghc-devs at haskell.org
Fri Feb 16 10:36:41 UTC 2018


#14814: -g causes "cc failed in phase Assembler" in yaml package
-------------------------------------+-------------------------------------
           Reporter:  Fuuzetsu       |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.2.2
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 {{{#!bash
 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
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14814>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list