mksquashfs call failed: libgcc_s.so.1 must be installed for pthread_cancel to work

Bug #1998137 reported by Heinrich Schuchardt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapcraft (Ubuntu)
New
Undecided
Unassigned

Bug Description

Building a snap for core22 on riscv64 fails:

$ snapcraft --use-lxd
Launching instance...
Executed: pull gnu-hello
Executed: overlay gnu-hello
Executed: build gnu-hello
Executed: stage gnu-hello
Executed: prime gnu-hello
Executed parts lifecycle
Generated snap metadata
Cannot pack snap file: Command '['snap', 'pack', '--filename', 'hello_2.12_riscv64.snap', '--compression', 'xz', PosixPath('/root/prime'), PosixPath('/root/project')]' returned non-zero exit status 20. (error: cannot pack "/root/prime": mksquashfs call failed: libgcc_s.so.1 must be installed for pthread_cancel to work)
Failed to execute pack in instance.
Full execution log: '/home/zfsdt/.cache/snapcraft/log/snapcraft-20221128-200603.372254.log'

The installed verison of snapcraft is:
latest/stable: 7.2.8 2022-11-18

File /usr/lib/riscv64-linux-gnu/libgcc_s.so.1 is available on the system.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

When building for core20 I don't see the error.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

To reproduce the problem

git clone https://github.com/ubuntu-core/hello-snapcraftio.git
cd hello-snapcarftio
# replace core20 by core22 in snap/snapcraft.yaml
snapcraft --use-lxd

Revision history for this message
William Wilson (jawn-smith) wrote :

I'm seeing this error as well when trying to build the ubuntu-image snap on RISC-V.

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.