-
Notifications
You must be signed in to change notification settings - Fork 17
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
Linking errors on FreeBSD 13 #166
Comments
I would also like to volunteer to fix this bug, but I might need some mentoring. I'm not that experienced with building libs in rust. |
@fabiojmendes Thanks for reporting this. I believe this was fixed on FreeBSD side: https://reviews.freebsd.org/R10:9e9c651caceb9ecd17131e8bb29791ba4cf1cec7 We can totally add a workaround for this, though. I think fix is more appropriate for @unrelentingtech I thought this was not an issue anymore? |
The fix was cherry-picked into 13-STABLE, but I don't think that means it would land in a new |
@fabiojmendes basically you need to add those lines to Might worth reading As a temp workaround, we can add them to this crate's |
107: Workaround for missing libs on freebsd 13 r=jmesmon a=fabiojmendes This pull request fixes linking issues on downstream libs on FreeBSD 13. See [libzetta-rs #166](Inner-Heaven/libzetta-rs#166) for details. I also updated the url for grcov binary so the workflows will run. Hopefully this workaround can be removed once this [issue is fixed](Inner-Heaven/libzetta-rs#166 (comment)) on FreeBSD side. Co-authored-by: Fabio Mendes <[email protected]>
Describe the bug
Applications using libzetta-rs will fail to link on FreeBSD 13
To Reproduce
Create an application with:
Cargo.toml
main.rs
Output of
cargo build
Expected behavior
The application should compile and build without any issues
** Please complete the following information:**
FreeBSD clang version 11.0.1 ([email protected]:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
Target: x86_64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
Additional context
There's a related issue on FreeBSD mailing list regarding these missing symbols
Workaround
As a workaround I'm linking these libs explicitly as instructed by the mailing list issue:
build.rs
Now the application will compile and build without any issues:
The text was updated successfully, but these errors were encountered: