
#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): ahah! clang-6.0 doesn't accept its own assembly! {{{ $ clang-6.0 -fno-stack-protector -DTABLES_NEXT_TO_CODE -fno-stack-protector -Wall -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wmissing- declarations -Winline -Waggregate-return -Wpointer-arith -Wmissing- noreturn -Wnested-externs -Wredundant-decls -Wundef -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist- ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS '-DFS_NAMESPACE=rts' -fno-strict-aliasing -fno-common -DDTRACE -Irts/dist/build/./autogen '-Werror=unused-but-set-variable' '-Wno- error=inline' -O2 -fomit-frame-pointer -g '-DRtsWay="rts_thr"' -w -DTHREADED_RTS -x c rts/StgCRun.c -o /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc34756_0/ghc_1.s -fno- common -U__PIC__ -D__PIC__ -Wimplicit -S -O2 -include /Users/carter/WorkSpace/projects/active/ghc-head-may2018-clang- sad/includes/ghcversion.h -Iincludes -Iincludes/dist -Iincludes/dist- derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -Irts/dist/build -Irts/dist/build/./autogen -I/Users/carter/WorkSpace/projects/active/ghc-head-may2018-clang- sad/libraries/base/include -I/Users/carter/WorkSpace/projects/active/ghc- head-may2018-clang-sad/libraries/base/dist-install/build/include -I/Users/carter/WorkSpace/projects/active/ghc-head-may2018-clang- sad/libraries/integer-gmp/include -I/Users/carter/WorkSpace/projects/active/ghc-head-may2018-clang- sad/libraries/integer-gmp/dist-install/build/include -I/Users/carter/WorkSpace/projects/active/ghc-head-may2018-clang- sad/rts/dist/build -I/Users/carter/WorkSpace/projects/active/ghc-head- may2018-clang-sad/includes -I/Users/carter/WorkSpace/projects/active/ghc- head-may2018-clang-sad/includes/dist-derivedconstants/header 17:36:22 ~/W/p/a/ghc-head-may2018-clang-sad (master|…) $ 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:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler