A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/commercialhaskell/stack/issues/3360 below:

Profiling with -Werror and GHC 8.2 is broken · Issue #3360 · commercialhaskell/stack · GitHub

Using Windows 64bit, Stack 1.5, if I create a stack file for the Shake package pointing at nightly-2017-08-17 (a GHC 8.2 nightly), then run:

stack build --executable-profiling --library-profiling --ghc-options=-Werror

I get the error:

Configuring shake-0.15.11...

<no location info>: error:
Failing due to -Werror.

on the commandline: warning:
    -auto-all is deprecated: Use -fprof-auto instead

on the commandline: warning:
    -caf-all is deprecated: Use -fprof-cafs instead

The cause is

, if boptsLibProfile bopts || boptsExeProfile bopts

. I suggest either using the new flags (if you only care about newer GHC's), or doing a GHC version test.

I tested this with Shake, but I believe the problem applies to all packages.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4