classic snap fails to build with "cannot find section"
Metadata
Current evaluation
⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.
Closed without comments or resolution. The snapcraft 2.37 regression causing patchelf failures in classic snaps was abandoned or resolved in a subsequent release.
Suggested action: —
No scores available.
Issue body
The gotty snap fails to build on snapcraft 2.37 with the following error:
cannot find section
'/root/build_gotty/prime/bin/gotty' cannot be patched to function properly as a classic snap: Command '['/snap/snapcraft/924/bin/patchelf', '--set-interpreter', '/snap/core/current/lib/x86_64-linux-gnu/ld-2.23.so', '/root/build_gotty/prime/bin/gotty']' returned non-zero exit status 1.
This snap builds correctly with the stable snapcraft, version 2.35.
snapcraft.yaml:
http://paste.ubuntu.com/26130543/
To reproduce, save this snapcraft.yaml and run:
sudo snap install snapcraft --beta --classic
SNAPCRAFT_CONTAINER_BUILDS=local snapcraft
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without comments or resolution. The snapcraft 2.37 regression causing patchelf failures in classic snaps was abandoned or resolved in a subsequent release. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as a regression. The snapcraft 2.37 classic snap build failure caused by patchelf was fixed in a subsequent release. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed. Reported a snapcraft 2.37 regression causing classic snap builds to fail due to patchelf errors. Closed without resolution details or comments. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1760897 Classic confined snap started segfaulting after 2.40 upgrade | snapcraft (launchpad) | open | 2018 report that a classic confined snap (kubernetes-test) segfaults when built with snapcraft 2.40 due to patchelf/ELF buildid stripping; reporter found a no-patchelf workaround. No maintainer response in 8+ years; affected version long superseded. | |
| #1752957 Building classic snap without core snap installed succeeds, but creates snap that doesn't run | snapcraft (launchpad) | open | Snapcraft 2.39.x crashes with TypeError building a classic snap without the core snap installed, as get_core_dynamic_linker() returns None during patchelf. No comments or labels; 2.x series is EOL and the code path no longer exists in the current codebase. | |
| #1665089 snapcraft 2.27 fails to build the mosh classic snap | snapcraft (launchpad) | closed | Abandoned. The snapcraft 2.27 build failure for the mosh classic snap, caused by missing -fPIC linker flags, was closed without resolution or comments. Likely resolved in later snapcraft versions. | |
| #1665165 classic snaps fail to build in launchpad in archs other than amd64 | snapcraft (launchpad) | closed | Closed without resolution or comments. Classic snap build failures on non-amd64 architectures due to cross-compilation errors were abandoned or superseded by updated build infrastructure. | |
| #1647699 Support classic building in snapcraft | snapcraft (launchpad) | closed | Closed without resolution. The classic confinement library resolution requirement was likely abandoned or superseded by later snapcraft updates that natively handle core snap library resolution. | |
| #1894662 Build breaks rpath on classic snaps | snapcraft (launchpad) | closed | Closed without resolution. The report details a snapcraft build bug breaking rpath on classic snaps, causing runtime failures. No comments or follow-up actions were recorded. | |
| #1765482 Building a classic snap on trusty doesn't work | snapcraft (launchpad) | closed | Closed without resolution. The Trusty classic snap build segfault was likely abandoned or superseded by newer OS versions, as no fix or discussion was recorded. | |
| #1753995 patchelf warning / binary segfaults | snapcraft (launchpad) | open | 2018 report: snapcraft 2.39.2 patchelf step warns 'cannot find section' on a Go binary (telegraf) and the resulting snap segfaults (core-dump). No maintainer response. Referenced LP bug lp:1736861 is closed as resolved. Affected version long superseded. | |
| #2045895 patchelf missing snap libdir rpath | snapcraft (launchpad) | open | patchelf inconsistent rpath for classic snaps: proposed rpath missing snap libdir that linter expects. Unlabelled, 1002 days old, no maintainer engagement. |