Skip to content

stack build --executable-profiling not working #608

@bitemyapp

Description

@bitemyapp
$ which ghc
/Users/callen/.stack/programs/x86_64-osx/ghc-7.8.4/bin/ghc

$ stack --version
Version 0.1.2.1, Git revision 2723b3567e44725b176c35786a5e11db454d183e

    src/Snap/Starter.hs:1:1:
        cannot find normal object file ‘.stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/snap/snap-tmp/Snap/StarterTH.dyn_o’
        while linking an interpreted expression

      /Users/callen/.stack/programs/x86_64-osx/ghc-7.8.4/bin/runhaskell -package=Cabal-1.18.1.5 -clear-package-db -global-package-db -package-db=/Users/callen/.stack/snapshots/x86_64-osx/lts-2.16/7.8.4/pkgdb/ /var/folders/yr/p4z975f13jbdvwhbgs7gv2j40000gn/T/stack76300/Setup.hs --builddir=.stack-work/dist/x86_64-osx/Cabal-1.18.1.5/ build --ghc-options -hpcdir .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/hpc/.hpc/
    Process exited with code: ExitFailure 1
    Logs have been written to: "/Users/callen/work/gordium/adserver/.stack-work/logs/muttonchops-0.1.2.4.log"

    2 warnings generated.
    In-place registering muttonchops-0.1.2.4...
    Preprocessing executable 'muttonchops-test' for muttonchops-0.1.2.4...
    Linking .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/muttonchops-test/muttonchops-test ...
    ld: library not found for -lHSrts_debug_p
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

Like to have stacktraces in our error notifications, currently attempts to build with executable profiling alone or also with library profiling fail.

The error is a little cryptic, does this mean the GHC stack setup fetches isn't built for profiling? If so, I think that's an unfortunate default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions