-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Chiapos, cryptography not compiling on BSD [BUG] #603
Comments
This may be the issue with cryptography - https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245929 An option would be to try to install the freshports version https://www.freshports.org/security/py-cryptography But you'd still have the chiapos issue which we need to look at. |
Looks like we just need to properly #ifdefine byteswap for BSD in chiapos:src/util.h - https://www.freebsd.org/cgi/man.cgi?query=byteorder&sektion=9 |
I created a bsd branch in chiapos - https://github.com/Chia-Network/chiapos/tree/bsd-fix Still need to test compile it however. |
how can I test it than? |
I just installed FreeBSD 11.3 and had to make a couple modifications. Chiapos is now compiling fine. Once CI completes, I'll create a chiapos release and then update chia-blockchain's dev branch. At that point you should be able to install it if you can install the ported version of python cryptography first. |
I just added the BSD repaired chiapos to the chia-blockchain dev branch. You will probably have to install python cryptography 2.9.2 from freshports. If you do, change the version to 2.9.2 in setup.py as it should still be backwards compatible with our use of it. Once I have confirmation it works, we can update the BSD install wiki |
Unfortunately, still not working 👍
|
As I mentioned you're going to have to manually install python cryptography from a bsd port and change the cryptography version in setup.py to its version (2.9.2 IIRC). OpenSSL is too old on FreeBSD 11.3 to compile the 3.x version of cryptography. The good news is all of the Chia components compile fine. |
Damn, I've forgot to change setup.py as you've requested :) Now it compiles and runs just fine - thanks :) |
I updated the FreeBSD wiki install page. Is there any way to easily put both the Open and Free BSD pages together? Open/FreeBSD Install or something? I'm not steeped in the *BSD cultures enough to know what would look ok to someone looking for these install instructions. |
Fixed in this release - https://github.com/Chia-Network/chia-blockchain/releases/tag/1.0beta19 |
Describe the bug
Chaipos and cryptography now will not compile on BSD.
See:
@Axadiw - #329 (comment)
@cr0n-dist0rti0n - #329 (comment)
Chaipos issue appears to be:
/src/./util.hpp:72:10: fatal error: 'byteswap.h' file not found #include <byteswap.h>
cryptography shows two primary errors:
and
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: