After I run make the compilation fails at the first 3% for compiling with some error related to xtensor. The error is in the images below. IMAGE 1 IMAGE 2
The last part of the error has an ID of prsRXrD. I can’t post more than 2 links.
I have consulted Google, chatGPT, and the forum but couldn’t find any solution. I have exhausted my options and I am now writing here to ask if anyone had any similar issue and how did you solve it.
Note: I am not familiar with compilers but I set this task for myself to try to learn it and understand the concepts of compilation.
Thank you in advance! If you need any additional information please let me know.
Heyy,
Thank you for the reply. I haven’t tried it before but I have now and the cmake passes but the make doesn’t (again). It still has an issue with omp.h file.
After that, the procedure is similar as in documentation:
mkdir build && cd build
CC=/opt/homebrew/opt/llvm/bin/clang CXX=/opt/homebrew/opt/llvm/bin/clang++ LDFLAGS=-L/opt/homebrew/opt/libomp/lib cmake -DCMAKE_INSTALL_PREFIX=$HOME/Software/openmc -DCMAKE_CXX_FLAGS=-fno-relaxed-template-template-args ..
make
make install
After that, the openmc executable will be in the folder that you have specified in the -DCMAKE_INSTALL_PREFIX under bin folder.
I hope I helped someone who has the same issue as me. Thank you gridley with you helpful inputs. Cheers!