cabal-club/cabal-desktop

Sodium-native install error

Opened this issue · 1 comments

Node v14.8:

make[1]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/builds”
make[2]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/builds”
make[2]: Inget behöver göras för ”install-exec-am”.
make[2]: Inget behöver göras för ”install-data-am”.
make[2]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/builds”
make[1]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/builds”
Making install in contrib
make[1]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/contrib”
make[2]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/contrib”
make[2]: Inget behöver göras för ”install-exec-am”.
make[2]: Inget behöver göras för ”install-data-am”.
make[2]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/contrib”
make[1]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/contrib”
Making install in dist-build
make[1]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/dist-build”
make[2]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/dist-build”
make[2]: Inget behöver göras för ”install-exec-am”.
make[2]: Inget behöver göras för ”install-data-am”.
make[2]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/dist-build”
make[1]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/dist-build”
Making install in msvc-scripts
make[1]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/msvc-scripts”
make[2]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/msvc-scripts”
make[2]: Inget behöver göras för ”install-exec-am”.
make[2]: Inget behöver göras för ”install-data-am”.
make[2]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/msvc-scripts”
make[1]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/msvc-scripts”
Making install in src
make[1]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/src”
Making install in libsodium
make[2]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/src/libsodium”
Making install in include
make[3]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/src/libsodium/include”
make[4]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/src/libsodium/include”
make[4]: Inget behöver göras för ”install-exec-am”.
 /usr/bin/mkdir -p '/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/tmp/include'
 /usr/bin/mkdir -p '/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/tmp/include/sodium'
 /usr/bin/install -c -m 644  sodium/core.h sodium/crypto_aead_aes256gcm.h sodium/crypto_aead_chacha20poly1305.h sodium/crypto_aead_xchacha20poly1305.h sodium/crypto_auth.h sodium/crypto_auth_hmacsha256.h sodium/crypto_auth_hmacsha512.h sodium/crypto_auth_hmacsha512256.h sodium/crypto_box.h sodium/crypto_box_curve25519xchacha20poly1305.h sodium/crypto_box_curve25519xsalsa20poly1305.h sodium/crypto_core_ed25519.h sodium/crypto_core_hchacha20.h sodium/crypto_core_hsalsa20.h sodium/crypto_core_salsa20.h sodium/crypto_core_salsa2012.h sodium/crypto_core_salsa208.h sodium/crypto_generichash.h sodium/crypto_generichash_blake2b.h sodium/crypto_hash.h sodium/crypto_hash_sha256.h sodium/crypto_hash_sha512.h sodium/crypto_kdf.h sodium/crypto_kdf_blake2b.h sodium/crypto_kx.h sodium/crypto_onetimeauth.h sodium/crypto_onetimeauth_poly1305.h sodium/crypto_pwhash.h sodium/crypto_pwhash_argon2i.h sodium/crypto_pwhash_argon2id.h sodium/crypto_pwhash_scryptsalsa208sha256.h sodium/crypto_scalarmult.h sodium/crypto_scalarmult_curve25519.h sodium/crypto_scalarmult_ed25519.h sodium/crypto_secretbox.h sodium/crypto_secretbox_xchacha20poly1305.h sodium/crypto_secretbox_xsalsa20poly1305.h sodium/crypto_secretstream_xchacha20poly1305.h sodium/crypto_shorthash.h sodium/crypto_shorthash_siphash24.h '/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/tmp/include/sodium'
 /usr/bin/mkdir -p '/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/tmp/include/sodium'
 /usr/bin/install -c -m 644  sodium/crypto_sign.h sodium/crypto_sign_ed25519.h sodium/crypto_sign_edwards25519sha512batch.h sodium/crypto_stream.h sodium/crypto_stream_chacha20.h sodium/crypto_stream_salsa20.h sodium/crypto_stream_salsa2012.h sodium/crypto_stream_salsa208.h sodium/crypto_stream_xchacha20.h sodium/crypto_stream_xsalsa20.h sodium/crypto_verify_16.h sodium/crypto_verify_32.h sodium/crypto_verify_64.h sodium/export.h sodium/randombytes.h sodium/randombytes_salsa20_random.h sodium/randombytes_sysrandom.h sodium/runtime.h sodium/utils.h '/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/tmp/include/sodium'
 /usr/bin/install -c -m 644  sodium.h '/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/tmp/include/.'
 /usr/bin/mkdir -p '/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/tmp/include'
 /usr/bin/mkdir -p '/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/tmp/include/sodium'
 /usr/bin/install -c -m 644  sodium/version.h '/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/tmp/include/sodium'
make[4]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/src/libsodium/include”
make[3]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/src/libsodium/include”
make[3]: Går till katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/src/libsodium”
  CC       crypto_aead/chacha20poly1305/sodium/libsodium_la-aead_chacha20poly1305.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_aead/xchacha20poly1305/sodium/libsodium_la-aead_xchacha20poly1305.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_auth/libsodium_la-crypto_auth.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_auth/hmacsha256/libsodium_la-auth_hmacsha256.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_auth/hmacsha512/libsodium_la-auth_hmacsha512.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_auth/hmacsha512256/libsodium_la-auth_hmacsha512256.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_box/libsodium_la-crypto_box.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_box/libsodium_la-crypto_box_easy.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_box/libsodium_la-crypto_box_seal.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_box/curve25519xsalsa20poly1305/libsodium_la-box_curve25519xsalsa20poly1305.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_core/ed25519/ref10/libsodium_la-ed25519_ref10.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_core/hchacha20/libsodium_la-core_hchacha20.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_core/hsalsa20/ref2/libsodium_la-core_hsalsa20_ref2.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_core/hsalsa20/libsodium_la-core_hsalsa20.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_core/salsa/ref/libsodium_la-core_salsa_ref.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_generichash/libsodium_la-crypto_generichash.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_generichash/blake2b/libsodium_la-generichash_blake2.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_generichash/blake2b/ref/libsodium_la-blake2b-compress-ref.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_generichash/blake2b/ref/libsodium_la-blake2b-ref.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_generichash/blake2b/ref/libsodium_la-generichash_blake2b.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_hash/libsodium_la-crypto_hash.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_hash/sha256/libsodium_la-hash_sha256.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_hash/sha256/cp/libsodium_la-hash_sha256_cp.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_hash/sha512/libsodium_la-hash_sha512.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_hash/sha512/cp/libsodium_la-hash_sha512_cp.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_kdf/blake2b/libsodium_la-kdf_blake2b.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_kdf/libsodium_la-crypto_kdf.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_kx/libsodium_la-crypto_kx.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_onetimeauth/libsodium_la-crypto_onetimeauth.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_onetimeauth/poly1305/libsodium_la-onetimeauth_poly1305.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_onetimeauth/poly1305/donna/libsodium_la-poly1305_donna.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/argon2/libsodium_la-argon2-core.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/argon2/libsodium_la-argon2-encoding.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/argon2/libsodium_la-argon2-fill-block-ref.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/argon2/libsodium_la-argon2.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/argon2/libsodium_la-blake2b-long.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/argon2/libsodium_la-pwhash_argon2i.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/argon2/libsodium_la-pwhash_argon2id.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/libsodium_la-crypto_pwhash.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_scalarmult/libsodium_la-crypto_scalarmult.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_scalarmult/curve25519/ref10/libsodium_la-x25519_ref10.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_scalarmult/curve25519/libsodium_la-scalarmult_curve25519.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_secretbox/libsodium_la-crypto_secretbox.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_secretbox/libsodium_la-crypto_secretbox_easy.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_secretbox/xsalsa20poly1305/libsodium_la-secretbox_xsalsa20poly1305.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_secretstream/xchacha20poly1305/libsodium_la-secretstream_xchacha20poly1305.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_shorthash/libsodium_la-crypto_shorthash.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_shorthash/siphash24/libsodium_la-shorthash_siphash24.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_shorthash/siphash24/ref/libsodium_la-shorthash_siphash24_ref.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_sign/libsodium_la-crypto_sign.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_sign/ed25519/libsodium_la-sign_ed25519.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_sign/ed25519/ref10/libsodium_la-keypair.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_sign/ed25519/ref10/libsodium_la-open.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_sign/ed25519/ref10/libsodium_la-sign.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_stream/chacha20/libsodium_la-stream_chacha20.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_stream/chacha20/ref/libsodium_la-chacha20_ref.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_stream/libsodium_la-crypto_stream.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_stream/salsa20/libsodium_la-stream_salsa20.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_stream/xsalsa20/libsodium_la-stream_xsalsa20.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_verify/sodium/libsodium_la-verify.lo
../../libtool: line 3459: -v: command not found
  CC       randombytes/libsodium_la-randombytes.lo
../../libtool: line 3459: -v: command not found
  CC       sodium/libsodium_la-codecs.lo
../../libtool: line 3459: -v: command not found
  CC       sodium/libsodium_la-core.lo
../../libtool: line 3459: -v: command not found
  CC       sodium/libsodium_la-runtime.lo
../../libtool: line 3459: -v: command not found
  CC       sodium/libsodium_la-utils.lo
../../libtool: line 3459: -v: command not found
  CC       sodium/libsodium_la-version.lo
../../libtool: line 3459: -v: command not found
  CPPAS    crypto_stream/salsa20/xmm6/libsodium_la-salsa20_xmm6-asm.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_stream/salsa20/xmm6/libsodium_la-salsa20_xmm6.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_scalarmult/curve25519/sandy2x/libsodium_la-curve25519_sandy2x.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_scalarmult/curve25519/sandy2x/libsodium_la-fe51_invert.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_scalarmult/curve25519/sandy2x/libsodium_la-fe_frombytes_sandy2x.lo
../../libtool: line 3459: -v: command not found
  CPPAS    crypto_scalarmult/curve25519/sandy2x/libsodium_la-sandy2x.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_box/curve25519xchacha20poly1305/libsodium_la-box_curve25519xchacha20poly1305.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_box/curve25519xchacha20poly1305/libsodium_la-box_seal_curve25519xchacha20poly1305.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_core/ed25519/libsodium_la-core_ed25519.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/scryptsalsa208sha256/libsodium_la-crypto_scrypt-common.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/scryptsalsa208sha256/libsodium_la-scrypt_platform.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/scryptsalsa208sha256/libsodium_la-pbkdf2-sha256.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/scryptsalsa208sha256/libsodium_la-pwhash_scryptsalsa208sha256.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_pwhash/scryptsalsa208sha256/nosse/libsodium_la-pwhash_scryptsalsa208sha256_nosse.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_scalarmult/ed25519/ref10/libsodium_la-scalarmult_ed25519_ref10.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_secretbox/xchacha20poly1305/libsodium_la-secretbox_xchacha20poly1305.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_shorthash/siphash24/libsodium_la-shorthash_siphashx24.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_shorthash/siphash24/ref/libsodium_la-shorthash_siphashx24_ref.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_sign/ed25519/ref10/libsodium_la-obsolete.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_stream/salsa2012/ref/libsodium_la-stream_salsa2012_ref.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_stream/salsa2012/libsodium_la-stream_salsa2012.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_stream/salsa208/ref/libsodium_la-stream_salsa208_ref.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_stream/salsa208/libsodium_la-stream_salsa208.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_stream/xchacha20/libsodium_la-stream_xchacha20.lo
../../libtool: line 3459: -v: command not found
  CC       randombytes/sysrandom/libsodium_la-randombytes_sysrandom.lo
../../libtool: line 3459: -v: command not found
  CC       crypto_aead/aes256gcm/aesni/libaesni_la-aead_aes256gcm_aesni.lo
../../libtool: line 3459: -v: command not found
  CCLD     libaesni.la
libtool:   error: 'crypto_aead/aes256gcm/aesni/libaesni_la-aead_aes256gcm_aesni.lo' is not a valid libtool object
make[3]: *** [Makefile:1184: libaesni.la] Fel 1
make[3]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/src/libsodium”
make[2]: *** [Makefile:3097: install-recursive] Fel 1
make[2]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/src/libsodium”
make[1]: *** [Makefile:398: install-recursive] Fel 1
make[1]: Lämnar katalogen ”/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/libsodium/src”
make: *** [Makefile:512: install-recursive] Fel 1
/home/egil/src/js/cabal-desktop/node_modules/sodium-universal/node_modules/sodium-native/preinstall.js:123
        if (err) throw err
                 ^

Error: make exited with 2

More or less same error when I tried installing cabal-cli.
I'm on parabola:

$ pacman -Qs libtool
local/libtool 2.4.6+42+gb88cebd5-13 (base-devel)
    A generic library support script
$ npm list|grep sodium
│ │ │ ├─┬ sodium-universal@2.0.0
│ │ │ │ ├─┬ sodium-javascript@0.5.6
│ │ │ │ └─┬ sodium-native@2.4.9
│ │ │ │ │ │ │ └── sodium-native@3.1.1 deduped
│ │ │ │ │ │ │ │ └── sodium-native@3.1.1 deduped
│ │ │ │ │ │ │ ├── sodium-native@3.1.1 deduped
│ │ │ │ │ │ ├─┬ sodium-native@3.1.1
│ │ │ │ │ ├── sodium-universal@2.0.0 deduped
│ │ │ │ │ │ │   │ └── sodium-universal@2.0.0 deduped
│ │ │ │ │ │ │   └─┬ sodium-native@2.4.9
│ │ │ │ │ │ ├── sodium-universal@2.0.0 deduped
│ │ ├─┬ sodium-universal@3.0.0
│ │ │ ├─┬ sodium-javascript@0.6.0
│ │ │ ├─┬ sodium-native@3.2.0
npm ERR! peer dep missing: typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta, required by tsutils@3.17.1

See also cabal-club/cabal-cli#197

Hey, I had some problems with building sodium-native in the past aswell. This seems like it might be an issue with an outdated version of libtool. If you have an old-ish version of libtool installed, I'd try upgrading it.