snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

snap-0.13.2.7 build fail #112

Closed dmjio closed 10 years ago

dmjio commented 10 years ago

Getting this on a fresh install of snap. Any ideas?

Failed to install snap-0.13.2.7
Last 10 lines of the build log ( /Users/dmj/Desktop/re/.cabal-sandbox/logs/snap-0.13.2.7.log ):
Loading package zlib-0.5.4.1 ... linking ... done.
Loading package zlib-bindings-0.1.1.5 ... linking ... done.
Loading package zlib-enum-0.2.3.1 ... linking ... done.
Loading package snap-core-0.9.6.3 ... linking ... done.
Loading package snap-server-0.9.4.5 ... linking ... done.
Loading package old-time-1.1.0.2 ... linking ... done.
Loading package directory-tree-0.12.0 ... linking ... done.
src/Snap/Starter.hs:1:1:
    cannot find normal object file ‘dist/dist-sandbox-7b037bf8/build/snap/snap-tmp/Snap/StarterTH.dyn_o’
    while linking an interpreted expression
cabal: Error: some packages failed to install:
snap-0.13.2.7 failed during the building phase. The exception was:
ExitFailure 1
mightybyte commented 10 years ago

Blow away your sandbox and try again?

dmjio commented 10 years ago

Same thing... :/

ChristopherBiscardi commented 10 years ago

I was able to successfully build 0.13.2.7 in a clean sandbox yesterday on OSX. I think I saw this after forcing a re-install recently but can't be sure.

dmjio commented 10 years ago

K got it. Just a theory, but I had enable-executable-profiling : True in my cabal file. I don't think snap-init liked it.

mightybyte commented 10 years ago

Ahh, that could be it. If you are doing executable profiling, you need to have library profiling enabled. And it has to be done before you install any of the dependencies.