-
Notifications
You must be signed in to change notification settings - Fork 388
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
cross does not build when using the latest libc 0.2.149 on x86_64-unknown-netbsd #1345
Comments
We need to add execinfo here: Line 81 in a537585
|
For what it's worth - I've encountered the same issue (specifically missing -lexecinfo) with the only difference being that I'm using Podman instead of Docker. |
here's a temporary workaround until an official fix is in place. Add this to Cargo.toml or wherever you keep your Cross configs:
|
@esheri3 thank you for the fix! I was helping add a netbsd ci test to a repo (Byron/trash-rs#90) and it was failing with the above issue: https://github.com/Byron/trash-rs/actions/runs/6586046532/job/17893604558 I applied the fix suggested above which seems to have done the trick, but it started failing on something else I wasn't able to pin down: https://github.com/Byron/trash-rs/actions/runs/6586482261/job/17894895647 In the end I "fixed" it by switching from https://github.com/Byron/trash-rs/actions/runs/6587609486 I'm somewhat baffled as to why the |
This version causes NetBSD to fail to compile with cross. Once cross fixes cross-rs/cross#1345 this hack can be removed.
temporary workaround for cross-rs/cross#1345
This reverts commit 12f49b4.
Can we please release a new version that includes the fix? |
…575) Recently NetBSD 9.2 source was archived affecting the `base.tar.xz` link used by the `libexecinfo.so` **cross** workaround (cross-rs/cross#1345). This small patch prefers `NetBSD 9.3` as it is the latest `9.x`. - https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz (broken) - https://archive.netbsd.org/pub/NetBSD-archive/NetBSD-9.2/amd64/binary/sets/base.tar.xz (archived) - https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/amd64/binary/sets/base.tar.xz (new) Additionally, I added a `-f, --fail` to curl to fail in case a `4xx` or greater happens again.
FWIW In case you use #1345 (comment) workaround above. |
It would be really nice to get a release out with this fix and various others. Any chance of a 0.2.x release while 0.3.0 cooks? |
It's totally possible, but I'm not going to do that. I'd be open to prs though to fix it for the 0.2 branch. Though, it's probably going to be hard to make that branch build properly |
Checklist
Describe your issue
cross
0.2.5
no longer compiles my project after an upgrade of libc to0.2.149
.Basically, I got an
ld: cannot find -lexecinfo collect2: error: ld returned 1 exit status
error when I cross-compile from a Linux x86_64 machine tox86_64-unknown-netbsd
(mode details below)What target(s) are you cross-compiling for?
x86_64-unknown-netbsd
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5
Example
See also the CI broken https://github.com/static-web-server/static-web-server/actions/runs/6519619958/job/17706311139#step:8:454
Additional information / notes
I do not get why libc
v0.2.149
fails on NetBSD recently and asks forexecinfo
. Maybe some change in 0.2.149?However, downgrading to
0.2.148
works for now.The text was updated successfully, but these errors were encountered: