[GHC] #11202: T10667 is broken on OS X
#11202: T10667 is broken on OS X -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- 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. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11202> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#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
#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): Phab:D1602 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * differential: => Phab:D1602 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11202#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11202: T10667 and debug tests are broken on OS X -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: patch 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): Phab:D1602 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => patch -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11202#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11202: T10667 and debug tests are broken on OS X -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: patch 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): Phab:D1602 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"3640ae92fc1ffa283425203bba3dbf231fcb3e52/ghc" 3640ae92/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="3640ae92fc1ffa283425203bba3dbf231fcb3e52" Dwarf: Use .short instead of .hword on Darwin Apparently gnu as uses `.short` as a synonym for `.word`. To emit a 16-bit value one would use `.hword`. However, Darwin doesn't support `.hword`, instead taking `.short` to mean a 16-bit value. The insanity is nearly unbearable! OS X reference: https://developer.apple.com/library/mac/documentation/DeveloperTools/Ref erence/Assembler/040-Assembler_Directives/asm_directives.html#//apple_re f/doc/uid/TP30000823-TPXREF101 gnu as reference: https://sourceware.org/binutils/docs/as/hword.html#hword Test Plan: Validate Reviewers: austin Reviewed By: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1602 GHC Trac Issues: #11202 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11202#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11202: T10667 and debug tests are broken on OS X -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.2 Resolution: fixed | 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): Phab:D1602 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11202#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC