-
Notifications
You must be signed in to change notification settings - Fork 12
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
Is it possible to make mex
work on windows-latest
?
#55
Comments
MATLAB R2022a and R2022b include support for Visual Studio 2022, so I would expect those releases to work with the Visual Studio 2022 compiler included in |
Hi Mark @mcafaro ! Thank you for your response. I did some tests just now. R2022a/b both failed on Fortran, complaining "Did not find installed compiler 'Intel oneAPI 2021 for Fortran with Microsoft Visual Studio 2019'." Strangely, they looked for VS 2019, disregarding the existing VS 2022. There was no problem with C. 2022a, Fortran: https://github.com/equipez/setup_mex/actions/runs/3883944407/jobs/6626961670 The workflows: https://github.com/equipez/setup_mex/actions/runs/3883944407/workflow Installation of Intel OneAPI: https://github.com/equipez/setup_mex/blob/main/install_oneapi_windows.bat It would be great if you could take a look. Many thanks! Best regards, |
Sorry, I should have mentioned Visual Studio 2022 only has a C and C++ compiler. If you need to compile Fortran MEX files, you'll still need to bring your own Fortran compiler with R2022a and R2022b require Intel oneAPI 2021 for Fortran. It looks like you may be using oneAPI 2023. |
Hello Mark, I made some new tests: https://github.com/equipez/setup_mex/actions/runs/3889645833 Different from the documentation, MATLAB never looks for VS above 2019. See, for example, https://github.com/equipez/setup_mex/actions/runs/3889645833/jobs/6638085171 It is true that the oneAPI version in this workflow (2023) is higher than expected (2021). However, it does not seem to be the reason for the failure. MATLAB does not complain about it, but says that it cannot find VS 2015, 2017, or 2019. I am afraid that this might be a bug similar to a previous one, where an early version of R2022a does not support gfortran 8.x as documented. This has been confirmed as a bug by the MEX team (@ssankarmw) of Mathworks. Would you mind having a look at this problem, or drawing the attention of your colleagues on the MEX team? Thank you very much! Best regards, (PS: I also tested oneAPI 2021. The test also failed, but for a different reason: the offline installer of oneAPI does not work with windows-latest, which has been reported to the Intel CI team). |
Hi Zaikun That said, I will investigate this issue further. -Sriram |
Hello Sriram @ssankarmw ! Thank you very much for looking into this issue. Here are the error logs, where R2022a: https://github.com/equipez/setup_mex/actions/runs/3889645833/jobs/6638084886 I would like to highlight the following points.
It would be great if you could try on your side what happens with
It should work according to the documentation, but I guess it will fail. Thank you very much for your investigation and help! Best regards, R2022a:
R2022b:
|
According to issue 29, it was not possible to make
mex
work onwindows-latest
as of February 2022. What about now in 2023, with newer MATLAB?Many thanks!
Zaikun
The text was updated successfully, but these errors were encountered: