
#12111: prof build flavour doesn't work -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Build System | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => infoneeded Comment: I can not reproduce this problem, starting from commit ac38c025b99868d348e3797e85a4af9c6d6377ac. Here is what I tried: {{{ * git clone --recursive <the repo> * cp mk/build.mk.sample mk/build.mk * uncomment `BuildFlavour = prof` in mk/build.mk * ./boot && ./configure && make }}} Test that it works: {{{ $ ./inplace/bin/ghc-stage2 -fforce-recomp Test.hs +RTS -p $ ls ghc-stage2.prof ghc-stage2.prof }}} Some things to check: * do you have other settings in `mk/build.mk` that might interfer? * make sure there isn't a leftover `mk/are-validating.mk` file * run `make show VALUE=ghc_stage2_PROGRAM_WAY`. It should show `ghc_stage2_PROGRAM_WAY="p"`. * look at the build command that failed. It probably contains `-dynamic`. Figure out why. `-fprof-auto` gets added in `compiler/ghc.mk`. You shouldn't have to manually fiddle with `GhcStage2HcOpts`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12111#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler