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

library libstdc++ incompatibility when built on OS X 10.13 #551

Closed
pietroastolfi opened this issue Mar 15, 2018 · 6 comments
Closed

library libstdc++ incompatibility when built on OS X 10.13 #551

pietroastolfi opened this issue Mar 15, 2018 · 6 comments

Comments

@pietroastolfi
Copy link

After having built from source the cloned repository(I needed to install gcc5 using conda, since otherwise there were problems with ITK building) and having set the ANTSPATH, I get an error when I run an ANTs commands, it returns:

dyld: Symbol not found: __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev Referenced from: $ANTSPATH/ANTS (which was built for Mac OS X 10.13) Expected in: /usr/lib/libstdc++.6.0.9.dylib in $ANTSPATH/ANTS Abort trap: 6

I can solve this temporally, by setting DYLD_LIBRARY_PATH=$CONDAPATH/lib, but this is not an acceptable solution, since using the conda libraries as firsts creates many incompatibilities with other applications.

@ntustison
Copy link
Member

I'm guessing this is particular to your configuration. Most of the developers, including myself, use Mac OS and we haven't run into this problem. In fact, I just freshly installed OS 10.13.3 and installed ANTs yesterday without any problem.

@pietroastolfi
Copy link
Author

pietroastolfi commented Mar 15, 2018

Really? so how can i solve? Did you use homebrew to obtain gcc5?
I thought it wasn't specific of my configuration, since I've the usual xcode with command line tools installed, so I expect that the libstdc++ version is the same as yours.

@ntustison
Copy link
Member

I use the native Xcode gcc. No need to use homebrew to install gcc5.

@pietroastolfi
Copy link
Author

Ah ok, I had some problems compiling ITKv4 using the Xcode gcc, that I solved using gcc5. Maybe I can try to make a new fresh build then I let you know

@pietroastolfi
Copy link
Author

Hi @ntustison,

sorry for the delay, but I just retry 3 times a fresh build, and the error is still present. I tried using the Xcode gcc compiler as you suggested. Maybe I'm missing some step during the ccmake configuration. I followed the instructions at this page.
Can you please describe the steps you did?

Thanks

Pietro

@zchangwen
Copy link

手动将 Xcode 9(/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib)中的库 libstdc++.6.tbd & libstdc++.6.0.9.tbd 复制到 Xcode 10(/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib)。

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