← Back to issue list

adding lib6-dev to stage-package directly or indirectly breaks build in snapcraft (only)

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1554015
Type
issue
State
closed
Author
~removed2831044
Labels
craft-4
Created
Updated
Closed

Current evaluation

Staged libc6-dev was identified as the build breaker. Proposed exclusion PR canonical/snapcraft#1951 was closed unmerged over ROS/Catkin compatibility concerns, so no fix landed.

Resolution: closed stale

Reason: PR canonical/snapcraft#1951 proposed excluding libc6-dev from stage-packages, but was closed unmerged because ROS/Catkin builds relied on it being staged. No resolving commit or replacement fix was recorded.

Evaluated by: mr-cal-bot

No scores available.

Issue body

See attached snapcraft file to reproduce. The logfile shows the result: A very nasty non-obvious breaker of gcc stdlibs internals that show no hint at all towards at libatk1.0-dev being the culprit here. Removing it and this builds fine. NOTE this is a just minimal reproduction scenario: In a usual upstream build, libwpd would be build along with the full build -- where other parts of LibreOffice need libatk. That fails in the same way. So: - Building libwpd outside of snapcraft works fine, even with libatk1.0-dev installed. - libatk1.0-dev isnt intended used by the libwpd build. It shouldnt be affected by it in any way. - the log suggests a very basic toolchain problem (nothing should _ever_ break mathcalls.h). - possibly related to bug 1548232 (maybe same root cause). - as bug 1548232, this might hint at more subtle toolchain breaks which dont show up at compile time, but only at runtime.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Staged libc6-dev was identified as the build breaker. Proposed exclusion PR canonical/snapcraft#1951 was closed unmerged over ROS/Catkin compatibility concerns, so no fix landed.
stealth/space-bunny-alpha — closed stale Proposed libc6-dev exclusion for stage-packages in snapcraft#1951 was closed unmerged over ROS/Catkin compatibility concerns; no merged fix was recorded.
stealth/space-bunny-alpha — closed resolved Likely resolved by snapcraft commit a117bd273, which corrected precedence and library path ordering after staged packages altered the build environment.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments. The snapcraft build failure triggered by libatk1.0-dev remains unfixed and appears abandoned due to prolonged inactivity.
qwen/qwen3.6-35b-a3b — — Abandoned and closed without resolution. The snapcraft build failure caused by including libatk1.0-dev in stage-packages remains unfixed. No comments or patches were provided, leaving the reported toolchain issue unresolved.
qwen/qwen3.6-35b-a3b — — Closed without resolution due to inactivity. The report describes a snapcraft build failure caused by adding libatk1.0-dev to stage-package, which works outside snapcraft. No fix or workaround was provided.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. Adding libatk1.0-dev to stage-package caused unexpected snapcraft build failures due to toolchain conflicts. No fix was implemented, and the issue was abandoned.

Update history

Date Change
created

Related work

  • Related To: canonical/snapcraft#1951 (confidence 100%)

    Direct proposed fix; closed unmerged due to ROS/Catkin compatibility concerns.

  • Related To: snapcraft (launchpad)#1548232 (confidence 70%)

    The reporter suggested it might share the same toolchain or include-path root cause.

Related issues

Issue Project State Summary Similarity
#1951 repo: do not pull in libc6-dev by default for stage-packages snapcraft closed PR #1951 was closed unmerged: excluding libc6-dev from stage-packages was abandoned after concerns that ROS/Catkin builds rely on it being staged. No resolving commit landed.
74%
#1632 libraries: exclude the full set of libc6 snapcraft merged Merged PR #1632 (commit 1b8ea95c7): snapcraft/internal/libraries.py now excludes every library from the libc6 deb, not just libc.so.6, stopping partial host glibc leaking into classic snaps; later reworked by #1744.
71%