Bug 1827 - Build fails with swig 4.1 the java bindings are enabled
Summary: Build fails with swig 4.1 the java bindings are enabled
Status: CONFIRMED
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Bindings: SWIG (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-31 18:34 CET by sigrok_bugzilla
Modified: 2023-02-01 13:26 CET (History)
0 users



Attachments
build log (27.95 KB, text/x-log)
2023-01-31 18:34 CET, sigrok_bugzilla
Details
possible fix (370 bytes, patch)
2023-02-01 13:25 CET, sigrok_bugzilla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sigrok_bugzilla 2023-01-31 18:34:13 CET
Created attachment 788 [details]
build log

libsigrok-unreleased-1543-ge7c7aa11
swig 4.1.1

Summary of build commands and truncated output.  Full build log attached

../libsigrok/configure --prefix=/usr --enable-java --enable-ruby
....
make
....
  GEN      bindings/python/sigrok/core/doc_start.i
  GEN      bindings/java/org/sigrok/core/classes/doc.i
  GEN      bindings/python/sigrok/core/doc_end.i
  GEN      bindings/ruby/doc.i
  GEN      bindings/ruby/classes_wrap.cpp
  GEN      bindings/java/org/sigrok/core/classes/classes_wrap.cxx
bindings/swig/enums.i:1: Error: Unknown directive '%attribute'.
make[1]: *** [Makefile:5691: bindings/java/org/sigrok/core/classes/classes_wrap.cxx] Error 1
Comment 1 sigrok_bugzilla 2023-02-01 13:25:39 CET
Created attachment 789 [details]
possible fix

Limiting %include "swig/enums.i" to to the CXX bindings with #ifdef SWIGCXX allows the build to succeed.