Remove the prof flag and it will work. GHC is trying to do dylib with profiling
Hi Carter,OK, here's the full info (see log below), this is on an MBP,running ghc 7.8.3 (From ghcformac).In a new directory, I create a FRESH cabal sandbox, and then do:$ cabal install --enable-library-profiling --ghc-options="-O2 -rtsopts -prof -auto-all -caf-all" vectorIn doing so I get errors about unable to build 'primitive' becauseFailed to load interface for ‘GHC.Integer.Type’Perhaps you haven't installed the "p_dyn" libraries for package ‘integer-gmp’?Use -v to see a list of the files searched for.Googling the above takes me toBut unfortunately I can't from the above tell exactly how to proceed.1. Can you tell me how to get a profiling version of vector built ina new sandbox? i.e. what options are you using?2. Is there any other information you need? I'm assuming since its ina sandbox I needn't nuke my global cabal directory but happy to ifneeded.Thanks! (log below)-- Ranjit.rjhala@borscht ~/r/l/tmp> mkdir vector-buildrjhala@borscht ~/r/l/tmp> cd vector-build/rjhala@borscht ~/r/l/t/vector-build> cabal sandbox initWriting a default package environment file to/Users/rjhala/research/liquid/tmp/vector-build/cabal.sandbox.configCreating a new sandbox at/Users/rjhala/research/liquid/tmp/vector-build/.cabal-sandboxrjhala@borscht ~/r/l/t/vector-build> cabal install --enable-library-profiling --ghc-options="-O2 -rtsopts -prof -auto-all -caf-all" vectorResolving dependencies...Notice: installing into a sandbox located at/Users/rjhala/research/liquid/tmp/vector-build/.cabal-sandboxConfiguring primitive-0.6...Building primitive-0.6...Failed to install primitive-0.6Last 10 lines of the build log ( /Users/rjhala/research/liquid/tmp/vector-build/.cabal-sandbox/logs/primitive-0.6.log ):Configuring primitive-0.6...Building primitive-0.6...Preprocessing library primitive-0.6...[ 1 of 10] Compiling Data.Primitive.Internal.Compat ( Data/Primitive/Internal/Compat.hs, dist/dist-sandbox-34ea82/build/Data/Primitive/Internal/Compat.o )Top level:Failed to load interface for ‘GHC.Integer.Type’Perhaps you haven't installed the "p_dyn" libraries for package ‘integer-gmp’?Use -v to see a list of the files searched for.cabal: Error: some packages failed to install:primitive-0.6 failed during the building phase. The exception was:ExitFailure 1vector-0.10.12.3 depends on primitive-0.6 which failed to install.rjhala@borscht ~/r/l/t/vector-build [1]> which ghc/Applications/ghc-7.8.3.app/Contents/bin/ghc