-
Notifications
You must be signed in to change notification settings - Fork 468
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 failure with macOS 10.12 SDK #523
Comments
Thank you for reporting this.
10.12 was released today! @sherm1 I can try to fix this. Let me know if you have any suggestions on the fix. |
Hi, @chrisdembia. Thanks for volunteering to fix this! Looks like I had to fake |
Thank you for merging #524. Do you think we should make a new release (3.5.4), so that a released version of Simbody supports macOS 10.12? |
To do that would require a backport to the simbody-3.5 branch since #524 went into the master (3.6) version. That would allow C++03 compilations on 10.12 -- is that still useful? Otherwise we could consider just including that in a 3.6 release with the other new goodies there. (With C++11 required.) |
I am fine with having this bug fix in a 3.6 release. My reason for suggesting 3.5.4 instead was that I thought a 3.6 release was not ready yet, and it would be nice to have the bug fix release somewhat soon. But if you think the 3.6 release could be soon, then we do not need to backport. |
Do you have a rough release schedule for 3.6? |
Not yet. @chrisdembia and I need to discuss to decide whether 3.6 is really ready to go now. Otherwise the 3.5.4 options sounds good - how fast do you need it? |
Also related: Homebrew/brew#1078 |
Thank you for sharing, @scpeters. Is the idea that Simbody could use a CMake variable |
I was just posting that for reference; I think it won't solve the issue for people building simbody from source without homebrew, but it may resolve the issue of people building simbody 3.5.3 with homebrew with xcode 8 on macOS 10.11. Maybe not actually, since it says it addresses lazy linking but it probably won't fix the compilation errors? |
Ah good point... |
@sherm1 - I'm working on a project that requires simbody as a dependency for something else. For now I can use a lab machine (and the other members of the team can run it fine, since they already compiled simbody). Sooner rather than later would be nice but I don't have any hard deadlines. |
@scpeters and @bwithbroe: Simbody 3.5.4 has been released. This version of Simbody incorporates the fix for Xcode 8 and MacOSX10.12.sdk. |
I just compiled SimBody using cmake for the first time. I downloaded SimBody 3.5.4. I compiled it on Mac OS X 10.11.6 with Xcode Version 8.0 (8A218a) and CMAKE_OSX_SYSROOT set as /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk. I got this issue: Minh-IIT-MBP:simbody-build dminh$ ./ExamplePendulum dyld: Symbol not found: _clock_gettime dyld: lazy symbol binding failed: Symbol not found: _clock_gettime dyld: Symbol not found: _clock_gettime Trace/BPT trap: 5 |
Thanks for trying this out @daveminh. What was your |
Okay thanks. I just updated to Mac OS X 10.12 and it worked. I didn't set CMAKE_OSX_DEPLOYMENT_TARGET to any value. so I guess it was 10.12. |
A build failure of simbody 3.5.3 was reported in osrf/homebrew-simulation#135 (full details here) that can be summarized with the following error message:
They were using macOS 10.11 but with the macOS 10.12 SDK, which appears to define the
clockid_t
type. This will probably cause the same build failures on macOS 10.12 when it is released. Thanks to @bwithbroe and @uframer for reporting this issue.The text was updated successfully, but these errors were encountered: