Compiling kdash succeeds on aarch64, but fails on x86_64 with a gcc13 error?
Hi all, I stumbled upon kdash, which is a terminal dashboard for Kubernetes written in Rust. 1, 2, packaged... And now it fails for x86_64, but succeeds on aarch64. That is a first, I only had it the other way round (x86_64 succeeding, other architectures failing...).
https://build.opensuse.org/package/show/home:ojkastl_buildservice:Branch_dev...
The error mentions some things regarding gcc13 and the linker. This is out of my territory and I would be glad, if someone could have a look whether this is something in my packaging or in upstream or in the GCC package / utilities. Thanks in advance, Johannes Here is the error message:
[ 124s] Compiling glob-match v0.2.1 [ 152s] Compiling kdash v0.4.4 (/home/abuild/rpmbuild/BUILD/kdash-0.4.4) [ 458s] error: linking with `gcc-13` failed: exit status: 1 [ 458s] | [ 458s] = note: LC_ALL="C" PATH="/usr/lib/rustlib/x86_64-unknown-linux-gnu/bin:/usr/local/bin:/usr/bin:/bin" VSLANG="1033" "gcc-13" "-m64" "/tmp/rustc12H751/symbols.o" "/home/abuild/rpmbuild/BUILD/kdash-0.4.4/target/release/deps/kdash-636137db566628e7.textwrap-64392c0ce9fdedcd.5bm7aqjpxxl262og.rcgu.o.rcgu.o" "-Wl,--as-needed" "-L" "/home/abuild/rpmbuild/BUILD/kdash-0.4.4/target/release/deps" "-L" "/home/abuild/rpmbuild/BUILD/kdash-0.4.4/target/release/build/ring-baea55f583cb784a/out" "-L" "/home/abuild/rpmbuild/BUILD/kdash-0.4.4/target/release/build/openssl-sys-de1cad9e2240042c/out/openssl-build/install/lib" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustc12H751/libring-9065b8ee702cbba7.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-33e8ef8c73ed1d04.rlib" "-Wl,-Bdynamic" "-lxcb" "-lxcb-render" "-lxcb-shape" "-lxcb-xfixes" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/abuild/rpmbuild/BUILD/kdash-0.4.4/target/release/deps/kdash-636137db566628e7" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-Wl,-z,relro,-z,now" "/home/abuild/rpmbuild/BUILD/kdash-0.4.4/target/release/deps/kdash_audit_data.o" "-Wl,--undefined=AUDITABLE_VERSION_INFO" [ 458s] = note: /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: cannot find -lxcb: No such file or directory [ 458s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: cannot find -lxcb-render: No such file or directory [ 458s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: cannot find -lxcb-shape: No such file or directory [ 458s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: cannot find -lxcb-xfixes: No such file or directory [ 458s] collect2: error: ld returned 1 exit status [ 458s] [ 458s] [ 459s] error: could not compile `kdash` (bin "kdash") due to previous error [ 459s] error: Bad exit status from /var/tmp/rpm-tmp.cBpgze (%build) -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de
B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
On Okt 09 2023, Johannes Kastl wrote:
And now it fails for x86_64, but succeeds on aarch64. That is a first, I only had it the other way round (x86_64 succeeding, other architectures failing...).
That's because xcb is only used on x86_64. Fix the missing build requires. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
On 09.10.23 at 16:18 Andreas Schwab wrote:
On Okt 09 2023, Johannes Kastl wrote:
And now it fails for x86_64, but succeeds on aarch64. That is a first, I only had it the other way round (x86_64 succeeding, other architectures failing...).
That's because xcb is only used on x86_64. Fix the missing build requires.
Thanks Andreas, I'll try that. Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
participants (2)
-
Andreas Schwab
-
Johannes Kastl