Skip to content

Bootstrap of ghc 9.2.3 Fails on macOS

Bootstrap command per instructions

:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_ports_lang_ghc/ghc/work/ghc-9.2.3-x86_64-apple-darwin" && /usr/bin/make -j1 -w install

Error

: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.2.0 -package-id ghc-boot-th-9.2.3 -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.)

Full logs

main.log.xz

Edited by Steve Smith
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information