This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "snap-website".
The branch, master has been updated
via f090587c5386d65267aef3b77ac4c12564b87fc3 (commit)
from c3aeaf2026ad2ffbf17c2b46f9d17d02967f62de (commit)
Summary of changes:
templates/faq.md | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f090587c5386d65267aef3b77ac4c12564b87fc3
Author: Gregory Collins <[email protected]>
Date: Thu Oct 21 11:05:42 2010 +0200
Add a FAQ entry for the TH 'cannot find normal object' error
diff --git a/templates/faq.md b/templates/faq.md
index a189a43..9327ed7 100644
--- a/templates/faq.md
+++ b/templates/faq.md
@@ -7,6 +7,7 @@
1. [Is anyone using Snap in production?
](#is-anyone-using-snap-in-production)
1. [Where's the high-level functionality?
](#wheres-the-high-level-functionality)
1. [Why can't I install Snap? ](#why-cant-i-install-snap)
+1. [I am getting a "cannot find normal object file" error when trying to build
Snap.
Why?](#i-am-getting-a-cannot-find-normal-object-file-error-when-trying-to-build-snap.-why)
1. [How do I install Heist on Windows?
](#how-do-i-install-heist-on-windows)
1. [How do I get the libev backend working?
](#how-do-i-get-the-libev-backend-working)
1. [How can I get debugging output? ](#how-can-i-get-debugging-output)
@@ -65,6 +66,27 @@ list](http://mailman-mail5.webfaction.com/listinfo/snap) or
contact us on our
(`#snapframework` on [freenode](http://freenode.net/)).
+### I am getting a "cannot find normal object file" error when trying to build
Snap. Why?
+
+If you try to build Snap in profiling mode, sometimes you will encounter this
error:
+
+~~~~~~~~ {.shell}
+src/Snap/Starter.hs:1:0:
+ cannot find normal object file `dist/build/snap/snap-tmp/Snap/StarterTH.o'
+~~~~~~~~
+
+GHC has a bug in which it gets confused about where to look for object files
+when a) using template haskell, and b) compiling in profiling mode. The
+workaround is to compile the library without profiling, then reconfigure and
+rebuild:
+
+~~~~~~~ {.shell}
+$ cabal configure
+$ cabal build
+$ cabal configure -p
+$ cabal build
+~~~~~~~
+
### How do I install Heist on Windows?
Heist needs a C XML library called expat. See [this
-----------------------------------------------------------------------
hooks/post-receive
--
snap-website
_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap