You are not logged in.
Hi!
First of all, I'm more or less noob at most things related, but I guess I fall into the category "learning by failing" With that said, I hope you have a tollerably mind of (probably) all the things I do and have done wrong, including possibly posting in wrong category.
Anyhow...
I try to learn programming (rust) from basic, and has in the process written a program as learninggn. The program can be compiled, both for debug and release in normal enviroment without any error. I have been able to compile previous versons to a pkg with makepkg utility without problems, but for some reason, I can't do that any more and I don't quite understand why. And more important, how to fix
Is there any kind soul out there that can explain what I'm doing wrong and how to fix it?
PKGBUILD:
pkgname=olpac
pkgver=0.1.2
pkgrel=1
pkgdesc="Manager of AUR-packages in local/shared repository"
arch=(any)
url="https://shellback.ddns.net/gitea/shellback/$pkgname"
license=('GPL')
depends=('pacman' 'sudo' 'zstd')
makedepends=(cargo)
optdepends=('nano: reviewing/editing pkgbuild files' 'kibi: reviewing/editing pkgbuild files' 'vi: reviewing/editing pkgbuild files')
source=($url/archive/$pkgver.tar.gz)
sha256sums=('39b2dea63388b5b6942696fcf67bab3bbca2002d63fed819ff95a621931e456c')
prepare() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname"
cargo build --release --locked --all-features
}
package() {
cd "$pkgname"
# Install binary
install -Dm755 "target/release/$pkgname" -t "$pkgdir/usr/bin/"
# Install license
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
Error meassage:
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/andreas/.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/rustc9rXePv/symbols.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.00.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.01.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.02.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.03.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.04.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.05.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.06.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.07.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.08.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.09.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.10.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.11.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.12.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.13.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.14.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.olpac.ce868e6abef170d9-cgu.15.rcgu.o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5.s4xbkfxk0i5smrh.rcgu.o" "-Wl,--as-needed" "-L" "/home/andreas/AUR/olpac/src/olpac/target/release/deps" "-L" "/usr/lib" "-L" "/usr/lib" "-L" "/usr/lib" "-L" "/home/andreas/AUR/olpac/src/olpac/target/release/build/zstd-sys-a354184d2e93c0b3/out" "-L" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libzstd-b9ab26323c404db0.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libzstd_safe-c42e1e77546a6071.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libzstd_sys-b0d930b1f655f53d.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libreqwest-39b63e4343779e6a.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libhyper_tls-43d97a1a2a012067.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libipnet-a6fb0afa943b6bb0.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtokio_native_tls-a2a524221b2757c0.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libserde_urlencoded-9c41d5dec0d1b1cc.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libmime-9744dac138201ff0.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libencoding_rs-404da438ac40d775.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libnative_tls-5263e202de125f47.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libopenssl_probe-4a5efb229ada8050.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libopenssl-6a192c15da5e8b3d.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libforeign_types-b4e137b039164d79.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libforeign_types_shared-123d8e2289d0ee7a.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libopenssl_sys-022bc63a5d8fa7ea.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libhyper-5f22fcee92f542a7.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libwant-4cab78ae9d1ce4f1.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtry_lock-0ecb9b02f3f15154.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libhttparse-7a9af45dd0552d33.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libh2-487680a77caaeb9b.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libindexmap-499fc7e109b8ddf4.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtokio_util-c85eec9df04685ce.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libfutures_sink-ce7521183e486618.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtower_service-84206516f00fd2dc.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtracing-23a7d99b39bdac52.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtracing_core-777ee575a8ecac2b.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libfutures_channel-cbcc7507468d2dca.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtokio-8e4a57a40351263a.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libnum_cpus-14bafa1d05049bae.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libmio-bc09298cb806efde.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libhttp_body-05053c2fc1826c7a.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/liblog-ed791616786d029d.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libfutures_util-60c007a3472972fb.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libfutures_io-54339d31ca6b3de7.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libslab-ad46bd7b81805069.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libpin_project_lite-d5b071dd169d5017.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libfutures_task-70b2cc20c66e5358.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libpin_utils-3141787c4a33d440.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libfutures_core-037297f429c45e0f.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/liburl-34148c7cfcde38b8.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libidna-056944ba3a71b600.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libunicode_normalization-f1f904531bf60c7b.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtinyvec-5d49b7bf856196ee.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtinyvec_macros-6ac7ce634ab69f25.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libunicode_bidi-55789647496857b8.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libform_urlencoded-ddbea475e9f5ff7f.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libpercent_encoding-b7f0966f41bd3e8f.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libhttp-92c0a844ddb6c39a.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libbytes-c126df6068bdab84.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libfnv-bcb4d596ed096a87.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libcurl-1b7266e96289a714.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libsocket2-16ca1961f98803c5.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libcurl_sys-d727989f722c4260.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libxz-8c151be70b8a3b16.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libxz2-4bcadfa468c85b21.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/liblzma_sys-3a9cdb84a32f3a4a.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libbase64-7179aaf27bec9879.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libsha2-7128a7f6c2b0dc6c.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libcpufeatures-c507c7b93db36704.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libmd5-844568174ebbd245.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libdigest-5ea1b41bf80dc7c9.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libblock_buffer-008dc4cc16909cc2.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libcrypto_common-31fc487cfe931d00.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libgeneric_array-485806188519777c.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtypenum-3fb439ec2f021c92.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libgpgme-b3a142ce837575fd.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libsmallvec-e89e0e9d821c64cb.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libmemoffset-3137fbd2e042b9c2.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libconv-0529862806af019a.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libcustom_derive-bfaa55da19158659.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libstatic_assertions-eab2eb1c9c5479e2.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libcstr_argument-0f140993c7375939.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libgpgme_sys-8dd0a59a320184bc.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libgpg_error-f82703d286bae8a7.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/liblibgpg_error_sys-892cf3da4ca662c1.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtar-6c88bb9b766ecc46.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libxattr-72e7aa87f8c79f9c.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libfiletime-02c16527d8ed43ef.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libflate2-89f6b42b94dbffdd.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libminiz_oxide-102812514616ad52.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libadler-67513413f07498c6.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libcrc32fast-dea86a5c652a2ea5.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libconfig-d9d1a182d99c1ed4.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libpathdiff-55314fa763d23648.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libjson5-97e6f4684ce6d1bd.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libpest-5879f12a637dfdde.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libucd_trie-05f20250b81d237c.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libthiserror-05ce8480ea316692.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libron-5824bcf92f75fd23.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libbase64-ad212dbb8dfb0556.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libbitflags-80279c06d3c1f833.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libserde_json-14e07fae2ab83c89.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libryu-0a9a10dc35854032.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libitoa-e59ee428bfdf7e74.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtoml-509ca2f87b9c5c29.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libnom-9f33cd63fc3121ce.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libmemchr-62fdbe02bd7a81a8.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libini-03441cbc9cc945b7.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libordered_multimap-c002588f27d8dc79.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libhashbrown-83870519c357332b.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libahash-3d95095b0badd087.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libonce_cell-83a4c50774312571.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libdlv_list-5a5969a30495e864.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libyaml_rust-27e48ce5fe7f4b7d.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/liblinked_hash_map-0df24e8e00244717.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/liblazy_static-b3eac7b1efe0daf0.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/librand-e453bc89cfe845b1.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/librand_chacha-7507066abc834bfb.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libppv_lite86-08381a55bf8c473c.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/librand_core-d513bfe89d041a09.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libgetrandom-e223db2582353f3f.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libalpm-a1f6d6049c72df61.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libbitflags-f4c66c8e9225124b.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libalpm_sys-27bb08c55ea12f88.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libnix-c6b9c57ee5cb2d32.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libcfg_if-17709ab0e2f45da0.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libinternationalization-4d8092482d308389.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libserde-e31c6aa99775b489.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtermsize-b95fffb60d83ed6e.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libatty-ee375615903cefbd.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libchrono-815635ca7acb676e.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libiana_time_zone-c2854cf2b34d835c.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libnum_integer-0b0d6cbd8a9c9733.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libnum_traits-a4c2a8f6192a3e8e.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/libtime-58081d25a703309a.rlib" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/liblibc-477d49ee0a9e3f70.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6498d8891e016dca.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-3debdee1a9058d84.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-8339c5bd5cbc92bf.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-160ebcebb54c11ba.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-95c75789f1b65e37.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-7e8094f2d6258832.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-bac9783ef1b45db0.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-a1cd87df2f2d8e76.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-7fd06d468d7dba16.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-5ac19487656e05bf.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-c7c35d32cf825c11.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-c523f1571362e70b.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-85f17c92b770a911.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-598d3ba148dadcea.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-a58ec2dab545caa4.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f9dda8cca149f0fc.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-7ba4c315dd7a3503.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5ac2993e19124966.rlib" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-df2fb7f50dec519a.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lcurl" "-llzma" "-lgpgme" "-lgpg-error" "-lalpm" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/andreas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/andreas/AUR/olpac/src/olpac/target/release/deps/olpac-6140b42d45465fd5" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"
= note: /usr/bin/ld: /home/andreas/AUR/olpac/src/olpac/target/release/deps/libzstd_safe-c42e1e77546a6071.rlib(zstd_safe-c42e1e77546a6071.zstd_safe.b8c728fd62288bc3-cgu.0.rcgu.o): undefined reference to symbol 'ZSTD_createDDict'
/usr/bin/ld: /usr/lib/libzstd.so.1: error adding symbols: DSO missing from command line
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 `olpac` (bin "olpac") due to previous error
==> FEL: Ett fel uppstod i build().
Avbryter...
I have probably missed a couple of relevant things, please inform me of any and I will complement it
Last edited by shellback (2024-06-08 13:18:39)
Offline
Finally my ddg-search hit the spot, found this thread that had the solution
The pogram can now sucessfully be compiled if following is added to the PKGBUILD:
options=(!debug !lto)
Last edited by shellback (2024-06-08 15:22:24)
Offline