<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>I've run into problems like this before; there seems to be some issues with certain versions of llvm. I got around it by compiling arithmoi without llvm support:</div><div><br><table style="border-spacing: 0px; border-collapse: collapse; width: 600px; color: rgb(51, 51, 51); font-family: 'Computer Modern Serif', serif; font-size: 20px;"><colgroup><col width="100%"></colgroup><tbody><tr class="odd" style="margin: 0px; padding: 0px;"><td align="left" style="margin: 0px; padding: 0px; width: 8em;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code style="font-size: 17px; white-space: normal; background-color: rgba(255, 255, 255, 0);"><font color="#000000" face="UICTFontTextStyleBody">$ cabal install Diagrams --constrain "arithmoi -llvm"</font></code></pre></td></tr></tbody></table><br><br></div><div><br>30 Jan 2015 22:49、Gregory Guthrie <<a href="mailto:guthrie@mum.edu">guthrie@mum.edu</a>> のメッセージ:<br><br></div><blockquote type="cite"><div><span>Trying to install Diagrams, but am stuck in a typical Cabal maze of install errors; any hints or help?</span><br><span></span><br><blockquote type="cite"><span>cabal install Diagrams</span><br></blockquote><span>Resolving dependencies...</span><br><span>Configuring arithmoi-0.4.1.1...</span><br><span>Building arithmoi-0.4.1.1...</span><br><span>Preprocessing library arithmoi-0.4.1.1...</span><br><span>...</span><br><span><no location info>:</span><br><span>    Warning: Couldn't figure out LLVM version!</span><br><span>             Make sure you have installed LLVM</span><br><span>[ 1 of 34] Compiling Math.NumberTheory.Primes.Sieve.Indexing ( Math\NumberTheory</span><br><span>\Primes\Sieve\Indexing.hs, dist\dist-sandbox-b31b5bcf\build\Math\NumberTheory\Primes\Sieve\Indexing.o )</span><br><span></span><br><span><no location info>:</span><br><span>    Warning: Couldn't figure out LLVM version!</span><br><span>             Make sure you have installed LLVM</span><br><span>Failed to install arithmoi-0.4.1.1</span><br><span>cabal: Error: some packages failed to install:</span><br><span>arithmoi-0.4.1.1 failed during the building phase. The exception was:</span><br><span>ExitFailure 1</span><br><span>diagrams-1.2 depends on arithmoi-0.4.1.1 which failed to install.</span><br><span>diagrams-contrib-1.1.2.5 depends on arithmoi-0.4.1.1 which failed to install.</span><br><span></span><br><span></span><br><blockquote type="cite"><span>cabal install llvm</span><br></blockquote><span>...</span><br><span>Failed to install type-level-0.2.4</span><br><span>cabal: Error: some packages failed to install:</span><br><span>llvm-3.2.0.2 depends on type-level-0.2.4 which failed to install.</span><br><span>llvm-base-3.2.0.2 failed during the configure step. The exception was:</span><br><span>ExitFailure 1</span><br><span>type-level-0.2.4 failed during the building phase. The exception was:</span><br><span>ExitFailure 1</span><br><span></span><br><span></span><br><blockquote type="cite"><span>Cabal install type-level</span><br></blockquote><span>...</span><br><span>src\Data\TypeLevel\Num\Ops.hs:336:10:</span><br><span>    Illegal instance declaration for `Div10 x q'</span><br><span>      The liberal coverage condition fails in class `Div10'</span><br><span>        for functional dependency: `q -> x'</span><br><span>      Reason: lhs type `q' does not determine rhs type `x'</span><br><span>    In the instance declaration for `Div10 x q'</span><br><span>Failed to install type-level-0.2.4</span><br><span>cabal: Error: some packages failed to install:</span><br><span>type-level-0.2.4 failed during the building phase. The exception was:</span><br><span>ExitFailure 1</span><br><span></span><br><span></span><br><span>??</span><br><span></span><br><span>-------------------------------------------</span><br><span>_______________________________________________</span><br><span>Beginners mailing list</span><br><span><a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a></span><br><span><a href="http://www.haskell.org/mailman/listinfo/beginners">http://www.haskell.org/mailman/listinfo/beginners</a></span><br></div></blockquote></body></html>