-
Notifications
You must be signed in to change notification settings - Fork 709
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
Failure building release targeting x86_64-unknown-linux-musl #409
Comments
Getting this setup was messier than I expected, but the result seems OK. We need to use `clang` as our base build environment, see: briansmith/ring#409 I don't understand the `rustup` that Travis uses, so I use the one published here: https://sh.rustup.rs
Is it possible that your GCC is configured to use The reference to See: |
Thank you so much for the pointer to It looks like Ubuntu's defaults for GCC include setting It looks like Red Hat does not set I see this issue running builds on Travis-CI, which is Ubuntu based. An easy workaround is to specify: language: cpp
compiler: clang For example: https://github.com/bruceadams/wdscli/blob/master/.travis.yml I can wish that Ring could avoid this build issue on Ubuntu, but I don't know of a safe and effective way to make this happen. |
First, I recommend poking the musl project about the status of the stuff I mentioned in #409 (comment) and see if they have a suggestion for how to make it work. And/or, when the ABI is If contributing a PR is problematic (because IBM), please email me at brian@briansmith.org. |
@bruceadams Any luck with this? |
I did not manage to ask a question into the Musl community. I see some more recent chatter about |
@bruceadams. Thanks for the patch. We just rewrote the whole build system so that it doesn't use Makefiles any more. I took the liberty of writing a commit using the same idea from your commit. Please see fb830c4. Does that fix the problem? |
@bruceadams ping? |
Yes! Looks great! Thanks! |
#713 (comment) describes the current state of musl support. Marking this as a duplicate of #713. |
I've only been able to produce the failure when building a binary. Libraries build just fine. Using a library in a binary is when the problem appears. The key message from the failure appears to be this:
I tried four combinations; one fails. All of my attempts were using Ubuntu 16.04 in a Docker container.
I'm more than happy to try other combinations. Ideally, we would find a way to see this issue in a build and/or test run within
ring
. I do not (yet?) understand ring's build and test combinations well enough.Demonstration of the problem
Building the
tlsclient
example in rustls using two, published, Docker images for the two C build chains: gcc and clang. I use a function,rmusl
, inbash
for the complexdocker
command for running builds inside a Docker container with the current Rust project context.gcc
debug buildgcc
release buildclang
release buildThe text was updated successfully, but these errors were encountered: