Version
0.4.0
Description
I tried to build from AUR and this is standard makepkg.conf that I modified.
These are minimal changes that I make to still build ouch
:
# Rust
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang
RUSTFLAGS="-C opt-level=3 -C target-cpu=native -C linker=clang -C link-arg=-fuse-ld=lld"
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
Now, let's change makepkg.conf
to enable lto for rust:
# Rust
CARGO_PROFILE_RELEASE_LTO="thin"
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang
RUSTFLAGS="-C opt-level=3 -C target-cpu=native -C linker=clang -C linker-plugin-lto -C link-arg=-flto -C link-arg=-fuse-ld=lld"
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
and it throw up this error:
ouch-0.4.0-2: parsing pkg list...
==> Making package: ouch 0.4.0-2 (Sun 27 Nov 2022 05:15:35 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Compiling libc v0.2.137
Compiling version_check v0.9.4
Compiling pkg-config v0.3.26
Compiling proc-macro2 v1.0.47
error: linking with `clang` failed: exit status: 1
|
= note: "clang" "-m64" "/tmp/rustc9r9VB4/symbols.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.0.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.1.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.10.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.11.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.12.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.13.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.14.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.15.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.2.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.3.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.4.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.5.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.6.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.7.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.8.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.9.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.3nnc0gfx98pgnvs5.rcgu.o" "-Wl,--as-needed" "-L" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/deps" "-L" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-05737cf45bd30456.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-9f873b61fdec9b03.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-7f13930fcac1846f.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-098633b847612f3b.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-f14b73d282b0245e.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-2c5b4433ebc1d822.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-59591a7b405fe395.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-384947c6d5f697ff.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-b08a86c6880b47a8.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-58adeee671f9ba8e.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-f156b880fc73e7f0.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-4458c5022988e1ab.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-02e61e5ec4aa9e8b.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-a0d9b33b5161957b.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-04cec55a79224c36.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-3fb6d8496dc7d6a6.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-7d46c016841a97d4.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-a1f7b8b60464cc57.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-272ca28f0b8538d5.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-Wl,-plugin-opt=O3,-plugin-opt=mcpu=znver2" "-L" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs" "-flto" "-fuse-ld=lld"
= note: ld.lld: error: /home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/libc-d85166fb06ca004c/build_script_build-d85166fb06ca004c.build_script_build.61477c60-cgu.0.rcgu.o: Opaque pointers are only supported in -opaque-pointers mode (Producer: 'LLVM15.0.0-rust-1.65.0-stable' Reader: 'LLVM 14.0.6')
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
error: linking with `clang` failed: exit status: 1
|
= note: "clang" "-m64" "/tmp/rustcQ6zxzl/symbols.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.0.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.1.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.10.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.11.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.12.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.13.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.14.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.15.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.2.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.3.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.4.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.5.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.6.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.7.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.8.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.9.rcgu.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.556n1a3yip9mca1c.rcgu.o" "-Wl,--as-needed" "-L" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/deps" "-L" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-05737cf45bd30456.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-9f873b61fdec9b03.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-7f13930fcac1846f.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-098633b847612f3b.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-f14b73d282b0245e.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-2c5b4433ebc1d822.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-59591a7b405fe395.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-384947c6d5f697ff.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-b08a86c6880b47a8.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-58adeee671f9ba8e.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-f156b880fc73e7f0.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-4458c5022988e1ab.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-02e61e5ec4aa9e8b.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-a0d9b33b5161957b.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-04cec55a79224c36.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-3fb6d8496dc7d6a6.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-7d46c016841a97d4.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-a1f7b8b60464cc57.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-272ca28f0b8538d5.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-Wl,-plugin-opt=O3,-plugin-opt=mcpu=znver2" "-L" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs" "-flto" "-fuse-ld=lld"
= note: ld.lld: error: /home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/proc-macro2-43ef730515044743/build_script_build-43ef730515044743.build_script_build.dc536bce-cgu.0.rcgu.o: Opaque pointers are only supported in -opaque-pointers mode (Producer: 'LLVM15.0.0-rust-1.65.0-stable' Reader: 'LLVM 14.0.6')
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `libc` due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `proc-macro2` due to previous error
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'ouch-0.4.0-2':
error: packages failed to build: ouch-0.4.0-2
If in minimal working makepkg.conf file I change lld
to mold
as linker it show this:
ouch-0.4.0-2: parsing pkg list...
==> Making package: ouch 0.4.0-2 (Sun 27 Nov 2022 04:58:23 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Compiling libc v0.2.137
Compiling pkg-config v0.3.26
Compiling version_check v0.9.4
Compiling proc-macro2 v1.0.47
Compiling jobserver v0.1.25
Compiling quote v1.0.21
Compiling cc v1.0.77
Compiling unicode-ident v1.0.5
Compiling proc-macro-error-attr v1.0.4
Compiling syn v1.0.103
Compiling cfg-if v1.0.0
Compiling proc-macro-error v1.0.4
Compiling memchr v2.5.0
Compiling heck v0.4.0
Compiling os_str_bytes v6.4.1
Compiling clap_lex v0.3.0
Compiling atty v0.2.14
Compiling once_cell v1.16.0
Compiling zstd-sys v2.0.1+zstd.1.5.2
Compiling strsim v0.10.0
Compiling termcolor v1.1.3
Compiling bitflags v1.3.2
Compiling libz-sys v1.1.8
Compiling crc32fast v1.3.2
Compiling log v0.4.17
Compiling bzip2-sys v0.1.11+1.0.8
Compiling lzma-sys v0.1.20
Compiling aho-corasick v0.7.20
Compiling crossbeam-utils v0.8.14
Compiling regex-syntax v0.6.28
Compiling time-core v0.1.0
Compiling roff v0.2.1
Compiling zstd-safe v6.0.2+zstd.1.5.2
Compiling libm v0.2.6
Compiling time-macros v0.2.6
Compiling regex v1.7.0
Compiling lzzzz v1.0.4
Compiling bstr v0.2.17
Compiling itoa v1.0.4
Compiling same-file v1.0.6
Compiling fnv v1.0.7
Compiling snap v1.1.0
Compiling walkdir v2.3.2
Compiling globset v0.4.9
Compiling time v0.3.17
Compiling flate2 v1.0.24
Compiling thread_local v1.1.4
Compiling filetime v0.2.18
Compiling xattr v0.2.3
Compiling byteorder v1.4.3
Compiling remove_dir_all v0.5.3
Compiling fastrand v1.8.0
Compiling lazy_static v1.4.0
Compiling tempfile v3.3.0
Compiling ignore v0.4.18
Compiling zip v0.6.3
Compiling tar v0.4.38
Compiling humansize v2.1.2
Compiling xz2 v0.1.7
Compiling bzip2 v0.4.3
Compiling fs-err v2.9.0
Compiling linked-hash-map v0.5.6
Compiling clap_derive v4.0.21
Compiling clap v4.0.26
Compiling zstd v0.12.0+zstd.1.5.2
Compiling clap_mangen v0.2.4
Compiling clap_complete v4.0.5
Compiling ouch v0.4.0 (/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0)
error: linking with `clang` failed: exit status: 1
|
= note: "clang" "-m64" "/tmp/rustcKQbaix/symbols.o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/deps/ouch-cb258462d5648994.ouch.f0ea18ee-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/deps" "-L" "/usr/lib" "-L" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/lzzzz-d72b66cda64e95a1/out" "-L" "/usr/lib" "-L" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/build/zstd-sys-e1c1221461652295/out" "-L" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustcKQbaix/libzstd_sys-85864afbf3f6cc4b.rlib" "/tmp/rustcKQbaix/liblzzzz-38cf55931ba46463.rlib" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-272ca28f0b8538d5.rlib" "-Wl,-Bdynamic" "-llzma" "-lbz2" "-lz" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/roland/.cache/paru/clone/ouch/src/ouch-0.4.0/target/release/deps/ouch-cb258462d5648994" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs" "-fuse-ld=mold"
= note: mold: fatal: debug.o: don't know how to handle this LTO object file because no -plugin option was given. Please make sure you added -flto not only for creating object files but also for creating the final executable.
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `ouch` due to previous error
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'ouch-0.4.0-2':
error: packages failed to build: ouch-0.4.0-2
For every build I deleted ouch
AUR folder from paru
(app that download and build aplication from AUR) and deleted ~/.cargo/registry
to be sure it's all clean every time.
Current Behavior
No response
Expected Behavior
No response
Additional Information
No response
bug