<div dir="ltr"><div><div>I use Ubuntu 14.04.</div><div><br></div><div>Outside of a stack context, I have been using GHC 7.8.4. I tried to install 7.10.3. ./configure worked, but make install failed with this error:</div><div><br></div><div> make[1]: *** No rule to make target `utils/haddock/dist/build/tmp/haddock', needed by `install_libexecs'. Stop.</div><div> make: *** [install] Error 2</div><div><br></div><div>I tried to manually undo the install, by deleting it from /usr/local/lib, and by changing all the symlinks in /usr/local/bin back to 7.8.4.</div><div><br></div><div>If I run ghci without stack, it works, and is still at version 7.8.4. But now cabal and stack are producing errors.</div><div><br></div><div>"cabal update" runs, but "cabal install" gets confused:</div><div><br></div><div> jeff@jeffLenovUbu:~/dwt_git_hask$ cabal install regex-compat </div><div> Warning: cannot determine version of /usr/local/bin/hpc :</div><div> ""</div><div> Warning: cannot determine version of /usr/local/bin/hsc2hs :</div><div> ""</div><div> Resolving dependencies...</div><div> Configuring regex-posix-0.95.2...</div><div> Building regex-posix-0.95.2...</div><div> Preprocessing library regex-posix-0.95.2...</div><div> /usr/local/bin/hsc2hs: line 29: /usr/local/lib/ghc-7.10.3/bin/hsc2hs: No such file or directory</div><div> Failed to install regex-posix-0.95.2</div><div> cabal: Error: some packages failed to install:</div><div> regex-compat-0.95.1 depends on regex-posix-0.95.2 which failed to install.</div><div> regex-posix-0.95.2 failed during the building phase. The exception was:</div><div> ExitFailure 127</div><div> jeff@jeffLenovUbu:~/dwt_git_hask$ </div><div><br></div><div>As an example of a stack problem, I downloaded Oleg Prophet's implementation of MicroKanren [1]. "stack build" ran without complaint (or visible output), but "stack ghci" fails thus:</div><div><br></div><div> jeff@jeffLenovUbu:~/work/computer/Haskell/microKanren/featherweight$ stack ghciConfiguring GHCi with the following packages: microKanren</div><div> GHCi, version 7.10.2: <a href="http://www.haskell.org/ghc/">http://www.haskell.org/ghc/</a> :? for help</div><div> <command line>: cannot satisfy -package QuickCheck</div><div> (use -v for more information)</div><div> jeff@jeffLenovUbu:~/dwt_git_hask$ </div><div><br></div><div>stack ghci even fails (with a different error) on my own project [2]:</div><div><br></div><div> jeff@jeffLenovUbu:~/dwt_git_hask$ stack ghci</div><div> Configuring GHCi with the following packages: Dwt</div><div> GHCi, version 7.10.2: <a href="http://www.haskell.org/ghc/">http://www.haskell.org/ghc/</a> :? for help</div><div> <command line>: can't load .so/.DLL for: /home/jeff/dwt_git_hask/.stack-work/install/x86_64-linux/nightly-2015-08-03/7.10.2/lib/x86_64-linux-ghc-7.10.2/Dwt-0.1.0.0-7VW1kKp7le6K6OdeGoRsDt/<a href="http://libHSDwt-0.1.0.0-7VW1kKp7le6K6OdeGoRsDt-ghc7.10.2.so">libHSDwt-0.1.0.0-7VW1kKp7le6K6OdeGoRsDt-ghc7.10.2.so</a> (/home/jeff/dwt_git_hask/.stack-work/install/x86_64-linux/nightly-2015-08-03/7.10.2/lib/x86_64-linux-ghc-7.10.2/Dwt-0.1.0.0-7VW1kKp7le6K6OdeGoRsDt/<a href="http://libHSDwt-0.1.0.0-7VW1kKp7le6K6OdeGoRsDt-ghc7.10.2.so">libHSDwt-0.1.0.0-7VW1kKp7le6K6OdeGoRsDt-ghc7.10.2.so</a>: undefined symbol: Dwtzu7VW1kKp7le6K6OdeGoRsDt_DwtziSearch_QNode_con_info)</div><div> jeff@jeffLenovUbu:~/dwt_git_hask$ </div><div><br></div><div>Thanks in advance for your help.</div><div><br></div><div><br></div><div>[1] <a href="https://github.com/Oregu/featherweight">https://github.com/Oregu/featherweight</a></div><div>[2] <a href="https://github.com/JeffreyBenjaminBrown/digraphs-with-text">https://github.com/JeffreyBenjaminBrown/digraphs-with-text</a></div></div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Jeffrey Benjamin Brown</div></div>
</div>