
#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): I added {{{Stage1Only = NO}}} {{{ root@oamd64:$/usr/ports/lang/ghc/work/ghc-8.6.3$ tail mk/build.mk HADDOCK_DOCS = NO #EXTRA_HADDOCK_OPTS += --quickjump --hyperlinked-source # Don't strip debug and other unneeded symbols from libraries and executables. STRIP_CMD = : 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 Stage1Only = NO }}} Then: {{{ gmake clean gmake -j 8 && gmake binary-dist TAR_COMP=xz }}} But after untaring it, ghc-stage2 is still in {{{ghc/stage2/build/tmp}}}. {{{ root@talos:$/home/pkubaj/ghc-8.6.3-boot$ find . -name ghc-stage2 ./ghc/stage2/build/tmp/ghc-stage2 }}} And it's a binary: {{{ root@talos:$/home/pkubaj/ghc-8.6.3-boot$ file ./ghc/stage2/build/tmp/ghc- stage2 ./ghc/stage2/build/tmp/ghc-stage2: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, FreeBSD-style, for FreeBSD 12.0 (1200086), with debug_info, not stripped }}} I attempted to install it anyway with: {{{ CFLAGS="-Wl,-rpath=/usr/local/lib/gcc8 -isystem /usr/local/include" CXXFLAGS="-Wl,-rpath=/usr/local/lib/gcc8 -isystem /usr/local/include" CC=gcc8 CXX=g++8 ./configure gmake install }}} This threw the following error: {{{ ghc-cabal: '/usr/local/lib/ghc-8.6.3/bin/ghc-pkg' exited with an error: ghc-boot-th-8.6.3: Warning: haddock-interfaces: /usr/local/share/doc/ghc-8.6.3/html/libraries/ghc-boot-th-8.6.3/ghc-boot- th.haddock doesn't exist or isn't a file ghc-boot-th-8.6.3: dependency "base-4.12.0.0" doesn't exist (use --force to override) gmake[1]: *** [ghc.mk:991: install_packages] Error 1 gmake: *** [Makefile:51: install] Error 2 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15916#comment:32 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler