-
Notifications
You must be signed in to change notification settings - Fork 381
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? |
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: