-
Notifications
You must be signed in to change notification settings - Fork 56
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 on alpine #658
Comments
Hello! The issue here appears to be with bindings generation. The error message provides one option that might fix it:
That target is unexpected: Is this build for an open source project that I could attempt to build myself? Is there any other information that might allow me to reproduce this failure? Thanks! |
Thanks for looking into this. Installing bindgen-cli as suggested by the error message didn't change anything. The easiest way to reproduce is to check out rustls, put the two attached files into the directory, remove the .txt extensions, and run "make". |
I looked at this again. I am able to reproduce the failure you had. I think the issue is that the build environment is not properly setup to perform the build. I was able to get it to work using the following Dockerfile that sets up Rust specifically for the user ("satoshi") performing the build (instead of using the system's "cargo" package).
Then when running the docker image, be sure that the user's
I hope this helps! 😊 |
Thanks @justsmth for looking into this. It's good to know that there is a workaround that we might use for development. Unfortunately it is most likely not a solution that we could use for releases. Actually, with this workaround in place, I cannot even compile most of the dependencies. I get SIGSEV errors all over the place. |
How about adding the target as in #676 ? Unfortunately that is not enough. I can build our application, but when I run the tests, I get the following error: |
As you correctly intuited this is an issue from your usage of |
I think I found a simple way to support the I noticed that the bindings for I updated my PR here with a build script logic change: #675 It just needs cleanup and a CI job setup and it should be ready for review. |
I've seen numerous reports about compilations ending with a SIGSEGV. I believe this is the GCC compiler seg-faulting while compiling code. These seem related to a recent change to the GitHub runners. This link might have more information for you:
|
I've marked my PR as ready for review. You can see the alpine-linux CI job succeeds here: https://github.com/aws/aws-lc-rs/actions/runs/13054865236/job/36423300444?pr=675#step:4:1 |
Problem:
After upgrading some dependencies, aws-lc-rs is pulled in as a sub-dependency, and I am now getting the following error messages:
Relevant details
The Docker file where the build is happening looks roughly like this:
Since it is a sub-dependency, my options are a bit limited. In https://aws.github.io/aws-lc-rs/requirements/linux.html I see that with the x86_64-unknown-linux-musl it should be smooth sailing, but the error message states that x86_64-alpine-linux-musl is used. Can I set an environment variable to make it use the unknown target instead?
Or maybe you can tell me what I should report to the developers of the intermittent dependency. From analyzing the dependency graph it seems to be rustls with the aws-lc-sys feature.
The text was updated successfully, but these errors were encountered: