As of R 3.6.0 we get the following error on
osx_image: xcode7.3 (El Capitan):
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c reassign.c -o reassign.o clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' In file included from reassign.c:2: /Library/Frameworks/R.framework/Resources/include/R.h:55:11: fatal error: 'stdlib.h' file not found # include <stdlib.h> /* Not used by R itself, but widely assumed in packages */ ^ 1 error generated.
On my local El-Capitan however
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk seems to be available and all works. How do we install this? I tried
before_install: xcode-select --install but that didn’t help.