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

Use ld from the base snap for library linting #4751

Open
mr-cal opened this issue Apr 22, 2024 · 1 comment
Open

Use ld from the base snap for library linting #4751

mr-cal opened this issue Apr 22, 2024 · 1 comment
Labels
enhancement New features or optimizations

Comments

@mr-cal
Copy link
Collaborator

mr-cal commented Apr 22, 2024

What needs to get done

Instead of using ldd from the host, use ld --list from the base snap (/snap/coreXX/current/lib64/ld-linux-x86-64.so.2 --list).

pyelftools may have some helpful utilties

Why it needs to get done

snapcraft lint has unknown symbol warnings for core24, because it tries to use a linker from the host (a 22.04 environment) with core24's glibc (source).

See #4748 for more context

@mr-cal mr-cal added the enhancement New features or optimizations label Apr 22, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2847.

This message was autogenerated

mr-cal added a commit that referenced this issue May 9, 2024
Update code comments for #4751

Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or optimizations
Projects
None yet
Development

No branches or pull requests

1 participant