[Neurodebian-users] matlab-support issues

Andreas Widmann widmann at uni-leipzig.de
Tue Apr 24 16:17:32 BST 2018


May I report one issue and one feature request for the matlab-support package? Currently both issues may only affect Ubuntu users but on the longer run I think most Debian versions will be affected.

(1) MATLAB R2018a compatibility
MATLAB R2018a depends on GLIBCXX_3.4.22 or newer to be included in libstdc++.so.6. Ubuntu 16.04.4 LTS only includes GLIBCXX up to 3.4.21 in libstdc++.so.6. That is, MATLAB will not start if MATLAB included libstdc++.so.6 is renamed during the matlab-support package installation.

The error message is:
/usr/local/MATLAB/R2018a/bin/glnxa64/MATLAB: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /usr/local/MATLAB/R2018a/bin/glnxa64/libCppMicroServices.so.3.1.1)

Maybe it would be good to check for GLIBCXX_3.4.22 or newer version before renaming the MATLAB included libstdc++.so.6?

Good part is that MATLAB included libstdc++.so.6 apparently no longer breaks hardware opengl support.

(2) libjogl incompatibility
Newer versions of Mesa no longer including the string "Gallium" in the version name break hardware opengl support in MATLAB (tested from R2016a to R2018a). This is the case on newer Ubuntu versions starting from 16.04.3 LTS including 18.04 LTS.

The underlying bug was reported here:
https://jogamp.org/bugzilla/show_bug.cgi?id=1357
and is actually already fixed in all affected Ubuntu versions.

Unfortunately the MATLAB included jogl libraries are not fixed and I assume they will probably not be fixed in the foreseeable future. There is also a thread on MATLAB central discussing the effects of the bug:
https://de.mathworks.com/matlabcentral/answers/377644-hardware-opengl-failure-on-ubuntu-16-04-3-can-not-initialize-shared-resources

A simple workaround would be to use the fixed OS provided jogl libraries and remove the MATLAB provided libraries. I figured out how to do this and reported the necessary steps on the psychtoolbox forum:
https://groups.yahoo.com/neo/groups/psychtoolbox/conversations/messages/22687

Thad from psychtoolbox forum wrote a shell script automatizing the necessary steps and made it available on Github:
https://raw.githubusercontent.com/czuba/sysconfig/master/ubuntuFixJogl_ML2018a.sh

As this issue might on the long run affect most new Debian and derived distributions installations I would like to suggest to include Thad's script in the matlab-support package. Thad would be a happy with this.

See also this thread of the psychtoolbox forum for extended discussion of the issue and the suggested workaround:
https://groups.yahoo.com/neo/groups/PSYCHTOOLBOX/conversations/topics/22674

Thank you! Best,
Andreas


More information about the Neurodebian-users mailing list