Vonr / parui

Simple TUI frontend for paru or yay.
162 stars 4 forks source link

Linker error #4

Closed darman96 closed 1 year ago

darman96 commented 1 year ago

I just tried installing parui on Arch (CachyOS) via the AUR and I get following linker error, I checked the dependencies on the AUR and they are all installed.

   Compiling parui v1.0.8 (/home/erik/.cache/paru/clone/parui-git/src/parui)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/erik/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/erik/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" VSLANG="1033" "cc" "-m64" "/tmp/rustcy8EsDD/symbols.o" "/home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps" "-L" "/home/erik/.cache/paru/clone/parui-git/src/parui/target/release/build/sys-info-a22b73abc583a5eb/out" "-L" "/home/erik/.cache/paru/clone/parui-git/src/parui/target/release/build/ring-328223fab38a74e7/out" "-L" "/home/erik/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustcy8EsDD/libsys_info-536cb11d6bf3d0f6.rlib" "/tmp/rustcy8EsDD/libring-9a263f033f49d007.rlib" "/home/erik/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d092fa2c0bdfc89c.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/erik/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-all" "-nodefaultlibs"
  = note: /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::aead::aes_gcm::aes_gcm_seal':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17h5f14cdcff32a9b88E+0x1c3): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17h5f14cdcff32a9b88E+0x337): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17h5f14cdcff32a9b88E+0x3e9): undefined reference to `GFp_aes_nohw_encrypt'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::aead::aes_gcm::aes_gcm_open':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead7aes_gcm12aes_gcm_open17h6c3a0d2a297352d3E+0x1cb): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead7aes_gcm12aes_gcm_open17h6c3a0d2a297352d3E+0x36c): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead7aes_gcm12aes_gcm_open17h6c3a0d2a297352d3E+0x40b): undefined reference to `GFp_aes_nohw_encrypt'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::aead::gcm::Context::update_block':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead3gcm7Context12update_block17h7f834a1d14ed0521E+0x17): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::aead::shift::shift_partial':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead5shift13shift_partial17h248dc7df22161e8aE+0x8c): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead5shift13shift_partial17h248dc7df22161e8aE+0x137): undefined reference to `GFp_aes_nohw_encrypt'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::aead::gcm::Context::update_blocks':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead3gcm7Context13update_blocks17h2b5e90e237376f14E+0x11): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::aead::aes::Key::ctr32_encrypt_blocks':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead3aes3Key20ctr32_encrypt_blocks17h382e8571427109aaE+0x31): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead3aes3Key20ctr32_encrypt_blocks17h382e8571427109aaE+0xe4): undefined reference to `GFp_aes_nohw_ctr32_encrypt_blocks'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::aead::aes_gcm::init':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead7aes_gcm4init17h5a6c4a847ba9ca5aE+0x34): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead7aes_gcm4init17h5a6c4a847ba9ca5aE+0xc3): undefined reference to `GFp_aes_nohw_set_encrypt_key'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead7aes_gcm4init17h5a6c4a847ba9ca5aE+0x211): undefined reference to `GFp_aes_nohw_encrypt'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::aead::chacha20_poly1305::chacha20_poly1305_seal':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h2d24c417a7d7f5e1E+0x24): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h2d24c417a7d7f5e1E+0x15d): undefined reference to `GFp_poly1305_init'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h2d24c417a7d7f5e1E+0x19b): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h2d24c417a7d7f5e1E+0x1fe): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h2d24c417a7d7f5e1E+0x260): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h2d24c417a7d7f5e1E+0x2bb): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h2d24c417a7d7f5e1E+0x2ee): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h2d24c417a7d7f5e1E+0x31f): undefined reference to `GFp_poly1305_finish'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::aead::chacha20_poly1305::chacha20_poly1305_open':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17h49a6be0c64f51d28E+0x24): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17h49a6be0c64f51d28E+0x14b): undefined reference to `GFp_poly1305_init'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17h49a6be0c64f51d28E+0x186): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17h49a6be0c64f51d28E+0x1d5): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17h49a6be0c64f51d28E+0x20c): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17h49a6be0c64f51d28E+0x25b): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17h49a6be0c64f51d28E+0x2b9): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17h49a6be0c64f51d28E+0x2e4): undefined reference to `GFp_poly1305_finish'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::curve25519::x25519::x25519_public_from_private':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec10curve255196x2551926x25519_public_from_private17h2b99d78e184113d5E+0x38): undefined reference to `GFp_x25519_sc_mask'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec10curve255196x2551926x25519_public_from_private17h2b99d78e184113d5E+0x54): undefined reference to `GFp_x25519_public_from_private_generic_masked'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::curve25519::x25519::x25519_ecdh':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec10curve255196x2551911x25519_ecdh17hcdafab1e8b5ee35eE+0x44): undefined reference to `GFp_x25519_sc_mask'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec10curve255196x2551911x25519_ecdh17hcdafab1e8b5ee35eE+0x6f): undefined reference to `GFp_x25519_scalar_mult_generic_masked'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec10curve255196x2551911x25519_ecdh17hcdafab1e8b5ee35eE+0x8c): undefined reference to `GFp_memcmp'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::suite_b::ops::p256::p256_point_mul_base_impl':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b3ops4p25624p256_point_mul_base_impl17h1ac82eea6bae7ef5E+0x34): undefined reference to `GFp_nistz256_point_mul_base'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::suite_b::ops::p256::p256_scalar_inv_to_mont':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b3ops4p25623p256_scalar_inv_to_mont17h21581a68587bbe2eE+0xb4): undefined reference to `GFp_p256_scalar_sqr_mont'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b3ops4p25623p256_scalar_inv_to_mont17h21581a68587bbe2eE+0x2d6): undefined reference to `GFp_p256_scalar_sqr_mont'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::suite_b::curve::p256_check_private_key_bytes':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b5curve28p256_check_private_key_bytes17h5f7cdba9b5dbd393E+0x17c): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b5curve28p256_check_private_key_bytes17h5f7cdba9b5dbd393E+0x195): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::suite_b::curve::p256_generate_private_key':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b5curve25p256_generate_private_key17hce2f029e902fd6a3E+0x1eb): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b5curve25p256_generate_private_key17hce2f029e902fd6a3E+0x203): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::limb::parse_big_endian_in_range_and_pad_consttime':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4limb43parse_big_endian_in_range_and_pad_consttime17h89064fc0b471d0feE+0x14f): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring4limb43parse_big_endian_in_range_and_pad_consttime17h89064fc0b471d0feE+0x16a): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::suite_b::private_key::affine_from_jacobian':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b11private_key20affine_from_jacobian17hd1236f751c1a385fE+0x92): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b11private_key20affine_from_jacobian17hd1236f751c1a385fE+0x33d): undefined reference to `LIMBS_equal'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::suite_b::ops::p384::p384_elem_inv_squared':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b3ops4p38421p384_elem_inv_squared17ha8fc3750d649f717E+0x14): undefined reference to `GFp_p384_elem_mul_mont'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::suite_b::ops::p384::p384_point_mul_base_impl':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b3ops4p38424p384_point_mul_base_impl17hffba0281d2457bd3E+0x42): undefined reference to `GFp_nistz384_point_mul'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::suite_b::ops::p384::GFp_p384_elem_sqr_mont':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b3ops4p38422GFp_p384_elem_sqr_mont17h8c38704cae1749bcE+0x5): undefined reference to `GFp_p384_elem_mul_mont'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::suite_b::ops::p384::p384_scalar_inv_to_mont':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b3ops4p38423p384_scalar_inv_to_mont17h20a5205540215ee0E+0x14): undefined reference to `GFp_p384_scalar_mul_mont'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b3ops4p38423p384_scalar_inv_to_mont17h20a5205540215ee0E+0xa17): undefined reference to `GFp_p384_scalar_mul_mont'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::suite_b::curve::p384_check_private_key_bytes':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b5curve28p384_check_private_key_bytes17h9c1339814c222918E+0x223): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b5curve28p384_check_private_key_bytes17h9c1339814c222918E+0x23c): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::suite_b::curve::p384_generate_private_key':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b5curve25p384_generate_private_key17h0f21f6b7b1d7f2eaE+0x29f): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b5curve25p384_generate_private_key17h0f21f6b7b1d7f2eaE+0x2b7): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::ec::suite_b::public_key::parse_uncompressed_point':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring2ec7suite_b10public_key24parse_uncompressed_point17h7747c82dc3295d6fE+0x38e): undefined reference to `LIMBS_equal'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `spin::once::Once<T>::call_once':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4spin4once13Once$LT$T$GT$9call_once17h77d3b1520639bb2eE+0x21): undefined reference to `GFp_cpuid_setup'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `<ring::ec::curve25519::ed25519::verification::EdDSAParameters as ring::signature::VerificationAlgorithm>::verify':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h58f7915a37f614f5E+0xf3): undefined reference to `GFp_x25519_ge_frombytes_vartime'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h58f7915a37f614f5E+0x124): undefined reference to `GFp_x25519_fe_neg'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h58f7915a37f614f5E+0x345): undefined reference to `GFp_x25519_sc_reduce'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h58f7915a37f614f5E+0x3a5): undefined reference to `GFp_x25519_ge_double_scalarmult_vartime'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h58f7915a37f614f5E+0x473): undefined reference to `GFp_x25519_fe_invert'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h58f7915a37f614f5E+0x47a): undefined reference to `GFp_x25519_fe_mul_ttt'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h58f7915a37f614f5E+0x4f3): undefined reference to `GFp_x25519_fe_tobytes'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h58f7915a37f614f5E+0x4fc): undefined reference to `GFp_x25519_fe_isnegative'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `<ring::ec::suite_b::ecdsa::verification::EcdsaVerificationAlgorithm as ring::signature::VerificationAlgorithm>::verify':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN125_$LT$ring..ec..suite_b..ecdsa..verification..EcdsaVerificationAlgorithm$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h68df0293e5891bddE+0x31e): undefined reference to `LIMBS_reduce_once'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN125_$LT$ring..ec..suite_b..ecdsa..verification..EcdsaVerificationAlgorithm$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h68df0293e5891bddE+0x52a): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN125_$LT$ring..ec..suite_b..ecdsa..verification..EcdsaVerificationAlgorithm$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h68df0293e5891bddE+0x7a3): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN125_$LT$ring..ec..suite_b..ecdsa..verification..EcdsaVerificationAlgorithm$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h68df0293e5891bddE+0xaa6): undefined reference to `LIMBS_equal'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN125_$LT$ring..ec..suite_b..ecdsa..verification..EcdsaVerificationAlgorithm$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h68df0293e5891bddE+0xbb0): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `ring::rsa::verification::<impl ring::signature::VerificationAlgorithm for ring::rsa::RsaParameters>::verify':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17had993d522bdde1caE+0x319): undefined reference to `LIMBS_are_even'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17had993d522bdde1caE+0x331): undefined reference to `LIMBS_less_than_limb'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17had993d522bdde1caE+0x369): undefined reference to `GFp_bn_neg_inv_mod_r_u64'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17had993d522bdde1caE+0x3cd): undefined reference to `LIMB_shr'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17had993d522bdde1caE+0x4c9): undefined reference to `LIMBS_shl_mod'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17had993d522bdde1caE+0x8c4): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: parui.f9229e822aa1d619-cgu.0:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17had993d522bdde1caE+0x948): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `<rustls::tls12::cipher::ChaCha20Poly1305MessageDecrypter as rustls::cipher::MessageDecrypter>::decrypt':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN108_$LT$rustls..tls12..cipher..ChaCha20Poly1305MessageDecrypter$u20$as$u20$rustls..cipher..MessageDecrypter$GT$7decrypt17hb5960ebb79a33956E+0x24a): undefined reference to `GFp_memcmp'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `<rustls::tls12::cipher::GcmMessageDecrypter as rustls::cipher::MessageDecrypter>::decrypt':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN95_$LT$rustls..tls12..cipher..GcmMessageDecrypter$u20$as$u20$rustls..cipher..MessageDecrypter$GT$7decrypt17hc77369c458f5a7d2E+0x19d): undefined reference to `GFp_memcmp'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `<rustls::tls13::Tls13MessageDecrypter as rustls::cipher::MessageDecrypter>::decrypt':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN89_$LT$rustls..tls13..Tls13MessageDecrypter$u20$as$u20$rustls..cipher..MessageDecrypter$GT$7decrypt17hc5345b0fe9a58161E+0x151): undefined reference to `GFp_memcmp'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `<rustls::verify::WebPkiVerifier as rustls::verify::ServerCertVerifier>::verify_server_cert':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN85_$LT$rustls..verify..WebPkiVerifier$u20$as$u20$rustls..verify..ServerCertVerifier$GT$18verify_server_cert17h68775e847816ae92E+0x1a94): undefined reference to `GFp_cpuid_setup'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `<rustls::client::tls12::ExpectFinished as rustls::common_state::State<rustls::client::client_conn::ClientConnectionData>>::handle':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN142_$LT$rustls..client..tls12..ExpectFinished$u20$as$u20$rustls..common_state..State$LT$rustls..client..client_conn..ClientConnectionData$GT$$GT$6handle17hde40ccfa78ad45bdE+0x267): undefined reference to `GFp_memcmp'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `<rustls::client::tls13::ExpectFinished as rustls::common_state::State<rustls::client::client_conn::ClientConnectionData>>::handle':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN142_$LT$rustls..client..tls13..ExpectFinished$u20$as$u20$rustls..common_state..State$LT$rustls..client..client_conn..ClientConnectionData$GT$$GT$6handle17h1788039ccabd02daE+0x23f): undefined reference to `GFp_memcmp'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o: in function `webpki::signed_data::verify_signature':
          parui.f9229e822aa1d619-cgu.0:(.text._ZN6webpki11signed_data16verify_signature17h38aaa288b33255e5E+0x16a): undefined reference to `GFp_cpuid_setup'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p25615PRIVATE_KEY_OPS17hb8289dcc34d9e1d8E+0x18): undefined reference to `GFp_nistz256_point_mul'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410COMMON_OPS17h4267965a093c3acdE+0x0): undefined reference to `GFp_p384_elem_add'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410COMMON_OPS17h4267965a093c3acdE+0x8): undefined reference to `GFp_p384_elem_mul_mont'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410COMMON_OPS17h4267965a093c3acdE+0x18): undefined reference to `GFp_nistz384_point_add'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38415PRIVATE_KEY_OPS17h57e9170a18ac5271E+0x18): undefined reference to `GFp_nistz384_point_mul'
          /usr/bin/ld: /home/erik/.cache/paru/clone/parui-git/src/parui/target/release/deps/parui-29815bb12b06ce56.parui.f9229e822aa1d619-cgu.0.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410SCALAR_OPS17hac61508a44ad86dbE+0x10): undefined reference to `GFp_p384_scalar_mul_mont'
          /usr/bin/ld: /tmp/rustcy8EsDD/libring-9a263f033f49d007.rlib(aesni-x86_64-elf.o): in function `GFp_aes_hw_ctr32_encrypt_blocks':
          /home/erik/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.16.20/pregenerated/aesni-x86_64-elf.S:363:(.text+0x4af): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /tmp/rustcy8EsDD/libring-9a263f033f49d007.rlib(aesni-x86_64-elf.o): in function `GFp_aes_hw_set_encrypt_key':
          /home/erik/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.16.20/pregenerated/aesni-x86_64-elf.S:869:(.text+0xcf6): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /tmp/rustcy8EsDD/libring-9a263f033f49d007.rlib(x86_64-mont-elf.o): in function `GFp_bn_mul_mont':
          /home/erik/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.16.20/pregenerated/x86_64-mont-elf.S:29:(.text+0x18): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /tmp/rustcy8EsDD/libring-9a263f033f49d007.rlib(x86_64-mont-elf.o): in function `bn_sqr8x_mont':
          /home/erik/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.16.20/pregenerated/x86_64-mont-elf.S:790:(.text+0x8b6): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /tmp/rustcy8EsDD/libring-9a263f033f49d007.rlib(x86_64-mont5-elf.o): in function `GFp_bn_mul_mont_gather5':
          /home/erik/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.16.20/pregenerated/x86_64-mont5-elf.S:27:(.text+0x12): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /tmp/rustcy8EsDD/libring-9a263f033f49d007.rlib(x86_64-mont5-elf.o):/home/erik/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.16.20/pregenerated/x86_64-mont5-elf.S:1098: more undefined references to `GFp_ia32cap_P' follow
          collect2: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

error: could not compile `parui` (bin "parui") due to previous error
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'parui-git-0.1.14.r0.e79f9bb-3':
error: packages failed to build: parui-git-0.1.14.r0.e79f9bb-3
Vonr commented 1 year ago

I have pushed an update, could you try it?

darman96 commented 1 year ago

Still the same (installed via AUR parui-git)

Vonr commented 1 year ago

I'm not sure why it is failing, it seems to be an OpenSSL issue, but I don't believe any dependencies use OpenSSL, especially not since I disabled the native-tls feature on ureq.

Vonr commented 1 year ago

I think I have tracked down the issue to https://github.com/briansmith/ring/issues/1444 and should have fixed it accordingly. Could you try again? Thank you!

darman96 commented 1 year ago

Hi, it is working now, thanks.