Opened 13 months ago

Last modified 10 months ago

#15442 new bug

GhcStage3HcOpts passed to ghc-stage1

Reported by: bgamari Owned by:
Priority: high Milestone: 8.8.1
Component: Build System (make) Version: 8.4.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

When building a stage3 compiler the build system passes GhcStage3HcOpts to inplace/bin/ghc-stage1 while building dependency lists:

$ make stage=3 GhcStage3HcOpts='+RTS -xn -RTS
"inplace/bin/ghc-stage1" -M -fPIC -dynamic  -H32m -O -Wall      -hide-all-packages -i -ighc/. -ighc/stage3/build -Ighc/stage3/build -ighc/stage3/build/ghc/autogen -Ighc/stage3/build/ghc/autogen    -optP-DGHCI -optP-include -optPghc/stage3/build/ghc/autogen/cabal_macros.h -package-id array-0.5.2.0 -package-id base-4.12.0.0 -package-id bytestring-0.10.8.2 -package-id containers-0.6.0.1 -package-id deepseq-1.4.4.0 -package-id directory-1.3.2.3 -package-id filepath-1.4.2 -package-id ghc-8.7 -package-id ghc-boot-8.7 -package-id ghci-8.7 -package-id haskeline-0.7.4.2 -package-id process-1.6.3.0 -package-id time-1.8.0.2 -package-id transformers-0.5.5.0 -package-id unix-2.8.0.0 -Wall -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wnoncanonical-monoid-instances -fno-warn-name-shadowing -XHaskell2010  -O2 +RTS -xn -RTS -no-hs-main -threaded -no-user-package-db -rtsopts       -Wnoncanonical-monad-instances  -odir ghc/stage3/build -hidir ghc/stage3/build -stubdir ghc/stage3/build -dep-makefile ghc/stage3/build/.depend.haskell.tmp -dep-suffix "dyn_" -include-pkg-deps   ghc/./Main.hs  ghc/./GHCi/Leak.hs  ghc/./GHCi/UI.hs  ghc/./GHCi/UI/Info.hs  ghc/./GHCi/UI/Monad.hs  ghc/./GHCi/UI/Tags.hs
ghc-stage1: unknown RTS option: -xn
...

Change History (2)

comment:1 Changed 12 months ago by bgamari

Milestone: 8.6.18.8.1

Sadly I won't have time to look into this for 8.6. I suspect we'll likely just end up fixing it in Hadrian.

comment:2 Changed 10 months ago by bgamari

Component: Build SystemBuild System (make)

The new Hadrian build system has been merged. Relabeling the tickets concerning the legacy make build system to prevent confusion.

Note: See TracTickets for help on using tickets.