
#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): My wrappers for GCC have {{{--sysroot}}} option: {{{ root@openvas:$~$ cat /root/bin/powerpc64-portbld-freebsd-gcc #!/bin/sh exec /usr/local/bin/powerpc64-unknown-freebsd12.0-gcc --sysroot=/sysroots/powerpc64 "$@" }}} {{{ root@openvas:$~$ cat /root/bin/powerpc64-portbld-freebsd-ld #!/bin/sh exec /usr/local/bin/powerpc64-unknown-freebsd12.0-ld --sysroot=/sysroots/powerpc64 "$@" }}} This should take care of {{{CFLAGS}}} and {{{LDFLAGS}}}. There are no {{{RUNPATH}}} or {{{RPATH}}} entries: {{{ root@talos:$~$ readelf -d /usr/local/lib/ghc-8.6.3/bin/ghc-pkg | awk '/RUNPATH/ || /RPATH/' root@talos:$~$ }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15916#comment:40 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler