← Back to issue list

Linter is checking against host libs when using --build-for argument

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1996206
Type
issue
State
open
Author
~dbruno74
Labels
Created
Updated
Closed

Current evaluation

Linter incorrectly checks library dependencies against host architecture libs instead of target architecture when using --build-for cross-compilation flag. No maintainer response after 1393 days.

Suggested action: needs triage

Reason: The issue has no maintainer response, no labels, and no assignee after 1393 days. While it describes a valid cross-architecture build bug (LD_LIBRARY_PATH incorrectly includes host architecture paths like /snap/core22/current/lib/x86_64-linux-gnu when checking aarch64 libraries), the project architecture may have changed significantly. A maintainer needs to assess whether this is still reproducible in the current codebase or if the linter functionality has been moved/removed.

Impact: 65 Quick Win: 29.25 Staleness: 80 Complexity: 55 Confidence: 35 Support Request: 10

Issue body

Linter (for libraries) is looking for dependencies on core snap lib of the host architecture instead of the target specified in --build-for. This is evident from the trace below, where when checking dependencies of an aarch64 shared object (MAC-IS.so) the LD_LIBRARY_PATH variable looks into /snap/core22/current/lib/x86_64-linux-gnu (and fails). 2022-11-10 15:18:51.725 executing: LD_TRACE_LOADED_OBJECTS=1 LD_LIBRARY_PATH=/root/prime/lib:/root/prime/usr/lib:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/x86_64-linux-gnu:/snap/core22/current/usr/lib/x86_64-linux-gnu usr/lib/aarch64-linux-gnu/gconv/MAC-IS.so 2022-11-10 15:18:51.734 Unable to determine library dependencies for 'usr/lib/aarch64-linux-gnu/gconv/MAC-IS.so' The following trace has been generated with a part including coreutils:arm64 as stage-packages and building on an x86_64 machine with: snapcraft --build-for=arm64

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 65
Quick Win: 29.25
Staleness: 80
Complexity: 55
Confidence: 35
Support Request: 10
needs triage Linter incorrectly checks library dependencies against host architecture libs instead of target architecture when using --build-for cross-compilation flag. No maintainer response after 1393 days.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 10
close stale Bug report regarding snapcraft linter incorrectly checking host architecture libraries during cross-compilation. Unanswered for over 3 years.
qwen/qwen3.6-35b-a3b
Staleness: 99
Complexity: 60
Confidence: 90
Support Request: 15
close stale Cross-architecture linter incorrectly resolves host library paths instead of target paths when using --build-for. Issue is 3.7 years old with no maintainer response or updates.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 60
Confidence: 75
Support Request: 10
needs triage Linter incorrectly checks library dependencies against host architecture paths instead of the target architecture specified via --build-for. Untriaged, inactive for ~3.5 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 60
Confidence: 75
Support Request: 5
close stale Snapcraft linter incorrectly resolves library dependencies against host architecture instead of target specified in --build-for. Report is 3.6 years old with no maintainer feedback or reproduction updates.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.