Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Document How to compile HIE with profiling enabled? #1214

Closed
@skress

Description

@skress

According to #556 (comment) I should be able to compile HIE with profiling enabled like this:

stack install --work-dir=.stack-work-profile --profile

I've tried it on a fresh clone of the repository on macOS and Linux and it fails on both systems with the same error:

    [34 of 34] Compiling Paths_HaRe       ( .stack-work-profile/dist/x86_64-osx/Cabal-2.4.0.1/build/autogen/Paths_HaRe.hs, .stack-work-profile/dist/x86_64-osx/Cabal-2.4.0.1/build/Paths_HaRe.p_o )
    Preprocessing executable 'ghc-hare' for HaRe-0.8.4.1..
    Building executable 'ghc-hare' for HaRe-0.8.4.1..

    <no location info>: warning: [-Wmissing-home-modules]
        These modules are needed for compilation but not listed in your .cabal file's other-modules:
            Paths_HaRe
    [1 of 2] Compiling Paths_HaRe       ( .stack-work-profile/dist/x86_64-osx/Cabal-2.4.0.1/build/ghc-hare/autogen/Paths_HaRe.hs, .stack-work-profile/dist/x86_64-osx/Cabal-2.4.0.1/build/ghc-hare/ghc-hare-tmp/Paths_HaRe.p_o )
    [2 of 2] Compiling Main             ( app/MainHaRe.hs, .stack-work-profile/dist/x86_64-osx/Cabal-2.4.0.1/build/ghc-hare/ghc-hare-tmp/Main.p_o )
    /Users/skress/work/src/haskell-ide-engine/submodules/HaRe/app/MainHaRe.hs:25:16: fatal:
        cannot find object file ‘.stack-work-profile/dist/x86_64-osx/Cabal-2.4.0.1/build/ghc-hare/ghc-hare-tmp/Paths_HaRe.dyn_o’
        while linking an interpreted expression

Any ideas how to avoid this problem? (In case the question arises: I'd like to further debug my problem in #1207 and my current approach to creating a build with profiling seems to be broken.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions