You are not logged in.

#1 2026-02-16 14:07:48

kauron
Member
Registered: 2015-12-01
Posts: 13

Package does not build automatically, but manually building works

Hi!

I'm the packager for vigil-local, a monitoring software written in Rust. I packaged releases, but when 1.2.0 released, I could not build it. Now I'm trying again to build it, you can see the last working PKGBUILD in the aur: https://aur.archlinux.org/packages/vigil-local

However, if I update the package for the latest version (1.2.6), and update the checksums (pasted below), the package fails to build, with the error being undefined symbols for an AWS library (aws_lc_rs). However, when I repeat the main build instruction (shown below) it completes correctly. I cannot find a reason why it should work manually but fail when makepkg does it...

cargo build --release --locked --all-features --target-dir=target

Does anyone here have any idea of what I could be doing wrong/not seeing?

Thanks!
kauron

pkgname=vigil-local
pkgver=1.2.6
pkgrel=1
pkgdesc="Monitors hosts behind a firewall and reports their status to Vigil."
arch=("x86_64" "armv7h")
url="https://github.com/valeriansaliou/vigil-local"
license=("MPL-2.0")
makedepends=("cargo")
backup=('etc/vigil-local.cfg')
source=('vigil-local.service'
        'vigil-local.sysusers'
        "${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha512sums=('f43d7a780a3d65d2d0f24841f4d9a2601d54e539b6f60ee64697c45317b1cc6903e9025becbd11551046bf16478b9185533cc056c62b8c0ceb6d3b0a31c519c4'
            '537ab1d322dade4d321da59e18653c08384b46c41ef63acde3a60bf58e31e6a50e9eab73b885daf319b8500a22cbcd6d20e19f3c714f7cce050e0a6d20d6d8e7'
            '1e1081d3a55c6b063210679c51c275030804b1d494b74caaf0fc07516ad3adf07b2f7f598563f244962d9e0e384bdefe28cd5270a733d17bb134b2aba48bd4a2')

build() {
  cd "$pkgname-$pkgver"
  cargo build --release --locked --all-features --target-dir=target
}

check() {
  cd "$pkgname-$pkgver"
  cargo test --release --locked --all-features --target-dir=target
}

package() {
  install -Dm644 vigil-local.service -t "${pkgdir}/usr/lib/systemd/system"
  install -Dm644 vigil-local.sysusers "${pkgdir}/usr/lib/sysusers.d/vigil-local.conf"
  cd "$pkgname-$pkgver"
  install -Dm755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
  install -Dm644 config.cfg "${pkgdir}/etc/vigil-local.cfg"
}

Offline

#2 2026-02-16 15:30:02

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: Package does not build automatically, but manually building works

the error being undefined symbols for an AWS library (aws_lc_rs)

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

Does anyone here have any idea of what I could be doing wrong/not seeing?

Build environment - are you building in a clean chroot? Environment variables? Is the dependency only provided as user install?

Offline

#3 2026-02-16 15:41:18

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: Package does not build automatically, but manually building works

   Compiling vigil-local v1.2.6 (/build/vigil-local/src/vigil-local-1.2.6)
error: linking with `x86_64-linux-gnu-gcc` failed: exit status: 1
  |
  = note:  "x86_64-linux-gnu-gcc" "-m64" "<1 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/tmp/rustc9nWhM1/libaws_lc_sys-46c1df05e972ca3e.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-*.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustc9nWhM1/raw-dylibs" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/build/vigil-local/src/vigil-local-1.2.6/target/release/build/aws-lc-sys-b3a63370deb24ba2/out" "-L" "/build/vigil-local/src/vigil-local-1.2.6/target/release/build/ring-c65975a1838d0968/out" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-all" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: ld.lld: error: undefined symbol: aws_lc_0_34_0_BN_num_bytes
          >>> referenced by bn.rs:41 (src/bn.rs:41)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::bn::_$LT$impl$u20$aws_lc_rs..ptr..ConstPointer$LT$aws_lc_sys..universal_crypto..bignum_st$GT$$GT$::to_be_bytes::hc6d89cbdb7ca35bf)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_BN_bn2bin
          >>> referenced by bn.rs:43 (src/bn.rs:43)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::bn::_$LT$impl$u20$aws_lc_rs..ptr..ConstPointer$LT$aws_lc_sys..universal_crypto..bignum_st$GT$$GT$::to_be_bytes::hc6d89cbdb7ca35bf)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_CTX_new
          >>> referenced by evp_pkey.rs:252 (src/evp_pkey.rs:252)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify_digest_sig::h503a57ffacece3a9)
          >>> referenced by evp_pkey.rs:252 (src/evp_pkey.rs:252)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_digest_sig::h2904896487951a3b)
          >>> referenced by evp_pkey.rs:252 (/build/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-rs-1.15.1/src/evp_pkey.rs:252)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(_$LT$rustls..crypto..aws_lc_rs..kx..KeyExchange$u20$as$u20$rustls..crypto..ActiveKeyExchange$GT$::complete::h8644f71417c45aa1)
          >>> referenced 2 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_verify_init
          >>> referenced by evp_pkey.rs:487 (src/evp_pkey.rs:487)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify_digest_sig::h503a57ffacece3a9)
          >>> referenced by evp_pkey.rs:487 (src/evp_pkey.rs:487)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_digest_sig::h2904896487951a3b)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_verify
          >>> referenced by evp_pkey.rs:498 (src/evp_pkey.rs:498)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify_digest_sig::h503a57ffacece3a9)
          >>> referenced by evp_pkey.rs:498 (src/evp_pkey.rs:498)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_digest_sig::h2904896487951a3b)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_CTX_free
          >>> referenced by ptr.rs:205 (src/ptr.rs:205)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify_digest_sig::h503a57ffacece3a9)
          >>> referenced by ptr.rs:205 (src/ptr.rs:205)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_digest_sig::h2904896487951a3b)
          >>> referenced by ptr.rs:205 (/build/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-rs-1.15.1/src/ptr.rs:205)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(_$LT$rustls..crypto..aws_lc_rs..kx..KxGroup$u20$as$u20$rustls..crypto..SupportedKxGroup$GT$::start::h67ed2f9c16f0a79e)
          >>> referenced 10 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_CBS_init
          >>> referenced by cbs.rs:11 (src/cbs.rs:11)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5280_public_key::hd1be81f7a692d877)
          >>> referenced by cbs.rs:11 (src/cbs.rs:11)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5208_private_key::h4c2561aecfe62606)
          >>> referenced by cbs.rs:11 (/build/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-rs-1.15.1/src/cbs.rs:11)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(_$LT$rustls..crypto..aws_lc_rs..AwsLcRs$u20$as$u20$rustls..crypto..KeyProvider$GT$::load_private_key::he967481e1cd5c528)
          >>> referenced 1 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_parse_public_key
          >>> referenced by evp_pkey.rs:221 (src/evp_pkey.rs:221)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5280_public_key::hd1be81f7a692d877)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_id
          >>> referenced by evp_pkey.rs:83 (src/evp_pkey.rs:83)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5280_public_key::hd1be81f7a692d877)
          >>> referenced by evp_pkey.rs:83 (src/evp_pkey.rs:83)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5208_private_key::h4c2561aecfe62606)
          >>> referenced by evp_pkey.rs:83 (src/evp_pkey.rs:83)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::rsa::key::KeyPair::new::h3b17b47e0df88c78)
          >>> referenced 1 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_free
          >>> referenced by ptr.rs:205 (src/ptr.rs:205)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5280_public_key::hd1be81f7a692d877)
          >>> referenced by ptr.rs:205 (src/ptr.rs:205)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5208_private_key::h4c2561aecfe62606)
          >>> referenced by ptr.rs:205 (src/ptr.rs:205)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::ec::encoding::parse_ec_public_key::he00e32f2c62e2f43)
          >>> referenced 35 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_parse_private_key
          >>> referenced by evp_pkey.rs:237 (src/evp_pkey.rs:237)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5208_private_key::h4c2561aecfe62606)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_MD_CTX_init
          >>> referenced by digest_ctx.rs:29 (src/digest/digest_ctx.rs:29)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify::hc3c363105e084b8b)
          >>> referenced by digest_ctx.rs:29 (src/digest/digest_ctx.rs:29)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::digest::Context::new::h9f7b09460d06869b)
          >>> referenced by digest_ctx.rs:29 (src/digest/digest_ctx.rs:29)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_sig::h779ae3b0583a2b97)
          >>> referenced 2 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_DigestVerifyInit
          >>> referenced by evp_pkey.rs:447 (src/evp_pkey.rs:447)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify::hc3c363105e084b8b)
          >>> referenced by evp_pkey.rs:447 (src/evp_pkey.rs:447)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_sig::h779ae3b0583a2b97)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_DigestVerify
          >>> referenced by evp_pkey.rs:462 (src/evp_pkey.rs:462)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify::hc3c363105e084b8b)
          >>> referenced by evp_pkey.rs:462 (src/evp_pkey.rs:462)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_sig::h779ae3b0583a2b97)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_MD_CTX_cleanup
          >>> referenced by digest_ctx.rs:55 (src/digest/digest_ctx.rs:55)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify::hc3c363105e084b8b)
          >>> referenced by digest_ctx.rs:55 (src/digest/digest_ctx.rs:55)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::digest::Context::new::h9f7b09460d06869b)
          >>> referenced by digest_ctx.rs:55 (src/digest/digest_ctx.rs:55)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(_$LT$aws_lc_rs..digest..digest_ctx..DigestContext$u20$as$u20$core..ops..drop..Drop$GT$::drop::ha5d7dd3da49aca2e)
          >>> referenced 8 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_up_ref
          >>> referenced by evp_pkey.rs:569 (src/evp_pkey.rs:569)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$core..clone..Clone$u20$for$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::clone::h0daa881ae669ae85)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_bits
          >>> referenced by evp_pkey.rs:91 (src/evp_pkey.rs:91)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ConstPointer$LT$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::key_size_bits::h1de8437c8338bc87)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_sha1
          >>> referenced by digest.rs:368 (src/digest.rs:368)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::digest::match_digest_type::hb09fb7ad93fbbf1e)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_sha512
          >>> referenced by digest.rs:372 (src/digest.rs:372)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::digest::match_digest_type::hb09fb7ad93fbbf1e)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_sha256
          >>> referenced by digest.rs:370 (src/digest.rs:370)
          >>>               /build/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-ff9b692c05876872.vigil_local.6bae7bb6153d2bae-cgu.00.rcgu.o:(aws_lc_rs::digest::match_digest_type::hb09fb7ad93fbbf1e)
          
          ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
          collect2: error: ld returned 1 exit status
          

error: could not compile `vigil-local` (bin "vigil-local") due to 1 previous error

So the fix is either ` CFLAGS+=' -ffat-lto-objects'` or `options=(!lto)`.  Does your system's /etc/makepkg.conf not contain lto in the OPTIONS array?

Last edited by loqs (2026-02-16 15:42:00)

Offline

#4 2026-02-16 15:56:22

kauron
Member
Registered: 2015-12-01
Posts: 13

Re: Package does not build automatically, but manually building works

Here are the full logs and actions taken:

If I try to build the package shown in the previous post, I get:

$ makepkg --sync --clean
==> Making package: vigil-local 1.2.6-1 (lun 16 feb 2026 16:37:05)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found vigil-local.service
  -> Found vigil-local.sysusers
  -> Found vigil-local-1.2.6.tar.gz
==> Validating source files with sha512sums...
    vigil-local.service ... Passed
    vigil-local.sysusers ... Passed
    vigil-local-1.2.6.tar.gz ... Passed
==> Extracting sources...
  -> Extracting vigil-local-1.2.6.tar.gz with bsdtar
==> Starting build()...
   Compiling proc-macro2 v1.0.103
   Compiling quote v1.0.42
   Compiling unicode-ident v1.0.22
   Compiling libc v0.2.177
   Compiling shlex v1.3.0
   Compiling find-msvc-tools v0.1.5
   Compiling stable_deref_trait v1.2.1
   Compiling cfg-if v1.0.4
   Compiling fs_extra v1.3.0
   Compiling dunce v1.0.5
   Compiling zerocopy v0.8.30
   Compiling getrandom v0.3.4
   Compiling writeable v0.6.2
   Compiling serde_core v1.0.228
   Compiling litemap v0.8.1
   Compiling icu_properties_data v2.1.1
   Compiling icu_normalizer_data v2.1.1
   Compiling aws-lc-rs v1.15.1
   Compiling untrusted v0.9.0
   Compiling utf8parse v0.2.2
   Compiling smallvec v1.15.1
   Compiling anstyle-parse v0.2.7
   Compiling thiserror v1.0.69
   Compiling is_terminal_polyfill v1.70.2
   Compiling anstyle-query v1.1.5
   Compiling thiserror v2.0.17
   Compiling rustls v0.23.35
   Compiling anstyle v1.0.13
   Compiling colorchoice v1.0.4
   Compiling serde v1.0.228
   Compiling serde_json v1.0.145
   Compiling percent-encoding v2.3.2
   Compiling winnow v0.7.14
   Compiling clap_lex v0.7.6
   Compiling once_cell v1.21.3
   Compiling subtle v2.6.1
   Compiling log v0.4.28
   Compiling utf8_iter v1.0.4
   Compiling anstream v0.6.21
   Compiling strsim v0.11.1
   Compiling form_urlencoded v1.2.2
   Compiling toml_writer v1.0.4
   Compiling base64 v0.22.1
   Compiling itoa v1.0.15
   Compiling memchr v2.7.6
   Compiling unicase v2.8.1
   Compiling ryu v1.0.20
   Compiling lazy_static v1.5.0
   Compiling clap_builder v4.5.53
   Compiling syn v2.0.111
   Compiling jobserver v0.1.34
   Compiling getrandom v0.2.16
   Compiling socket2 v0.6.1
   Compiling rand_core v0.9.3
   Compiling cc v1.2.48
   Compiling toml_parser v1.0.4
   Compiling ppv-lite86 v0.2.21
   Compiling cmake v0.1.54
   Compiling rand_chacha v0.9.0
   Compiling ring v0.17.14
   Compiling aws-lc-sys v0.34.0
   Compiling toml_datetime v0.7.3
   Compiling serde_spanned v1.0.3
   Compiling clap v4.5.53
   Compiling rand v0.9.2
   Compiling toml v0.9.8
   Compiling fsio v0.4.1
   Compiling run_script v0.11.2
   Compiling synstructure v0.13.2
   Compiling webpki v0.22.4
   Compiling zerofrom-derive v0.1.6
   Compiling yoke-derive v0.8.1
   Compiling zerovec-derive v0.11.2
   Compiling displaydoc v0.2.5
   Compiling zeroize_derive v1.4.2
   Compiling thiserror-impl v1.0.69
   Compiling thiserror-impl v2.0.17
   Compiling serde_derive v1.0.228
   Compiling zeroize v1.8.2
   Compiling rustls-pki-types v1.13.1
   Compiling zerofrom v0.1.6
   Compiling yoke v0.8.1
   Compiling zerovec v0.11.5
   Compiling zerotrie v0.2.3
   Compiling webpki-roots v1.0.4
   Compiling rustls-pemfile v2.2.0
   Compiling envsubst v0.2.1
   Compiling ping v0.7.0
   Compiling tinystr v0.8.2
   Compiling potential_utf v0.1.4
   Compiling icu_collections v2.1.1
   Compiling icu_locale_core v2.1.1
   Compiling icu_provider v2.1.1
   Compiling icu_properties v2.1.1
   Compiling icu_normalizer v2.1.1
   Compiling idna_adapter v1.2.1
   Compiling idna v1.1.0
   Compiling url v2.5.7
   Compiling rustls-webpki v0.103.8
   Compiling http_req v0.14.2
   Compiling vigil-local v1.2.6 (/vigil-local/src/vigil-local-1.2.6)
error: linking with `x86_64-linux-gnu-gcc` failed: exit status: 1
  |
  = note:  "x86_64-linux-gnu-gcc" "-m64" "<1 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/tmp/rustciQ3rs3/libaws_lc_sys-8e80ed91ea4c3113.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-*.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustciQ3rs3/raw-dylibs" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/vigil-local/src/vigil-local-1.2.6/target/release/build/aws-lc-sys-1322f3fe920ceda1/out" "-L" "/vigil-local/src/vigil-local-1.2.6/target/release/build/ring-57084faa72093039/out" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-all" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: ld.lld: error: undefined symbol: aws_lc_0_34_0_BN_num_bytes
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::bn::_$LT$impl$u20$aws_lc_rs..ptr..ConstPointer$LT$aws_lc_sys..universal_crypto..bignum_st$GT$$GT$::to_be_bytes::h49cd674e374dc3f5)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_BN_bn2bin
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::bn::_$LT$impl$u20$aws_lc_rs..ptr..ConstPointer$LT$aws_lc_sys..universal_crypto..bignum_st$GT$$GT$::to_be_bytes::h49cd674e374dc3f5)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_CTX_new
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify_digest_sig::hc114e4f2bf15181d)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_digest_sig::h16d42149c3b90ba5)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(_$LT$rustls..crypto..aws_lc_rs..kx..KeyExchange$u20$as$u20$rustls..crypto..ActiveKeyExchange$GT$::complete::h241fdee9aa1941a1)
          >>> referenced 2 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_verify_init
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify_digest_sig::hc114e4f2bf15181d)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_digest_sig::h16d42149c3b90ba5)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_verify
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify_digest_sig::hc114e4f2bf15181d)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_digest_sig::h16d42149c3b90ba5)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_CTX_free
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify_digest_sig::hc114e4f2bf15181d)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_digest_sig::h16d42149c3b90ba5)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(_$LT$rustls..crypto..aws_lc_rs..kx..KxGroup$u20$as$u20$rustls..crypto..SupportedKxGroup$GT$::start::hbaa19b3873057f0d)
          >>> referenced 10 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_CBS_init
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5280_public_key::h087c12f5ba9b2ad1)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5208_private_key::h19dda3e757653441)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(_$LT$rustls..crypto..aws_lc_rs..AwsLcRs$u20$as$u20$rustls..crypto..KeyProvider$GT$::load_private_key::h29e36dc4a3a79300)
          >>> referenced 1 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_parse_public_key
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5280_public_key::h087c12f5ba9b2ad1)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_id
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5280_public_key::h087c12f5ba9b2ad1)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5208_private_key::h19dda3e757653441)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::rsa::key::KeyPair::new::h1dfd69097d00c21b)
          >>> referenced 1 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_free
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5280_public_key::h087c12f5ba9b2ad1)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5208_private_key::h19dda3e757653441)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::ec::encoding::parse_ec_public_key::h8636a857aea664cf)
          >>> referenced 34 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_parse_private_key
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::parse_rfc5208_private_key::h19dda3e757653441)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_MD_CTX_init
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify::h047a47c9cad198df)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::digest::Context::new::hd0126f2c474073b6)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_sig::h17afe83ce9596798)
          >>> referenced 2 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_DigestVerifyInit
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify::h047a47c9cad198df)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_sig::h17afe83ce9596798)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_DigestVerify
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify::h047a47c9cad198df)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(_$LT$aws_lc_rs..rsa..signature..RsaParameters$u20$as$u20$aws_lc_rs..signature..VerificationAlgorithm$GT$::verify_sig::h17afe83ce9596798)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_MD_CTX_cleanup
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::verify::h047a47c9cad198df)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::digest::Context::new::hd0126f2c474073b6)
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(_$LT$aws_lc_rs..digest..digest_ctx..DigestContext$u20$as$u20$core..ops..drop..Drop$GT$::drop::haa1b5ccbce3ed128)
          >>> referenced 8 more times
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_up_ref
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$core..clone..Clone$u20$for$u20$aws_lc_rs..ptr..ManagedPointer$LT$$BP$mut$u20$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::clone::h49203a51d41575f1)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_PKEY_bits
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::evp_pkey::_$LT$impl$u20$aws_lc_rs..ptr..ConstPointer$LT$aws_lc_sys..universal_crypto..evp_pkey_st$GT$$GT$::key_size_bits::h87c3a24a3feac046)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_sha1
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::digest::match_digest_type::h61c60dd893c1be1f)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_sha512
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::digest::match_digest_type::h61c60dd893c1be1f)
          
          ld.lld: error: undefined symbol: aws_lc_0_34_0_EVP_sha256
          >>> referenced by vigil_local.6641dfef9145c9e9-cgu.00
          >>>               /vigil-local/src/vigil-local-1.2.6/target/release/deps/vigil_local-b4a42f5bee1aebd7.vigil_local.6641dfef9145c9e9-cgu.00.rcgu.o:(aws_lc_rs::digest::match_digest_type::h61c60dd893c1be1f)
          
          ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
          collect2: error: ld returned 1 exit status
          

error: could not compile `vigil-local` (bin "vigil-local") due to 1 previous error
==> ERROR: A failure occurred in build().
    Aborting...

On the other hand, if I try manually, in the same environment, I get:

$ cd src/vigil-local-1.2.6/
$ cargo build --release --locked --all-features --target-dir=target
   Compiling proc-macro2 v1.0.103
   Compiling quote v1.0.42
   Compiling unicode-ident v1.0.22
   Compiling libc v0.2.177
   Compiling shlex v1.3.0
   Compiling find-msvc-tools v0.1.5
   Compiling stable_deref_trait v1.2.1
   Compiling cfg-if v1.0.4
   Compiling fs_extra v1.3.0
   Compiling dunce v1.0.5
   Compiling zerocopy v0.8.30
   Compiling getrandom v0.3.4
   Compiling serde_core v1.0.228
   Compiling writeable v0.6.2
   Compiling litemap v0.8.1
   Compiling aws-lc-rs v1.15.1
   Compiling icu_normalizer_data v2.1.1
   Compiling icu_properties_data v2.1.1
   Compiling untrusted v0.9.0
   Compiling smallvec v1.15.1
   Compiling utf8parse v0.2.2
   Compiling is_terminal_polyfill v1.70.2
   Compiling colorchoice v1.0.4
   Compiling anstyle-parse v0.2.7
   Compiling thiserror v2.0.17
   Compiling rustls v0.23.35
   Compiling anstyle-query v1.1.5
   Compiling anstyle v1.0.13
   Compiling thiserror v1.0.69
   Compiling percent-encoding v2.3.2
   Compiling winnow v0.7.14
   Compiling serde_json v1.0.145
   Compiling log v0.4.28
   Compiling strsim v0.11.1
   Compiling utf8_iter v1.0.4
   Compiling subtle v2.6.1
   Compiling clap_lex v0.7.6
   Compiling serde v1.0.228
   Compiling once_cell v1.21.3
   Compiling form_urlencoded v1.2.2
   Compiling anstream v0.6.21
   Compiling base64 v0.22.1
   Compiling itoa v1.0.15
   Compiling memchr v2.7.6
   Compiling toml_writer v1.0.4
   Compiling unicase v2.8.1
   Compiling ryu v1.0.20
   Compiling lazy_static v1.5.0
   Compiling clap_builder v4.5.53
   Compiling syn v2.0.111
   Compiling jobserver v0.1.34
   Compiling getrandom v0.2.16
   Compiling socket2 v0.6.1
   Compiling rand_core v0.9.3
   Compiling cc v1.2.48
   Compiling toml_parser v1.0.4
   Compiling ppv-lite86 v0.2.21
   Compiling cmake v0.1.54
   Compiling rand_chacha v0.9.0
   Compiling ring v0.17.14
   Compiling aws-lc-sys v0.34.0
   Compiling clap v4.5.53
   Compiling rand v0.9.2
   Compiling toml_datetime v0.7.3
   Compiling serde_spanned v1.0.3
   Compiling toml v0.9.8
   Compiling fsio v0.4.1
   Compiling run_script v0.11.2
   Compiling synstructure v0.13.2
   Compiling zerofrom-derive v0.1.6
   Compiling yoke-derive v0.8.1
   Compiling zerovec-derive v0.11.2
   Compiling displaydoc v0.2.5
   Compiling zeroize_derive v1.4.2
   Compiling thiserror-impl v1.0.69
   Compiling thiserror-impl v2.0.17
   Compiling webpki v0.22.4
   Compiling serde_derive v1.0.228
   Compiling zeroize v1.8.2
   Compiling rustls-pki-types v1.13.1
   Compiling zerofrom v0.1.6
   Compiling yoke v0.8.1
   Compiling webpki-roots v1.0.4
   Compiling rustls-pemfile v2.2.0
   Compiling envsubst v0.2.1
   Compiling zerovec v0.11.5
   Compiling zerotrie v0.2.3
   Compiling ping v0.7.0
   Compiling tinystr v0.8.2
   Compiling potential_utf v0.1.4
   Compiling icu_collections v2.1.1
   Compiling icu_locale_core v2.1.1
   Compiling icu_provider v2.1.1
   Compiling icu_normalizer v2.1.1
   Compiling icu_properties v2.1.1
   Compiling idna_adapter v1.2.1
   Compiling idna v1.1.0
   Compiling url v2.5.7
   Compiling rustls-webpki v0.103.8
   Compiling http_req v0.14.2
   Compiling vigil-local v1.2.6 (/home/cargaji/workspace/archlinux/aur/vigil-local/src/vigil-local-1.2.6)
    Finished `release` profile [optimized] target(s) in 1m 11s

I am not running makepkg in any kind of chroot, both commands run on the same environment.

While I was writing this post, loqs posted a response. My makepkg.conf does contain the following OPTIONS array:

OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge debug lto)

But I have not modified (to my knowledge) that variable or CFLAGS in /etc/makepkg.conf or any makepkg-related files.

I tried adding `options=(!lto)` to my PKGBUILD, and now it builds correctly.

Just curious: why is !lto necessary? It means link time optimization, so is it because removing it removes the need to install the AWS libraries when compiling? Again, just curious, thank you for the help debugging.

Offline

#5 2026-02-16 16:10:56

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: Package does not build automatically, but manually building works

Either disabling LTO or adding -ffat-lto-objects is necessary when building a static C library that will later be linked into a binary that has LTO enabled.

You could add `printenv` and `type -a cargo` to the start of build() to try and find the difference between your local system's setup and a clean chroot build.

Offline

Board footer

Powered by FluxBB