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

Fix compilation with OpenMP on latest macOS Xcode without headers in /usr/include #3698

Closed
fox34 opened this issue Jul 11, 2019 · 1 comment
Milestone

Comments

@fox34
Copy link

fox34 commented Jul 11, 2019

When installing according to the docs on macOS 10.14.5, compilation with OpenMP support fails on newer macOS/Xcode versions.

Latest versions of Xcode do not provide the mentioned package macOS_SDK_headers_for_macOS_10.14.pkg any more, as documented in the Xcode 10 release notes.

As such, /usr/include does not exist and cannot be created. Thus, the compilation always fails with the error stdio.h file not found.

Modifying the last line of Makevars from the recommended

CPPFLAGS=-I/usr/local/opt/gettext/include -I$(LLVM_LOC)/include

to

CPPFLAGS=-I/usr/local/opt/gettext/include -I$(LLVM_LOC)/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include

solved the issue for me.
However, a lot of warnings and notes about nullability were issued during compilation, but I do not know whether this is associated with my fix or not.

@jangorecki jangorecki changed the title Documentation: Fix compilation with OpenMP on latest macOS Xcode without headers in /usr/include Fix compilation with OpenMP on latest macOS Xcode without headers in /usr/include Jul 31, 2019
@MichaelChirico MichaelChirico added this to the 1.12.4 milestone Sep 15, 2019
@mattdowle
Copy link
Member

Many thanks. I've added this with a link back to this issue, to https://github.com/Rdatatable/data.table/wiki/Installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants