-
Notifications
You must be signed in to change notification settings - Fork 20
fresh build errors #75
Description
Hi,
I had three issues that I need to fix before getting a fresh checkout to build:
[tias@demerzel]dyna3 make
alex --version 2>/dev/null >/dev/null || cabal install alex
happy --version 2>/dev/null >/dev/null || cabal install happy
cabal install --user --enable-tests --only-dependencies .
Resolving dependencies...
All the requested packages are already installed:
Use --reinstall if you want to reinstall anyway.
echo "Version: Dyna 0.4 pre-release" git describe --all > dist/VERSION
/bin/sh: 1: cannot create dist/VERSION: Directory nonexistent
make: *** [dist/VERSION] Error 2
A fix:
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ all: deps build sphinxbuild
.PHONY: $(VERFILE)
$(VERFILE):
-
mkdir -p dist echo "Version: Dyna 0.4 pre-release" `git describe --all` > $@
[tias@demerzel]dyna3 make
...
src/Dyna/Analysis/Mode/Selftest/NamedInst.hs:173:29:
Exception when trying to run compile-time code:
src/Dyna/Analysis/Mode/Selftest/NamedInst.hs: hGetContents: invalid argument (invalid byte sequence)
Code: testGroupGenerator
In the second argument of moreTries', namely$testGroupGenerator'
In the expression: moreTries 5000 ($testGroupGenerator)
In an equation for `selftest':
selftest = moreTries 5000 ($testGroupGenerator)
make: *** [build] Error 1
A fix:
disabling the tests in the Makefile (I would have expected that that is what 'make tests' is for)
--- a/Makefile
+++ b/Makefile
@@ -21,10 +21,10 @@ upstream:
deps:
alex --version 2>/dev/null >/dev/null || cabal install alex
happy --version 2>/dev/null >/dev/null || cabal install happy
-
cabal install --user --enable-tests --only-dependencies . -
cabal install --user --only-dependencies .build: $(VERFILE)
-
cabal configure --user --enable-tests -
cabal configure --user cabal build
'make sphinxdoc' is mentioned in the README as an optional extra, however, the Makefile builds it by default (and fails here because I didn't install sphinx as it was not mentioned as required)
A fix:
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
VERFILE=dist/VERSION # XREF:VERSION
-all: deps build sphinxbuild
+all: deps build
Kind regards,
Tias