[GHC] #15207: bad dwarf frame in stgRun.c when compiled with with gcc on mac and assembled by as/gcc/clang (aka apple clang assembler)

GHC ghc-devs at haskell.org
Thu May 31 21:33:01 UTC 2018


#15207: bad dwarf frame in stgRun.c when compiled with with gcc on mac and
assembled by as/gcc/clang (aka apple clang assembler)
-------------------------------------+-------------------------------------
        Reporter:  carter            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Runtime System    |              Version:  8.4.3
      Resolution:                    |             Keywords:
Operating System:  MacOS X           |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by carter):

 running the build with clang-6 from llvm tells us something more useful

 though still a slightly tricky error message cause theres no line numbers
 {{{
 clang-6.0  -fno-stack-protector -DTABLES_NEXT_TO_CODE -Iincludes
 -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-
 ghcconstants/header -Irts -Irts/dist/build -Irts/dist/build
 -Irts/dist/build/./autogen -fno-common -U__PIC__ -D__PIC__ -x assembler -c
 /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc34265_0/ghc_1.s -o
 rts/dist/build/StgCRun.thr_o
 clang-6.0: warning: argument unused during compilation: '-fno-stack-
 protector' [-Wunused-command-line-argument]
 clang-6.0: warning: argument unused during compilation: '-D
 TABLES_NEXT_TO_CODE' [-Wunused-command-line-argument]
 clang-6.0: warning: argument unused during compilation: '-fno-common'
 [-Wunused-command-line-argument]
 clang-6.0: warning: argument unused during compilation: '-U __PIC__'
 [-Wunused-command-line-argument]
 clang-6.0: warning: argument unused during compilation: '-D __PIC__'
 [-Wunused-command-line-argument]
 <unknown>:0: error: this directive must appear between .cfi_startproc and
 .cfi_endproc directives
 <unknown>:0: error: this directive must appear between .cfi_startproc and
 .cfi_endproc directives
 <unknown>:0: error: this directive must appear between .cfi_startproc and
 .cfi_endproc directives
 <unknown>:0: error: this directive must appear between .cfi_startproc and
 .cfi_endproc directives
 <unknown>:0: error: this directive must appear between .cfi_startproc and
 .cfi_endproc directives
 <unknown>:0: error: this directive must appear between .cfi_startproc and
 .cfi_endproc directives
 <unknown>:0: error: this directive must appear between .cfi_startproc and
 .cfi_endproc directives
 <unknown>:0: error: this directive must appear between .cfi_startproc and
 .cfi_endproc directives
 <unknown>:0: error: this directive must appear between .cfi_startproc and
 .cfi_endproc directives

 }}}

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


More information about the ghc-tickets mailing list