Skip to content

Need to support MEX compilers on ubuntu-24.04 runner image #201

Description

@scivision

Github Actions is deprecating Ubuntu 22.04, which is currently needed to use MEX with Matlab of any release.
Trying to use Ubuntu 24.04 image results in failures like:

Error occurred in TestMex/test_cpp_array and it did not run to completion.
---------
Error ID:
---------
'MATLAB:mex:ErrInvalidMEXFile'
--------------
Error Details:
--------------
Invalid MEX-file
'/home/runner/work/matlab-buildtool-mex/matlab-buildtool-mex/mex/arrayProduct.mexa64':
/opt/hostedtoolcache/MATLAB/2026.1.999/x64/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6:
version `GLIBCXX_3.4.32' not found (required by
/home/runner/work/matlab-buildtool-mex/matlab-buildtool-mex/mex/arrayProduct.mexa64)

  Error in TestMex/test_cpp_array (line 25)
    x = arrayProduct(2, a);

Whereas this worked with Ubuntu 22.04 example.

Ref: #115

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions