← Back to issue list

core dynamic linker detection fails on ppc64el and s390x

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1722521
Type
issue
State
closed
Author
~cjwatson
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Resolved dynamic linker detection failure on ppc64el and s390x by removing stray leading slashes from the core-dynamic-linker path. Added regression tests to prevent future architecture-specific path resolution issues.

Suggested action:

No scores available.

Issue body

Michael Hudson-Doyle reported that ppc64el/artful builds on Launchpad fail because snapcraft incorrectly believes that the core snap is not installed (see e.g. https://launchpadlibrarian.net/340314110/buildlog_snap_ubuntu_artful_ppc64el_subiquity_BUILDING.txt.gz). This is because the core-dynamic-linker setting on ppc64el (and s390x) has a stray leading slash, so os.path.join('/snap/core/current', '/lib64/ld64.so.2') returns '/lib64/ld64.so.2', so snapcraft tries to resolve the dynamic linker symlink on the host system, and that may point to a file name that doesn't exist in the core snap. The correct fix is to drop the leading slashes, and to put test code in place to ensure that similar mistakes can't accidentally be made for future architectures.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Resolved dynamic linker detection failure on ppc64el and s390x by removing stray leading slashes from the core-dynamic-linker path. Added regression tests to prevent future architecture-specific path resolution issues.
qwen/qwen3.6-35b-a3b Fixed by removing stray leading slashes from the core-dynamic-linker config for ppc64el and s390x, preventing incorrect host path resolution. Regression tests were added to prevent future architecture-specific path errors.
qwen3.6-35b-a3b-mtp-q6 Fixed dynamic linker detection failures on ppc64el and s390x by removing stray leading slashes from the core-dynamic-linker path. The resolution strips the slashes and adds regression tests to prevent future architecture-specific path errors.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1600 options: fix core-dynamic-linker on ppc64el/s390x snapcraft merged Merged fix for ppc64el and s390x where leading slashes in core-dynamic-linker settings caused snapcraft to incorrectly detect the core snap as uninstalled. Approved by two reviewers and merged with changes to three files.
74%