-
Notifications
You must be signed in to change notification settings - Fork 0
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
make not linking #2
Comments
|
@ceheitsch |
Alas; no luck.
|
@ceheitsch |
@ceheitsch $ export CPATH=/Library/Developer/CommandLineTools/usr/include/c++/v1 Another option seems to be trying (we can walk through this on on Thursday if it comes down to it): $ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer Please let me know what if any of these options works. |
The 'export' option did not seem to make a difference. FWIW:
There is no Xcode.app directory under Applications:
FYI, the account where the code is being compiled doesn't have sudo privileges. The machine admin is handled by a different account. |
@ceheitsch |
@maxieds Your approach makes a lot of sense. Unfortunately, the fresh 'make' didn't work, but it failed in a. different. way (so I'm counting that as progress). I'm attaching the whole output so you have all that info. |
@ceheitsch Update:This link on StackOverflow (for Catalina/10.15) should give you more perspective on how painful it is to maintain the compiler tools on Mac vendor systems without external software. |
@ceheitsch I tried the following two fixes, both of which still generate a correctly compiling and linking build process on my Mac:
Please let me know if this works. Otherwise, we can iterate if new errors are invoked after fixing these ones. |
Attaching output. |
@ceheitsch My (truncated after the |
@maxieds Ran through the process. Output attached. |
@ceheitsch |
@maxieds I tried on a different mac that I have access to at home, and it too failed. Interestingly, it failed in the same way as the original problem reported at the beginning of this issue, i.e.
FWIW, cmake was updated to 3.19.6, llvm 11.1.0 is now installed, and libomp was already updated at some point to 11.1.0. |
@maxieds On the original system (OSX 10.14.4), I tried a refresh install of llvm (11.1.0), cmake (3.19.6) and libomp (now 11.1.0). I also recloned the repo, just in case. Errors attached. |
@maxieds Here is the output on the other system (OSX 10.14.6). |
SoM IT installed cmake on my office machine, and gtfold builds under my account there. FWIW, I noted that clang-9 is being used, and not clang-11 as it is on the home machine(s). |
@ceheitsch I had to go in and change some of the includes in some of the C/C++ source files so that they are now compatible with a modern |
@maxieds That is exactly the point. I get the same error on a different system so clearly whatever was "fixed" previously was too localized. |
Is this relevant? Homebrew/homebrew-core#45061 |
@maxieds I seem to recall asking about paths before. My memory is that you assured me that this wouldn't matter since they would be call be absolute paths. |
@ceheitsch $ python3-config --embed --cflags
-I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9
-I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9
-Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common
-dynamic -DNDEBUG -g -fwrapv -O3 -Wall
-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk Note that if we do not call -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
-mmacosx-version-min=10.14 I am led to conclude that some of the issues we have been having on the different Mac Mojave systems is related to which version of the platform SDK is installed, and where it is located. (Working, but good intuitive hypothesis) |
Note also, that 10.15 is notably broken. So if the problem is that some installs point to a bad SDK, that could be a way to pinpoint build problems. |
@ceheitsch $ sudo xcode-select -s /Library/Developer/CommandLineTools
# Then add the following to the CMake command:
#-DMAC_SYSROOT_PATH="/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk" The updated docs are at the usual location. |
The text was updated successfully, but these errors were encountered: