← Back to issue list

Snapcraft not handling cmake nested builds, not including build script files in snap, and dependency issues with meson builds

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1766101
Type
issue
State
open
Author
~anoncoward8348
Labels
—
Created
Updated
Closed
—

Current evaluation

Old, untriaged report bundles three FeedReader failures: nested CMake, override-build staging, and Meson runtime ABI mismatches. No maintainer assessment or current reproducer exists.

Suggested action: needs triage

Reason: Only the reporter commented, and they later narrowed their focus to the Meson problem; no label or maintainer assessment indicates this was triaged. The CMake log omits the underlying compiler failure, while the Meson errors show a build/runtime ABI mismatch, so the report needs separation into current, reproducible cases and recipe or base information.

Evaluated by: mr-cal-bot

Impact: 35 Quick Win: 6 Complexity: 58 Confidence: 84 Actionability: 42

Issue body

snapcraft, version 2.41+18.4.2 I am trying to build my first snap from a Github project, jangernert/FeedReader. There is no Debian/Ubuntu package available and the Flatpak is broken. feedreader is a cmake-based project, with meson recently added on a testing branch. Snapcraft needs to download and build the latest valac in the snap because what comes on most distros is woefully out of date, including the Snapcraft build machine. Getting and building valac works fine with autotools. But I have run into three issues trying different approaches: Issue 1. I can’t simply let the cmake plugin in Snapcraft handle everything because it breaks down when encountering nested cmake files in the WebExtension submodule of the FeedReader project: [ 11%] Built target gtkimageview [ 11%] Linking C static library librss-glib.a [ 11%] Building C object libVilistextum/CMakeFiles/vilistextum.dir/unicode_entities.c.o [ 11%] Building C object libVilistextum/CMakeFiles/vilistextum.dir/util.c.o [ 11%] Built target i18n [ 11%] Building C object libIvy/CMakeFiles/ivy.dir/Stacktrace.c.o [ 12%] Building C object libVilistextum/CMakeFiles/vilistextum.dir/vilistextum.c.o [ 12%] Built target rss-glib [ 12%] Linking C static library libvilistextum.a [ 12%] Built target vilistextum [ 12%] Linking C static library libgd.a [ 12%] Built target gd [ 13%] Linking C static library libivy.a [ 13%] Built target ivy [ 14%] Linking C shared library libwebextension.so [ 14%] Built target webextension Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Failed to run 'make -j8' for 'feedreader': Exited with code 2. Verify that the part is using the correct parameters and try again. Issue 2. So I tried using the "build-override" scripting option in the cmake plugin to call cmake, make, and make install myself and that appears to build without the issue above. But none of the built libraries and binaries come over into staging or prime, even though I specify they should with snap:, which is what I described here. Other parts, specifically the latest valac built by the autotools plugin, do come over, just them in fact. So when you try to run this snap, it gives me a "feedreader" not found error because there are no feedreader files, just spiffy new valac files. https://github.com/sirredbeard/FeedReader/blob/master/snap/snapcraft.yaml Issue 3. FeedReader also has upstream meson build features, so I pulled those in and tried using snapcraft’s meson plugin for a yaml here. But it fails with gcc, glibc, and zlib issues: /snap/feedreader/x1/usr/bin/feedreader: /lib/x86_64-linux-gnu/libgcc_s.so.1: version `GCC_7.0.0' not found (required by /snap/feedreader/x1/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37) /snap/feedreader/x1/usr/bin/feedreader: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /snap/feedreader/x1/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37) /snap/feedreader/x1/usr/bin/feedreader: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /snap/feedreader/x1/usr/lib/x86_64-linux-gnu/libpng16.so.16) /snap/feedreader/x1/usr/bin/feedreader: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /snap/feedreader/x1/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18) https://github.com/sirredbeard/FeedReader/blob/master/snap/snapcraft-meson-version.yaml

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 35
Quick Win: 6
Complexity: 58
Confidence: 84
Actionability: 42
needs triage Old, untriaged report bundles three FeedReader failures: nested CMake, override-build staging, and Meson runtime ABI mismatches. No maintainer assessment or current reproducer exists.
stealth/space-bunny-alpha
Impact: 42
Quick Win: 6
Complexity: 68
Confidence: 91
Actionability: 48
needs triage Untriaged 2018 report of CMake nested-build, override-build staging, and Meson runtime dependency failures in Snapcraft 2.41; no maintainer response, and current reproducibility is unknown.
qwen/qwen3.6-35b-a3b
Impact: 40
Quick Win: 6
Complexity: 50
Confidence: 60
Actionability: 30
needs triage User reports three issues with snapcraft 2.41: cmake nested build failures, build-override not staging files, and meson dependency version mismatches. No maintainer response.
qwen/qwen3.8-27b
Impact: 30
Quick Win: 12
Staleness: 95
Complexity: 60
Confidence: 55
Support Request: 65
close stale Snapcraft 2.41 (classic) user reports three problems building FeedReader: cmake plugin fails on nested builds, build-override output not primed, meson build linking host glibc/gcc/zlib. No maintainer interaction; version superseded by core22 rewrite.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 40
Confidence: 90
Support Request: 70
close stale Reports Snapcraft build failures for FeedReader: CMake nested submodules error, build-override staging issues, and Meson runtime dependency mismatches. Untriaged and inactive for over 8 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 40
Confidence: 90
Support Request: 85
close stale User reports three snapcraft build failures for FeedReader: cmake nested build errors, staging issues with build-override, and runtime library dependency mismatches in meson builds. Unresponded to for ~8 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 45
Confidence: 92
Support Request: 90
close stale Reports three Snapcraft v2.41 build issues: cmake nested build failures, staging misconfiguration, and meson dependency mismatches. Over 8 years old with no maintainer response and references a deprecated tool version.

Update history

Date Change
created

Related work

  • Related To: snapcraft (launchpad)#1889409 (confidence 92%)

    Reports the same GLIBC symbol-version failure pattern and was classified as a packaging/build-environment mismatch rather than an independent Snapcraft defect.

Related issues

Issue Project State Summary Similarity
#2099 Issues building snap from my favorite and best GUI RSS reader, Feedreader snapcraft closed Closed without a Snapcraft fix after support narrowed to FeedReader's Meson build; the remaining GLIBC, libgcc, zlib, and libstdc++ runtime failures were unresolved.
72%
#1957766 plugin:meson is not installed during pull stage snapcraft (launchpad) open Snapcraft 6.0.1 Meson-part builds reportedly fetch Meson during build after the proxy expires; the issue remains open with no labels, comments, or triage.
70%