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...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
Keywords: PATCH
Depends on:
Reported: 2022-10-26 18:09 UTC by Toralf Förster
Modified: 2023-02-16 11:50 UTC (History)
2 users (show)

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

emerge-info.txt (emerge-info.txt,19.62 KB, text/plain)
2022-10-26 18:09 UTC, Toralf Förster
emerge-history.txt.bz2 (emerge-history.txt.bz2,63.89 KB, application/x-bzip)
2022-10-26 18:09 UTC, Toralf Förster
environment (environment,177.22 KB, text/plain)
2022-10-26 18:09 UTC, Toralf Förster
etc.portage.tar.bz2 (etc.portage.tar.bz2,22.02 KB, application/x-bzip)
2022-10-26 18:09 UTC, Toralf Förster
logs.tar.bz2 (logs.tar.bz2,14.68 KB, application/x-bzip)
2022-10-26 18:09 UTC, Toralf Förster
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
temp.tar.bz2 (temp.tar.bz2,48.02 KB, application/x-bzip)
2022-10-26 18:09 UTC, Toralf Förster
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
	-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
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 [openjdk-bin-11]
2)	Eclipse Temurin JDK [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
4)	Eclipse Temurin JRE [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 <>
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]
Comment 2 Toralf Förster gentoo-dev 2022-10-26 18:09:41 UTC
Created attachment 825523 [details]
Comment 3 Toralf Förster gentoo-dev 2022-10-26 18:09:43 UTC
Created attachment 825525 [details]
Comment 4 Toralf Förster gentoo-dev 2022-10-26 18:09:44 UTC
Created attachment 825527 [details]
Comment 5 Toralf Förster gentoo-dev 2022-10-26 18:09:45 UTC
Created attachment 825529 [details]
Comment 6 Toralf Förster gentoo-dev 2022-10-26 18:09:47 UTC
Created attachment 825531 [details]
Comment 7 Toralf Förster gentoo-dev 2022-10-26 18:09:48 UTC
Created attachment 825533 [details]
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
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.