Skip to content
Prev 13153 / 15075 Next

fatal error: 'stdio.h' file not found

One more update. I had to add the -isysroot flag to avoid collisions
between incompatible headers when building some packages. Thinking about it
more I remembered that I have also used Homebrew in the past for some
installations of unrelated software (so my installation is not as "Vanilla"
as I previously asserted). I wonder then if the source of my woes here is
collisions between homebrew and Xcode? Regardless, this ~/.R/Makevars is
working for me to allow building source packages with the official R 4.0
binary on macOs 10.14.6 with XCode 11.3.1 :

CFLAGS = -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-Wno-nullability-completeness -Wno-expansion-to-defined -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
CXXFLAGS =
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-Wno-nullability-completeness -Wno-expansion-to-defined -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
CPPFLAGS =
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-Wno-nullability-completeness -Wno-expansion-to-defined -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

Thanks again!
-Eric
On Wed, Apr 29, 2020 at 1:01 PM Eric K <ericjkort at gmail.com> wrote: