-
Notifications
You must be signed in to change notification settings - Fork 8
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
s390x support for celo-bls #24
Comments
Hi @e-desouza, We currently don't bundle the libs for s390x, and we haven't tried cross compiling to it. |
Thanks @kobigurk . Let me know if access to a Linux (ubuntu/rhel/sles) on s390x will help this effort and I can provide a VM. |
Sounds good. If you want to test meanwhile, I can provide instructions on how to work around, if you want to compile rust. Let me know! |
Absolutely ! We have Rust support on the platform so please let me know the work around.. |
Nice! So what you can do is:
1. Add the platform to
https://github.com/celo-org/celo-bls-go/blob/master/scripts/release.sh.
Specifically, the rustup target add and the cargo build and strip parts.
The lib should then be copied automatically to the the right directory.
2. Add a file similar to
https://github.com/celo-org/celo-bls-go/blob/master/bls/bls_linux64.go, but
with the correct CPU in the build directive and the right directory in
LDFLAGS.
Let me know if that makes sense :)
…On Mon, Jul 19, 2021 at 7:31 PM Elton de Souza ***@***.***> wrote:
Absolutely ! We have Rust support on the platform so please let me know
the work around..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA23MGCXTXGR24TI2MZAVDTTYRHPRANCNFSM5ATYPJUA>
.
|
Thanks @kobigurk. Did the below changes and generated the libs. @@ -25,6 +25,7 @@ rustup target add i686-linux-android cargo build --release --target=aarch64-linux-android --lib -p bls-snark-sys popd user@test:/opensrc/user/celo/celo-bls-go/bls$ cat bls_s390x.go package bls /* "Point go.mod in celo-blockchain to the local celo-bls-go directory with a replace statement" I still see the original errors that were reported. Am I missing something? |
"go mod tidy" helped me. .... Thanks. |
Amazing, glad the workaround works for you meanwhile. We're working on a new version and will include this platform there as well. |
If you want to test it out, we have a PR that does the restructuring: #25 You can test it out (which would help us!) using version |
Hi @kobigurk, I work with @US-05 and was recently trying out his workaround for getting this to work on s390x as I was hitting the same error as him on the I notice that you changed the structure of the project, so this workaround doesn't work anymore. Would you potentially be able to let me know the method that should be used now? Tried making my own |
We're looking to port celo-bls to s390x architecture so opening this issue to track the work.
Currently the build fails with:
Environment:
The text was updated successfully, but these errors were encountered: