Building a classic snap on trusty doesn't work

Bug #1765482 reported by Kyle Fazzari
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Won't Fix
Medium
Kyle Fazzari

Bug Description

If one tries to build a classic snap on trusty, whenever Snapcraft tries to execute anything (e.g. cmake, or a scriptlet) the executed thing segfaults. For example:

Preparing to pull my-part
Pulling my-part
Preparing to build my-part
Building my-part
cmake /snapcraft/tests/smoke/classic/parts/my-part/src -DCMAKE_INSTALL_PREFIX=
Failed to run 'cmake /snapcraft/tests/smoke/classic/parts/my-part/src -DCMAKE_INSTALL_PREFIX=' for 'my-part': Exited with code -11.
Verify that the part is using the correct parameters and try again.

This should either work, or fail in a nicer way.

Changed in snapcraft:
milestone: none → 2.43
assignee: nobody → Kyle Fazzari (kyrofa)
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

This is due to /snap/core/current/lib/x86_64-linux-gnu being placed on the LD_LIBRARY_PATH when building a classic snap (LD_LIBRARY_PATH is not set when building non-classic).

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Actually that's a lie-- LD_LIBRARY_PATH could be set when building strict snaps, but core paths are not in there.

Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Changed in snapcraft:
status: New → In Progress
importance: Undecided → Medium
Changed in snapcraft:
milestone: 2.43 → none
Revision history for this message
Marc (mbeneto) wrote :

I'm coming from here: https://forum.snapcraft.io/t/building-classic-snap-on-trusty-fails/5472

Although the error I'm getting different, might it be related?

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Hey Marc, yeah, that's the same thing.

Revision history for this message
Marc (mbeneto) wrote :

Hi guys, has there been any progress on this issue?

Changed in snapcraft:
status: In Progress → Won't Fix
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.