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

Error using WBToolbox on Ubuntu 20.04 #199

Closed
7 tasks done
S-Dafarra opened this issue Jan 25, 2021 · 4 comments
Closed
7 tasks done

Error using WBToolbox on Ubuntu 20.04 #199

S-Dafarra opened this issue Jan 25, 2021 · 4 comments

Comments

@S-Dafarra
Copy link
Collaborator

S-Dafarra commented Jan 25, 2021

  • I already updated to the latest version I can use
  • I already checked similar issues using the search box (similar, but in Windows Error using WBToolbox on Windows on MATLAB R2019b #197)
  • I already checked the website for known troubleshooting
  • I already cleaned my environment (by removing the wb-toolbox install folder and installing it again)
  • I already excluded the possibility that system configuration files (e.g. yarp related) might be responsible
  • I am sure the environment variables are correct
  • I tried to reproduce the error in simulation (if it affects the real robot)

Description

When I try to compile a simple project like https://github.com/robotology/whole-body-controllers/blob/master/utilities/debug_positionControl.mdl, it fails with the errors:

Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=YarpRead,libName=WBToolbox)
Failed to get the factory

Platform

Ubuntu 20.04. It happens also without the robot or a simulator. Simply open the model of the link and try to compile.

Reproducibility

Describe the steps for reproducing the behavior. If possible, upload a simple Simulink model (only if the error does not either involve the real robot or it is reproducible in simulation).

  1. Open https://github.com/robotology/whole-body-controllers/blob/master/utilities/debug_positionControl.mdl
  2. Compile

Additional information

  • OS: Ubuntu 20.04
  • Version / Commit: 99156c7 (Current master)
  • Matlab Version: 2020a

Additional context

It was working just months ago, on the same system. I wonder what it could have gone wrong. I usually call matlab as follows

alias matlab='cd ~/Documents/MATLAB && LD_PRELOAD=$LD_PRELOAD:/usr/lib/x86_64-linux-gnu/libstdc++.so.6 && LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SOFTWARE_DIR/IPOPT_Solvers matlab'

I wonder if this is still TROMH hitting once more.

Long output
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=YarpRead,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=YarpRead,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=YarpRead,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=YarpRead,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=YarpRead,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=YarpRead,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=YarpRead,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=YarpRead,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=YarpRead,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=YarpRead,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=GetMeasurement,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=GetMeasurement,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=GetMeasurement,libName=WBToolbox)
Failed to get the factory
Failed to create factory
Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)
Failed to get factory object (className=RealTimeSynchronizer,libName=WBToolbox)
Failed to get the factory
@traversaro
Copy link
Member

traversaro commented Jan 25, 2021

Probably some change in iDynTree that used some STL function that in turn require some symbol from a modern libstdcxx, given that the error is:

Factory error (3): /usr/local/MATLAB/R2020a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so)

I wonder if this is still TROMH hitting once more.

I think so.

Cross-link : robotology/robotology-superbuild#64 .

@S-Dafarra
Copy link
Collaborator Author

I am using the current iDynTree master robotology/idyntree@e52d72a

@S-Dafarra
Copy link
Collaborator Author

Related comment: robotology/robotology-superbuild#64 (comment)

@S-Dafarra
Copy link
Collaborator Author

This got fixed by installing the matlab-support package. See robotology/robotology-superbuild#64 (comment)

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

No branches or pull requests

2 participants