[GHC] #14894: HEAD fails to build with -g1

GHC ghc-devs at haskell.org
Mon Mar 5 22:03:15 UTC 2018


#14894: HEAD fails to build with -g1
-------------------------------------+-------------------------------------
        Reporter:  niteria           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.5
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:  x86_64
 Type of failure:  Debugging         |  (amd64)
  information is incorrect           |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by niteria):

 Actually, building GHC is overkill. This reproduces on many tests when
 `-g1` is used.

 For example:
 {{{
 =====> simplCore.oneShot(optasm) 1 of 1 [0, 0, 0]
 cd "./prog003/simplCore.oneShot.run" &&  "/data/users/bnitka/ghc-HEAD-
 dwarf-lint-fixes-validate/inplace/test   spaces/ghc-stage2" --make -o
 simplCore.oneShot OneShot2 -dcore-lint -dcmm-lint -no-user-package-db
 -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups
 -fdiagnostics-color=never -fno-diagnostics-show-caret -g1 -dno-debug-
 output  -O -fasm -v0
 Compile failed (exit code 1) errors were:
 OneShot2.o(.debug_info+0x1bb): error: undefined reference to '.Lc5rU_die'
 OneShot2.o(.debug_info+0x1e3): error: undefined reference to '.Lc5rU_die'
 OneShot2.o(.debug_info+0x291): error: undefined reference to '.Lc5w8_die'
 OneShot2.o(.debug_info+0x2b9): error: undefined reference to '.Lc5wf_die'
 collect2: error: ld returned 1 exit status
 `gcc' failed in phase `Linker'. (Exit code: 1)

 *** unexpected failure for simplCore.oneShot(optasm)
 }}}

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


More information about the ghc-tickets mailing list