Package Details: cardano-sl 3.0.1-1

Git Clone URL: https://aur.archlinux.org/cardano-sl.git (read-only)
Package Base: cardano-sl
Description: Cryptographic currency implementing Ouroboros PoS protocol
Upstream URL: https://github.com/input-output-hk/cardano-sl/
Licenses: MIT
Submitter: tensor5
Maintainer: tensor5
Last Packager: tensor5
Votes: 9
Popularity: 0.002970
First Submitted: 2017-12-02 17:14
Last Updated: 2019-04-23 03:47

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

emes commented on 2018-01-23 20:09

I'm getting the following error while building. Full system upgrade didn't help.

--  While building custom Setup.hs for package cardano-sl-db-1.0.3 using:
  /home/emes/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-1.24.2.0 build lib:cardano-sl-db --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: /home/emes/builds/cardano-sl/src/cardano-sl/.stack-work/logs/cardano-sl-db-1.0.3.log

Configuring cardano-sl-db-1.0.3...
Preprocessing library cardano-sl-db-1.0.3...
[ 1 of 13] Compiling Pos.DB.Error     ( Pos/DB/Error.hs, .stack-work/dist/x86_64-linux-tinfo6/Cabal-1.24.2.0/build/Pos/DB/Error.o )
[ 2 of 13] Compiling Pos.DB.Class     ( Pos/DB/Class.hs, .stack-work/dist/x86_64-linux-tinfo6/Cabal-1.24.2.0/build/Pos/DB/Class.o )
[ 3 of 13] Compiling Pos.DB.Functions ( Pos/DB/Functions.hs, .stack-work/dist/x86_64-linux-tinfo6/Cabal-1.24.2.0/build/Pos/DB/Functions.o )
[ 4 of 13] Compiling Pos.DB.Misc.Common ( Pos/DB/Misc/Common.hs, .stack-work/dist/x86_64-linux-tinfo6/Cabal-1.24.2.0/build/Pos/DB/Misc/Common.o )
[ 5 of 13] Compiling Pos.DB.Pure      ( Pos/DB/Pure.hs, .stack-work/dist/x86_64-linux-tinfo6/Cabal-1.24.2.0/build/Pos/DB/Pure.o )
<command line>: can't load .so/.DLL for: /home/emes/builds/cardano-sl/src/cardano-sl/.stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/lib/x86_64-linux-ghc-8.0.2/libHSrocksdb-haskell-1.0.0-ASh627zSIahH8QxTbLrgnb-ghc8.0.2.so (/usr/lib/libjemalloc.so.2: cannot allocate memory in static TLS block)

gwpl commented on 2018-01-11 15:18

Today I am trying to compile and run it again. I had again to downgrade jemalloc to 4.5.0. Could you add hard dependency on version , i.e. that this package require jemalloc with version <=4.5.0 ? (how to make one, in gist I linked earlier: https://gist.github.com/gwpl/0e4a3ae4d4e21e429b324808cdca3e46 )

tensor5 commented on 2018-01-06 11:51

@emes, rocksdb is already a dependency.

emes commented on 2018-01-05 23:19

Please add rocksdb to deps, it's required.

codybonney commented on 2017-12-17 17:04

@tensor5, removing gperftools and recompiling rocksdb worked for me. Thank you!

gwpl commented on 2017-12-17 16:51

Update! I've build it!
TL;DR- I had to apply all advices below + downgrade jemalloc to 4.5.0.
 Link to instructions with all steps I was required below:

Below I leave notes regarding errors that got resolved by downgrading package to easy finding result in search engines:

Unfortunatelly: `can't load .so/.DLL for: /home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/lib/x86_64-linux-ghc-8.0.2/libHSrocksdb-haskell-1.0.0-ASh627zSIahH8QxTbLrgnb-ghc8.0.2.so (/usr/lib/libjemalloc.so.2: cannot allocate memory in static TLS block)

$ pacaur -S daedalus-bridge  # same for pacaur -S cardano-sl

(...)

cardano-sl-db-1.0.3: build (lib)
Log files have been written to: /home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/logs/
Progress: 1/12
--  While building custom Setup.hs for package cardano-sl-db-1.0.3 using:
      /home/XXX/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-1.24.2.0 build lib:cardano-sl-db --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/logs/cardano-sl-db-1.0.3.log

    Configuring cardano-sl-db-1.0.3...
    Preprocessing library cardano-sl-db-1.0.3...
    [ 5 of 13] Compiling Pos.DB.Pure      ( Pos/DB/Pure.hs, .stack-work/dist/x86_64-linux-tinfo6/Cabal-1.24.2.0/build/Pos/DB/Pure.o )
    <command line>: can't load .so/.DLL for: /home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/lib/x86_64-linux-ghc-8.0.2/libHSrocksdb-haskell-1.0.0-ASh627zSIahH8QxTbLrgnb-ghc8.0.2.so (/usr/lib/libjemalloc.so.2: cannot allocate memory in static TLS block)
==> ERROR: A failure occurred in build().
    Aborting...
:: failed to build daedalus-bridge package(s)

Here are versions of packages I use: for p in rocksdb jemalloc ghc stack ; do echo -n "$p " ; pacman -Qi $p | grep Version; done :

rocksdb    Version         : 5.8-1                                                                                                                                      
jemalloc    Version         : 1:5.0.1-3                                                                                                                                 
ghc    Version         : 8.2.2-1                                                                                                                                        
stack    Version         : 1.6.1-12                                                                                                                                     

nofxx commented on 2017-12-17 14:52

Hello tensor5, uninstalling gperftools and jemalloc and recompiling rocksdb did the trick. THank you.

tensor5 commented on 2017-12-17 12:35

@gwpl, daedalus-bridge is a split package of cardano-sl. Build cardano-sl and you will have both.

gwpl commented on 2017-12-17 12:31

Maybe worth adding some rocksdb dependency?

( with proper newlines: https://pastebin.com/JHuKLPnW )

$ pacaur -S daedalus-bridge

(...)

resourcet-1.1.9: copy/register
conduit-1.2.11: download
conduit-1.2.11: configure
conduit-1.2.11: build
errors-2.2.1: copy/register
rocksdb-haskell-1.0.0: download
rocksdb-haskell-1.0.0: configure
intervals-0.8.1: copy/register
stm-containers-0.2.16: copy/register
conduit-1.2.11: copy/register
Progress: 177/311
--  While building custom Setup.hs for package rocksdb-haskell-1.0.0 using:
      /home/XXX/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-1.24.2.0 configure --with-ghc=/home/XXX/.stack/programs/x86_64-linux/ghc-tinfo6-8.0.2/bin/ghc --with-ghc-pkg=/home/XXX/.stack/programs/x86_64-linux/ghc-tinfo6-8.0.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/XXX/.stack/snapshots/x86_64-linux-tinfo6/lts-9.1/8.0.2/pkgdb --package-db=/home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/pkgdb --libdir=/home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/lib --bindir=/home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/bin --datadir=/home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/share --libexecdir=/home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/libexec --sysconfdir=/home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/etc --docdir=/home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/doc/rocksdb-haskell-1.0.0 --htmldir=/home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/doc/rocksdb-haskell-1.0.0 --haddockdir=/home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/install/x86_64-linux-tinfo6/lts-9.1/8.0.2/doc/rocksdb-haskell-1.0.0 --dependency=base=base-4.9.1.0 --dependency=binary=binary-0.8.3.0 --dependency=bytestring=bytestring-0.10.8.1 --dependency=data-default=data-default-0.7.1.1-Atv1ZD6t1rI1MrH9qSGaQC --dependency=filepath=filepath-1.4.1.1 --dependency=resourcet=resourcet-1.1.9-LlLQg765HiJk79aJnT8s7 --dependency=transformers=transformers-0.5.5.0-H2bD029pEsWHDboiJI5ebg
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/XXX/.cache/pacaur/cardano-sl/src/cardano-sl/.stack-work/logs/rocksdb-haskell-1.0.0.log

    Configuring rocksdb-haskell-1.0.0...
    Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2: Missing dependency on a foreign
    library:
    * Missing C library: rocksdb
    This problem can usually be solved by installing the system package that
    provides this library (you may need the "-dev" version). If the library is
    already installed but in a non-standard location then you can use the flags
    --extra-include-dirs= and --extra-lib-dirs= to specify where it is.
==> ERROR: A failure occurred in build().

Gio commented on 2017-12-17 12:27

Hi. Thank You for providing this package. When I try to compile it (automatically, using PAMAC) I get:

==> Validating source files with md5sums... ncurses-6.0-20170902.tgz ... Passed ncurses-6.0-20170902.tgz.asc ... Skipped

==> Verifying source file signatures with gpg... ncurses-6.0-20170902.tgz ... FAILED (unknown public key 702353E0F7E48EDB)

And it stops.