-
Notifications
You must be signed in to change notification settings - Fork 66
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
macOS support #25
Comments
After pull request #31, tests (in the folder https://github.com/cryptobiu/libscapi/tree/master/test) are now passing. Remark: Some care should be taken on macOS with openssl. If installed with homebrew, it might be necessary to set |
After pull request #35 and #36, Note: on macOS, the library |
@fabrice102 Thank you for your work! |
Hey, While compiling libOTe, I ran into this error. I am running macOS High Sierra 10.13.3. I have openssl installed on my system. Does someone know a fix for this? |
You need to install Concretely, you can add the following to
Note: If you are compiling other softwares that uses |
Thanks, that worked! But then there is an error with boost,
I am using boost 1.66.0 (the latest version). I think this might be a problem with the latest version of boost. |
Try to use an older version of boost (1.65.0 or 1.60.0). |
Thanks, I am on 1.60.0 right now. That error is resolved but,
This is what it throws after compiling 45% of libOTe. I think the fix is to change lboost_thread to lboost_thread-mt for Mac, but I'm not sure all the places where this change has to be made. |
The build system changed since last time I compiled |
I changed it to But then it igonres the file with this error -
|
I've almost managed to compile libscapi on macOS (see pull requests #19, #20, #21, #22, #23, #24, #29).
The only component which does not compile is BristolOTExtension because of SimpleOT.
More precisely, I get the following error:
(file:
lib/OTExtensionBristol/SimpleOT/fe25519_freeze.s
).I think the issue can be solved by following https://stackoverflow.com/a/25804623 and https://ghc.haskell.org/trac/ghc/wiki/Commentary/PositionIndependentCode (basically suffixing global constants by
@GOTPCREL(%rip)
). But I am not comfortable making the change, as I am not sure how to easily test that there is no regression (both for correctness and performance).It is possible to compile libscapi without BristolOTExtension by creating an empty file
compile-otextension-bristol
.(I have just managed to compile the library
libscapi
itself. I have not tested whether the resulting library is working on macOS.)The text was updated successfully, but these errors were encountered: