Stage1Only=YES does not seem to work on current master

Simon Marlow marlowsd at gmail.com
Tue Jan 29 11:20:19 CET 2013


On 27/01/13 21:21, Sergei Trofimovich wrote:
> simple build.mk:
>
> SRC_CC_OPTS+=-O2 -pipe
>
> BUILD_DOCBOOK_PDF  = NO
> BUILD_DOCBOOK_PS   = NO
> BUILD_DOCBOOK_HTML = NO
> HADDOCK_DOCS       = NO
> SRC_HC_OPTS+=-w
>
> Stage1Only=YES
> GhcUnregisterised=YES
> SplitObjs=NO
>
> Leads to failures of missing stage2:
>
> "inplace/lib/unlit"  utils/count_lines/count_lines.lprl utils/count_lines/dist/count_lines.prl
> "inplace/bin/ghc-stage2" -optc-O2 -optc-pipe -optc-Ilibraries/primitive/cbits -optc-I'/var/tmp/portage/cross-ia64-unknown-linux-gnu/ghc-9999/work/ghc-9999/libraries/base/include' -optc-I'/var/tmp/portage/cross-ia64-unknown-linux-gnu/ghc-9999/work/ghc-9999/rts/dist/build' -optc-I'/var/tmp/portage/cross-ia64-unknown-linux-gnu/ghc-9999/work/ghc-9999/includes' -optc-I'/var/tmp/portage/cross-ia64-unknown-linux-gnu/ghc-9999/work/ghc-9999/includes/dist-derivedconstants/header' -static  -H32m -O  -w    -package-name primitive-0.4.0.1 -hide-all-packages -i -ilibraries/primitive/. -ilibraries/primitive/dist-install/build -ilibraries/primitive/dist-install/build/autogen -Ilibraries/primitive/dist-install/build -Ilibraries/primitive/dist-install/build/autogen -Ilibraries/primitive/cbits    -optP-include -optPlibraries/primitive/dist-install/build/autogen/cabal_macros.h -package base-4.7.0.0 -package ghc-prim-0.3.1.0  -O2 -XHaskell98 -XCPP -O2  -no-user-package-db -rtsopts      -c libraries/prim
itive/cbits/primitive-memops.c -o libraries/primitive/dist-install/build/cbits/primitive-memops.o
> "inplace/bin/ghc-stage2" -optc-O2 -optc-pipe -optc-Ilibraries/primitive/cbits -optc-I'/var/tmp/portage/cross-ia64-unknown-linux-gnu/ghc-9999/work/ghc-9999/libraries/base/include' -optc-I'/var/tmp/portage/cross-ia64-unknown-linux-gnu/ghc-9999/work/ghc-9999/rts/dist/build' -optc-I'/var/tmp/portage/cross-ia64-unknown-linux-gnu/ghc-9999/work/ghc-9999/includes' -optc-I'/var/tmp/portage/cross-ia64-unknown-linux-gnu/ghc-9999/work/ghc-9999/includes/dist-derivedconstants/header' -static -prof  -H32m -O  -w    -package-name primitive-0.4.0.1 -hide-all-packages -i -ilibraries/primitive/. -ilibraries/primitive/dist-install/build -ilibraries/primitive/dist-install/build/autogen -Ilibraries/primitive/dist-install/build -Ilibraries/primitive/dist-install/build/autogen -Ilibraries/primitive/cbits    -optP-include -optPlibraries/primitive/dist-install/build/autogen/cabal_macros.h -package base-4.7.0.0 -package ghc-prim-0.3.1.0  -O2 -XHaskell98 -XCPP -O2  -no-user-package-db -rtsopts      -c librarie
s/primitive/cbits/primitive-memops.c -o libraries/primitive/dist-install/build/cbits/primitive-memops.p_o
> /bin/sh: inplace/bin/ghc-stage2: No such file or directory
> make[1]: *** [libraries/primitive/dist-install/build/cbits/primitive-memops.o] Error 127
> make[1]: *** Waiting for unfinished jobs....
> /bin/sh: inplace/bin/ghc-stage2: No such file or directory

I just pushed a patch that should fix this.  Part of the problem is that 
the --no-dph flag to sync-all doesn't disable the primitive & vector 
repos like it used to, because they are now submodules.  I've fixed it 
in the build system instead.

Cheers,
	Simon




More information about the ghc-devs mailing list