[Haskell-beginners] Patch source, then pickup compile
James Toll
james at jtoll.com
Sat Sep 20 04:01:57 UTC 2014
On Sep 19, 2014, at 9:06 PM, Brandon Allbery <allbery.b at gmail.com> wrote:
> On Fri, Sep 19, 2014 at 10:03 PM, James Toll <james at jtoll.com> wrote:
> Thank you for your suggestion. I think you're saying that I should ‘cabal install -j’ from within the pandoc-1.13.1 directory to build pandoc. But then I will still need to build hakyll, so do I cd up to the hakyll parent directory and cabal install -j from there as well?
>
> Just "cabal install -j hakyll" as usual. It'll see the installed pandoc and, as long as the version is compatible, not reinstall it. It should give you a warning if it's incompatible. In that case, you'll need to ask the hakyll folks and possibly have to install whatever package requires it manually in the same way you are installing pandoc, but in this case you would just be editing the cabal file to fix the version.
Unfortunately this isn’t working. The pandoc build appears to work with the patched source, but then the hakyll build fails. If I’m reading this properly, it appears that pandoc is not getting installed in the sandbox. Then it appears that hakyll is not finding the successful pandoc build (probably because it wasn’t installed to the sandbox) and is trying to build pandoc again, using un-patched code and failing with the same original error. Here is the output, truncated a bit during the pandoc build. Any suggestions on how to fix this? Thanks.
James
[james ~/src/haskell/sandboxes/hakyll]$ cd pandoc-1.13.1/
[james ~/src/haskell/sandboxes/hakyll/pandoc-1.13.1]$ cabal install -j
Resolving dependencies...
In order, the following will be installed:
pandoc-1.13.1 -network-uri (reinstall)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring pandoc-1.13.1...
Building pandoc-1.13.1...
Installed pandoc-1.13.1
Updating documentation index /Users/james/Library/Haskell/share/doc/index.html
[james ~/src/haskell/sandboxes/hakyll/pandoc-1.13.1]$ cd ..
[james ~/src/haskell/sandboxes/hakyll]$ cabal install -j hakyll
Resolving dependencies...
Notice: installing into a sandbox located at
/Users/james/src/haskell/sandboxes/hakyll
Configuring pandoc-1.13.1...
Building pandoc-1.13.1...
Failed to install pandoc-1.13.1
Build log ( /Users/james/src/haskell/sandboxes/hakyll/logs/pandoc-1.13.1.log ):
[1 of 1] Compiling Main ( /var/folders/jl/h90f3bxs7hxb389cvjdc6k5w0000gn/T/pandoc-1.13.1-84931/pandoc-1.13.1/dist/dist-sandbox-8fe59d82/setup/setup.hs, /var/folders/jl/h90f3bxs7hxb389cvjdc6k5w0000gn/T/pandoc-1.13.1-84931/pandoc-1.13.1/dist/dist-sandbox-8fe59d82/setup/Main.o )
Linking /var/folders/jl/h90f3bxs7hxb389cvjdc6k5w0000gn/T/pandoc-1.13.1-84931/pandoc-1.13.1/dist/dist-sandbox-8fe59d82/setup/setup ...
Configuring pandoc-1.13.1...
Building pandoc-1.13.1...
Preprocessing library pandoc-1.13.1...
[ 1 of 67] Compiling Text.Pandoc.Asciify
etc . . .
[19 of 67] Compiling Text.Pandoc.Shared ( src/Text/Pandoc/Shared.hs, dist/dist-sandbox-8fe59d82/build/Text/Pandoc/Shared.o )
src/Text/Pandoc/Shared.hs:808:55: Not in scope: ‘toChunks’
cabal: Error: some packages failed to install:
hakyll-4.5.5.0 depends on pandoc-1.13.1 which failed to install.
pandoc-1.13.1 failed during the building phase. The exception was:
ExitFailure 1
pandoc-citeproc-0.4.0.1 depends on pandoc-1.13.1 which failed to install.
More information about the Beginners
mailing list