`unresolvable R_AARCH64_ABS64 relocation against symbol `environ'` on musl/AArch64
CI Log:
| Run Ghc LinkHs (Stage0 InTreeLibs): _build/stage0/utils/ghc-pkg/build/Main.o => _build/stage0/bin/ghc-pkg
/usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld.bfd: _build/stage0/lib/../lib/aarch64-linux-ghc-9.4.4/unix-2.8.2.1-inplace/libHSunix-2.8.2.1-inplace.a(Internal.o)(.data+0x48): unresolvable R_AARCH64_ABS64 relocation against symbol `environ'
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
Command line: /usr/bin/ghc -Wall -Wcompat -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db '-package-env -' '-package-db _build/stage0/lib/package.conf.d' '-this-unit-id ghc-pkg-9.9.20230923-inplace' '-package-id Cabal-3.11.0.0-inplace' '-package-id Cabal-syntax-3.11.0.0-inplace' '-package-id base-4.17.0.0' '-package-id binary-0.8.9.1-inplace' '-package-id bytestring-0.11.5.1-inplace' '-package-id containers-0.6.7-inplace' '-package-id directory-1.3.8.1-inplace' '-package-id filepath-1.4.100.4-inplace' '-package-id ghc-boot-9.9-inplace' '-package-id process-1.6.17.0-inplace' '-package-id unix-2.8.2.1-inplace' -i -i/builds/ghc/ghc/_build/stage0/utils/ghc-pkg/build -i/builds/ghc/ghc/_build/stage0/utils/ghc-pkg/build/ghc-pkg/autogen -i/builds/ghc/ghc/utils/ghc-pkg -I_build/stage0/utils/ghc-pkg/build -I/builds/ghc/ghc/libraries/process/include -I/builds/ghc/ghc/_build/stage0/libraries/process/build/include -I/builds/ghc/ghc/libraries/directory -I/builds/ghc/ghc/_build/stage0/libraries/directory/build -I/builds/ghc/ghc/libraries/unix/include -I/builds/ghc/ghc/_build/stage0/libraries/unix/build/include -I/builds/ghc/ghc/libraries/time/lib/include -I/builds/ghc/ghc/_build/stage0/libraries/time/build/lib/include -I/builds/ghc/ghc/libraries/containers/containers/include -I/builds/ghc/ghc/_build/stage0/libraries/containers/containers/build/include -I/builds/ghc/ghc/libraries/bytestring/include -I/builds/ghc/ghc/_build/stage0/libraries/bytestring/build/include -I/usr/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/base-4.17.0.0/include -I/usr/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/ghc-bignum-1.3/include -I/usr/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/rts-1.0.2/include -optP-include -optP_build/stage0/utils/ghc-pkg/build/ghc-pkg/autogen/cabal_macros.h -outputdir _build/stage0/utils/ghc-pkg/build -XHaskell2010 -no-auto-link-packages -rtsopts -optc-Wno-error=inline _build/stage0/utils/ghc-pkg/build/Main.o -o _build/stage0/bin/ghc-pkg -O0 -H64m
===> Command failed with error code: 1
Error when running Shake build system:
at want, called at src/Main.hs:124:44 in main:Main
* Depends on: test:all_deps
at apply1, called at src/Development/Shake/Internal/Rules/Rerun.hs:41:5 in shake-0.19.7-b6ced05e3692ed2625e59c2f17a18f7f254cc06d8d32ca7a806356bcb4fb5285:Development.Shake.Internal.Rules.Rerun
* Depends on: test:ghc
at need, called at src/Rules/Test.hs:344:3 in main:Rules.Test
* Depends on: _build/stage1/lib/package.conf.d/rts-1.0.2.conf
at apply1, called at src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.19.7-b6ced05e3692ed2625e59c2f17a18f7f254cc06d8d32ca7a806356bcb4fb5285:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (ContextDataKey (Context {stage = Stage1, package = Package {pkgType = Library, pkgName = "rts", pkgPath = "rts"}, way = v, iplace = Final}))
at need, called at src/Hadrian/Oracles/Cabal/Rules.hs:54:9 in main:Hadrian.Oracles.Cabal.Rules
* Depends on: _build/stage1/rts/setup-config
at need, called at src/Hadrian/Builder.hs:77:5 in main:Hadrian.Builder
* Depends on: _build/stage0/bin/ghc-pkg
at cmd', called at src/Builder.hs:393:23 in main:Builder
at cmdArgs, called at src/Builder.hs:573:8 in main:Builder
at cmdArgs, called at src/Builder.hs:597:18 in main:Builder
at cmdArgs, called at src/Builder.hs:597:18 in main:Builder
at cmdArgs, called at src/Builder.hs:597:18 in main:Builder
at error, called at src/Builder.hs:642:13 in main:Builder
* Raised the exception:
Command failed
Build failed.