Does the 'stage=2' setting not work anymore in build.mk?

Hi, I tried setting 'stage=2' in my mk/build.mk file, but the stage 1 compiler is still getting rebuilt (and of course this causes the stage 2 compiler to be rebuilt from scratch...). I am using BuildFlavour=devel2. What am I missing? Thanks, Gergo

I don't see any relevant change in the last week. I'll give it a try and see if I can reproduce. Edward Excerpts from Dr. ERDI Gergo's message of 2014-08-29 12:44:07 +0100:
Hi,
I tried setting 'stage=2' in my mk/build.mk file, but the stage 1 compiler is still getting rebuilt (and of course this causes the stage 2 compiler to be rebuilt from scratch...). I am using BuildFlavour=devel2. What am I missing?
Thanks, Gergo

OK, it's definitely worked for me in that time. Do you have mk/are-validating.mk in your tree? Also do try on a fresh working copy. Edward Excerpts from Dr. ERDI Gergo's message of 2014-08-29 13:01:44 +0100:
On Fri, 29 Aug 2014, Edward Z. Yang wrote:
I don't see any relevant change in the last week. I'll give it a try and see if I can reproduce.
I don't think it's been working properly for me for months now.

I think make maintainer-clean removes it. I find this hidden pieces of
state annoying. It has definitely tripped me up in the past. Perhaps we can
have make clean remove it?
On Fri, Aug 29, 2014 at 2:14 PM, Dr. ERDI Gergo
On Fri, 29 Aug 2014, Edward Z. Yang wrote:
OK, it's definitely worked for me in that time. Do you have
mk/are-validating.mk in your tree? Also do try on a fresh working copy.
Yes I do! Is that the remnant of some failed validation process? Should I remove it?
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

On Fri, 29 Aug 2014, Johan Tibell wrote:
I think make maintainer-clean removes it. I find this hidden pieces of state annoying. It has definitely tripped me up in the past. Perhaps we can have make clean remove it?
I've removed it manually and now 'stage=2' works as it used to. Thanks both of you!

are-validating.mk flips GHC tree into "validating mode", which makes it ignore mk/build.mk. Remember to delete it when you are done validating. Edward Excerpts from Dr. ERDI Gergo's message of 2014-08-29 13:14:04 +0100:
On Fri, 29 Aug 2014, Edward Z. Yang wrote:
OK, it's definitely worked for me in that time. Do you have mk/are-validating.mk in your tree? Also do try on a fresh working copy.
Yes I do! Is that the remnant of some failed validation process? Should I remove it?
participants (3)
-
Dr. ERDI Gergo
-
Edward Z. Yang
-
Johan Tibell