[Bug 279769] lang/ghc: Add support for powerpc64

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 Jul 2024 11:20:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279769

--- Comment #8 from Piotr Kubaj <pkubaj@FreeBSD.org> ---
OK, I'm trying to build on 14.1-RELEASE. I had to install converters/libiconv
to proceed with the build, otherwise it just exited with shared library not
found.

Then, next issue:
Command line: _build/stage0/bin/ghc -Wall -Wcompat -hisuf dyn_hi -osuf dyn_o
-hcsuf dyn_hc -fPIC -dynamic -hide-all-packages -no-user-package-db
'-package-env -' '-package-db _build/stage1/lib/package.conf.d' '-this-unit-id
hpc-bin-0.68' '-package-id array-0.5.6.0' '-package-id base-4.18.2.1'
'-package-id containers-0.6.7' '-package-id directory-1.3.8.5' '-package-id
filepath-1.4.300.1' '-package-id hpc-0.6.2.0' -i
-i/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/utils/hpc/build
-i/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/utils/hpc/build/hpc/autogen
-i/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/utils/hpc -Irts/include
-I_build/stage1/utils/hpc/build
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/libraries/directory
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/libraries/directory/build
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/libraries/unix/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/libraries/unix/build/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/libraries/time/lib/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/libraries/time/build/lib/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/libraries/containers/containers/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/libraries/containers/containers/build/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/libraries/bytestring/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/libraries/bytestring/build/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/libraries/base/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/libraries/base/build/include
-I/usr/local/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/libraries/ghc-bignum/include/
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/libraries/ghc-bignum/build/include/
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/libraries/ghc-bignum/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/libraries/ghc-bignum/build/include
-I/usr/local/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/rts/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/rts/build/include
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/rts/@FFIIncludeDir@
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/rts/build/@FFIIncludeDir@
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/rts/@LibdwIncludeDir@
-I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/rts/build/@LibdwIncludeDir@
-optP-include -optP_build/stage1/utils/hpc/build/hpc/autogen/cabal_macros.h
-optc--target=powerpc64-portbld-freebsd -outputdir
_build/stage1/utils/hpc/build -fdiagnostics-color=always -dynamic
-optl-Wl,-rpath,$ORIGIN/../lib/ppc64-freebsd-ghc-9.6.6
-optl-Wl,-rpath,$ORIGIN/../../../lib/ppc64-freebsd-ghc-9.6.6 -optl-Wl,-zorigin
-fno-use-rpaths -no-auto-link-packages -rtsopts -Wnoncanonical-monad-instances
-optc-Wno-unknown-pragmas -optP-Wno-nonportable-include-path
_build/stage1/utils/hpc/build/Main.dyn_o
_build/stage1/utils/hpc/build/HpcParser.dyn_o
_build/stage1/utils/hpc/build/HpcCombine.dyn_o
_build/stage1/utils/hpc/build/HpcDraft.dyn_o
_build/stage1/utils/hpc/build/HpcFlags.dyn_o
_build/stage1/utils/hpc/build/HpcLexer.dyn_o
_build/stage1/utils/hpc/build/HpcMarkup.dyn_o
_build/stage1/utils/hpc/build/HpcOverlay.dyn_o
_build/stage1/utils/hpc/build/HpcReport.dyn_o
_build/stage1/utils/hpc/build/HpcShowTix.dyn_o
_build/stage1/utils/hpc/build/HpcUtils.dyn_o
_build/stage1/utils/hpc/build/Paths_hpc_bin.dyn_o -o _build/stage1/bin/hpc -O2
-H32m -XHaskell2010 -no-global-package-db
-package-db=/wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.6/_build/stage1/inplace/package.conf.d
-ghcversion-file=rts/include/ghcversion.h
-ghcversion-file=rts/include/ghcversion.h
===> Command failed with error code: 1
ld: error: undefined reference due to --no-allow-shlib-undefined: _savefpr_14

I found what _savefpr_14 does at
https://www.ibm.com/docs/ja/aix/7.2?topic=epilogs-saving-gprs-fprs and replaced
it with stfd 14,-144(1). Currently build is proceeding.

-- 
You are receiving this mail because:
You are the assignee for the bug.