
Replying to [comment:20 pkubaj]:
Also, when I bootstrap on amd64 and apply https://ghc.haskell.org/trac/ghc/attachment/ticket/15411/Disable-unboxed- arrays.patch, the following happens: {{{ "inplace/bin/ghc-stage1" -hisuf hi -osuf o -hcsuf hc -static -O0 -H64m -Wall -this-unit-id base-4.12.0.0 -hide-all-packages -i -ilibraries/base/. -ilibraries/base/dist-install/build -Ilibraries/base /dist-install/build -ilibraries/base/dist-install/build/./autogen -Ilibraries/base/dist-install/build/./autogen -Ilibraries/base/include -Ilibraries/base/dist-install/build/include -optP-include -optPlibraries/base/dist-install/build/./autogen/cabal_macros.h -package- id ghc-prim-0.5.3 -package-id integer-simple-0.1.1.1 -package-id rts -this-unit-id base -Wcompat -Wnoncanonical-monad-instances -XHaskell2010 -O0 -no-user-package-db -rtsopts -Wno-trustworthy-safe -Wno-deprecated- flags -Wnoncanonical-monad-instances -odir libraries/base/dist- install/build -hidir libraries/base/dist-install/build -stubdir
libraries/base/dist-install/build/GHC/Num.o ghc-stage1: panic! (the 'impossible' happened) (GHC version 8.6.3 for powerpc64-portbld-freebsd): Can't use Natural in base }}} The error message says `powerpc64-portbld-freebsd` and it could also be an instance of #15411.
On openSUSE I conditionally apply the patch (workaround) only on
Without this patch, it compiles fine on amd64, but then fails on
#15916: GHC doesn't build on powerpc64 architecture on systems other than GNU / Linux -------------------------------------+------------------------------------- Reporter: pkubaj | Owner: trommler Type: feature request | Status: patch Priority: normal | Milestone: 8.10.1 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: powerpc64 Type of failure: Building GHC | Test Case: failed | Blocked By: 15411 | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | https://gitlab.haskell.org/ghc/ghc/merge_requests/81 -------------------------------------+------------------------------------- Comment (by pkubaj): Replying to [comment:23 trommler]: libraries/base/dist-install/build -c libraries/base/./GHC/Num.hs -o powerpc64, but just for fun I applied it on all platforms and build (in my home project) passes no problem. powerpc64.
The latter is due to #15411.
There is another patch that I apply to 8.6.3. That patch fixes an issue mentioned in my comments on #15399. You can find the patch in Phab:D5001.
I can see that the patch at Phab:D5001 is already in 8.6.3. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15916#comment:26 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler