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

Botan needlessly disabled on macOS #52

Closed
randombit opened this issue Mar 4, 2021 · 6 comments · Fixed by #53
Closed

Botan needlessly disabled on macOS #52

randombit opened this issue Mar 4, 2021 · 6 comments · Fixed by #53

Comments

@randombit
Copy link

Just an FYI the logic in #42 is incorrect, Botan supports macOS (aka x86_64-apple-darwin) just fine, and has for years. It does not support the old MacOS "Classic" which nobody uses anymore. I think the confusion came about because of the recent rebranding of OS X to macOS, plus the fact that the docs even bothered mentioning Classic, which has been dead for 20 years. I've amended Botan's documentation so the situation is more clear.

est31 added a commit that referenced this issue Mar 4, 2021
PR #42 / ef63ca7 wasn't needed.
The botan author has ensured that their library works on macos
just fine.

Closes #52
@est31
Copy link
Member

est31 commented Mar 4, 2021

@randombit thanks for opening an issue! I've tried to re-enable botan on mac-os in PR #53 but it causes a CI failure.

   = note: ld: library not found for -lstdc++
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

Do you know how it can be fixed?

@randombit
Copy link
Author

@est31 Interesting - I just added a macOS CI build for the Rust wrapper in randombit/botan-rs#38 and everything worked fine but I see you are using a vendored build and that may make a difference somehow. Possibly on macOS we should be using Clang's libc++ instead? I'll take a look at this tomorrow.

@randombit
Copy link
Author

Oh I found out what is going on - our vendored build needs to be able to dynamically link against the system C++ library and that code was written to always use libstdc++, which is to first approximation incorrect on anything that is not Linux. I'll have to publish a new release with the fix.

@est31
Copy link
Member

est31 commented Mar 11, 2021

@randombit thanks for digging up the cause! Please ping me if you make the release!

@randombit
Copy link
Author

botan 0.8.1 should resolve the build problem on macOS

est31 added a commit that referenced this issue Mar 14, 2021
Vendored botan 0.8.1 works fine on macos now.
Thanks to the botan author for finding the cause of the build
failure.

Closes #52
@est31
Copy link
Member

est31 commented Mar 14, 2021

Huh apparently the PR hit an ICE in nightly Rust: rust-lang/rust#83126

... it only happens on mac OS, that's strange.

est31 added a commit that referenced this issue Mar 14, 2021
Vendored botan 0.8.1 works fine on macos now.
Thanks to the botan author for finding the cause of the build
failure.

Closes #52
@est31 est31 closed this as completed in #53 Mar 14, 2021
est31 added a commit that referenced this issue Mar 14, 2021
Vendored botan 0.8.1 works fine on macos now.
Thanks to the botan author for finding the cause of the build
failure.

Closes #52
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

Successfully merging a pull request may close this issue.

2 participants