[GHC] #15780: ghc-8.4.4 failed to build on armv7 and aarch64
#15780: ghc-8.4.4 failed to build on armv7 and aarch64 -------------------------------------+------------------------------------- Reporter: juhpetersen | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.4.4 Keywords: | Operating System: Linux Architecture: arm | Type of failure: Building GHC | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- ghc-8.4.4 is failing to build for me on Fedora ARM archs (both 32bit and 64bit). https://koji.fedoraproject.org/koji/taskinfo?taskID=30284522 They both fail in the same way: {{{ "inplace/bin/ghc-stage1" -static -H32m -O -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist- ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -this-unit-id rts -dcmm-lint -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen -O2 -Wcpp-undef -Wnoncanonical-monad-instances -c rts/HeapStackCheck.cmm -o rts/dist/build/HeapStackCheck.o "inplace/bin/ghc-stage1" -static -H32m -O -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist- ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -this-unit-id rts -dcmm-lint -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen -O2 -Wcpp-undef -Wnoncanonical-monad-instances -c rts/StgMiscClosures.cmm -o rts/dist/build/StgMiscClosures.o ghc-stage1: panic! (the 'impossible' happened) (GHC version 8.4.4 for aarch64-unknown-linux): padLiveArgs -- i > regNum ?? CallStack (from HasCallStack): error, called at compiler/llvmGen/LlvmCodeGen/Base.hs:194:27 in ghc:LlvmCodeGen.Base Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug make[1]: *** [rts/ghc.mk:295: rts/dist/build/HeapStackCheck.o] Error 1 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15780> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15780: ghc-8.4.4 failed to build on armv7 and aarch64 ----------------------------------------+------------------------------ Reporter: juhpetersen | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.4.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+------------------------------ Comment (by juhpetersen): I suspect this is caused by commit 6e361d89 ("Multiple fixes / improvements for LLVM backend") -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15780#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15780: ghc-8.4.4 failed to build on armv7 and aarch64 ----------------------------------------+------------------------------ Reporter: juhpetersen | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.6.2 Component: Compiler | Version: 8.4.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+------------------------------ Changes (by juhpetersen): * priority: normal => high * milestone: => 8.6.2 Comment: Just for the record - only seems to affect ARM: https://koji.fedoraproject.org/koji/taskinfo?taskID=30340200 (ignore the arm failures there, because of missing llvm-5.0). -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15780#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15780: ghc-8.4.4 failed to build on armv7 and aarch64 ----------------------------------------+------------------------------ Reporter: juhpetersen | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.6.2 Component: Compiler | Version: 8.4.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+------------------------------ Changes (by vanessamchale): * cc: vanessa.mchale@… (added) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15780#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15780: ghc-8.4.4 failed to build on armv7 and aarch64 ----------------------------------------+------------------------------ Reporter: juhpetersen | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.6.2 Component: Compiler | Version: 8.4.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+------------------------------ Comment (by juhpetersen): (and the workaround is to revert the above commit - I am not sure if a partial workaround is workable) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15780#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15780: ghc-8.4.4 failed to build on armv7 and aarch64 ----------------------------------------+------------------------------ Reporter: juhpetersen | Owner: (none) Type: bug | Status: merge Priority: high | Milestone: 8.4.5 Component: Compiler | Version: 8.4.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+------------------------------ Changes (by bgamari): * status: new => merge * milestone: 8.6.2 => 8.4.5 Comment: This is fixed by c36a2b596a6ba9d7a0a80df01b3c041720c727ca. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15780#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15780: ghc-8.4.4 failed to build on armv7 and aarch64 ----------------------------------------+------------------------------ Reporter: juhpetersen | Owner: (none) Type: bug | Status: merge Priority: high | Milestone: 8.4.5 Component: Compiler | Version: 8.4.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+------------------------------ Comment (by Ben Gamari <ben@…>): In [changeset:"d8495549ba9d194815c2d0eaee6797fc7c00756a/ghc" d849554/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="d8495549ba9d194815c2d0eaee6797fc7c00756a" Fix for T14251 on ARM We now calculate the SSE register padding needed to fix the calling convention in LLVM in a robust way: grouping them by whether registers in that class overlap (with the same class overlapping itself). My prior patch assumed that no matter the platform, physical register Fx aliases with Dx, etc, for our calling convention. This is unfortunately not the case for any platform except x86-64. Test Plan: Only know how to test on x86-64, but it should be tested on ARM with: `make test WAYS=llvm && make test WAYS=optllvm` Reviewers: bgamari, angerman Reviewed By: bgamari Subscribers: rwbarton, carter GHC Trac Issues: #15780, #14251, #15747 Differential Revision: https://phabricator.haskell.org/D5254 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15780#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15780: ghc-8.4.4 failed to build on armv7 and aarch64 ----------------------------------------+------------------------------ Reporter: juhpetersen | Owner: (none) Type: bug | Status: merge Priority: high | Milestone: 8.4.5 Component: Compiler | Version: 8.4.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+------------------------------ Comment (by bgamari): Fixed in `ghc-8.6` with 2e23e1c7de01c92b038e55ce53d11bf9db993dd4. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15780#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15780: ghc-8.4.4 failed to build on armv7 and aarch64 ----------------------------------------+------------------------------ Reporter: juhpetersen | Owner: (none) Type: bug | Status: merge Priority: high | Milestone: 8.6.3 Component: Compiler | Version: 8.4.4 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+------------------------------ Changes (by osa1): * milestone: 8.4.5 => 8.6.3 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15780#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15780: ghc-8.4.4 failed to build on armv7 and aarch64 ----------------------------------------+------------------------------ Reporter: juhpetersen | Owner: (none) Type: bug | Status: closed Priority: high | Milestone: 8.6.3 Component: Compiler | Version: 8.4.4 Resolution: fixed | Keywords: Operating System: Linux | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+------------------------------ Changes (by bgamari): * status: merge => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15780#comment:9> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC