-
Notifications
You must be signed in to change notification settings - Fork 469
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
Compilation of rc-3.5.0 on Mac M1 2020 #1551
Comments
I think the CMake flag When I ran the CMake command in the "To Reproduce" section, it picked the following compilers
Usually when I run the build on an M1 Mac, I set the C and C++ compilers to be gcc and g++, respectively. @andrew-platt , do you know which compilers were used the bug report compilation? I was able to reproduce the error with |
That was a typo on my part, we used The CXX and C compilers were picked up by cmake as g++-12 and gcc-12 respectively. We double checked these in CMakeCache.txt to be certain. Thanks for checking looking at this! |
The linker used was from /usr/bin/ld for both the 3.5.0 (failed linking), and in the 3.4.1 (successful compilation). I suspect you are right and it is an issue with the object libraries added in 3.5.0. |
This issue should be resolved with PR #1555 which is now in the |
This is probably just an issue with the order of compilation and ensuring the dependencies are correct. Object libraries were added for very good reasons on Linux. |
Bug description
A new clone of rc-3.5.0 does not directly compile on MacbookPro17,1 (early M1 chipset) with Monterey
From HomeBrew:
Interestingly v 3.4.1 compiles just fine on this hardware. So there must be something in the rc-3.5.1 changes to CMake that cause linking issues on this specific hardware configuration.
To troubleshoot, we checked everything in
CMakeCache.txt
, specified exact paths to all compilers and linkers, and checked the SDK version. Nothing appeared out of the ordinary in any of that. We also compared thelink.txt
and other files in CMake build system with a clean compile ofrc-3.5.0
on an Intel based Mac, but did not find anything unusual.I will attempt to commandeer a 2020 M1 and attempt this build process to reproduce.
To Reproduce
Steps to reproduce the behavior:
rc-3.5.0
mkdir build; cmake .. -DBUILD_SHARED=On; make -j4 openfastlib
After checking this,
git checkout v3.4.1
followed by removing everything in build and repeating step 3 above works just fine.OpenFAST Version
rc-3.5.0
branch of OpenFASTThe text was updated successfully, but these errors were encountered: