travitch/llvm-tools

build error in ViewIRGraph

Closed this issue · 4 comments

While building (as described in the README), I'm getting the following error, and I'm afraid I have no idea what it means:

Configuring llvm-tools-0.2.0.0...
Building llvm-tools-0.2.0.0...
Preprocessing library llvm-tools-0.2.0.0...
Registering llvm-tools-0.2.0.0...
Preprocessing executable 'ViewIRGraph' for llvm-tools-0.2.0.0...

on the commandline: Warning:
    -package-conf is deprecated: Use -package-db instead
[1 of 1] Compiling Main             ( tools/ViewIRGraph.hs, dist/build/ViewIRGraph/ViewIRGraph-tmp/Main.o )

tools/ViewIRGraph.hs:41:17:
    Couldn't match type `Either ParseError OutputType'
                  with `ReadM OutputType'
    Expected type: String -> ReadM OutputType
      Actual type: String -> Either ParseError OutputType
    In the first argument of `reader', namely `parseOutputType'
    In the first argument of `(<>)', namely `reader parseOutputType'
    In the second argument of `(<>)', namely
      `reader parseOutputType
       <>
         help
           "The type of output to produce: Gtk, Xlib, Html, Canon, XDot, Eps, Jpeg, Pdf, Png, Ps, Ps2, Svg.  Default: Gtk"
         <> value (CanvasOutput Gtk)'
cabal: Error: some packages failed to install:
llvm-tools-0.2.0.0 failed during the building phase. The exception was:
ExitFailure 1

I need to fix the readme - it should just install off of hackage now.

The error is related to optparse applicative - what version of that do you have? I thought I got the version bounds right on it, but I could have made a mistake.

I must warn you I am a complete Haskell newbie - hope I can still be of
some kind of help

cabal list optparse tells me this:

On 11/21/2013 04:19 PM, Tristan Ravitch wrote:

I need to fix the readme - it should just install off of hackage now.

The error is related to optparse applicative - what version of that do
you have? I thought I got the version bounds right on it, but I could
have made a mistake.


Reply to this email directly or view it on GitHub
#2 (comment).

Eivind Liland
+49 152 527 76043 | eivind@swarm64.com
Founder-CEO | Swarm64 AS, Swarm64 GmbH

Swarm64 GmbH
Friedrichstr. 76 | 10117 Berlin | Germany
Registered at Amtsgericht Charlottenburg - HRB 144554 B
Geschäftsführer: Thomas Richter, Eivind Liland

0.2.0.1 is the newest version (the one on hackage) with the optparse bounds. I might have forgotten to push that version to github. Try now or try the hackage version

Yes, after git pull, now it built! (using same procedure as before).
Thank you.

On 11/21/2013 04:57 PM, Tristan Ravitch wrote:

0.2.0.1 is the newest version (the one on hackage) with the optparse
bounds. I might have forgotten to push that version to github. Try now
or try the hackage version


Reply to this email directly or view it on GitHub
#2 (comment).

Eivind Liland
+49 152 527 76043 | eivind@swarm64.com
Founder-CEO | Swarm64 AS, Swarm64 GmbH

Swarm64 GmbH
Friedrichstr. 76 | 10117 Berlin | Germany
Registered at Amtsgericht Charlottenburg - HRB 144554 B
Geschäftsführer: Thomas Richter, Eivind Liland