wtklbm / crm

Cargo registry manager (Cargo 注册表管理器),用于方便的管理和更换 Rust 国内镜像源
https://crates.io/crates/crm
Apache License 2.0
401 stars 24 forks source link

v0.2.0 编译错误 #14

Closed taotieren closed 1 year ago

taotieren commented 1 year ago
❯ extra-x86_64-build
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
:: Starting full system upgrade...
 there is nothing to do
==> Building in chroot for [extra] (x86_64)...
==> Synchronizing chroot copy [/var/lib/archbuild/extra-x86_64/root] -> [taotieren]...done
==> Making package: crm-git 0.2.0.r0.g22946d3-1 (Wed Mar 29 23:43:58 2023)
==> Retrieving sources...
  -> Updating crm git repo...
==> Validating source files with sha256sums...
    crm ... Skipped
==> Making package: crm-git 0.2.0.r0.g22946d3-1 (Wed Mar 29 23:44:05 2023)
==> Checking runtime dependencies...
==> Installing missing dependencies...
:: There are 2 providers available for cargo:
:: Repository extra
   1) rust
:: Repository community
   2) rustup

Enter a number (default=1): 
resolving dependencies...
looking for conflicting packages...

Package (3)      New Version     Net Change

core/libedit     20221030_3.1-1    0.28 MiB
extra/llvm-libs  15.0.7-2        120.48 MiB
extra/rust       1:1.68.2-1      516.04 MiB

Total Installed Size:  636.80 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing libedit...
installing llvm-libs...
installing rust...
Optional dependencies for rust
    gdb: rust-gdb script
    lldb: rust-lldb script
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Package (4)           New Version  Net Change

extra/perl-error      0.17029-4      0.04 MiB
extra/perl-mailtools  2.21-6         0.11 MiB
extra/perl-timedate   2.33-4         0.08 MiB
extra/git             2.40.0-1      37.48 MiB

Total Installed Size:  37.71 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing perl-error...
installing perl-timedate...
installing perl-mailtools...
installing git...
Optional dependencies for git
    tk: gitk and git gui
    perl-libwww: git svn
    perl-term-readkey: git svn and interactive.singlekey setting
    perl-io-socket-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    perl-mediawiki-api: git mediawiki support
    perl-datetime-format-iso8601: git mediawiki support
    perl-lwp-protocol-https: git mediawiki https support
    perl-cgi: gitweb (web interface) support
    python: git svn & git p4
    subversion: git svn
    org.freedesktop.secrets: keyring credential helper
    libsecret: libsecret credential helper [installed]
:: Running post-transaction hooks...
(1/1) Warn about old perl modules
==> Retrieving sources...
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Creating working copy of crm git repo...
Cloning into 'crm'...
done.
==> Starting pkgver()...
==> Starting build()...
    Updating crates.io index
 Downloading crates ...
  Downloaded cc v1.0.79
  Downloaded base64 v0.13.1
  Downloaded idna v0.3.0
  Downloaded iana-time-zone v0.1.54
  Downloaded cfg-if v1.0.0
  Downloaded libc v0.2.140
  Downloaded tinyvec_macros v0.1.1
  Downloaded linked-hash-map v0.5.6
  Downloaded adler v1.0.2
  Downloaded spin v0.5.2
  Downloaded untrusted v0.7.1
  Downloaded log v0.4.17
  Downloaded toml_edit v0.2.1
  Downloaded unicode-bidi v0.3.13
  Downloaded tinyvec v1.6.0
  Downloaded sct v0.7.0
  Downloaded once_cell v1.17.1
  Downloaded webpki v0.22.0
  Downloaded url v2.3.1
  Downloaded ureq v2.6.2
  Downloaded time v0.1.45
  Downloaded num-traits v0.2.15
  Downloaded unicode-normalization v0.1.22
  Downloaded chrono v0.4.24
  Downloaded rustls v0.20.8
  Downloaded webpki-roots v0.22.6
  Downloaded ring v0.16.20
  Downloaded form_urlencoded v1.1.0
  Downloaded miniz_oxide v0.6.2
  Downloaded percent-encoding v2.2.0
  Downloaded num-integer v0.1.45
  Downloaded memchr v2.5.0
  Downloaded combine v4.6.6
  Downloaded autocfg v1.1.0
  Downloaded crc32fast v1.3.2
  Downloaded flate2 v1.0.25
  Downloaded bytes v1.4.0
   Compiling libc v0.2.140
   Compiling cc v1.0.79
   Compiling autocfg v1.1.0
   Compiling once_cell v1.17.1
   Compiling untrusted v0.7.1
   Compiling spin v0.5.2
   Compiling cfg-if v1.0.0
   Compiling tinyvec_macros v0.1.1
   Compiling tinyvec v1.6.0
   Compiling log v0.4.17
   Compiling memchr v2.5.0
   Compiling crc32fast v1.3.2
   Compiling unicode-bidi v0.3.13
   Compiling adler v1.0.2
   Compiling rustls v0.20.8
   Compiling percent-encoding v2.2.0
   Compiling num-traits v0.2.15
   Compiling num-integer v0.1.45
   Compiling form_urlencoded v1.1.0
   Compiling miniz_oxide v0.6.2
   Compiling unicode-normalization v0.1.22
   Compiling iana-time-zone v0.1.54
   Compiling time v0.1.45
   Compiling bytes v1.4.0
   Compiling flate2 v1.0.25
   Compiling idna v0.3.0
   Compiling base64 v0.13.1
   Compiling combine v4.6.6
   Compiling linked-hash-map v0.5.6
   Compiling url v2.3.1
   Compiling ring v0.16.20
   Compiling chrono v0.4.24
   Compiling webpki v0.22.0
   Compiling sct v0.7.0
   Compiling webpki-roots v0.22.6
   Compiling toml_edit v0.2.1
   Compiling ureq v2.6.2
   Compiling crm v0.2.0 (/build/crm-git/src/crm)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/usr/lib64/rustlib/x86_64-unknown-linux-gnu/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/rustcr8hZQP/symbols.o" "/build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o" "-Wl,--as-needed" "-L" "/build/crm-git/src/crm/target/release/deps" "-L" "/build/crm-git/src/crm/target/release/build/ring-397bc07fecb44156/out" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustcr8hZQP/libring-30c42bd0f7dc15ba.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-292698b1d93cf7de.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs"
  = note: /usr/bin/ld: /usr/bin/ld: DWARF error: invalid abstract instance DIE ref
          /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::aead::aes_gcm::aes_gcm_seal':
          1dr3fwxbb2knaca9:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17hd6fbb040415ed979E+0x1d1): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::aead::aes_gcm::aes_gcm_open':
          1dr3fwxbb2knaca9:(.text._ZN4ring4aead7aes_gcm12aes_gcm_open17h1b2f7f9652cd59bdE+0x1f0): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::aead::aes::detect_implementation':
          1dr3fwxbb2knaca9:(.text._ZN4ring4aead3aes21detect_implementation17hdd6e5bc698e08328E+0x3): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::aead::gcm::detect_implementation':
          1dr3fwxbb2knaca9:(.text._ZN4ring4aead3gcm21detect_implementation17hec4bf3fa67a3195cE+0x3): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::aead::aes::Key::encrypt_block':
          1dr3fwxbb2knaca9:(.text._ZN4ring4aead3aes3Key13encrypt_block17h63fda3f71684b2a6E+0x62): undefined reference to `GFp_aes_nohw_encrypt'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::aead::gcm::Context::update_blocks':
          1dr3fwxbb2knaca9:(.text._ZN4ring4aead3gcm7Context13update_blocks17h08eccd545b43ebf3E+0x151): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::aead::aes_gcm::init':
          1dr3fwxbb2knaca9:(.text._ZN4ring4aead7aes_gcm4init17h6009b632f55be311E+0x80): undefined reference to `GFp_aes_nohw_set_encrypt_key'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring4aead7aes_gcm4init17h6009b632f55be311E+0x16c): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::aead::chacha20_poly1305::chacha20_poly1305_seal':
          1dr3fwxbb2knaca9:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h17d9a818cd1e4c71E+0x35): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_seal17h17d9a818cd1e4c71E+0x139): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::aead::chacha20_poly1305::chacha20_poly1305_open':
          1dr3fwxbb2knaca9:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17h4d49015c2310383fE+0x36): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring4aead17chacha20_poly130522chacha20_poly1305_open17h4d49015c2310383fE+0x17f): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::aead::poly1305::Context::from_key':
          1dr3fwxbb2knaca9:(.text._ZN4ring4aead8poly13057Context8from_key17h4c1078562736efadE+0x32): undefined reference to `GFp_poly1305_init'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::aead::chacha20_poly1305::poly1305_update_padded_16':
          1dr3fwxbb2knaca9:(.text._ZN4ring4aead17chacha20_poly130525poly1305_update_padded_1617h19d4d374685a901bE+0x3c): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring4aead17chacha20_poly130525poly1305_update_padded_1617h19d4d374685a901bE+0x7c): undefined reference to `GFp_poly1305_update'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::aead::poly1305::Context::finish':
          1dr3fwxbb2knaca9:(.text._ZN4ring4aead8poly13057Context6finish17h7363ea11d6bd19e0E+0x11): undefined reference to `GFp_poly1305_finish'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::curve25519::x25519::x25519_public_from_private':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec10curve255196x2551926x25519_public_from_private17h43bad10b072afc92E+0x3f): undefined reference to `GFp_x25519_sc_mask'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring2ec10curve255196x2551926x25519_public_from_private17h43bad10b072afc92E+0x4b): undefined reference to `GFp_x25519_public_from_private_generic_masked'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::curve25519::x25519::x25519_ecdh':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec10curve255196x2551911x25519_ecdh17h607a737e02b39182E+0x41): undefined reference to `GFp_x25519_sc_mask'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring2ec10curve255196x2551911x25519_ecdh17h607a737e02b39182E+0x5c): undefined reference to `GFp_x25519_scalar_mult_generic_masked'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring2ec10curve255196x2551911x25519_ecdh17h607a737e02b39182E+0x77): undefined reference to `GFp_memcmp'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::constant_time::verify_slices_are_equal':
          1dr3fwxbb2knaca9:(.text._ZN4ring13constant_time23verify_slices_are_equal17h400d674ebb625843E+0x13): undefined reference to `GFp_memcmp'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::suite_b::ops::p256::p256_point_mul_base_impl':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b3ops4p25624p256_point_mul_base_impl17h81dc397f37a4cee6E+0x1f): undefined reference to `GFp_nistz256_point_mul_base'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::suite_b::ops::p256::p256_scalar_inv_to_mont::sqr':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b3ops4p25623p256_scalar_inv_to_mont3sqr17h5eec33778430a22fE+0x10): undefined reference to `GFp_p256_scalar_sqr_mont'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::suite_b::ops::CommonOps::elem_verify_is_not_zero':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b3ops9CommonOps23elem_verify_is_not_zero17h6b0ecbdbcd07eb5aE+0x1e): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::suite_b::verify_affine_point_is_on_the_curve_scaled':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b42verify_affine_point_is_on_the_curve_scaled17hfd4f2920684c11b3E+0xe0): undefined reference to `LIMBS_equal'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::limb::parse_big_endian_in_range_and_pad_consttime':
          1dr3fwxbb2knaca9:(.text._ZN4ring4limb43parse_big_endian_in_range_and_pad_consttime17h3d46299aeb3b8e3eE+0x53): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::limb::limbs_less_than_limbs_consttime':
          1dr3fwxbb2knaca9:(.text._ZN4ring4limb31limbs_less_than_limbs_consttime17hc2dfc2197b8f2cf7E+0x22): undefined reference to `LIMBS_less_than'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::suite_b::ops::p384::p384_point_mul_base_impl':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b3ops4p38424p384_point_mul_base_impl17h658d0f37cb2b0a78E+0x2d): undefined reference to `GFp_nistz384_point_mul'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::suite_b::ops::p384::p384_elem_inv_squared::sqr_mul':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b3ops4p38421p384_elem_inv_squared7sqr_mul17h2c725251c428052aE+0xc): undefined reference to `GFp_p384_elem_mul_mont'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::suite_b::ops::p384::p384_elem_inv_squared::sqr_mul_acc':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b3ops4p38421p384_elem_inv_squared11sqr_mul_acc17h38e579a0bc51e5d2E+0xc): undefined reference to `GFp_p384_elem_mul_mont'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::suite_b::ops::p384::GFp_p384_elem_sqr_mont':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b3ops4p38422GFp_p384_elem_sqr_mont17hf4207174c7f250f4E+0x5): undefined reference to `GFp_p384_elem_mul_mont'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::suite_b::ops::p384::p384_scalar_inv_to_mont':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b3ops4p38423p384_scalar_inv_to_mont17h7d97c8c96746f13eE+0x5d): undefined reference to `GFp_p384_scalar_mul_mont'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b3ops4p38423p384_scalar_inv_to_mont17h7d97c8c96746f13eE+0x17a): undefined reference to `GFp_p384_scalar_mul_mont'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::suite_b::ops::p384::p384_scalar_inv_to_mont::sqr':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b3ops4p38423p384_scalar_inv_to_mont3sqr17h131bf9bb99b81c26E+0x13): undefined reference to `GFp_p384_scalar_mul_mont'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::suite_b::ops::p384::p384_scalar_inv_to_mont::mul':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b3ops4p38423p384_scalar_inv_to_mont3mul17h8efd937859fa276cE+0x10): undefined reference to `GFp_p384_scalar_mul_mont'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::ec::suite_b::ops::p384::p384_scalar_inv_to_mont::sqr_mut':
          1dr3fwxbb2knaca9:(.text._ZN4ring2ec7suite_b3ops4p38423p384_scalar_inv_to_mont7sqr_mut17hf81503d1364f854fE+0x8): undefined reference to `GFp_p384_scalar_mul_mont'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `spin::once::Once<T>::call_once':
          1dr3fwxbb2knaca9:(.text._ZN4spin4once13Once$LT$T$GT$9call_once17h8073fabaaa3974c2E+0x1f): undefined reference to `GFp_cpuid_setup'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `<ring::ec::curve25519::ed25519::verification::EdDSAParameters as ring::signature::VerificationAlgorithm>::verify':
          1dr3fwxbb2knaca9:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17hdce80d59ed79905eE+0x124): undefined reference to `GFp_x25519_ge_frombytes_vartime'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17hdce80d59ed79905eE+0x14c): undefined reference to `GFp_x25519_fe_neg'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17hdce80d59ed79905eE+0x2a5): undefined reference to `GFp_x25519_sc_reduce'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17hdce80d59ed79905eE+0x2f9): undefined reference to `GFp_x25519_ge_double_scalarmult_vartime'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17hdce80d59ed79905eE+0x3a0): undefined reference to `GFp_x25519_fe_invert'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17hdce80d59ed79905eE+0x3c0): undefined reference to `GFp_x25519_fe_mul_ttt'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17hdce80d59ed79905eE+0x406): undefined reference to `GFp_x25519_fe_tobytes'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN119_$LT$ring..ec..curve25519..ed25519..verification..EdDSAParameters$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17hdce80d59ed79905eE+0x40f): undefined reference to `GFp_x25519_fe_isnegative'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `<ring::ec::suite_b::ecdsa::verification::EcdsaVerificationAlgorithm as ring::signature::VerificationAlgorithm>::verify':
          1dr3fwxbb2knaca9:(.text._ZN125_$LT$ring..ec..suite_b..ecdsa..verification..EcdsaVerificationAlgorithm$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h254e19004bf6e2e5E+0x158): undefined reference to `LIMBS_reduce_once'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN125_$LT$ring..ec..suite_b..ecdsa..verification..EcdsaVerificationAlgorithm$u20$as$u20$ring..signature..VerificationAlgorithm$GT$6verify17h254e19004bf6e2e5E+0x350): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o: in function `ring::rsa::verification::<impl ring::signature::VerificationAlgorithm for ring::rsa::RsaParameters>::verify':
          1dr3fwxbb2knaca9:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17ha68614919d5cc49eE+0x11d): undefined reference to `LIMBS_are_even'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17ha68614919d5cc49eE+0x131): undefined reference to `LIMBS_less_than_limb'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17ha68614919d5cc49eE+0x162): undefined reference to `GFp_bn_neg_inv_mod_r_u64'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17ha68614919d5cc49eE+0x1ee): undefined reference to `LIMB_shr'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17ha68614919d5cc49eE+0x2c9): undefined reference to `LIMBS_shl_mod'
          /usr/bin/ld: 1dr3fwxbb2knaca9:(.text._ZN4ring3rsa12verification93_$LT$impl$u20$ring..signature..VerificationAlgorithm$u20$for$u20$ring..rsa..RsaParameters$GT$6verify17ha68614919d5cc49eE+0x4f6): undefined reference to `LIMBS_are_zero'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p25615PRIVATE_KEY_OPS17h23c76854b133b6caE+0x18): undefined reference to `GFp_nistz256_point_mul'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410COMMON_OPS17ha8bc365796fc6569E+0xf8): undefined reference to `GFp_p384_elem_add'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410COMMON_OPS17ha8bc365796fc6569E+0x100): undefined reference to `GFp_p384_elem_mul_mont'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410COMMON_OPS17ha8bc365796fc6569E+0x110): undefined reference to `GFp_nistz384_point_add'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38415PRIVATE_KEY_OPS17hecaf4d6b44118790E+0x18): undefined reference to `GFp_nistz384_point_mul'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410SCALAR_OPS17h9028c60621e3e983E+0x10): undefined reference to `GFp_p384_scalar_mul_mont'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o:(.data.rel.ro..Lswitch.table._ZN4ring4aead7aes_gcm12aes_gcm_seal17hd6fbb040415ed979E+0x10): undefined reference to `GFp_aes_nohw_ctr32_encrypt_blocks'
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc.crm-6bca977287a6619f.1dr3fwxbb2knaca9.rcgu.o.rcgu.o:(.data.rel.ro..Lswitch.table._ZN4ring4aead7aes_gcm12aes_gcm_open17h1b2f7f9652cd59bdE+0x10): undefined reference to `GFp_aes_nohw_ctr32_encrypt_blocks'
          /usr/bin/ld: /tmp/rustcr8hZQP/libring-30c42bd0f7dc15ba.rlib(aesni-x86_64-elf.o): in function `GFp_aes_hw_ctr32_encrypt_blocks':
          /build/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesni-x86_64-elf.S:363: undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /tmp/rustcr8hZQP/libring-30c42bd0f7dc15ba.rlib(aesni-x86_64-elf.o): in function `GFp_aes_hw_set_encrypt_key':
          /build/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesni-x86_64-elf.S:869: undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /tmp/rustcr8hZQP/libring-30c42bd0f7dc15ba.rlib(x86_64-mont-elf.o): in function `GFp_bn_mul_mont':
          /build/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/x86_64-mont-elf.S:29: undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /tmp/rustcr8hZQP/libring-30c42bd0f7dc15ba.rlib(x86_64-mont-elf.o): in function `bn_sqr8x_mont':
          /build/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/x86_64-mont-elf.S:790: undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /tmp/rustcr8hZQP/libring-30c42bd0f7dc15ba.rlib(x86_64-mont5-elf.o): in function `GFp_bn_mul_mont_gather5':
          /build/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/x86_64-mont5-elf.S:27: undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /tmp/rustcr8hZQP/libring-30c42bd0f7dc15ba.rlib(x86_64-mont5-elf.o):/build/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/x86_64-mont5-elf.S:1098: more undefined references to `GFp_ia32cap_P' follow
          /usr/bin/ld: /build/crm-git/src/crm/target/release/deps/crm-ffcb3aedcbb4f1bc: 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#cargorustc-link-libkindname)

error: could not compile `crm` due to previous error
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/taotieren/build
wtklbm commented 1 year ago

我在上游 https://github.com/briansmith/ring/issues/1444 找到了解决方案,请将 PKGBUILD 中添加 options=('!strip' '!lto'),重新克隆源代码编译

taotieren commented 1 year ago

我在上游 briansmith/ring#1444 找到了解决方案,请将 PKGBUILD 中添加 options=('!strip' '!lto'),重新克隆源代码编译

增加 '!lto' 编译通过