
#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 trommler): Replying to [comment:30 pkubaj]:
Add to mk/build.mk: {{{ INTEGER_LIBRARY = integer-simple BIN_DIST_NAME=ghc-8.6.3-boot BIN_DIST_TAR=ghc-8.6.3-boot.tar DYNAMIC_GHC_PROGRAMS = NO }}}
You want to add to `mk/build.mk`: {{{ Stage1Only = NO }}} Then you will find `inplace/bin/ghc-stage2` and that will be the compiler running on powerpc64. The file that is executed by `inplace/bin/ghc-stage1` runs on amd64 (the host machine) as you can see from the output of `file`: {{{ /ghc-8.6.2/inplace/lib> file bin/ghc-stage1 bin/ghc-stage1: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=846ac234d6774bbd928e3da433fd4f75482c0609, with debug_info, not stripped }}} Note: I built the cross compiler on Linux. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15916#comment:31 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler