Skip to content

9.2.2 bootstrap fails on macOS 12

Summary

9.2.2 bootstrap fails on macOS.

Steps to reproduce

system -W /opt/local/var/macports/build/_opt_local_ports_lang_ghc/ghc/work/src/ghc-9.2.2: export GHC=/opt/local/var/macports/build/_opt_local_ports_lang_ghc/ghc/work/bootstrap/bin/ghc PATH=/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/opt/local/var/macports/build/_opt_local_ports_lang_ghc/ghc/work/bootstrap/bin:/opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin MACPORTS_LEGACY_SUPPORT_DISABLED=1 CC=/usr/bin/clang CXX=/usr/bin/clang++ ; ./boot
:info:build "/opt/local/var/macports/build/_opt_local_ports_lang_ghc/ghc/work/bootstrap/bin/ghc" -hisuf hi -osuf  o -hcsuf hc -static  -H32m -O -Wall   -package-db libraries/bootstrapping.conf  -this-unit-id template-haskell-2.18.0.0 -hide-all-packages -package-env - -i -ilibraries/template-haskell/. -ilibraries/template-haskell/dist-boot/build -Ilibraries/template-haskell/dist-boot/build -ilibraries/template-haskell/dist-boot/build/./autogen -Ilibraries/template-haskell/dist-boot/build/./autogen -Ilibraries/template-haskell/.    -optP-include -optPlibraries/template-haskell/dist-boot/build/./autogen/cabal_macros.h -package-id base-4.16.1.0 -package-id ghc-boot-th-9.2.2 -package-id ghc-prim-0.8.0 -package-id pretty-1.1.3.6 -Wall -this-unit-id template-haskell -XHaskell2010 -XNoImplicitPrelude   -no-user-package-db -rtsopts  -fno-warn-deprecated-flags      -outputdir libraries/template-haskell/dist-boot/build   -c libraries/template-haskell/./Language/Haskell/TH.hs -o libraries/template-haskell/dist-boot/build/Language/Haskell/TH.o
:info:build <command line>: error: directory portion of "libraries/template-haskell/dist-boot/build/Language/Haskell/TH.o" does not exist (used with "-o" option.)
:info:build make[1]: *** [libraries/template-haskell/dist-boot/build/Language/Haskell/TH.o] Error 1

Full log: main.log.zip

Expected behavior

Succesful bootstrap.

Note: 9.2.1 compiles correctly with a simple patch. See: https://github.com/macports/macports-ports/pull/13990

Environment

  • GHC version used: 9.2.2.

Optional:

  • Operating System: macOS
  • System Architecture: 12.2.1
Edited by Steve Smith
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information