Segfault-Inc / Multicorn

Data Access Library
https://multicorn.org/
PostgreSQL License
697 stars 145 forks source link

During attempted install, warning about missing MacOSX10.14.sdk, error about stdio.h not found #253

Closed jon-freed closed 4 years ago

jon-freed commented 4 years ago

This isn't a Multicorn error per se, but for the benefit of others:

During install, I encountered the following warning and error:

clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' [-Wmissing-sysroot]
In file included from src/errors.c:15:
In file included from src/multicorn.h:1:
/Users/jfreed/.pyenv/versions/3.7.4/include/python3.7m/Python.h:25:10: fatal error: 'stdio.h' file not found

I was able to resolve the error by creating a symbolic link so that when clang is trying to look at the MacOSX10.14.sdk1 directory, it is actually looking at a real directory with the files it needs. Here's the command I used to create that symbolic link:

sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk

I can't say that this is the best solution. It would be better if clang wasn't looking in that 10.14 folder in the first place.

jon-freed commented 4 years ago

Closing this because, again, this really isn't a Multicorn error or issue, but I put it here for the benefit of others who may not realize that if they also see the error appear when trying to install Multicorn.