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

linux binaries throw warnings about libpthread.so #8

Closed
ilg-ul opened this issue Feb 23, 2024 · 2 comments
Closed

linux binaries throw warnings about libpthread.so #8

ilg-ul opened this issue Feb 23, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ilg-ul
Copy link
Contributor

ilg-ul commented Feb 23, 2024

~/.local/xPacks/@xpack-dev-tools/gcc/13.2.0-1.1/.content/bin/g++ hello.cpp

/home/ilg/.local/xPacks/@xpack-dev-tools/gcc/13.2.0-1.1/.content/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libpthread.so.0, needed by /home/ilg/.local/xPacks/@xpack-dev-tools/gcc/13.2.0-1.1/.content/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../lib64/libstdc++.so, not found (try using -rpath or -rpath-link)
@ilg-ul ilg-ul self-assigned this Feb 23, 2024
@ilg-ul ilg-ul added the bug Something isn't working label Feb 23, 2024
@ilg-ul
Copy link
Contributor Author

ilg-ul commented Feb 23, 2024

The issue is caused by binutils being compiled using --with-sysroot, which is incorrect.

To diagnose it, -Wl,--verbose adds debug messages to the linker.

@ilg-ul
Copy link
Contributor Author

ilg-ul commented Feb 23, 2024

Fixed on 2024-02-24.

@ilg-ul ilg-ul closed this as completed Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant