Skip to content

Profiling with -Werror and GHC 8.2 is broken #3360

Closed
@ndmitchell

Description

@ndmitchell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions