Skip to content
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

Libc-test fails on linux due to Undeclared symbols Elf32_Relr and Elf64_Relr #3641

Closed
biabbas opened this issue Apr 1, 2024 · 4 comments
Closed
Labels
C-API-request Category: API request

Comments

@biabbas
Copy link
Contributor

biabbas commented Apr 1, 2024

cargo test -p libc-test fails on linux.

I've attached cargo test -p libc-test
The libc-test work on windows. For linux and mac, they fail.
On linux rust version = 1.79 nightly.
libc-test-p_linux_rust_179.txt
On windows rust version = 1.75 stable.
It ran 753 tests in tests/makedev.rs and all of them passed.
libc-test-pwindowspass.txt

@biabbas biabbas added the C-API-request Category: API request label Apr 1, 2024
@biabbas biabbas changed the title Cargo test runs 0 test cases for this crate, and cargo test -p libc-test results in error in linux. Libc-test fails on linux due to linking error Apr 2, 2024
devnexen added a commit to devnexen/libc that referenced this issue Apr 2, 2024
@biabbas biabbas changed the title Libc-test fails on linux due to linking error Libc-test fails on linux due to Undeclared symbols Elf32_Relr and Elf64_Relr Apr 3, 2024
@safinaskar
Copy link

libc-test works in recent debian sid. I suggest running in recent Linux, for example, inside Docker

@biabbas
Copy link
Contributor Author

biabbas commented Apr 8, 2024

@safinaskar Please share the info on C library that you are using, the Debian OS version info, along with the libc test log.

@Amanieu
Copy link
Member

Amanieu commented Apr 10, 2024

Generally speaking, the libc tests will only pass on the specific linux release that we use in our docker containers. If you run the test with run-docker.sh then they should all pass.

@biabbas
Copy link
Contributor Author

biabbas commented Apr 15, 2024

@Amanieu David @devnexen created a PR removing Elf32relr and Elf64relr tests for all systems including linux. Libc -tests worked on mysystem after that.

JohnTitor pushed a commit to devnexen/libc that referenced this issue Apr 16, 2024
github-merge-queue bot pushed a commit that referenced this issue Apr 17, 2024
@biabbas biabbas closed this as completed Jun 24, 2024
tgross35 pushed a commit to tgross35/rust-libc that referenced this issue Nov 17, 2024
(backport <rust-lang#3647>)
(cherry picked from commit 2e94ad3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-API-request Category: API request
Projects
None yet
Development

No branches or pull requests

3 participants