dhall-lang / dhall-haskell

Maintainable configuration files
https://dhall-lang.org/
BSD 3-Clause "New" or "Revised" License
908 stars 211 forks source link

build failure due to `saltine` #2522

Closed scarf005 closed 1 year ago

scarf005 commented 1 year ago

To reproduce

followed instruction in README:

$ git clone git@github.com:dhall-lang/dhall-haskell.git
$ cd dhall-haskell
$ git submodule init
$ git submodule update
$ stack build

The problem

however the build process is met with frequent failure from saltine:

Details ``` stack build 1986ms  2023년 06월 02일 (금) 오후 01시 21분 24초saltine > configure saltine > Configuring saltine-0.1.1.1... saltine > Cabal-simple_6HauvNHV_3.2.1.0_ghc-8.10.7: The pkg-config package 'libsodium' saltine > version ==1.0.13 || >1.0.13 is required but it could not be found. saltine > Progress 1/5 Error: [S-7282] Stack failed to execute the build plan. While executing the build plan, Stack encountered the error: [S-7011] While building package saltine-0.1.1.1 (scroll up to its section to see the error) using: /home/scarf/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_6HauvNHV_3.2.1.0_ghc-8.10.7 --verbose=1 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.2.1.0 configure --with-ghc=/home/scarf/.ghcup/ghc/8.10.7/bin/ghc --with-ghc-pkg=/home/scarf/.ghcup/ghc/8.10.7/bin/ghc-pkg-8.10.7 --user --package-db=clear --package-db=global --package-db=/home/scarf/.stack/snapshots/x86_64-linux/1da481536543e9617102ee4edd8dd97beb5ee4bc96ccc1acf09e09bce30f2d0a/8.10.7/pkgdb --libdir=/home/scarf/.stack/snapshots/x86_64-linux/1da481536543e9617102ee4edd8dd97beb5ee4bc96ccc1acf09e09bce30f2d0a/8.10.7/lib --bindir=/home/scarf/.stack/snapshots/x86_64-linux/1da481536543e9617102ee4edd8dd97beb5ee4bc96ccc1acf09e09bce30f2d0a/8.10.7/bin --datadir=/home/scarf/.stack/snapshots/x86_64-linux/1da481536543e9617102ee4edd8dd97beb5ee4bc96ccc1acf09e09bce30f2d0a/8.10.7/share --libexecdir=/home/scarf/.stack/snapshots/x86_64-linux/1da481536543e9617102ee4edd8dd97beb5ee4bc96ccc1acf09e09bce30f2d0a/8.10.7/libexec --sysconfdir=/home/scarf/.stack/snapshots/x86_64-linux/1da481536543e9617102ee4edd8dd97beb5ee4bc96ccc1acf09e09bce30f2d0a/8.10.7/etc --docdir=/home/scarf/.stack/snapshots/x86_64-linux/1da481536543e9617102ee4edd8dd97beb5ee4bc96ccc1acf09e09bce30f2d0a/8.10.7/doc/saltine-0.1.1.1 --htmldir=/home/scarf/.stack/snapshots/x86_64-linux/1da481536543e9617102ee4edd8dd97beb5ee4bc96ccc1acf09e09bce30f2d0a/8.10.7/doc/saltine-0.1.1.1 --haddockdir=/home/scarf/.stack/snapshots/x86_64-linux/1da481536543e9617102ee4edd8dd97beb5ee4bc96ccc1acf09e09bce30f2d0a/8.10.7/doc/saltine-0.1.1.1 --dependency=base=base-4.14.3.0 --dependency=bytestring=bytestring-0.10.12.0 --dependency=hashable=hashable-1.3.0.0-48nQGhB14xmEiMcOs1PHxb --dependency=profunctors=profunctors-5.6.2-ENzwg0liCYjBWiMoIO8XFj --exact-configuration --ghc-option=-fhide-source-paths Process exited with code: ExitFailure 1 ```

System info

Ubuntu 23.04 Ghcup 0.1.19.2 Stack 2.11.1 HLS 2.0.0.0 cabal 3.10.1.0 GHC 9.4.5

scarf005 commented 1 year ago

...oh. thought pkg-config was a stack tool, however it wasn't. GPT pointed it out for me.

How to resolve

install libsodium, for example in ubuntu:

$ sudo apt-get install libsodium-dev