


























Hi @danielck,
This is an LTO version mismatch (e.g. mixing GCC 14 and 15). To fix it, please do a clean rebuild so everything is compiled with the same GCC version:
rm -rf src/ pkg/
makepkg -Cfs
paru -S snmpb --rebuild --mflags "--cleanbuild"
yay -S snmpb --rebuildtree
Let me know if the issue persists!
I try to update the snmpb but got the following error message:
lto1: fatal error: bytecode stream in file ‘obj/Friedberg2007.o’ generated with LTO version 14.0 instead of the expected 15.0
compilation terminated.
lto-wrapper: fatal error: /usr/bin/g++ returned 1 exit status
compilation terminated.
mold: fatal: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:299: ../bin/friedberg] Error 1
make[2]: Leaving directory '/tmp/makepkg/snmpb/src/snmpb-1.0/qwt/examples/friedberg'
make[1]: *** [Makefile:197: sub-friedberg-make_first] Error 2
make[1]: *** Waiting for unfinished jobs....
How do I fix it? Thanks
Could you please add 'aarch64' to the list of supported architectures in PKGBUILD, as it compiles and runs just fine there ?
Updated with the gcc-15 patch for libsmi. Many thanks for pointing this out @bashee.
@nikost74, I apply and test the patch to the package;
this is the git format-patch output: 0001-Add-libsmi-patch-with-gcc-15-fix.patch
From 238037125bd58ae84d3da6e103cfc34191528cab Mon Sep 17 00:00:00 2001
From: Marco Bascetta <marco.bascetta@sadel.it>
Date: Wed, 11 Jun 2025 10:23:51 +0200
Subject: [PATCH] Add libsmi patch with gcc-15 fix
---
PKGBUILD | 9 ++++++++-
libsmi-0.5.0_gcc-15.patch | 40 +++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+), 1 deletion(-)
create mode 100644 libsmi-0.5.0_gcc-15.patch
diff --git a/PKGBUILD b/PKGBUILD
index 07d197e..13dc662 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,11 +31,14 @@ source=(
"https://www.ibr.cs.tu-bs.de/projects/libsmi/download/libsmi-${_smi}.tar.gz"
"https://github.com/libtom/libtomcrypt/releases/download/v${_tomcrypt}/crypt-${_tomcrypt}.tar.xz"
"https://sourceforge.net/projects/qwt/files/qwt/${_qwt}/qwt-${_qwt}.tar.bz2"
+ "libsmi-${_smi}_gcc-15.patch"
)
sha256sums=('SKIP'
'f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3'
'96ad4c3b8336050993c5bc2cf6c057484f2b0f9f763448151567fbab5e767b84'
- 'dcb085896c28aaec5518cbc08c0ee2b4e60ada7ac929d82639f6189851a6129a')
+ 'dcb085896c28aaec5518cbc08c0ee2b4e60ada7ac929d82639f6189851a6129a'
+ 'ea475e5b0e5c8daf5d119c51163fced965fdba339c5d1cd1a22fda1a1536528d'
+)
prepare() {
# Create the build directory
mkdir -p "${srcdir}/${pkgname}-${pkgver}"
@@ -88,6 +91,10 @@ build() {
# Build Libsmi
cd "${libsmi_dir}"
+
+ # Apply patch
+ patch -p1 < "../../libsmi-${_smi}_gcc-15.patch"
+
autoreconf -i
./configure \
--disable-shared \
diff --git a/libsmi-0.5.0_gcc-15.patch b/libsmi-0.5.0_gcc-15.patch
new file mode 100644
index 0000000..1162142
--- /dev/null
+++ b/libsmi-0.5.0_gcc-15.patch
@@ -0,0 +1,40 @@
+--- a/lib/parser-smi.h 2025-06-11 10:07:25.691041164 +0200
++++ b/lib/parser-smi.h 2013-06-04 14:34:00.000000000 +0200
+@@ -24,7 +24,7 @@
+
+
+
+-extern int smiparse();
++extern int smiparse(struct Parser *parserPtr);
+
+
+
+--- a/lib/parser-yang.h 2025-06-11 10:08:38.744144942 +0200
++++ b/lib/parser-yang.h 2025-06-11 10:08:21.420123068 +0200
+@@ -7,13 +7,13 @@
+
+ #include "yang-data.h"
+
+-
++#include "smi-data.h"
+
+ #define YYERROR_VERBOSE
+
+
+
+-extern int yangparse();
++extern int yangparse(struct Parser *parserPtr);
+
+
+
+--- a/lib/smi-data.c 2025-06-11 10:06:17.800716611 +0200
++++ b/lib/smi-data.c 2013-06-04 14:34:00.000000000 +0200
+@@ -39,7 +39,7 @@
+
+ #ifdef BACKEND_SMI
+ #include "scanner-smi.h"
+-extern int smiparse();
++extern int smiparse(struct Parser *parserPtr);
+ #endif
+
+ #ifdef BACKEND_SMING
--
2.49.0
snmpb: error while loading shared libraries: libqwt.so.6.2: cannot open shared object file: No such file or directory
qwt provides 6.3.0 now
Please add qt5-tools to makedeps (for lrelease)
Everything is OK now. Thank you!
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Hi @petaramesh,
Thanks for testing! I'll add
aarch64to thearcharray in the nextpkgrelupdate.