classic snap fails to build with "cannot find section"

Bug #1736861 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Undecided
Sergio Schvezov

Bug Description

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

Tags: regression
Leo Arias (elopio)
description: updated
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: New → Triaged
assignee: nobody → Sergio Schvezov (sergiusens)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Try `sudo snap install snapcraft --channel edge/patchelf-go`

Changed in snapcraft:
status: Triaged → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.