Skip to content
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

macOS 10.14.5 "Mojave" and McStas-distributed gcc: mccode-r.h:39:18: fatal error: math.h: No such file or directory #799

Open
willend opened this issue Jun 7, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@willend
Copy link
Contributor

commented Jun 7, 2019

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

mccode-r.h:39:18: fatal error: math.h: No such file or directory

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.

Screenshot 2019-06-07 at 14 17 18

  • Similarly for mcgui.pl:
    Screenshot 2019-06-07 at 14 35 38

We will will address the issue more directly in the coming versions of the packages.

@willend willend changed the title MacOS 10.14.5 and distributed gcc: mccode-r.h:39:18: fatal error: math.h: No such file or directory MacOS 10.14.5 and McStas-distributed gcc: mccode-r.h:39:18: fatal error: math.h: No such file or directory Jun 7, 2019

@willend willend changed the title MacOS 10.14.5 and McStas-distributed gcc: mccode-r.h:39:18: fatal error: math.h: No such file or directory MacOS 10.14.5 and McStas-distributed gccmccode-r.h:39:18: fatal error: math.h: No such file or directory Jun 7, 2019

@willend willend changed the title MacOS 10.14.5 and McStas-distributed gccmccode-r.h:39:18: fatal error: math.h: No such file or directory MacOS 10.14.5 and McStas-distributed gcc - mccode-r.h:39:18: fatal error: math.h: No such file or directory Jun 7, 2019

@willend willend changed the title MacOS 10.14.5 and McStas-distributed gcc - mccode-r.h:39:18: fatal error: math.h: No such file or directory MacOS 10.14.5 and McStas-distributed gcc: mccode-r.h:39:18: fatal error: math.h: No such file or directory Jun 7, 2019

@willend willend changed the title MacOS 10.14.5 and McStas-distributed gcc: mccode-r.h:39:18: fatal error: math.h: No such file or directory MacOS 10.14.5 and McStas-distributed gcc: ........... mccode-r.h:39:18: fatal error: math.h: No such file or directory Jun 7, 2019

@willend willend changed the title MacOS 10.14.5 and McStas-distributed gcc: ........... mccode-r.h:39:18: fatal error: math.h: No such file or directory macOS 10.14.5 "Mojave" and McStas-distributed gcc: mccode-r.h:39:18: fatal error: math.h: No such file or directory Jun 7, 2019

@willend willend added the McXtrace 1.4 label Jun 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.