Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878395 - sci-libs/libsigrok-0.5.2-r3 - bindings/.../enums.i:1: Error: Unknown directive %attribute.
Summary: sci-libs/libsigrok-0.5.2-r3 - bindings/.../enums.i:1: Error: Unknown directiv...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-10-26 18:09 UTC by Toralf Förster
Modified: 2023-06-10 21:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.62 KB, text/plain)
2022-10-26 18:09 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,63.89 KB, application/x-bzip)
2022-10-26 18:09 UTC, Toralf Förster
Details
environment (environment,177.22 KB, text/plain)
2022-10-26 18:09 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,22.02 KB, application/x-bzip)
2022-10-26 18:09 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,14.68 KB, application/x-bzip)
2022-10-26 18:09 UTC, Toralf Förster
Details
sci-libs:libsigrok-0.5.2-r3:20221026-135029.log (sci-libs:libsigrok-0.5.2-r3:20221026-135029.log,158.67 KB, text/plain)
2022-10-26 18:09 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,48.02 KB, application/x-bzip)
2022-10-26 18:09 UTC, Toralf Förster
Details
patch to add missing %include to enums.i (attributes.patch,346 bytes, patch)
2022-11-15 09:02 UTC, daniel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-10-26 18:09:38 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2022-10-26 18:09:40 UTC
Created attachment 825521 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-26 18:09:41 UTC
Created attachment 825523 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-26 18:09:43 UTC
Created attachment 825525 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-26 18:09:44 UTC
Created attachment 825527 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-26 18:09:45 UTC
Created attachment 825529 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-26 18:09:47 UTC
Created attachment 825531 [details]
sci-libs:libsigrok-0.5.2-r3:20221026-135029.log
Comment 7 Toralf Förster gentoo-dev 2022-10-26 18:09:48 UTC
Created attachment 825533 [details]
temp.tar.bz2
Comment 8 daniel 2022-11-15 09:02:37 UTC
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.
Comment 9 Alan Hourihane 2023-02-16 11:50:35 UTC
I'm also seeing this error.
Comment 10 Larry the Git Cow gentoo-dev 2023-06-10 21:33:04 UTC
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(+)