Open marc-shen opened 3 weeks ago
My bad, i forgot to add it to .gitignore
. now should be available.
I have met some new problems.
The compile flag -mavx2
is used on x86.
The Mac m1 is arm64, so that I have to remve the -mavx2
in CMakeLists.txt
.
% cmake --build build -j
ld: warning: -commons use_dylibs is no longer supported, using error treatment instead
Undefined symbols for architecture arm64:
"___m_finalize_MOD_finalizeall", referenced from:
_main in tristan.F90.o
"___m_initialize_MOD_initializeall", referenced from:
_main in tristan.F90.o
"___m_mainloop_MOD_mainloop", referenced from:
_main in tristan.F90.o
ld: symbol(s) not found for architecture arm64
collect2: error: ld returned 1 exit status
make[2]: *** [src/tristan-v2.xc] Error 1
make[1]: *** [src/CMakeFiles/tristan-v2.xc.dir/all] Error 2
make: *** [all] Error 2
I'm not sure how to solve this problem. Perhaps the files produced by the compilation are not recognized properly, or the compilation order is wrong.
In version 2.8, although the cmake compilation scheme has been updated, the
CMakeLists.txt
file appears in the.gitignore
listing. There's no way we can use cmake to do the compilation properly.This step requires the
CMakeLists.txt
file to be executed.Error message: