Skip to content

[Backport release-25.05] haskell.compiler.ghc94: don't roundtrip C compilation via assembly#411716

Merged
wolfgangwalther merged 4 commits intorelease-25.05from
backport-410085-to-release-25.05
Jul 1, 2025
Merged

[Backport release-25.05] haskell.compiler.ghc94: don't roundtrip C compilation via assembly#411716
wolfgangwalther merged 4 commits intorelease-25.05from
backport-410085-to-release-25.05

Conversation

@nixpkgs-ci
Copy link
Contributor

@nixpkgs-ci nixpkgs-ci bot commented May 28, 2025

Bot-based backport to release-25.05, triggered by a label in #410085.

  • Before merging, ensure that this backport is acceptable for the release.
    • Even as a non-committer, if you find that it is not acceptable, leave a comment.

@github-actions github-actions bot added 6.topic: haskell General-purpose, statically typed, purely functional programming language 4.workflow: backport This targets a stable branch labels May 28, 2025
@github-actions github-actions bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels May 28, 2025
@nix-owners nix-owners bot requested review from cdepillabout and guibou May 28, 2025 11:41
@wolfgangwalther
Copy link
Contributor

The check-cherry-picks job failed, because the commit is in haskell-updates. Should we update the script to also recognize haskell-updates as an allowed branch to pick from? I think that would make sense.

@wolfgangwalther
Copy link
Contributor

The check-cherry-picks job failed, because the commit is in haskell-updates. Should we update the script to also recognize haskell-updates as an allowed branch to pick from? I think that would make sense.

Did that in #411709.

@wolfgangwalther
Copy link
Contributor

As discussed in #411397 (comment), added the first 3 commits of #411397.

github-actions[bot]

This comment was marked as resolved.

@wolfgangwalther
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 411716
Commit: 7ba6092ab08c9beea65dd4d33e6f61ce7347f3d6


x86_64-linux

✅ 12 packages built:
  • elmPackages.elm-format
  • haskell.compiler.ghc902Binary
  • haskell.compiler.ghc94 (haskell.compiler.ghc948)
  • haskell.compiler.ghc94.doc (haskell.compiler.ghc948.doc)
  • haskell.compiler.ghc947
  • haskell.compiler.ghc947.doc
  • haskell.compiler.native-bignum.ghc94 (haskell.compiler.native-bignum.ghc948)
  • haskell.compiler.native-bignum.ghc94.doc (haskell.compiler.native-bignum.ghc948.doc)
  • haskell.compiler.native-bignum.ghc947
  • haskell.compiler.native-bignum.ghc947.doc
  • haskell.packages.ghc94.haskell-language-server
  • hedgewars

aarch64-linux

✅ 12 packages built:
  • elmPackages.elm-format
  • haskell.compiler.ghc902Binary
  • haskell.compiler.ghc94 (haskell.compiler.ghc948)
  • haskell.compiler.ghc94.doc (haskell.compiler.ghc948.doc)
  • haskell.compiler.ghc947
  • haskell.compiler.ghc947.doc
  • haskell.compiler.native-bignum.ghc94 (haskell.compiler.native-bignum.ghc948)
  • haskell.compiler.native-bignum.ghc94.doc (haskell.compiler.native-bignum.ghc948.doc)
  • haskell.compiler.native-bignum.ghc947
  • haskell.compiler.native-bignum.ghc947.doc
  • haskell.packages.ghc94.haskell-language-server
  • hedgewars

x86_64-darwin

❌ 10 packages failed to build:
  • elmPackages.elm-format
  • haskell.compiler.ghc94 (haskell.compiler.ghc948)
  • haskell.compiler.ghc94.doc (haskell.compiler.ghc948.doc)
  • haskell.compiler.ghc947
  • haskell.compiler.ghc947.doc
  • haskell.compiler.native-bignum.ghc94 (haskell.compiler.native-bignum.ghc948)
  • haskell.compiler.native-bignum.ghc94.doc (haskell.compiler.native-bignum.ghc948.doc)
  • haskell.compiler.native-bignum.ghc947
  • haskell.compiler.native-bignum.ghc947.doc
  • haskell.packages.ghc94.haskell-language-server
✅ 1 package built:
  • haskell.compiler.ghc902Binary

aarch64-darwin

❌ 10 packages failed to build:
  • elmPackages.elm-format
  • haskell.compiler.ghc94 (haskell.compiler.ghc948)
  • haskell.compiler.ghc94.doc (haskell.compiler.ghc948.doc)
  • haskell.compiler.ghc947
  • haskell.compiler.ghc947.doc
  • haskell.compiler.native-bignum.ghc94 (haskell.compiler.native-bignum.ghc948)
  • haskell.compiler.native-bignum.ghc94.doc (haskell.compiler.native-bignum.ghc948.doc)
  • haskell.compiler.native-bignum.ghc947
  • haskell.compiler.native-bignum.ghc947.doc
  • haskell.packages.ghc94.haskell-language-server
✅ 1 package built:
  • haskell.compiler.ghc902Binary

Error logs: `x86_64-darwin`
haskell.compiler.ghc94
for dir in compiler/stage1/build/./ compiler/stage1/build/GHC/ compiler/stage1/build/GHC/Builtin/ compiler/stage1/build/GHC/Builtin/Names/ compiler/stage1/build/GHC/Builtin/PrimOps/ compiler/stage1/build/GHC/Builtin/Types/ compiler/stage1/build/GHC/ByteCode/ compiler/stage1/build/GHC/Cmm/ compiler/stage1/build/GHC/Cmm/Dataflow/ compiler/stage1/build/GHC/Cmm/Info/ compiler/stage1/build/GHC/Cmm/Parser/ compiler/stage1/build/GHC/Cmm/Ppr/ compiler/stage1/build/GHC/Cmm/Switch/ compiler/stage1/build/GHC/CmmToAsm/ compiler/stage1/build/GHC/CmmToAsm/AArch64/ compiler/stage1/build/GHC/CmmToAsm/CFG/ compiler/stage1/build/GHC/CmmToAsm/Dwarf/ compiler/stage1/build/GHC/CmmToAsm/PPC/ compiler/stage1/build/GHC/CmmToAsm/Reg/ compiler/stage1/build/GHC/CmmToAsm/Reg/Graph/ compiler/stage1/build/GHC/CmmToAsm/Reg/Linear/ compiler/stage1/build/GHC/CmmToAsm/X86/ compiler/stage1/build/GHC/CmmToLlvm/ compiler/stage1/build/GHC/Core/ compiler/stage1/build/GHC/Core/Coercion/ compiler/stage1/build/GHC/Core/Map/ compiler/stage1/build/GHC/Core/Opt/ compiler/stage1/build/GHC/Core/Opt/Simplify/ compiler/stage1/build/GHC/Core/Opt/WorkWrap/ compiler/stage1/build/GHC/Core/TyCo/ compiler/stage1/build/GHC/Core/TyCon/ compiler/stage1/build/GHC/Core/Unfold/ compiler/stage1/build/GHC/CoreToStg/ compiler/stage1/build/GHC/Data/ compiler/stage1/build/GHC/Data/FastString/ compiler/stage1/build/GHC/Data/Graph/ compiler/stage1/build/GHC/Data/List/ compiler/stage1/build/GHC/Driver/ compiler/stage1/build/GHC/Driver/Backpack/ compiler/stage1/build/GHC/Driver/Config/ compiler/stage1/build/GHC/Driver/Config/Stg/ compiler/stage1/build/GHC/Driver/Env/ compiler/stage1/build/GHC/Driver/Errors/ compiler/stage1/build/GHC/Driver/Pipeline/ compiler/stage1/build/GHC/Hs/ compiler/stage1/build/GHC/Hs/Syn/ compiler/stage1/build/GHC/HsToCore/ compiler/stage1/build/GHC/HsToCore/Errors/ compiler/stage1/build/GHC/HsToCore/Foreign/ compiler/stage1/build/GHC/HsToCore/Match/ compiler/stage1/build/GHC/HsToCore/Pmc/ compiler/stage1/build/GHC/HsToCore/Pmc/Solver/ compiler/stage1/build/GHC/Iface/ compiler/stage1/build/GHC/Iface/Ext/ compiler/stage1/build/GHC/Iface/Recomp/ compiler/stage1/build/GHC/Iface/Tidy/ compiler/stage1/build/GHC/Linker/ compiler/stage1/build/GHC/Linker/Static/ compiler/stage1/build/GHC/Llvm/ compiler/stage1/build/GHC/Parser/ compiler/stage1/build/GHC/Parser/Errors/ compiler/stage1/build/GHC/Parser/PostProcess/ compiler/stage1/build/GHC/Platform/ compiler/stage1/build/GHC/Platform/Reg/ compiler/stage1/build/GHC/Rename/ compiler/stage1/build/GHC/Runtime/ compiler/stage1/build/GHC/Runtime/Eval/ compiler/stage1/build/GHC/Runtime/Heap/ compiler/stage1/build/GHC/Runtime/Interpreter/ compiler/stage1/build/GHC/Settings/ compiler/stage1/build/GHC/Stg/ compiler/stage1/build/GHC/Stg/InferTags/ compiler/stage1/build/GHC/Stg/Lift/ compiler/stage1/build/GHC/StgToCmm/ compiler/stage1/build/GHC/SysTools/ compiler/stage1/build/GHC/Tc/ compiler/stage1/build/GHC/Tc/Deriv/ compiler/stage1/build/GHC/Tc/Errors/ compiler/stage1/build/GHC/Tc/Errors/Hole/ compiler/stage1/build/GHC/Tc/Gen/ compiler/stage1/build/GHC/Tc/Instance/ compiler/stage1/build/GHC/Tc/Solver/ compiler/stage1/build/GHC/Tc/TyCl/ compiler/stage1/build/GHC/Tc/Types/ compiler/stage1/build/GHC/Tc/Utils/ compiler/stage1/build/GHC/Types/ compiler/stage1/build/GHC/Types/CostCentre/ compiler/stage1/build/GHC/Types/Fixity/ compiler/stage1/build/GHC/Types/Hint/ compiler/stage1/build/GHC/Types/Id/ compiler/stage1/build/GHC/Types/Name/ compiler/stage1/build/GHC/Types/TyThing/ compiler/stage1/build/GHC/Types/Unique/ compiler/stage1/build/GHC/Types/Var/ compiler/stage1/build/GHC/Unit/ compiler/stage1/build/GHC/Unit/Finder/ compiler/stage1/build/GHC/Unit/Home/ compiler/stage1/build/GHC/Unit/Module/ compiler/stage1/build/GHC/Utils/ compiler/stage1/build/GHC/Utils/Binary/ compiler/stage1/build/GHC/Utils/IO/ compiler/stage1/build/GHC/Utils/Monad/State/ compiler/stage1/build/GHC/Utils/Panic/ compiler/stage1/build/GHC/Utils/Ppr/ compiler/stage1/build/Language/Haskell/ compiler/stage1/build/Language/Haskell/Syntax/; do if test ! -d $dir; then mkdir -p $dir; fi done
libraries/ghc-heap/ghc.mk:3: warning: pattern recipe did not update peer target 'libraries/ghc-heap/dist-boot/build/GHC/Exts/Heap/ProfInfo/PeekProfInfo_ProfilingEnabled_hsc.h'.
libraries/ghc-heap/ghc.mk:3: warning: pattern recipe did not update peer target 'libraries/ghc-heap/dist-boot/build/GHC/Exts/Heap/ProfInfo/PeekProfInfo_ProfilingEnabled_hsc.c'.
"inplace/bin/hsc2hs" '--cc=clang' '--ld=clang'  --cross-safe -I/nix/store/xy7sch1x5vjirw2p0wa198zxydsll4x9-gmp-with-cxx-6.3.0-dev/include --cflag=-Wall --cflag=--target=x86_64-apple-darwin  --lflag=--target=x86_64-apple-darwin --lflag=-Wl,-no_fixup_chains --cflag=-Dx86_64_HOST_ARCH --cflag=-Ddarwin_HOST_OS --cflag=-D__GLASGOW_HASKELL__=900 '--cflag=--target=x86_64-apple-darwin' '--cflag=-Wall' '--cflag=-Ilibraries/ghci/dist-boot/build/./autogen' '--cflag=-Ilibraries/ghci/.' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/unix-2.7.2.2/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/unix-2.7.2.2/dist-install/build/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/time-1.9.3/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/time-1.9.3/dist-install/build/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/bytestring-0.10.12.1/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/bytestring-0.10.12.1/dist-install/build/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/dist-install/build/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/dist-install/build/include' '--cflag=-I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/include' '--cflag=-I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/dist-install/build/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/dist-install/build/include' '--cflag=-Wno-unknown-pragmas'  --cflag=-Ilibraries/ghci/dist-boot/build/./autogen --cflag=-include --cflag=libraries/ghci/dist-boot/build/./autogen/cabal_macros.h   libraries/ghci/./GHCi/FFI.hsc -o libraries/ghci/dist-boot/build/GHCi/FFI.hs
compiling libraries/ghci/dist-boot/build/GHCi/FFI_hsc_make.c failed (exit code 1)
rsp file was: "libraries/ghci/dist-boot/build/GHCi/hsc2hscall36890-0.rsp"
command was: clang -c libraries/ghci/dist-boot/build/GHCi/FFI_hsc_make.c -o libraries/ghci/dist-boot/build/GHCi/FFI_hsc_make.o -I/nix/store/xy7sch1x5vjirw2p0wa198zxydsll4x9-gmp-with-cxx-6.3.0-dev/include -Wall --target=x86_64-apple-darwin -Dx86_64_HOST_ARCH -Ddarwin_HOST_OS -D__GLASGOW_HASKELL__=900 --target=x86_64-apple-darwin -Wall -Ilibraries/ghci/dist-boot/build/./autogen -Ilibraries/ghci/. -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/unix-2.7.2.2/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/unix-2.7.2.2/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/time-1.9.3/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/time-1.9.3/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/bytestring-0.10.12.1/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/bytestring-0.10.12.1/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/dist-install/build/include -I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/include -I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/dist-install/build/include -Wno-unknown-pragmas -Ilibraries/ghci/dist-boot/build/./autogen -include libraries/ghci/dist-boot/build/./autogen/cabal_macros.h -I/private/tmp/nix-build-ghc-9.4.8.drv-0/ghc-9.4.8/inplace/lib/include/
error: In file included from FFI.hsc:17:
In file included from /nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include/ffi.h:66:
/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:10:10: fatal error: 'ffitarget_x86.h' file not found
   10 | #include "ffitarget_x86.h"
      |          ^~~~~~~~~~~~~~~~~
1 error generated.

libraries/hpc/ghc.mk:3: libraries/hpc/dist-boot/build/.depend-v.haskell: No such file or directory
make[1]: *** [libraries/ghci/ghc.mk:3: libraries/ghci/dist-boot/build/GHCi/FFI.hs] Error 1
make[1]: *** Waiting for unfinished jobs....
grep -v ' : [a-zA-Z]:/' compiler/stage1/build/.depend-v.haskell.tmp > compiler/stage1/build/.depend-v.haskell.tmp2
sed -e '/hs$/ p' -e '/hs$/ s/o /hi /g' -e '/hs$/ s/:/ : %hi: %o /' -e '/hs$/ s/^/$(eval $(call hi-rule,/' -e '/hs$/ s/$/))/' -e '/hs-boot$/ p' -e '/hs-boot$/ s/o-boot /hi-boot /g' -e '/hs-boot$/ s/:/ : %hi-boot: %o-boot /' -e '/hs-boot$/ s/^/$(eval $(call hi-rule,/' -e '/hs-boot$/ s/$/))/' compiler/stage1/build/.depend-v.haskell.tmp2 > compiler/stage1/build/.depend-v.haskell
make: *** [Makefile:126: all] Error 2

haskell.compiler.ghc947
"inplace/bin/hsc2hs" '--cc=clang' '--ld=clang'  --cross-safe -I/nix/store/xy7sch1x5vjirw2p0wa198zxydsll4x9-gmp-with-cxx-6.3.0-dev/include --cflag=-Wall --cflag=--target=x86_64-apple-darwin  --lflag=--target=x86_64-apple-darwin --lflag=-Wl,-no_fixup_chains --cflag=-Dx86_64_HOST_ARCH --cflag=-Ddarwin_HOST_OS --cflag=-D__GLASGOW_HASKELL__=900 '--cflag=--target=x86_64-apple-darwin' '--cflag=-Wall' '--cflag=-Ilibraries/ghc-heap/dist-boot/build/./autogen' '--cflag=-Ilibraries/ghc-heap/.' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/dist-install/build/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/dist-install/build/include' '--cflag=-I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/include' '--cflag=-I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/dist-install/build/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/dist-install/build/include' '--cflag=-Wno-unknown-pragmas'  --cflag=-Ilibraries/ghc-heap/dist-boot/build/./autogen --cflag=-include --cflag=libraries/ghc-heap/dist-boot/build/./autogen/cabal_macros.h   libraries/ghc-heap/./GHC/Exts/Heap/ProfInfo/PeekProfInfo_ProfilingEnabled.hsc -o libraries/ghc-heap/dist-boot/build/GHC/Exts/Heap/ProfInfo/PeekProfInfo_ProfilingEnabled.hs
libraries/ghc-heap/ghc.mk:3: warning: pattern recipe did not update peer target 'libraries/ghc-heap/dist-boot/build/GHC/Exts/Heap/ProfInfo/PeekProfInfo_ProfilingDisabled_hsc.h'.
libraries/ghc-heap/ghc.mk:3: warning: pattern recipe did not update peer target 'libraries/ghc-heap/dist-boot/build/GHC/Exts/Heap/ProfInfo/PeekProfInfo_ProfilingDisabled_hsc.c'.
"inplace/bin/hsc2hs" '--cc=clang' '--ld=clang'  --cross-safe -I/nix/store/xy7sch1x5vjirw2p0wa198zxydsll4x9-gmp-with-cxx-6.3.0-dev/include --cflag=-Wall --cflag=--target=x86_64-apple-darwin  --lflag=--target=x86_64-apple-darwin --lflag=-Wl,-no_fixup_chains --cflag=-Dx86_64_HOST_ARCH --cflag=-Ddarwin_HOST_OS --cflag=-D__GLASGOW_HASKELL__=900 '--cflag=--target=x86_64-apple-darwin' '--cflag=-Wall' '--cflag=-Ilibraries/ghci/dist-boot/build/./autogen' '--cflag=-Ilibraries/ghci/.' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/unix-2.7.2.2/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/unix-2.7.2.2/dist-install/build/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/time-1.9.3/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/time-1.9.3/dist-install/build/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/bytestring-0.10.12.1/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/bytestring-0.10.12.1/dist-install/build/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/dist-install/build/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/dist-install/build/include' '--cflag=-I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/include' '--cflag=-I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/dist-install/build/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include' '--cflag=-I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/dist-install/build/include' '--cflag=-Wno-unknown-pragmas'  --cflag=-Ilibraries/ghci/dist-boot/build/./autogen --cflag=-include --cflag=libraries/ghci/dist-boot/build/./autogen/cabal_macros.h   libraries/ghci/./GHCi/FFI.hsc -o libraries/ghci/dist-boot/build/GHCi/FFI.hs
compiling libraries/ghci/dist-boot/build/GHCi/FFI_hsc_make.c failed (exit code 1)
rsp file was: "libraries/ghci/dist-boot/build/GHCi/hsc2hscall36413-0.rsp"
command was: clang -c libraries/ghci/dist-boot/build/GHCi/FFI_hsc_make.c -o libraries/ghci/dist-boot/build/GHCi/FFI_hsc_make.o -I/nix/store/xy7sch1x5vjirw2p0wa198zxydsll4x9-gmp-with-cxx-6.3.0-dev/include -Wall --target=x86_64-apple-darwin -Dx86_64_HOST_ARCH -Ddarwin_HOST_OS -D__GLASGOW_HASKELL__=900 --target=x86_64-apple-darwin -Wall -Ilibraries/ghci/dist-boot/build/./autogen -Ilibraries/ghci/. -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/unix-2.7.2.2/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/unix-2.7.2.2/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/time-1.9.3/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/time-1.9.3/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/bytestring-0.10.12.1/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/bytestring-0.10.12.1/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/dist-install/build/include -I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/include -I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/dist-install/build/include -Wno-unknown-pragmas -Ilibraries/ghci/dist-boot/build/./autogen -include libraries/ghci/dist-boot/build/./autogen/cabal_macros.h -I/private/tmp/nix-build-ghc-9.4.7.drv-0/ghc-9.4.7/inplace/lib/include/
error: In file included from FFI.hsc:17:
In file included from /nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include/ffi.h:66:
/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:10:10: fatal error: 'ffitarget_x86.h' file not found
   10 | #include "ffitarget_x86.h"
      |          ^~~~~~~~~~~~~~~~~
1 error generated.

compiler/ghc.mk:241: compiler/stage1/build/.depend-v.haskell: No such file or directory
make[1]: *** [libraries/ghci/ghc.mk:3: libraries/ghci/dist-boot/build/GHCi/FFI.hs] Error 1
make[1]: *** Waiting for unfinished jobs....
libraries/ghc-heap/ghc.mk:3: warning: pattern recipe did not update peer target 'libraries/ghc-heap/dist-boot/build/GHC/Exts/Heap/ProfInfo/PeekProfInfo_ProfilingEnabled_hsc.h'.
libraries/ghc-heap/ghc.mk:3: warning: pattern recipe did not update peer target 'libraries/ghc-heap/dist-boot/build/GHC/Exts/Heap/ProfInfo/PeekProfInfo_ProfilingEnabled_hsc.c'.
make: *** [Makefile:126: all] Error 2

haskell.compiler.native-bignum.ghc94
"rm" -f libraries/hpc/dist-boot/build/.depend-v.haskell.tmp
"/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/bin/ghc" -M -static  -H32m -O -Wall   -package-db libraries/bootstrapping.conf  -this-unit-id hpc-0.6.1.0 -hide-all-packages -package-env - -i -ilibraries/hpc/. -ilibraries/hpc/dist-boot/build -Ilibraries/hpc/dist-boot/build -ilibraries/hpc/dist-boot/build/./autogen -Ilibraries/hpc/dist-boot/build/./autogen -Ilibraries/hpc/.  -optP-include -optPlibraries/hpc/dist-boot/build/./autogen/cabal_macros.h -package-id base-4.15.1.0 -package-id containers-0.6.4.1 -package-id deepseq-1.4.5.0 -package-id directory-1.3.6.2 -package-id filepath-1.4.2.1 -package-id time-1.9.3 -Wall -XHaskell98   -no-user-package-db -rtsopts  -fno-warn-deprecated-flags      -outputdir libraries/hpc/dist-boot/build -dep-makefile libraries/hpc/dist-boot/build/.depend-v.haskell.tmp -dep-suffix "" -include-pkg-deps  libraries/hpc/./Trace/Hpc/Util.hs  libraries/hpc/./Trace/Hpc/Mix.hs  libraries/hpc/./Trace/Hpc/Tix.hs  libraries/hpc/dist-boot/build/Trace/Hpc/Reflect.hs
compiling libraries/ghci/dist-boot/build/GHCi/FFI_hsc_make.c failed (exit code 1)
rsp file was: "libraries/ghci/dist-boot/build/GHCi/hsc2hscall36444-0.rsp"
command was: clang -c libraries/ghci/dist-boot/build/GHCi/FFI_hsc_make.c -o libraries/ghci/dist-boot/build/GHCi/FFI_hsc_make.o -Wall --target=x86_64-apple-darwin -Dx86_64_HOST_ARCH -Ddarwin_HOST_OS -D__GLASGOW_HASKELL__=900 --target=x86_64-apple-darwin -Wall -Ilibraries/ghci/dist-boot/build/./autogen -Ilibraries/ghci/. -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/unix-2.7.2.2/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/unix-2.7.2.2/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/time-1.9.3/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/time-1.9.3/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/bytestring-0.10.12.1/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/bytestring-0.10.12.1/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/dist-install/build/include -I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/include -I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/dist-install/build/include -Wno-unknown-pragmas -Ilibraries/ghci/dist-boot/build/./autogen -include libraries/ghci/dist-boot/build/./autogen/cabal_macros.h -I/private/tmp/nix-build-ghc-native-bignum-9.4.8.drv-0/ghc-9.4.8/inplace/lib/include/
error: In file included from FFI.hsc:17:
In file included from /nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include/ffi.h:66:
/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:10:10: fatal error: 'ffitarget_x86.h' file not found
   10 | #include "ffitarget_x86.h"
      |          ^~~~~~~~~~~~~~~~~
1 error generated.

libraries/ghc-heap/ghc.mk:3: libraries/ghc-heap/dist-boot/build/.depend-v.haskell: No such file or directory
make[1]: *** [libraries/ghci/ghc.mk:3: libraries/ghci/dist-boot/build/GHCi/FFI.hs] Error 1
make[1]: *** Waiting for unfinished jobs....
echo "libraries/hpc_dist-boot_depfile_haskell_EXISTS = YES" >> libraries/hpc/dist-boot/build/.depend-v.haskell.tmp
for dir in libraries/hpc/dist-boot/build/Trace/Hpc/; do if test ! -d $dir; then mkdir -p $dir; fi done
grep -v ' : [a-zA-Z]:/' libraries/hpc/dist-boot/build/.depend-v.haskell.tmp > libraries/hpc/dist-boot/build/.depend-v.haskell.tmp2
sed -e '/hs$/ p' -e '/hs$/ s/o /hi /g' -e '/hs$/ s/:/ : %hi: %o /' -e '/hs$/ s/^/$(eval $(call hi-rule,/' -e '/hs$/ s/$/))/' -e '/hs-boot$/ p' -e '/hs-boot$/ s/o-boot /hi-boot /g' -e '/hs-boot$/ s/:/ : %hi-boot: %o-boot /' -e '/hs-boot$/ s/^/$(eval $(call hi-rule,/' -e '/hs-boot$/ s/$/))/' libraries/hpc/dist-boot/build/.depend-v.haskell.tmp2 > libraries/hpc/dist-boot/build/.depend-v.haskell
make: *** [Makefile:126: all] Error 2

haskell.compiler.native-bignum.ghc947
"rm" -f libraries/hpc/dist-boot/build/.depend-v.haskell.tmp
"/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/bin/ghc" -M -static  -H32m -O -Wall   -package-db libraries/bootstrapping.conf  -this-unit-id hpc-0.6.1.0 -hide-all-packages -package-env - -i -ilibraries/hpc/. -ilibraries/hpc/dist-boot/build -Ilibraries/hpc/dist-boot/build -ilibraries/hpc/dist-boot/build/./autogen -Ilibraries/hpc/dist-boot/build/./autogen -Ilibraries/hpc/.  -optP-include -optPlibraries/hpc/dist-boot/build/./autogen/cabal_macros.h -package-id base-4.15.1.0 -package-id containers-0.6.4.1 -package-id deepseq-1.4.5.0 -package-id directory-1.3.6.2 -package-id filepath-1.4.2.1 -package-id time-1.9.3 -Wall -XHaskell98   -no-user-package-db -rtsopts  -fno-warn-deprecated-flags      -outputdir libraries/hpc/dist-boot/build -dep-makefile libraries/hpc/dist-boot/build/.depend-v.haskell.tmp -dep-suffix "" -include-pkg-deps  libraries/hpc/./Trace/Hpc/Util.hs  libraries/hpc/./Trace/Hpc/Mix.hs  libraries/hpc/./Trace/Hpc/Tix.hs  libraries/hpc/dist-boot/build/Trace/Hpc/Reflect.hs
compiling libraries/ghci/dist-boot/build/GHCi/FFI_hsc_make.c failed (exit code 1)
rsp file was: "libraries/ghci/dist-boot/build/GHCi/hsc2hscall36362-0.rsp"
command was: clang -c libraries/ghci/dist-boot/build/GHCi/FFI_hsc_make.c -o libraries/ghci/dist-boot/build/GHCi/FFI_hsc_make.o -Wall --target=x86_64-apple-darwin -Dx86_64_HOST_ARCH -Ddarwin_HOST_OS -D__GLASGOW_HASKELL__=900 --target=x86_64-apple-darwin -Wall -Ilibraries/ghci/dist-boot/build/./autogen -Ilibraries/ghci/. -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/unix-2.7.2.2/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/unix-2.7.2.2/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/time-1.9.3/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/time-1.9.3/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/bytestring-0.10.12.1/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/bytestring-0.10.12.1/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/base-4.15.1.0/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/ghc-bignum-1.1/dist-install/build/include -I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/include -I/nix/store/vhbymj2j83ngdfi66ghaimg7lg3wbl42-libffi-39-dev/dist-install/build/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include -I/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/dist-install/build/include -Wno-unknown-pragmas -Ilibraries/ghci/dist-boot/build/./autogen -include libraries/ghci/dist-boot/build/./autogen/cabal_macros.h -I/private/tmp/nix-build-ghc-native-bignum-9.4.7.drv-0/ghc-9.4.7/inplace/lib/include/
error: In file included from FFI.hsc:17:
In file included from /nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include/ffi.h:66:
/nix/store/ijxx4qvpxqkhsy2dfxpw71kk57xgrmz3-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/x86_64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:10:10: fatal error: 'ffitarget_x86.h' file not found
   10 | #include "ffitarget_x86.h"
      |          ^~~~~~~~~~~~~~~~~
1 error generated.

libraries/ghc-heap/ghc.mk:3: libraries/ghc-heap/dist-boot/build/.depend-v.haskell: No such file or directory
make[1]: *** [libraries/ghci/ghc.mk:3: libraries/ghci/dist-boot/build/GHCi/FFI.hs] Error 1
make[1]: *** Waiting for unfinished jobs....
echo "libraries/hpc_dist-boot_depfile_haskell_EXISTS = YES" >> libraries/hpc/dist-boot/build/.depend-v.haskell.tmp
for dir in libraries/hpc/dist-boot/build/Trace/Hpc/; do if test ! -d $dir; then mkdir -p $dir; fi done
grep -v ' : [a-zA-Z]:/' libraries/hpc/dist-boot/build/.depend-v.haskell.tmp > libraries/hpc/dist-boot/build/.depend-v.haskell.tmp2
sed -e '/hs$/ p' -e '/hs$/ s/o /hi /g' -e '/hs$/ s/:/ : %hi: %o /' -e '/hs$/ s/^/$(eval $(call hi-rule,/' -e '/hs$/ s/$/))/' -e '/hs-boot$/ p' -e '/hs-boot$/ s/o-boot /hi-boot /g' -e '/hs-boot$/ s/:/ : %hi-boot: %o-boot /' -e '/hs-boot$/ s/^/$(eval $(call hi-rule,/' -e '/hs-boot$/ s/$/))/' libraries/hpc/dist-boot/build/.depend-v.haskell.tmp2 > libraries/hpc/dist-boot/build/.depend-v.haskell
make: *** [Makefile:126: all] Error 2


Error logs: `aarch64-darwin`
haskell.compiler.ghc94
[ 48 of 269] Compiling Distribution.Compat.Environment ( libraries/Cabal/Cabal/src/Distribution/Compat/Environment.hs, bootstrapping/Distribution/Compat/Environment.o )

In file included from /private/tmp/nix-build-ghc-9.4.8.drv-0/ghc81597_0/ghc_399.c:4:0: error:

In file included from /nix/store/8dwjhf0rdb3v2cwa9ns54xn5nqx5qhh5-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffi.h:66:0: error:

/nix/store/8dwjhf0rdb3v2cwa9ns54xn5nqx5qhh5-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:6:10: error:
fatal error: 'ffitarget_arm64.h' file not found
6 | #include "ffitarget_arm64.h"
| ^~~~~~~~~~~~~~~~~~~
|
6 | #include "ffitarget_arm64.h"
| ^
1 error generated.
clang' failed in phase C Compiler'. (Exit code: 1)
ghc/ghc.mk:110: ghc/stage1/package-data.mk: No such file or directory
make[1]: *** [utils/ghc-cabal/ghc.mk:50: utils/ghc-cabal/dist/build/tmp/ghc-cabal] Error 1
make: *** [Makefile:124: all] Error 2

haskell.compiler.ghc947
[ 48 of 269] Compiling Distribution.Compat.Environment ( libraries/Cabal/Cabal/src/Distribution/Compat/Environment.hs, bootstrapping/Distribution/Compat/Environment.o )

In file included from /private/tmp/nix-build-ghc-9.4.7.drv-0/ghc81490_0/ghc_399.c:4:0: error:

In file included from /nix/store/8dwjhf0rdb3v2cwa9ns54xn5nqx5qhh5-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffi.h:66:0: error:

/nix/store/8dwjhf0rdb3v2cwa9ns54xn5nqx5qhh5-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:6:10: error:
fatal error: 'ffitarget_arm64.h' file not found
6 | #include "ffitarget_arm64.h"
| ^~~~~~~~~~~~~~~~~~~
|
6 | #include "ffitarget_arm64.h"
| ^
1 error generated.
clang' failed in phase C Compiler'. (Exit code: 1)
ghc/ghc.mk:110: ghc/stage1/package-data.mk: No such file or directory
make[1]: *** [utils/ghc-cabal/ghc.mk:50: utils/ghc-cabal/dist/build/tmp/ghc-cabal] Error 1
make: *** [Makefile:124: all] Error 2

haskell.compiler.native-bignum.ghc94
[ 48 of 269] Compiling Distribution.Compat.Environment ( libraries/Cabal/Cabal/src/Distribution/Compat/Environment.hs, bootstrapping/Distribution/Compat/Environment.o )

In file included from /private/tmp/nix-build-ghc-native-bignum-9.4.8.drv-0/ghc81867_0/ghc_399.c:4:0: error:

In file included from /nix/store/8dwjhf0rdb3v2cwa9ns54xn5nqx5qhh5-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffi.h:66:0: error:

/nix/store/8dwjhf0rdb3v2cwa9ns54xn5nqx5qhh5-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:6:10: error:
fatal error: 'ffitarget_arm64.h' file not found
6 | #include "ffitarget_arm64.h"
| ^~~~~~~~~~~~~~~~~~~
|
6 | #include "ffitarget_arm64.h"
| ^
1 error generated.
clang' failed in phase C Compiler'. (Exit code: 1)
ghc/ghc.mk:110: ghc/stage1/package-data.mk: No such file or directory
make[1]: *** [utils/ghc-cabal/ghc.mk:50: utils/ghc-cabal/dist/build/tmp/ghc-cabal] Error 1
make: *** [Makefile:124: all] Error 2

haskell.compiler.native-bignum.ghc947
[ 48 of 269] Compiling Distribution.Compat.Environment ( libraries/Cabal/Cabal/src/Distribution/Compat/Environment.hs, bootstrapping/Distribution/Compat/Environment.o )

In file included from /private/tmp/nix-build-ghc-native-bignum-9.4.7.drv-0/ghc81675_0/ghc_399.c:4:0: error:

In file included from /nix/store/8dwjhf0rdb3v2cwa9ns54xn5nqx5qhh5-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffi.h:66:0: error:

/nix/store/8dwjhf0rdb3v2cwa9ns54xn5nqx5qhh5-ghc-binary-9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:6:10: error:
fatal error: 'ffitarget_arm64.h' file not found
6 | #include "ffitarget_arm64.h"
| ^~~~~~~~~~~~~~~~~~~
|
6 | #include "ffitarget_arm64.h"
| ^
1 error generated.
clang' failed in phase C Compiler'. (Exit code: 1)
ghc/ghc.mk:110: ghc/stage1/package-data.mk: No such file or directory
make[1]: *** [utils/ghc-cabal/ghc.mk:50: utils/ghc-cabal/dist/build/tmp/ghc-cabal] Error 1
make: *** [Makefile:124: all] Error 2


Before the additional commits, this failed during bootstrap of GHC 9.0.2 on darwin. Now it fails while building GHC 9.4.x. Progress, but still not there, I guess.

@sternenseemann
Copy link
Member

Now it fails while building GHC 9.4.x.

I'm not aware of this failure?

@wolfgangwalther
Copy link
Contributor

Now it fails while building GHC 9.4.x.

I'm not aware of this failure?

Not sure what you mean. Logs are in the comment above.

This is more robust when new bindists are added to expressions since no
additional conditional needs to be updated.

(cherry picked from commit 3c3fef0)
We can/should use 9.0.2 to bootstrap some GHC versions, having the
bindist makes things easier in some cases.

- To bootstrap GHC 9.4 using 9.2 is not possible and 8.10.7 doesn't
  always work. Since source built 9.0.2 is broken on darwin at the
  moment, the bindist helps. Reference #367686, #410085.
- To bootstrap GHC 9.2 without GHC 8.10. Reference #346214.

(cherry picked from commit 221e06a)
GHC can be used to compile C sources which causes it to drive the
configured C compiler. This is particularly relevant during GHC's own
compilation, e.g. when building the rts. GHC takes a peculiar approach,
always generating intermediate assembly instead of letting the C
compiler emit object files directly. This causes an assembler check in
clang >= 18 to fail on rts/StgCRun.c, failing the GHC build on darwin
completely.

Later GHC versions don't exhibit this issue since object code is emitted
directly since 9.6. The easiest way to resolve the compilation failure
seems to backport this change. However, the patch only applies on
GHC 9.4 which is done here. The patch may be difficult to backport
further, as the changed code was extensively refactored in GHC 9.4.

Reference #367686.

(cherry picked from commit 16dca70)
@wolfgangwalther wolfgangwalther force-pushed the backport-410085-to-release-25.05 branch from 7ba6092 to 5ebbed3 Compare June 30, 2025 12:44
@github-actions github-actions bot dismissed their stale review June 30, 2025 12:46

All cherry-picks are good now, thank you!

Copy link
Member

@sternenseemann sternenseemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wolfgangwalther can we trust the rebuild count for aarch64 now as well? If so, feel free to merge.

@wolfgangwalther
Copy link
Contributor

Yeah, the eval + rebuild counts should be fully platform-specific for a while now.

GHC 9.4 on darwin is still broken, but it was before this PR as well. Hopefully we can still fix this, this currently prevents me from updating nixpkgs in PostgREST (where we are still stuck on GHC 9.4, because of the pkgsStatic stuff).

@wolfgangwalther wolfgangwalther merged commit d1502a9 into release-25.05 Jul 1, 2025
27 of 28 checks passed
@wolfgangwalther wolfgangwalther deleted the backport-410085-to-release-25.05 branch July 1, 2025 09:35
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jul 1, 2025
@nixpkgs-ci nixpkgs-ci bot added the 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. label Jul 1, 2025
@sternenseemann
Copy link
Member

I'm optimistic a backport of #421477 will fix the 9.4 issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 6.topic: haskell General-purpose, statically typed, purely functional programming language 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants