bbopt / nomad

NOMAD - A blackbox optimization software
https://nomad-4-user-guide.readthedocs.io/
GNU Lesser General Public License v3.0
114 stars 24 forks source link

Test NOMAD on Apple M1 #115

Closed amontoison closed 1 year ago

amontoison commented 1 year ago

CirrusCI was updated and it supports Apple M1 for open source softwares now.

amontoison commented 1 year ago

@ctribes I added a build for Apple M1.

amontoison commented 1 year ago

@ctribes Did you modify something for the tests with Windows -- MinGW ? Update: I found the culprit, #116 solved the problem.

I have some compilation issues with the release 4.3.0: https://github.com/JuliaPackaging/Yggdrasil/pull/6014 I have the following errors:

[22:32:24] /opt/x86_64-w64-mingw32/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld: CMakeFiles/nomadEval.dir/objects.a(EvalPoint.cpp.obj):EvalPoint.cpp:(.rdata$.refptr._ZTVN9NOMAD_4_35GMeshE[.refptr._ZTVN9NOMAD_4_35GMeshE]+0x0): undefined reference to `vtable for NOMAD_4_3::GMesh'
[22:32:24] /opt/x86_64-w64-mingw32/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld: CMakeFiles/nomadEval.dir/objects.a(EvalPoint.cpp.obj):EvalPoint.cpp:(.rdata$.refptr._ZTVN9NOMAD_4_38MeshBaseE[.refptr._ZTVN9NOMAD_4_38MeshBaseE]+0x0): undefined reference to `vtable for NOMAD_4_3::MeshBase'
[22:32:24] collect2: error: ld returned 1 exit status
[22:32:24] make[2]: *** [src/CMakeFiles/nomadEval.dir/build.make:339: src/libnomadEval.dll] Error 1
[22:32:24] make[1]: *** [CMakeFiles/Makefile2:1498: src/CMakeFiles/nomadEval.dir/all] Error 2
ERROR: could not load library "/agent/_work/1/s/N/NOMAD/build/x86_64-linux-gnu-cxx11/0pQTACoB/x86_64-linux-gnu-libgfortran5-cxx11/destdir/lib/libnomadEval.so.4.3.0"
/agent/_work/1/s/N/NOMAD/build/x86_64-linux-gnu-cxx11/0pQTACoB/x86_64-linux-gnu-libgfortran5-cxx11/destdir/lib/libnomadEval.so.4.3.0: undefined symbol: _ZTVN9NOMAD_4_35GMeshE

It seems that the problem is related to GMesh and MeshBase.