Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
macOS 10.14.5 "Mojave" and McStas-distributed gcc: mccode-r.h:39:18: fatal error: math.h: No such file or directory #799
With the latest update to Xcode command line tools, there is no longer an option to install the system header files to the legacy location of /usr/include .
This means that the miniconda-based gcc that we distribute with McStas and McXtrace is no longer able to locate the math.h header file and compilations fail with
For now, the easiest workaround is to instead use the Xcode-distributed clang compiler, i.e. in mcgui enter File->Preferences and adjust the CC and MPICC settings to those shown below and press save.
We will will address the issue more directly in the coming versions of the packages.