[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:41:45 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):

 also apple clang (some v5 llvm variant) rejects the assembly emited by
 clang v6!

 {{{
  /usr/bin/clang -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: warning: argument unused during compilation: '-fno-stack-protector'
 [-Wunused-command-line-argument]
 clang: warning: argument unused during compilation: '-D
 TABLES_NEXT_TO_CODE' [-Wunused-command-line-argument]
 clang: warning: argument unused during compilation: '-fno-common'
 [-Wunused-command-line-argument]
 clang: warning: argument unused during compilation: '-U __PIC__'
 [-Wunused-command-line-argument]
 clang: warning: argument unused during compilation: '-D __PIC__'
 [-Wunused-command-line-argument]
 clang -cc1as: fatal error: error in backend: No open frame
 }}}

 this definitely seems like a bug in llvm

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


More information about the ghc-tickets mailing list