Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package on AUR no longer builds due to link-time error #9

Open
TheEyesightDim opened this issue May 14, 2024 · 0 comments
Open

Package on AUR no longer builds due to link-time error #9

TheEyesightDim opened this issue May 14, 2024 · 0 comments

Comments

@TheEyesightDim
Copy link

TheEyesightDim commented May 14, 2024

I'm raising this issue here since the maintainer of the AUR package (https://aur.archlinux.org/packages/jisho) is also the maintainer of this repository.

The following shows the output of me running makepkg on the AUR repo:

==> Making package: jisho 0.1.4-1 (Tue 14 May 2024 08:35:46 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating jisho-cli git repo...
==> Validating source files with md5sums...
    jisho-cli ... Skipped
==> Extracting sources...
  -> Creating working copy of jisho-cli git repo...
Reset branch 'makepkg'
==> Removing existing $pkgdir/ directory...
==> Starting build()...
   Compiling jisho-cli v0.1.4 (/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli)
warning: field `kanji` is never read
  --> src/main.rs:15:5
   |
12 | struct Options {
   |        ------- field in this struct
...
15 |     kanji: bool, // Sadly not (yet) supported by jisho.org's API
   |     ^^^^^
   |
   = note: `Options` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default

error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/eskaton/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcswcmdF/symbols.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.00.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.01.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.02.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.03.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.04.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.05.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.06.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.07.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.08.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.09.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.10.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.11.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.12.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.13.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.14.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.jisho_cli.55f8fd80b73a6014-cgu.15.rcgu.o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c.iykefy5d7syh3xi.rcgu.o" "-Wl,--as-needed" "-L" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps" "-L" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/build/ring-02ce9b783a934ec3/out" "-L" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libureq-0473946b52e56284.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libwebpki_roots-07f49ffc661227ba.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/librustls-f47571469d4d1746.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libbase64-85b7fb357da34336.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libsct-030659dcc9c56a6b.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libwebpki-cbff25bde1c0dae3.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libspin-45f05b7bc77c91c0.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libuntrusted-759dd52f2b590fae.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libonce_cell-bab2f3e2e24761cd.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libchunked_transfer-eb1c407f069a81c5.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/liblog-f31ec91342d00527.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libcfg_if-741c6560e4280290.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/liburl-a84201534bc8b1f8.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libidna-5fe5b47eb8f3c14a.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libunicode_normalization-4c7b10a67d783fd9.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libtinyvec-9286177e93b9e225.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libtinyvec_macros-dee11c7e5b6981e0.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libunicode_bidi-e8afb2a93865de92.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libform_urlencoded-dba5226bc4018798.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libpercent_encoding-0e9255b7c1b81c7b.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libmatches-098e3a22fc5a090c.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libserde_json-d738e2d07cbbe11a.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libryu-02d2704d953c8004.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libitoa-3965afef333b3a34.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libserde-349c9be6bc2cba0f.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libcolored-fc471155b40a5520.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/liblazy_static-513c96079fce9e8f.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libatty-5519e103a25cf5ba.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/liblibc-1599e0e6274720ba.rlib" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libargparse-2bfa37cf11b9358b.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2d08990d644ac786.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-6f2d4ec7ff80253d.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-c194d68892442324.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-9a71c52c5946f83b.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-ae9aec4ce2dabc4f.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-6a207457d27610cc.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-fb1d2514710eef16.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-e36e7ed4b08caeac.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-9e8dafdf0a1b7ecd.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-b218f37fe3c9ce2e.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-20c30954fd9b5ef4.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-6d3dfaf536d51163.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-cb4ce50789112af8.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-9897980a3b548e05.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-b7bd4d010c784af2.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-6d4515df28ba3369.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-e28568c1a21499f7.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-eedf3675950a13c2.rlib" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-715e69127681e2e0.rlib" "-Wl,-Bdynamic" "-lc" "-lm" "-lrt" "-lpthread" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/eskaton/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
  = note: /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libsct-030659dcc9c56a6b.rlib(sct-030659dcc9c56a6b.sct.38c0907b5d065465-cgu.0.rcgu.o): in function `sct::verify_sct':
          sct.38c0907b5d065465-cgu.0:(.text._ZN3sct10verify_sct17hcc07138e88a91e14E+0x692): undefined reference to `GFp_cpuid_setup'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libwebpki-cbff25bde1c0dae3.rlib(webpki-cbff25bde1c0dae3.webpki.de763d8837103ff8-cgu.1.rcgu.o): in function `ring::signature::UnparsedPublicKey<B>::verify':
          webpki.de763d8837103ff8-cgu.1:(.text._ZN4ring9signature26UnparsedPublicKey$LT$B$GT$6verify17h9442e91c198b7951E+0x4b): undefined reference to `GFp_cpuid_setup'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.10.rcgu.o): in function `ring::ec::curve25519::scalar::Scalar::from_bytes_checked':
          ring.94a14cd0d24e6739-cgu.10:(.text._ZN4ring2ec10curve255196scalar6Scalar18from_bytes_checked17h5066583e3be9b2d6E+0x1cf): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.10.rcgu.o): in function `<ring::ec::suite_b::ecdsa::verification::EcdsaVerificationAlgorithm as ring::signature::VerificationAlgorithm>::verify':
          ring.94a14cd0d24e6739-cgu.10:(.text._ZN125_$LT$ring..ec..suite_b..ecdsa..verification..EcdsaVerificationAlgorithm$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h31d2ebd9f467b1ccE+0x42f): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.10:(.text._ZN125_$LT$ring..ec..suite_b..ecdsa..verification..EcdsaVerificationAlgorithm$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h31d2ebd9f467b1ccE+0x72f): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.10.rcgu.o): in function `ring::ec::suite_b::private_key::affine_from_jacobian':
          ring.94a14cd0d24e6739-cgu.10:(.text._ZN4ring2ec7suite_b11private_key20affine_from_jacobian17h5e827916a4b6f805E+0xa4): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.10:(.text._ZN4ring2ec7suite_b11private_key20affine_from_jacobian17h5e827916a4b6f805E+0x3a8): undefined reference to `LIMBS_equal'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.12.rcgu.o): in function `ring::ec::suite_b::public_key::parse_uncompressed_point':
          ring.94a14cd0d24e6739-cgu.12:(.text._ZN4ring2ec7suite_b10public_key24parse_uncompressed_point17h8de250cae64695fcE+0x1e4): undefined reference to `LIMBS_equal'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.04.rcgu.o): in function `ring::aead::open_within_::open_within':
          ring.94a14cd0d24e6739-cgu.04:(.text._ZN4ring4aead12open_within_11open_within17h8e33f98729ea7ee8E+0x71): undefined reference to `GFp_memcmp'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o): in function `ring::ec::curve25519::x25519::x25519_public_from_private':
          ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec10curve255196x2551926x25519_public_from_private17hb8cebfd2d7d5b143E+0x3d): undefined reference to `GFp_x25519_sc_mask'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec10curve255196x2551926x25519_public_from_private17hb8cebfd2d7d5b143E+0x5a): undefined reference to `GFp_x25519_public_from_private_generic_masked'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o): in function `ring::ec::curve25519::x25519::x25519_ecdh':
          ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec10curve255196x2551911x25519_ecdh17h81e154b89d06a142E+0x4c): undefined reference to `GFp_x25519_sc_mask'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec10curve255196x2551911x25519_ecdh17h81e154b89d06a142E+0x78): undefined reference to `GFp_x25519_scalar_mult_generic_masked'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec10curve255196x2551911x25519_ecdh17h81e154b89d06a142E+0x95): undefined reference to `GFp_memcmp'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o): in function `ring::ec::suite_b::ops::p256::p256_point_mul_base_impl':
          ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec7suite_b3ops4p25624p256_point_mul_base_impl17hb43cce7fe6c281d5E+0x4a): undefined reference to `GFp_nistz256_point_mul_base'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o): in function `ring::ec::suite_b::ops::p256::p256_scalar_inv_to_mont':
          ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec7suite_b3ops4p25623p256_scalar_inv_to_mont17h5f9b5b5988b3d6fdE+0x95): undefined reference to `GFp_p256_scalar_sqr_mont'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec7suite_b3ops4p25623p256_scalar_inv_to_mont17h5f9b5b5988b3d6fdE+0x296): undefined reference to `GFp_p256_scalar_sqr_mont'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o): in function `ring::ec::suite_b::ops::p384::p384_elem_inv_squared':
          ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec7suite_b3ops4p38421p384_elem_inv_squared17h4ca6e8e6d26c6a06E+0x30): undefined reference to `GFp_p384_elem_mul_mont'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o): in function `ring::ec::suite_b::ops::p384::p384_point_mul_base_impl':
          ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec7suite_b3ops4p38424p384_point_mul_base_impl17h5ef422c9e9fcb039E+0x58): undefined reference to `GFp_nistz384_point_mul'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o): in function `ring::ec::suite_b::ops::p384::p384_scalar_inv_to_mont':
          ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec7suite_b3ops4p38423p384_scalar_inv_to_mont17ha4012d8725e3518dE+0x4e): undefined reference to `GFp_p384_scalar_mul_mont'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec7suite_b3ops4p38423p384_scalar_inv_to_mont17ha4012d8725e3518dE+0x9c4): undefined reference to `GFp_p384_scalar_mul_mont'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o): in function `ring::ec::suite_b::ops::p384::GFp_p384_elem_sqr_mont':
          ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring2ec7suite_b3ops4p38422GFp_p384_elem_sqr_mont17h7658e8acf9ffcb47E+0xa): undefined reference to `GFp_p384_elem_mul_mont'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o): in function `ring::limb::limbs_minimal_bits':
          ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring4limb18limbs_minimal_bits17h5480e515665e470bE+0x7f): undefined reference to `LIMB_shr'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o): in function `ring::limb::parse_big_endian_in_range_partially_reduced_and_pad_consttime':
          ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring4limb61parse_big_endian_in_range_partially_reduced_and_pad_consttime17h044cb5adae22f982E+0x115): undefined reference to `LIMBS_reduce_once'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring4limb61parse_big_endian_in_range_partially_reduced_and_pad_consttime17h044cb5adae22f982E+0x12b): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o): in function `ring::limb::parse_big_endian_in_range_and_pad_consttime':
          ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring4limb43parse_big_endian_in_range_and_pad_consttime17h770ee71f2c38085cE+0x129): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.05:(.text._ZN4ring4limb43parse_big_endian_in_range_and_pad_consttime17h770ee71f2c38085cE+0x144): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o):(.data.rel.ro._ZN4ring2ec7suite_b3ops4p25615PRIVATE_KEY_OPS17hd3e3b315092d9badE+0x18): undefined reference to `GFp_nistz256_point_mul'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o):(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410COMMON_OPS17h6321b3a89d4a1fb7E+0x0): undefined reference to `GFp_p384_elem_add'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o):(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410COMMON_OPS17h6321b3a89d4a1fb7E+0x8): undefined reference to `GFp_p384_elem_mul_mont'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o):(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410COMMON_OPS17h6321b3a89d4a1fb7E+0x18): undefined reference to `GFp_nistz384_point_add'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o):(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38415PRIVATE_KEY_OPS17h2bf01d99516e1f47E+0x18): undefined reference to `GFp_nistz384_point_mul'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.05.rcgu.o):(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410SCALAR_OPS17h75272300fa317cfcE+0x10): undefined reference to `GFp_p384_scalar_mul_mont'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.06.rcgu.o): in function `ring::aead::aes_gcm::init':
          ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm4init17h2c0c407a293fe3acE+0xb0): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm4init17h2c0c407a293fe3acE+0xfe): undefined reference to `GFp_aes_nohw_set_encrypt_key'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm4init17h2c0c407a293fe3acE+0x1cc): undefined reference to `GFp_aes_nohw_encrypt'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.06.rcgu.o): in function `ring::aead::aes_gcm::aes_gcm_seal':
          ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17ha4fecbc6193af613E+0x80): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17ha4fecbc6193af613E+0xb1): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17ha4fecbc6193af613E+0x110): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17ha4fecbc6193af613E+0x20a): undefined reference to `GFp_aes_nohw_ctr32_encrypt_blocks'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17ha4fecbc6193af613E+0x21e): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17ha4fecbc6193af613E+0x353): undefined reference to `GFp_aes_nohw_encrypt'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17ha4fecbc6193af613E+0x3c9): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17ha4fecbc6193af613E+0x4af): undefined reference to `GFp_aes_nohw_encrypt'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.06.rcgu.o): in function `ring::aead::aes_gcm::aes_gcm_open':
          ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_open17h7cd3f2d707b3caa4E+0x85): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_open17h7cd3f2d707b3caa4E+0xb6): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_open17h7cd3f2d707b3caa4E+0x14a): undefined reference to `GFp_aes_nohw_ctr32_encrypt_blocks'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_open17h7cd3f2d707b3caa4E+0x192): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_open17h7cd3f2d707b3caa4E+0x367): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_open17h7cd3f2d707b3caa4E+0x3f6): undefined reference to `GFp_aes_nohw_encrypt'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_open17h7cd3f2d707b3caa4E+0x468): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead7aes_gcm12aes_gcm_open17h7cd3f2d707b3caa4E+0x50e): undefined reference to `GFp_aes_nohw_encrypt'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.06.rcgu.o): in function `ring::aead::chacha20_poly1305::chacha20_poly1305_seal':
          ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h350981c6ec5c1543E+0x37): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h350981c6ec5c1543E+0xce): undefined reference to `GFp_poly1305_init'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h350981c6ec5c1543E+0x10a): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h350981c6ec5c1543E+0x14a): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h350981c6ec5c1543E+0x19f): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h350981c6ec5c1543E+0x1df): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h350981c6ec5c1543E+0x20f): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h350981c6ec5c1543E+0x23a): undefined reference to `GFp_poly1305_finish'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.06.rcgu.o): in function `ring::aead::chacha20_poly1305::chacha20_poly1305_open':
          ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17hcbfd4201a117624aE+0x3b): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17hcbfd4201a117624aE+0xd2): undefined reference to `GFp_poly1305_init'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17hcbfd4201a117624aE+0x10e): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17hcbfd4201a117624aE+0x14e): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17hcbfd4201a117624aE+0x186): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17hcbfd4201a117624aE+0x1c6): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17hcbfd4201a117624aE+0x224): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.06:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17hcbfd4201a117624aE+0x24f): undefined reference to `GFp_poly1305_finish'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.08.rcgu.o): in function `ring::rsa::verification::verify_rsa_':
          ring.94a14cd0d24e6739-cgu.08:(.text._ZN4ring3rsa12verification11verify_rsa_17h879c6826d45c0b8aE+0xdc): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.09.rcgu.o): in function `ring::aead::gcm::Context::new':
          ring.94a14cd0d24e6739-cgu.09:(.text._ZN4ring4aead3gcm7Context3new17hb1a2811bdf7396b7E+0x50): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.09:(.text._ZN4ring4aead3gcm7Context3new17hb1a2811bdf7396b7E+0x1da): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.09:(.text._ZN4ring4aead3gcm7Context3new17hb1a2811bdf7396b7E+0x1ff): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.09.rcgu.o): in function `ring::aead::gcm::Context::update_block':
          ring.94a14cd0d24e6739-cgu.09:(.text._ZN4ring4aead3gcm7Context12update_block17hecc4ad95df1c2646E+0xf): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.09.rcgu.o): in function `ring::constant_time::verify_slices_are_equal':
          ring.94a14cd0d24e6739-cgu.09:(.text._ZN4ring13constant_time23verify_slices_are_equal17h0b3d0685fac18789E+0x16): undefined reference to `GFp_memcmp'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.09.rcgu.o): in function `<ring::ec::curve25519::ed25519::verification::EdDSAParameters as ring::signature::VerificationAlgorithm>::verify':
          ring.94a14cd0d24e6739-cgu.09:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h2352a3b67f58509cE+0xe4): undefined reference to `GFp_x25519_ge_frombytes_vartime'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.09:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h2352a3b67f58509cE+0x113): undefined reference to `GFp_x25519_fe_neg'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.09:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h2352a3b67f58509cE+0x120): undefined reference to `GFp_x25519_fe_neg'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.09:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h2352a3b67f58509cE+0x1a8): undefined reference to `GFp_x25519_sc_reduce'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.09:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h2352a3b67f58509cE+0x225): undefined reference to `GFp_x25519_ge_double_scalarmult_vartime'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.09:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h2352a3b67f58509cE+0x318): undefined reference to `GFp_x25519_fe_invert'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.09:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h2352a3b67f58509cE+0x33b): undefined reference to `GFp_x25519_fe_mul_ttt'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.09:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h2352a3b67f58509cE+0x392): undefined reference to `GFp_x25519_fe_tobytes'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.09:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h2352a3b67f58509cE+0x39f): undefined reference to `GFp_x25519_fe_isnegative'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.09.rcgu.o): in function `ring::ec::suite_b::verify_jacobian_point_is_on_the_curve':
          ring.94a14cd0d24e6739-cgu.09:(.text._ZN4ring2ec7suite_b37verify_jacobian_point_is_on_the_curve17h035f4b7182c90c23E+0x91): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.09:(.text._ZN4ring2ec7suite_b37verify_jacobian_point_is_on_the_curve17h035f4b7182c90c23E+0x362): undefined reference to `LIMBS_equal'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.14.rcgu.o): in function `spin::once::Once<T>::call_once':
          ring.94a14cd0d24e6739-cgu.14:(.text._ZN4spin4once13Once$LT$T$GT$9call_once17h7b24fbce3e5a31e1E+0x2c): undefined reference to `GFp_cpuid_setup'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(aesni-x86_64-elf.o): in function `GFp_aes_hw_ctr32_encrypt_blocks':
          /home/eskaton/.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: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(aesni-x86_64-elf.o): in function `GFp_aes_hw_set_encrypt_key':
          /home/eskaton/.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: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(x86_64-mont-elf.o): in function `GFp_bn_mul_mont':
          /home/eskaton/.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: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(x86_64-mont-elf.o): in function `bn_sqr8x_mont':
          /home/eskaton/.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: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(x86_64-mont5-elf.o): in function `GFp_bn_mul_mont_gather5':
          /home/eskaton/.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: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(x86_64-mont5-elf.o):/home/eskaton/.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
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.00.rcgu.o): in function `ring::arithmetic::bigint::Modulus<M>::from_be_bytes_with_bit_length':
          ring.94a14cd0d24e6739-cgu.00:(.text._ZN4ring10arithmetic6bigint16Modulus$LT$M$GT$29from_be_bytes_with_bit_length17h86df28bcbeab9f39E+0x220): undefined reference to `LIMBS_are_even'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.00:(.text._ZN4ring10arithmetic6bigint16Modulus$LT$M$GT$29from_be_bytes_with_bit_length17h86df28bcbeab9f39E+0x246): undefined reference to `LIMBS_less_than_limb'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.00:(.text._ZN4ring10arithmetic6bigint16Modulus$LT$M$GT$29from_be_bytes_with_bit_length17h86df28bcbeab9f39E+0x28f): undefined reference to `GFp_bn_neg_inv_mod_r_u64'
          /usr/bin/ld: ring.94a14cd0d24e6739-cgu.00:(.text._ZN4ring10arithmetic6bigint16Modulus$LT$M$GT$29from_be_bytes_with_bit_length17h86df28bcbeab9f39E+0x34a): undefined reference to `LIMBS_shl_mod'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/libring-4e49c966b64778b9.rlib(ring-4e49c966b64778b9.ring.94a14cd0d24e6739-cgu.00.rcgu.o): in function `ring::arithmetic::bigint::Elem<M>::from_be_bytes_padded':
          ring.94a14cd0d24e6739-cgu.00:(.text._ZN4ring10arithmetic6bigint13Elem$LT$M$GT$20from_be_bytes_padded17h677d5f157cd8f373E+0x172): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: /home/eskaton/AUR/jisho-old/jisho/src/jisho-cli/target/release/deps/jisho_cli-1df49385456eca7c: hidden symbol `GFp_ia32cap_P' isn't defined
          /usr/bin/ld: final link failed: bad value
          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#rustc-link-lib)

warning: `jisho-cli` (bin "jisho-cli") generated 1 warning
error: could not compile `jisho-cli` (bin "jisho-cli") due to 1 previous error; 1 warning emitted
==> ERROR: A failure occurred in build().
    Aborting...

I'm not able to get the PKGBUILD to produce a binary and install, because during the build() phase rust complains about undefined symbols. It seems the ring crate is taken in as a dependency and for whatever reason it is not compatible with GCC LTO (at least that's what I gather, I don't strongly understand it). This issue from the ring project elaborates on it more:

briansmith/ring#1444 (comment)

By disabling LTO in the options variable of the PKGBUILD, I'm able to build and install the package with makepkg. In the following example I also specified gcc-libs and glibc as dependencies explicitly so that namcap would not complain, and added a hash using updpkgsums.

# Maintainer: jojii <[email protected]>
pkgname=jisho
_gitname=jisho-cli
pkgver=0.1.4
pkgrel=2
pkgdesc="A very simple cli tool to lookup Japanese words using jisho.org"
url="https://github.com/JojiiOfficial/jisho-cli"
license=("GPL-3.0-only")
source=("git+$url#tag=v$pkgver")
options=(!lto)
arch=(x86_64)
depends=(gcc-libs glibc)
makedepends=(cargo git)
b2sums=('e0459523a3e8bf29be93a1744c7014447d6ec1c17bfb6352a9abc02ddd38c339ef9efe37161cbd0c10e71a584e461654642825a740dd1a96b3646676f29e7971')

prepare() {
    cd $_gitname

    export RUSTUP_TOOLCHAIN=stable
    cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
    cd $_gitname

    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
    cargo build --release --frozen --verbose
}

package() {
    cd $_gitname

    install -Dm 755 "target/release/${_gitname}" "${pkgdir}/usr/bin/${pkgname}"
    install -Dm 755 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant