Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to compile Octave bindings with Ubuntu 22.04 #3022

Open
randaz81 opened this issue Sep 15, 2023 · 0 comments
Open

Failure to compile Octave bindings with Ubuntu 22.04 #3022

randaz81 opened this issue Sep 15, 2023 · 0 comments
Labels
Component: Bindings swig, python, java, ruby, perl, octave, matlab, lua, csharp, tcl Issue Type: Bug Involves some intervention from a system administrator

Comments

@randaz81
Copy link
Member

randaz81 commented Sep 15, 2023

From #3020

Swig compiler shipped by default with Ubuntu 22.04, i.e. Version 4.0.2, seems to fail to generate Yarp bindings for Octave 6.0 with the following errors:

 95%] Building CXX object bindings/octave/CMakeFiles/yarp_octave.dir/CMakeFiles/yarp_octave.dir/yarpOCTAVE_wrap.cxx.o
CMakeFiles/yarp_octave.dir/yarpOCTAVE_wrap.cxx:1769:31: error: ‘oct_mach_info’ has not been declared
 1769 |                               oct_mach_info::float_format fmt) {
      |                               ^~~~~~~~~~~~~
CMakeFiles/yarp_octave.dir/yarpOCTAVE_wrap.cxx:1769:59: error: expected ‘,’ or ‘...’ before ‘fmt’
 1769 |                               oct_mach_info::float_format fmt) {
      |                                                           ^~~

We should try to upgrade Swig to version 4.1.0, as mentioned here:
https://packages.ubuntu.com/jammy/swig
https://sourceforge.net/p/swig/news/2022/10/swig-410-released/
https://savannah.gnu.org/bugs/?59422
https://superuser.com/questions/1756802/how-to-install-swig-version-4-1-0-on-ubuntu-22-04-dockerfile

@randaz81 randaz81 added Issue Type: Bug Involves some intervention from a system administrator Component: Bindings swig, python, java, ruby, perl, octave, matlab, lua, csharp, tcl labels Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Bindings swig, python, java, ruby, perl, octave, matlab, lua, csharp, tcl Issue Type: Bug Involves some intervention from a system administrator
Projects
None yet
Development

No branches or pull requests

1 participant