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
Building 'Crypto.Math._montgomery' extension fails on Solaris. #180
Comments
Thanks for reporting! This stuff is all easily fixable (the first error is probably due to a failure in determining the right way to define a "restrict"ed pointer; there is also a pending error to a missing posix_memalign() function). Unfortunately, I don't have access to a Solaris machine, so it's difficult to write the right patch. Would you mind writing one? I may find a VM but I can't guarantee how long it will take to set it up... |
Thank you for the quick feedback! One addition: perhaps the last warning is not specific to Solaris 10. I see now on Solaris 10 (both arches) I've tried to build this with Solaris Studio 12.4, a version newer than the one on Solaris 11. I suggest you try a Solaris 11 VM template from Oracle, such as http://www.oracle.com/technetwork/server-storage/solaris11/downloads/vm-templates-2245495.html (this is for Solaris 11.3). There are Solaris 10 VM templates as well, but Solaris 10 comes by default with OpenSSL 0.9.7d and you'll need a support contract to get patches for OpenSSL 1.0.2. Developer Studio is available at http://www.oracle.com/technetwork/server-storage/developerstudio/downloads/index.html. For Solaris 11 you'll need an Oracle developer account to access the Oracle Developer Studio IPS repository at http://pkg-register.oracle.com. After getting the necessary certs, the commands to run would be something along the lines of:
If interested, I'll try to get you access to our Buildbot infrastructure. We have a wide range of OS'es and |
The code in master should at least compile on Solaris 11 now (though I noticed that support for AES HW acceleration would require quite a few more tweaks). |
Thank you! I have commited above change to our PyCryptodome 3.6.3 sources and building is fine now on all our Solaris 10 and 11 slaves on both X86 and SPARC. PyCryptodome self tests pass on Solaris 11, with these messages:
On a related note, they are quite slow on SPARC:
However, on Solaris 10 (both X86 and SPARC), PyCryptodome's self tests bail out with:
Might this be related to the specific warning I mentioned above for Solaris 10 with Sun Studio 10.4? As far as I can tell, this appears for every
|
To speed up a test suite, you can use the |
Have switched to using master, with revision cfa757d have now succeeded in completing both build and test phase on Solaris 10 SPARC. Great job! However, latest changes have broken the X86 builds on both Solaris 10 and 11 with similar errors:
|
I am afraid can't reproduce that in the Solaris 11 X86 VM I downloaded. |
It should be OK, I'll try building 32bit binaries on Solaris X86 then. I'll let you know of the results. Thanks! If interested in reproducing the issue with building a 64bit Python on Solaris, you should try our Python package at https://github.com/chevah/python-package. Just checkout the |
Indeed I can reproduce it, and it is related to Python being 64 bits. Specifically, and maybe this is actually a bug of
As result, all tests for capabilities (like for |
There is a mini patch in the |
I see that the I will continue with several other minor issues separately, but you might want to look into fixing the warnings below, as they are present in a Solaris 11 VM as well. Of course, on Solaris they are minor, but they are fatal on HP-UX and that particular environment is much harder to replicate (Itanium servers). I will copy them below for your convenience:
For the reference, here's how the fatal error on HP-UX looks (the compiler is HP C/aC++ B3910B A.06.27):
Thank you once more! |
I can confirm revision 61abaac fixes the build on HP-UX as well. I couldn't ran the tests because of a segmentation fault in CFFI though (both latest stable version and current master). Will try to contact CFFI upstream, hopefully there will be a way to solve this. If only upstream maintainers would be half as attentive as you are for half of the issues I report… Thank you again, you've been the best maintainer I've ever worked with! |
If Helder would get a beer for every problem, he solved, he would probably getting into the danger of alcoholism ;-) |
Hi,
And thank you for PyCryptodome! I am looking into using it to replace PyCrypto in this open-source project: https://github.com/chevah/python-package.
Unfortunately, building
Crypto.Math._montgomery
extension fails on Solaris with:The above was from the 5.12 Sun C compiler bundled with Solaris Studio 12.3 on Solaris 11.2 X86 while building 64bit binaries, but the build fails similarly for Solaris 11.2 SPARC (while building 32bit binaries) and latest Solaris 10 (when building 64bit X86 binaries and 32bit SPARC binaries).
On a related note, some more warnings common to all these variations:
And a warning specific to Solaris 10 builds:
The text was updated successfully, but these errors were encountered: