Skip to content
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

Simbody 3.5 fails to compile on 10.10 #33

Closed
kt10aan opened this issue Dec 31, 2014 · 16 comments
Closed

Simbody 3.5 fails to compile on 10.10 #33

kt10aan opened this issue Dec 31, 2014 · 16 comments

Comments

@kt10aan
Copy link

kt10aan commented Dec 31, 2014

Here is the related gist:
https://gist.github.com/19efd74e1c0bfb4167f5

The previous version was working fine on my machines.

@scpeters
Copy link
Member

This may be the problem:

-- Installing: /usr/local/Cellar/simbody/3.5/share/doc/simbody/examples//bin
CMake Error at examples/cmake_install.cmake:1151 (file):
  file INSTALL cannot duplicate symlink
  "/tmp/simbody-FJ7R93/simbody-Simbody-3.5/build/examples/bin" at
  "/usr/local/Cellar/simbody/3.5/share/doc/simbody/examples//bin".
Call Stack (most recent call first):
  cmake_install.cmake:101 (include)


make: *** [install] Error 1

@sherm1

@sherm1
Copy link

sherm1 commented Dec 31, 2014

Fails on 10.9.5 also -- investigating.

@sherm1
Copy link

sherm1 commented Dec 31, 2014

cc/ @chrisdembia

@scpeters
Copy link
Member

I had installed it successfully in the past couple weeks, but now it's not working. Maybe something changed in homebrew?

@sherm1
Copy link

sherm1 commented Dec 31, 2014

I'm trying a manual (non-homebrew) install to see if I can get more info.

@sherm1
Copy link

sherm1 commented Dec 31, 2014

Fails on manual install too 😢 -- my fault, not homebrew's!

@scpeters
Copy link
Member

I don't know how I installed it previously.

@sherm1
Copy link

sherm1 commented Dec 31, 2014

The code that isn't working is here. It first creates a symbolic link in the build directory that links to the installed location for the example binaries, then the INSTALL command attempts to copy that symbolic link into the appropriate place in the installation (using CMake's INSTALL DIRECTORY command). It is that copy that's failing.

I tried GitHub's "blame" feature to see when that code went in. It was added in 143dd1a9 on Dec 23, 2013 by ... er ... @scpeters!

Since this has been working for a long time, I wouldn't be surprised if this is a change in CMake's behavior. My Mac has CMake 3.1 installed.

@scpeters
Copy link
Member

The cmake formula was upgraded from 3.0.1 to 3.1 12 days ago. I'm guessing that is the source of this problem.

@sherm1
Copy link

sherm1 commented Dec 31, 2014

I think I have a fix ...

@scpeters
Copy link
Member

scpeters commented Jan 1, 2015

Fixed in simbody/simbody#321, released in simbody 3.5.1, and formula updated in c842564.

@scpeters scpeters closed this as completed Jan 1, 2015
@scpeters
Copy link
Member

scpeters commented Jan 1, 2015

@kt10aan thanks for the bug report!

@kt10aan
Copy link
Author

kt10aan commented Jan 1, 2015

Thanks for the extremely fast fix!

@kt10aan
Copy link
Author

kt10aan commented Jan 1, 2015

There appears to be the wrong SHA1 has though in the updated formula:

==> Downloading https://github.com/simbody/simbody/archive/Simbody-3.5.1.tar.gz
######################################################################## 100.0%
Error: SHA1 mismatch
Expected: d11eeecee8fe5e13e885a38c087843fce3399d19
Actual: 7db86ae232c579527a8bae6103316f68e2d99ba0

@scpeters
Copy link
Member

scpeters commented Jan 1, 2015

fixed the sha1 in c601c22

Not sure how I had it wrong.

@sherm1
Copy link

sherm1 commented Jan 1, 2015

My fault -- it took me a couple of tries to get the 3.5.1 release done. I did it once and then deleted it and re-created it. I think you might have pointed at the first attempt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants