pp
pp copied to clipboard
pp won't build on LUbuntu 18.04 as of 2019-02-26
Tried to build pp locally (as there isn't a ready Ubuntu package for it). Installed haskell-stack amd64 1.5.1-1 package, launched make and got
~/pp_generic_preprocessor$ make
Downloading lts-13.1 build plan ...
Downloaded lts-13.1 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""
#### converting .stack-work/Plantuml.jar to C
stack tools/blob.hs .stack-work/Plantuml.jar
Downloaded lts-13.1 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""
Makefile:128: recipe for target '.stack-work/PlantumlJar_c.c' failed
make: *** [.stack-work/PlantumlJar_c.c] Error 1
~/pp_generic_preprocessor$
What I am doing wrong? Thanks in advance! Andreas
Have you tried to upgrade stack (stack upgrade && stack update)? It seems to be a bug with stack on Ubuntu (https://bugs.launchpad.net/ubuntu/+source/haskell-stack/+bug/1786197).
You can also try to use another stackage LTS version (line 21 in stack.yaml). e.g. 13.9 or 12.26
I don't use the stack version packaged for my OS. I prefer to install the latest version from haskellstack.org:
wget -qO- https://get.haskellstack.org/ | sh
stack upgrade
did resolve the issue