swig -c++ -Dnoexcept= -Dprivate=protected -DG_GNUC_BEGIN_IGNORE_DEPRECATIONS= -DG_GNUC_END_IGNORE_DEPRECATIONS= \ -java -package org.sigrok.core.classes \ -Ibindings -Ibindings/java/org/sigrok/core/classes -Iinclude -I./include -I./src -I. -Ibindings/cxx/include -I./bindings/cxx/include -Ibindings/cxx -I. -I/opt/openjdk-bin-8.345_p01/include -I/opt/openjdk-bin-8.345_p01/include/linux \ -outdir bindings/java/org/sigrok/core/classes -o bindings/java/org/sigrok/core/classes/classes_wrap.cxx ./bindings/java/org/sigrok/core/classes/classes.i bindings/swig/enums.i:1: Error: Unknown directive '%attribute'. make[1]: *** [Makefile:5318: bindings/java/org/sigrok/core/classes/classes_wrap.cxx] Error 1 make[1]: *** Waiting for unfinished jobs.... ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma-j4-20221024-020022 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11 [2] x86_64-pc-linux-gnu-12 * clang/llvm (if any): clang version 15.0.3 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/15 15.0.3 Python 3.10.8 Available Ruby profiles: [1] ruby27 (with Rubygems) [2] ruby31 (with Rubygems) * Available Rust versions: [1] rust-bin-1.64.0 * GENTOO_VM=openjdk-bin-8 CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.345_p01" JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="" The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11] 2) Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17] *) Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8] 4) Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm [2] openjdk-bin-11 [3] openjdk-bin-17 [4] openjdk-jre-bin-17 The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): GNU Make 4.3 HEAD of ::gentoo commit d3074b071999de4ae9d0af1e770907f5da9280ef Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Wed Oct 26 12:31:52 2022 +0000 2022-10-26 12:31:52 UTC emerge -qpvO sci-libs/libsigrok [ebuild N ] sci-libs/libsigrok-0.5.2-r3 USE="bluetooth cxx java udev usb -ftdi -hidapi -parport -python -serial -static-libs -test" PYTHON_TARGETS="python3_10 -python3_8 -python3_9"
Created attachment 825521 [details] emerge-info.txt
Created attachment 825523 [details] emerge-history.txt.bz2
Created attachment 825525 [details] environment
Created attachment 825527 [details] etc.portage.tar.bz2
Created attachment 825529 [details] logs.tar.bz2
Created attachment 825531 [details] sci-libs:libsigrok-0.5.2-r3:20221026-135029.log
Created attachment 825533 [details] temp.tar.bz2
Created attachment 832785 [details, diff] patch to add missing %include to enums.i I had the same error with sci-libs/libsigrok-9999. The problem was a missing %include directive in enums.i, which is generated at compile time by enums.py. The attached patch creates the missing directive and compilation succeeds.
I'm also seeing this error.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a09cf66a0d720125efdfd0f62643ba4be61545a7 commit a09cf66a0d720125efdfd0f62643ba4be61545a7 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-06-10 21:32:32 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-06-10 21:32:37 +0000 sci-libs/libsigrok: fix build w/ swig-4.1 Closes: https://bugs.gentoo.org/878395 Signed-off-by: Sam James <sam@gentoo.org> .../libsigrok/files/libsigrok-0.5.2-swig-4.1.patch | 11 ++ sci-libs/libsigrok/libsigrok-0.5.2-r4.ebuild | 156 +++++++++++++++++++++ 2 files changed, 167 insertions(+)