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

Regression in robotology iDynTree MATLAB binary package #1461

Closed
traversaro opened this issue Aug 27, 2023 · 2 comments · Fixed by #1462
Closed

Regression in robotology iDynTree MATLAB binary package #1461

traversaro opened this issue Aug 27, 2023 · 2 comments · Fixed by #1462

Comments

@traversaro
Copy link
Member

The CI for MATLAB binary package is now failing for MATLAB R2020b, R2021a, R2021b with error:

  /home/runner/work/_actions/matlab-actions/run-command/v1/dist/bin/glnxa64/run-matlab-command cd('/tmp/run_matlab_command-rjikJv');command_53d06710_a3a9_4cf4_a8d6_af6a6de004c6 
  
  	Sponsored License -- for use in support of a program or activity sponsored by MathWorks.
  	Not for government, commercial or other non-sponsored organizational use.
  
  {�Error using iDynTree.Position (line 10)
  Invalid MEX-file '/home/runner/work/robotology-superbuild/robotology-superbuild/scripts/robotology-matlab/mex/iDynTreeMEX.mexa64':
  /usr/local/MATLAB/R2020b/bin/glnxa64/../../sys/os/glnxa64/libgfortran.so.5: version `GFORTRAN_10' not found (required by
  /home/runner/work/robotology-superbuild/robotology-superbuild/scripts/robotology-matlab/mex/../lib/././libspral.so)
  
  Error in command_53d06710_a3a9_4cf4_a8d6_af6a6de004c6 (line 3)
  pos = iDynTree.Position()
  }� 
  exit status 1

The latest relase of MATLAB is instead working.

@traversaro
Copy link
Member Author

traversaro commented Aug 27, 2023

This is a "regression" due to conda-forge/ipopt-feedstock#94, basically the libgfortran.so.5 shipped with MATLAB is too old for the gfortran used in conda-forge. While a possible solution is to rename /usr/local/MATLAB/R2020b/bin/glnxa64/../../sys/os/glnxa64/libgfortran.so.5 to a different name to use the system's libgfortran.so.5 (i.e. similar to #64), probably an easier option is just to drop support for older MATLAB releases.

@traversaro
Copy link
Member Author

Indeed, based on information from https://it.mathworks.com/support/requirements/previous-releases.html, since R2022a MATLAB supports gfortran 10, while previous releases supported gfortran 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant