@@ -167,6 +167,8 @@ buildGhcStage1 opts cabal ghc0 dst = do
167
167
ExitSuccess -> pure ()
168
168
ExitFailure n -> do
169
169
putStrLn $ " cabal-install failed with error code: " ++ show n
170
+ putStrLn cabal_stdout
171
+ putStrLn cabal_stderr
170
172
putStrLn $ " Logs can be found in \" " ++ dst ++ " /cabal.{stdout,stderr}\" "
171
173
exitFailure
172
174
@@ -496,17 +498,17 @@ buildBootLibraries cabal ghc ghcpkg derive_constants genapply genprimop opts dst
496
498
run_genapply [derived_constants, " -V32" ] (src_rts </> " AutoApply_V32.cmm" )
497
499
run_genapply [derived_constants, " -V64" ] (src_rts </> " AutoApply_V64.cmm" )
498
500
499
- -- Generate primop code for ghc-prim
501
+ -- Generate primop code for ghc-internal
500
502
--
501
- -- Note that this can't be done in a Setup.hs for ghc-prim because
503
+ -- Note that this can't be done in a Setup.hs for ghc-internal because
502
504
-- cabal-install can't build Setup.hs because it depends on base, Cabal, etc.
503
505
-- libraries that aren't built yet.
504
506
let primops_txt = src </> " libraries/ghc/GHC/Builtin/primops.txt"
505
507
let primops_txt_pp = primops_txt <.> " .pp"
506
508
primops <- readCreateProcess (shell $ " gcc -E -undef -traditional -P -x c " ++ primops_txt_pp) " "
507
509
writeFile primops_txt primops
508
- writeFile (src </> " libraries/ghc-prim/ GHC/Prim.hs" ) =<< readCreateProcess (runGenPrimop genprimop [" --make-haskell-source" ]) primops
509
- writeFile (src </> " libraries/ghc-prim/ GHC/PrimopWrappers.hs" ) =<< readCreateProcess (runGenPrimop genprimop [" --make-haskell-wrappers" ]) primops
510
+ writeFile (src </> " libraries/ghc-internal/src/ GHC/Internal /Prim.hs" ) =<< readCreateProcess (runGenPrimop genprimop [" --make-haskell-source" ]) primops
511
+ writeFile (src </> " libraries/ghc-internal/src/ GHC/Internal /PrimopWrappers.hs" ) =<< readCreateProcess (runGenPrimop genprimop [" --make-haskell-wrappers" ]) primops
510
512
511
513
-- build libffi
512
514
msg " - Building libffi..."
0 commit comments