
ha ha!
bash$ make show VALUE=GhcProfiled
Makefile:39: mk/config.mk: No such file or directory
Makefile:41: *** Please run ./configure first. Stop.
===============
OK, so I did "perl boot; ./configure". Then
bash$ make show VALUE=GhcProfiled
make -r --no-print-directory -f ghc.mk show
ghc.mk:158: *** dyn is not in $(GhcLibWays), but $(DYNAMIC_GHC_PROGRAMS) is YES. Stop.
make: *** [show] Error 2
bash$
oh dear. Should "make show" depend on these other checks?
Simon
| -----Original Message-----
| From: Austin Seipp [mailto:aseipp@pobox.com]
| Sent: 27 August 2013 16:23
| To: Simon Peyton-Jones
| Cc: ghc-devs
| Subject: Re: Buidling profiled fails
|
| I was actually looking at this exact code very recently since I was
| fixing the build system with Stage1Only a little last night.
|
| We do something like this in ./ghc.mk:
|
| ----------------------------------------
| define addExtraPackage
| ifeq "$2" "-"
| # Do nothing; this package is already handled above
| else ifeq "$2 $$(GhcProfiled)" "dph YES"
| # Ignore the package: These packages need TH, which is incompatible
| # with a profiled GHC
| else
| PACKAGES_STAGE2 += $1
| endif
| endef
| ---------------------------------------
|
| So it skips adding dph to the list of stage2 packages if GhcProfiled is
| 'YES'
|
| Simon, this is speculation, but can you try:
|
| $ make show VALUE=GhcProfiled
|
| I think it's possible the value of GhcProfiled may have whitespace in
| it, which would cause this `ifeq` to fail.
|
| On Tue, Aug 27, 2013 at 10:06 AM, Simon Peyton-Jones
|