
I can’t build a profiled HEAD compiler. In validate.mk I put GhcProfiled = YES GhcStage1HcOpts = -DDEBUG GhcStage2HcOpts = -fprof-auto GhcLibHcOpts += -Wwarn GhcLibWays += p But then ‘sh validate –fast’ gives rts/RtsFlags.c: In function ‘read_heap_profiling_flag’: rts/RtsFlags.c:1562:26: error: error: assignment discards ‘const’ qualifier from pointer target type [-Werror] rts/RtsFlags.c:1565:27: error: error: assignment discards ‘const’ qualifier from pointer target type [-Werror] cc1: all warnings being treated as errors `gcc' failed in phase `C Compiler'. (Exit code: 1) Does anyone have ideas for how to fix this? Simon

Simon Peyton Jones
I can’t build a profiled HEAD compiler.
I believe that this patch [1] will fix this (although I am still waiting on the build to verify this). To grab it, $ git remote add bgamari git://github.com/bgamari/ghc $ git remote update $ git cherry-pick 441dde678079bdd9ba80ca75aef18984dc2e3f8e Cheers, - Ben [1] https://github.com/bgamari/ghc/commit/441dde678079bdd9ba80ca75aef18984dc2e3f...
participants (2)
-
Ben Gamari
-
Simon Peyton Jones