
#11202: T10667 and debug tests are broken on OS X -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: MacOS X | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: debug, T10667 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * testcase: => debug, T10667 * failure: None/Unknown => Compile-time crash * milestone: => 8.0.1 * owner: => bgamari * os: Unknown/Multiple => MacOS X Old description:
It fails with, {{{ =====> T10667(normal) 2 of 18 [0, 1, 0] cd ./codeGen/should_compile && "/Users/bgamari/ghc/inplace/test spaces /ghc-stage2" -c T10667.hs -fforce-recomp -dcore-lint -dcmm-lint -dno- debug-output -no-user-package-db -rtsopts -fno-warn-tabs -fno-warn- missed-specialisations -fno-ghci-history -g > T10667.comp.stderr 2>&1 Compile failed (status 256) errors were:
/var/folders/4l/06tjh3z978l_b5plmkq08ff80000gq/T/ghc56547_0/ghc_1.s:101:2: error: error: unknown directive .hword 3 ^
/var/folders/4l/06tjh3z978l_b5plmkq08ff80000gq/T/ghc56547_0/ghc_1.s:129:2: error: error: unknown directive .hword 1 ^
/var/folders/4l/06tjh3z978l_b5plmkq08ff80000gq/T/ghc56547_0/ghc_1.s:131:2: error: error: unknown directive .hword 13 ^
. . . }}} [[https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/Assembler/040-Assembler_Directives/asm_directives.html#//apple_ref/doc/uid/TP30000823-TPXREF101|Apparently]] we should be using `.short` on Darwin.
New description: This is due to the use of `-g` by this testcase, which apparently the broken on Darwin. The test fails with, {{{ =====> T10667(normal) 2 of 18 [0, 1, 0] cd ./codeGen/should_compile && "/Users/bgamari/ghc/inplace/test spaces /ghc-stage2" -c T10667.hs -fforce-recomp -dcore-lint -dcmm-lint -dno- debug-output -no-user-package-db -rtsopts -fno-warn-tabs -fno-warn-missed- specialisations -fno-ghci-history -g > T10667.comp.stderr 2>&1 Compile failed (status 256) errors were: /var/folders/4l/06tjh3z978l_b5plmkq08ff80000gq/T/ghc56547_0/ghc_1.s:101:2: error: error: unknown directive .hword 3 ^ /var/folders/4l/06tjh3z978l_b5plmkq08ff80000gq/T/ghc56547_0/ghc_1.s:129:2: error: error: unknown directive .hword 1 ^ /var/folders/4l/06tjh3z978l_b5plmkq08ff80000gq/T/ghc56547_0/ghc_1.s:131:2: error: error: unknown directive .hword 13 ^ . . . }}} [[https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/Assembler/040-Assembler_Directives/asm_directives.html#//apple_ref/doc/uid/TP30000823-TPXREF101|Apparently]] we should be using `.short` on Darwin. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11202#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler