Difference between core18 and core22

Hello, I’m trying to build a snap package under the core22. But at the end of build process I’m getting an error that says it can’t find bin/main file to set up a command.

Here’s my snapcraft.yaml and it’s working under core18):

name: main
version: '1.0'
summary: streaming app
description: our streaming app
confinement: strict
grade: stable
base: core22

parts:
  alsa-mixin:
    plugin: nil
    source: https://github.com/diddledan/snapcraft-alsa.git
    override-pull: |
      cat > alsa.conf <<EOF
      pcm.!default {
        type pulse
        fallback "sysdefault"
        hint {
          show on
          description "Default ALSA Output (currently PulseAudio Sound Server)"
        }
      }
      ctl.!default {
        type pulse
        fallback "sysdefault"
      }
      EOF
    override-build: |
      install -m644 -D -t $SNAPCRAFT_PART_INSTALL/etc alsa.conf
    build-packages:
      - libasound2-dev
    stage-packages:
      - libasound2
      - libasound2-plugins

  libraries:
    plugin: dump
    source: lib/tokbox/lib/.
    organize:
      libopentok.so: lib/libopentok.so
    stage-packages:
      - libc++1
      - libc++abi1

  stream:
    plugin: cmake
    source: .
    override-build: |
      apt install build-essential libc++-dev libc++abi-dev libuv1-dev libasound2-dev libsdl2-dev -y
      apt install libunwind-dev
    stage-packages:
      - libc++1
      - libc++abi1
      - libunwind8
      - libuv1
      - libasound2
      - libasound2-plugins
      - libsdl2-2.0-0
    after:
      - alsa-mixin

layout:
  /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib:
    bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
  /usr/share/alsa:
    bind: $SNAP/usr/share/alsa

apps:
  main:
    command: bin/main
    plugs:
      - alsa
      - audio-record
      - audio-playback
      - network
      - network-bind
    environment:
      ALSA_CONFIG_PATH: /snap/$SNAPCRAFT_PROJECT_NAME/current/usr/share/alsa/alsa.conf

The error message:

Cannot pack snap file: Command '['snapm', 'pack', '--filename', 'main_1.0_armhf.snap', '--compression', 'xz', PosixPath('/home/main/prime'), PosixPath('/home/main')]' returned non-zero exit status1.
(2022/10/28 12:11:31.597992 container.go:215: in snap "main": path "bin/main" does not exist
2022/10/28 12:11:31.598192 container.go:215: in snap "main": path "bin" does not exist
error: cannot pack "/home/main/prime": snap is unusable due to missing files)

What can I do with it? I tried YAMLs keys like “stage”, “prime”, and “organize” to solve this issue, but nothing worked for me.

Is your main executable supposed to be built and installed by the stream part using cmake? I have a couple of suggestions for improving that part if this is the case:

  1. Move the packages that you’re installing using apt install in the override-build to build-packages declaration.
  2. Drop the override-build entirely
  3. Use cmake-parameters to ensure the build puts your files in the place you expect them to go
  stream:
    plugin: cmake
    source: .
    cmake-parameters:
      - -DCMAKE_BUILD_TYPE=Release
      # the next line puts executables in $SNAP/bin
      - -DCMAKE_INSTALL_PREFIX=/
      # alternatively the next line puts executables in $SNAP/usr/bin (not used unless you
      # remove the # symbol and remove or comment the previous line
      # - -DCMAKE_INSTALL_PREFIX=/usr
    build-packages:
      - build-essential
      - libc++-dev
      - libc++abi-dev
      - libuv1-dev
      - libsdl2-dev
      - libunwind-dev
    stage-packages:
      - libc++1
      - libc++abi1
      - libunwind8
      - libuv1
      - libsdl2-2.0-0
    after:
      - alsa-mixin

Yes, the main executable is supposed to be built and installed by the stream part. I tried your solution and I still have this issue. I’m not sure what to do now.

Regarding that override-build, I had to do it this way because I had a message about unmet libunwind dependency.

These are my logs, I’m not sure which path for CMAKE_INSTALL_PREFIX I should use. Is there a way how to debug this?

Initializing parts lifecycle
Executing parts lifecycle...
Executing parts lifecycle: pull alsa-mixin
Executed: pull alsa-mixin
Executing parts lifecycle: pull libraries
Executed: pull libraries
Executing parts lifecycle: pull stream
Executed: pull stream
Executing parts lifecycle: overlay alsa-mixin
Executed: overlay alsa-mixin
Executing parts lifecycle: overlay libraries
Executed: overlay libraries
Executing parts lifecycle: overlay stream
Executed: overlay stream
Executing parts lifecycle: build alsa-mixin
Executed: build alsa-mixin
Executing parts lifecycle: build libraries
Executed: build libraries
Executing parts lifecycle: skip pull alsa-mixin (already ran)
Executed: skip pull alsa-mixin (already ran)
Executing parts lifecycle: skip overlay alsa-mixin (already ran)
Executed: skip overlay alsa-mixin (already ran)
Executing parts lifecycle: skip build alsa-mixin (already ran)
Executed: skip build alsa-mixin (already ran)
Executing parts lifecycle: stage alsa-mixin (required to build 'stream')
Executed: stage alsa-mixin (required to build 'stream')
Executing parts lifecycle: build stream
Executed: build stream
Executing parts lifecycle: skip stage alsa-mixin (already ran)
Executed: skip stage alsa-mixin (already ran)
Executing parts lifecycle: stage libraries
Executed: stage libraries
Executing parts lifecycle: stage stream
Executed: stage stream
Executing parts lifecycle: prime alsa-mixin
Executed: prime alsa-mixin
Executing parts lifecycle: prime libraries
Executed: prime libraries
Executing parts lifecycle: prime stream
Executed: prime stream
Executed parts lifecycle
Extracting and updating metadata...
Copying snap assets...
Generating snap metadata...
Generated snap metadata
Reading snap metadata...
Running linters...
Running linter: classic
Running linter: library
Creating snap package...
Cannot pack snap file: Command '['snap', 'pack', '--filename', 'main_1.0_armhf.snap', '--compression', 'xz', PosixPath('/home/main/prime'), PosixPath('/home/main')]' returned non-zero exit status 1. (2022/11/02 10:51:05.302630 container.go:215: in snap "main": path "bin/main" does not exist
2022/11/02 10:51:05.302824 container.go:215: in snap "main": path "bin" does not exist
error: cannot pack "/home/main/prime": snap is unusable due to missing files)
Full execution log: '/root/.cache/snapcraft/log/snapcraft-20221102-104829.719196.log'
2022-11-02 10:51:04.034 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libpulse.so.0.24.1
2022-11-02 10:51:04.089 _ldd_resolve: 'libpulsecommon-15.99.so' '/usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-15.99.so'
2022-11-02 10:51:04.089 _ldd_resolve: 'libm.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6'
2022-11-02 10:51:04.089 _ldd_resolve: 'libdbus-1.so.3' '/snap/core22/current/lib/arm-linux-gnueabihf/libdbus-1.so.3'
2022-11-02 10:51:04.089 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.090 _ldd_resolve: 'libsndfile.so.1' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libsndfile.so.1'
2022-11-02 10:51:04.090 _ldd_resolve: 'libX11-xcb.so.1' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1'
2022-11-02 10:51:04.090 _ldd_resolve: 'libX11.so.6' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libX11.so.6'
2022-11-02 10:51:04.090 _ldd_resolve: 'libxcb.so.1' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libxcb.so.1'
2022-11-02 10:51:04.090 _ldd_resolve: 'libsystemd.so.0' '/snap/core22/current/lib/arm-linux-gnueabihf/libsystemd.so.0'
2022-11-02 10:51:04.090 _ldd_resolve: 'libasyncns.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libasyncns.so.0'
2022-11-02 10:51:04.090 _ldd_resolve: 'libapparmor.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libapparmor.so.1'
2022-11-02 10:51:04.090 _ldd_resolve: 'libFLAC.so.8' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libFLAC.so.8'
2022-11-02 10:51:04.090 _ldd_resolve: 'libvorbis.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbis.so.0'
2022-11-02 10:51:04.091 _ldd_resolve: 'libvorbisenc.so.2' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2'
2022-11-02 10:51:04.091 _ldd_resolve: 'libopus.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libopus.so.0'
2022-11-02 10:51:04.091 _ldd_resolve: 'libogg.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0'
2022-11-02 10:51:04.091 _ldd_resolve: 'libXau.so.6' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libXau.so.6'
2022-11-02 10:51:04.091 _ldd_resolve: 'libXdmcp.so.6' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libXdmcp.so.6'
2022-11-02 10:51:04.091 _ldd_resolve: 'liblzma.so.5' '/snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5'
2022-11-02 10:51:04.091 _ldd_resolve: 'libzstd.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libzstd.so.1'
2022-11-02 10:51:04.091 _ldd_resolve: 'liblz4.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/liblz4.so.1'
2022-11-02 10:51:04.092 _ldd_resolve: 'libcap.so.2' '/snap/core22/current/lib/arm-linux-gnueabihf/libcap.so.2'
2022-11-02 10:51:04.092 _ldd_resolve: 'libgcrypt.so.20' '/snap/core22/current/lib/arm-linux-gnueabihf/libgcrypt.so.20'
2022-11-02 10:51:04.092 _ldd_resolve: 'libbsd.so.0' '/snap/core22/current/lib/arm-linux-gnueabihf/libbsd.so.0'
2022-11-02 10:51:04.092 _ldd_resolve: 'libgpg-error.so.0' '/snap/core22/current/lib/arm-linux-gnueabihf/libgpg-error.so.0'
2022-11-02 10:51:04.092 _ldd_resolve: 'libmd.so.0' '/snap/core22/current/lib/arm-linux-gnueabihf/libmd.so.0'
2022-11-02 10:51:04.093 libpulsecommon-15.99.so with original path /usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-15.99.so found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-15.99.so' in base False
2022-11-02 10:51:04.093 libm.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6' in base True
2022-11-02 10:51:04.094 libdbus-1.so.3 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libdbus-1.so.3 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libdbus-1.so.3' in base True
2022-11-02 10:51:04.094 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.094 libsndfile.so.1 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libsndfile.so.1 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libsndfile.so.1' in base False
2022-11-02 10:51:04.094 libX11-xcb.so.1 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1' in base False
2022-11-02 10:51:04.094 libX11.so.6 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libX11.so.6 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libX11.so.6' in base False
2022-11-02 10:51:04.094 libxcb.so.1 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libxcb.so.1 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libxcb.so.1' in base False
2022-11-02 10:51:04.095 libsystemd.so.0 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libsystemd.so.0 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libsystemd.so.0' in base True
2022-11-02 10:51:04.095 libasyncns.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libasyncns.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libasyncns.so.0' in base False
2022-11-02 10:51:04.095 libapparmor.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libapparmor.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libapparmor.so.1' in base True
2022-11-02 10:51:04.095 libFLAC.so.8 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libFLAC.so.8 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libFLAC.so.8' in base False
2022-11-02 10:51:04.095 libvorbis.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbis.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbis.so.0' in base False
2022-11-02 10:51:04.095 libvorbisenc.so.2 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2' in base False
2022-11-02 10:51:04.095 libopus.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libopus.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libopus.so.0' in base False
2022-11-02 10:51:04.096 libogg.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0' in base False
2022-11-02 10:51:04.096 libXau.so.6 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libXau.so.6 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libXau.so.6' in base False
2022-11-02 10:51:04.096 libXdmcp.so.6 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libXdmcp.so.6' in base False
2022-11-02 10:51:04.096 liblzma.so.5 with original path /snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5 found on '/snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5' in base True
2022-11-02 10:51:04.096 libzstd.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libzstd.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libzstd.so.1' in base True
2022-11-02 10:51:04.096 liblz4.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/liblz4.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/liblz4.so.1' in base True
2022-11-02 10:51:04.096 libcap.so.2 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libcap.so.2 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libcap.so.2' in base True
2022-11-02 10:51:04.097 libgcrypt.so.20 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgcrypt.so.20 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgcrypt.so.20' in base True
2022-11-02 10:51:04.097 libbsd.so.0 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libbsd.so.0 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libbsd.so.0' in base True
2022-11-02 10:51:04.097 libgpg-error.so.0 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgpg-error.so.0 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgpg-error.so.0' in base True
2022-11-02 10:51:04.097 libmd.so.0 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libmd.so.0 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libmd.so.0' in base True
2022-11-02 10:51:04.098 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libsamplerate.so.0.2.2'
2022-11-02 10:51:04.100 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libsamplerate.so.0.2.2
2022-11-02 10:51:04.146 _ldd_resolve: 'libm.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6'
2022-11-02 10:51:04.146 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.147 libm.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6' in base True
2022-11-02 10:51:04.147 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.148 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.31'
2022-11-02 10:51:04.149 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.31
2022-11-02 10:51:04.196 _ldd_resolve: 'libFLAC.so.8' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libFLAC.so.8'
2022-11-02 10:51:04.196 _ldd_resolve: 'libvorbis.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbis.so.0'
2022-11-02 10:51:04.196 _ldd_resolve: 'libvorbisenc.so.2' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2'
2022-11-02 10:51:04.196 _ldd_resolve: 'libopus.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libopus.so.0'
2022-11-02 10:51:04.196 _ldd_resolve: 'libogg.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0'
2022-11-02 10:51:04.196 _ldd_resolve: 'libm.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6'
2022-11-02 10:51:04.196 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.197 libFLAC.so.8 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libFLAC.so.8 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libFLAC.so.8' in base False
2022-11-02 10:51:04.197 libvorbis.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbis.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbis.so.0' in base False
2022-11-02 10:51:04.198 libvorbisenc.so.2 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2' in base False
2022-11-02 10:51:04.198 libopus.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libopus.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libopus.so.0' in base False
2022-11-02 10:51:04.198 libogg.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0' in base False
2022-11-02 10:51:04.198 libm.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6' in base True
2022-11-02 10:51:04.198 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.199 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libunwind-arm.so.8.0.1'
2022-11-02 10:51:04.200 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libunwind-arm.so.8.0.1
2022-11-02 10:51:04.273 _ldd_resolve: 'liblzma.so.5' '/snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5'
2022-11-02 10:51:04.274 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.275 _ldd_resolve: 'libgcc_s.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1'
2022-11-02 10:51:04.276 liblzma.so.5 with original path /snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5 found on '/snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5' in base True
2022-11-02 10:51:04.276 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.276 libgcc_s.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1' in base True
2022-11-02 10:51:04.277 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libunwind-coredump.so.0.0.0'
2022-11-02 10:51:04.279 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libunwind-coredump.so.0.0.0
2022-11-02 10:51:04.335 _ldd_resolve: 'liblzma.so.5' '/snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5'
2022-11-02 10:51:04.335 _ldd_resolve: 'libgcc_s.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1'
2022-11-02 10:51:04.335 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.336 liblzma.so.5 with original path /snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5 found on '/snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5' in base True
2022-11-02 10:51:04.336 libgcc_s.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1' in base True
2022-11-02 10:51:04.336 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.337 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libunwind-ptrace.so.0.0.0'
2022-11-02 10:51:04.338 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libunwind-ptrace.so.0.0.0
2022-11-02 10:51:04.382 _ldd_resolve: 'libgcc_s.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1'
2022-11-02 10:51:04.383 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.384 libgcc_s.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1' in base True
2022-11-02 10:51:04.384 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.384 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libunwind.so.8.0.1'
2022-11-02 10:51:04.386 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libunwind.so.8.0.1
2022-11-02 10:51:04.431 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.431 _ldd_resolve: 'libgcc_s.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1'
2022-11-02 10:51:04.431 _ldd_resolve: 'liblzma.so.5' '/snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5'
2022-11-02 10:51:04.432 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.432 libgcc_s.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1' in base True
2022-11-02 10:51:04.432 liblzma.so.5 with original path /snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5 found on '/snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5' in base True
2022-11-02 10:51:04.433 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libuv.so.1.0.0'
2022-11-02 10:51:04.434 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libuv.so.1.0.0
2022-11-02 10:51:04.478 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.479 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.479 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libvorbis.so.0.4.9'
2022-11-02 10:51:04.481 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libvorbis.so.0.4.9
2022-11-02 10:51:04.525 _ldd_resolve: 'libm.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6'
2022-11-02 10:51:04.526 _ldd_resolve: 'libogg.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0'
2022-11-02 10:51:04.526 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.526 libm.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6' in base True
2022-11-02 10:51:04.527 libogg.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0' in base False
2022-11-02 10:51:04.527 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.527 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2.0.12'
2022-11-02 10:51:04.529 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2.0.12
2022-11-02 10:51:04.573 _ldd_resolve: 'libvorbis.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbis.so.0'
2022-11-02 10:51:04.574 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.574 _ldd_resolve: 'libm.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6'
2022-11-02 10:51:04.574 _ldd_resolve: 'libogg.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0'
2022-11-02 10:51:04.575 libvorbis.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbis.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbis.so.0' in base False
2022-11-02 10:51:04.575 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.575 libm.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6' in base True
2022-11-02 10:51:04.575 libogg.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0' in base False
2022-11-02 10:51:04.576 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libwayland-client.so.0.20.0'
2022-11-02 10:51:04.577 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libwayland-client.so.0.20.0
2022-11-02 10:51:04.622 _ldd_resolve: 'libffi.so.8' '/snap/core22/current/lib/arm-linux-gnueabihf/libffi.so.8'
2022-11-02 10:51:04.623 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.623 _ldd_resolve: 'libgcc_s.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1'
2022-11-02 10:51:04.624 libffi.so.8 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libffi.so.8 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libffi.so.8' in base True
2022-11-02 10:51:04.624 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.624 libgcc_s.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1' in base True
2022-11-02 10:51:04.624 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libwayland-cursor.so.0.20.0'
2022-11-02 10:51:04.626 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libwayland-cursor.so.0.20.0
2022-11-02 10:51:04.671 _ldd_resolve: 'libwayland-client.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libwayland-client.so.0'
2022-11-02 10:51:04.671 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.671 _ldd_resolve: 'libffi.so.8' '/snap/core22/current/lib/arm-linux-gnueabihf/libffi.so.8'
2022-11-02 10:51:04.672 _ldd_resolve: 'libgcc_s.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1'
2022-11-02 10:51:04.672 libwayland-client.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libwayland-client.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libwayland-client.so.0' in base False
2022-11-02 10:51:04.672 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.673 libffi.so.8 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libffi.so.8 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libffi.so.8' in base True
2022-11-02 10:51:04.673 libgcc_s.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1' in base True
2022-11-02 10:51:04.673 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libwayland-egl.so.1.20.0'
2022-11-02 10:51:04.675 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libwayland-egl.so.1.20.0
2022-11-02 10:51:04.719 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.720 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.720 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libwayland-server.so.0.20.0'
2022-11-02 10:51:04.722 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libwayland-server.so.0.20.0
2022-11-02 10:51:04.766 _ldd_resolve: 'libffi.so.8' '/snap/core22/current/lib/arm-linux-gnueabihf/libffi.so.8'
2022-11-02 10:51:04.767 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.767 _ldd_resolve: 'libgcc_s.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1'
2022-11-02 10:51:04.768 libffi.so.8 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libffi.so.8 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libffi.so.8' in base True
2022-11-02 10:51:04.768 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.768 libgcc_s.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1' in base True
2022-11-02 10:51:04.768 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libxcb.so.1.1.0'
2022-11-02 10:51:04.770 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libxcb.so.1.1.0
2022-11-02 10:51:04.815 _ldd_resolve: 'libXau.so.6' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libXau.so.6'
2022-11-02 10:51:04.815 _ldd_resolve: 'libXdmcp.so.6' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libXdmcp.so.6'
2022-11-02 10:51:04.815 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.815 _ldd_resolve: 'libbsd.so.0' '/snap/core22/current/lib/arm-linux-gnueabihf/libbsd.so.0'
2022-11-02 10:51:04.816 _ldd_resolve: 'libmd.so.0' '/snap/core22/current/lib/arm-linux-gnueabihf/libmd.so.0'
2022-11-02 10:51:04.816 libXau.so.6 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libXau.so.6 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libXau.so.6' in base False
2022-11-02 10:51:04.817 libXdmcp.so.6 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libXdmcp.so.6' in base False
2022-11-02 10:51:04.817 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.817 libbsd.so.0 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libbsd.so.0 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libbsd.so.0' in base True
2022-11-02 10:51:04.817 libmd.so.0 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libmd.so.0 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libmd.so.0' in base True
2022-11-02 10:51:04.818 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0'
2022-11-02 10:51:04.819 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/libxkbcommon.so.0.0.0
2022-11-02 10:51:04.863 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.864 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.865 Getting dependencies for 'usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-15.99.so'
2022-11-02 10:51:04.866 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-15.99.so
2022-11-02 10:51:04.918 _ldd_resolve: 'libm.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6'
2022-11-02 10:51:04.919 _ldd_resolve: 'libsndfile.so.1' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libsndfile.so.1'
2022-11-02 10:51:04.919 _ldd_resolve: 'libdbus-1.so.3' '/snap/core22/current/lib/arm-linux-gnueabihf/libdbus-1.so.3'
2022-11-02 10:51:04.919 _ldd_resolve: 'libX11-xcb.so.1' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1'
2022-11-02 10:51:04.919 _ldd_resolve: 'libX11.so.6' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libX11.so.6'
2022-11-02 10:51:04.920 _ldd_resolve: 'libxcb.so.1' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libxcb.so.1'
2022-11-02 10:51:04.920 _ldd_resolve: 'libsystemd.so.0' '/snap/core22/current/lib/arm-linux-gnueabihf/libsystemd.so.0'
2022-11-02 10:51:04.920 _ldd_resolve: 'libasyncns.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libasyncns.so.0'
2022-11-02 10:51:04.920 _ldd_resolve: 'libapparmor.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libapparmor.so.1'
2022-11-02 10:51:04.920 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.921 _ldd_resolve: 'libFLAC.so.8' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libFLAC.so.8'
2022-11-02 10:51:04.921 _ldd_resolve: 'libvorbis.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbis.so.0'
2022-11-02 10:51:04.921 _ldd_resolve: 'libvorbisenc.so.2' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2'
2022-11-02 10:51:04.921 _ldd_resolve: 'libopus.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libopus.so.0'
2022-11-02 10:51:04.921 _ldd_resolve: 'libogg.so.0' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0'
2022-11-02 10:51:04.921 _ldd_resolve: 'libXau.so.6' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libXau.so.6'
2022-11-02 10:51:04.921 _ldd_resolve: 'libXdmcp.so.6' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libXdmcp.so.6'
2022-11-02 10:51:04.921 _ldd_resolve: 'liblzma.so.5' '/snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5'
2022-11-02 10:51:04.921 _ldd_resolve: 'libzstd.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libzstd.so.1'
2022-11-02 10:51:04.921 _ldd_resolve: 'liblz4.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/liblz4.so.1'
2022-11-02 10:51:04.922 _ldd_resolve: 'libcap.so.2' '/snap/core22/current/lib/arm-linux-gnueabihf/libcap.so.2'
2022-11-02 10:51:04.922 _ldd_resolve: 'libgcrypt.so.20' '/snap/core22/current/lib/arm-linux-gnueabihf/libgcrypt.so.20'
2022-11-02 10:51:04.922 _ldd_resolve: 'libbsd.so.0' '/snap/core22/current/lib/arm-linux-gnueabihf/libbsd.so.0'
2022-11-02 10:51:04.922 _ldd_resolve: 'libgpg-error.so.0' '/snap/core22/current/lib/arm-linux-gnueabihf/libgpg-error.so.0'
2022-11-02 10:51:04.922 _ldd_resolve: 'libmd.so.0' '/snap/core22/current/lib/arm-linux-gnueabihf/libmd.so.0'
2022-11-02 10:51:04.923 libm.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6' in base True
2022-11-02 10:51:04.923 libsndfile.so.1 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libsndfile.so.1 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libsndfile.so.1' in base False
2022-11-02 10:51:04.923 libdbus-1.so.3 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libdbus-1.so.3 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libdbus-1.so.3' in base True
2022-11-02 10:51:04.924 libX11-xcb.so.1 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1' in base False
2022-11-02 10:51:04.924 libX11.so.6 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libX11.so.6 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libX11.so.6' in base False
2022-11-02 10:51:04.924 libxcb.so.1 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libxcb.so.1 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libxcb.so.1' in base False
2022-11-02 10:51:04.924 libsystemd.so.0 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libsystemd.so.0 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libsystemd.so.0' in base True
2022-11-02 10:51:04.924 libasyncns.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libasyncns.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libasyncns.so.0' in base False
2022-11-02 10:51:04.924 libapparmor.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libapparmor.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libapparmor.so.1' in base True
2022-11-02 10:51:04.925 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.925 libFLAC.so.8 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libFLAC.so.8 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libFLAC.so.8' in base False
2022-11-02 10:51:04.925 libvorbis.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbis.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbis.so.0' in base False
2022-11-02 10:51:04.925 libvorbisenc.so.2 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2' in base False
2022-11-02 10:51:04.925 libopus.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libopus.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libopus.so.0' in base False
2022-11-02 10:51:04.925 libogg.so.0 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libogg.so.0' in base False
2022-11-02 10:51:04.926 libXau.so.6 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libXau.so.6 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libXau.so.6' in base False
2022-11-02 10:51:04.926 libXdmcp.so.6 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libXdmcp.so.6' in base False
2022-11-02 10:51:04.926 liblzma.so.5 with original path /snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5 found on '/snap/core22/current/lib/arm-linux-gnueabihf/liblzma.so.5' in base True
2022-11-02 10:51:04.926 libzstd.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libzstd.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libzstd.so.1' in base True
2022-11-02 10:51:04.926 liblz4.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/liblz4.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/liblz4.so.1' in base True
2022-11-02 10:51:04.926 libcap.so.2 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libcap.so.2 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libcap.so.2' in base True
2022-11-02 10:51:04.926 libgcrypt.so.20 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgcrypt.so.20 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgcrypt.so.20' in base True
2022-11-02 10:51:04.926 libbsd.so.0 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libbsd.so.0 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libbsd.so.0' in base True
2022-11-02 10:51:04.926 libgpg-error.so.0 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgpg-error.so.0 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgpg-error.so.0' in base True
2022-11-02 10:51:04.927 libmd.so.0 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libmd.so.0 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libmd.so.0' in base True
2022-11-02 10:51:04.929 Getting dependencies for 'usr/lib/llvm-14/lib/libc++.so.1.0'
2022-11-02 10:51:04.931 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/llvm-14/lib/libc++.so.1.0
2022-11-02 10:51:04.977 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:04.978 _ldd_resolve: 'libm.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6'
2022-11-02 10:51:04.978 _ldd_resolve: 'libc++abi.so.1' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libc++abi.so.1'
2022-11-02 10:51:04.978 _ldd_resolve: 'libunwind.so.1' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libunwind.so.1'
2022-11-02 10:51:04.978 _ldd_resolve: 'libgcc_s.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1'
2022-11-02 10:51:04.979 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:04.979 libm.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6' in base True
2022-11-02 10:51:04.979 libc++abi.so.1 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libc++abi.so.1 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libc++abi.so.1' in base False
2022-11-02 10:51:04.980 libunwind.so.1 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libunwind.so.1 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libunwind.so.1' in base False
2022-11-02 10:51:04.980 libgcc_s.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1' in base True
2022-11-02 10:51:04.980 Getting dependencies for 'usr/lib/llvm-14/lib/libc++abi.so.1.0'
2022-11-02 10:51:04.982 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/llvm-14/lib/libc++abi.so.1.0
2022-11-02 10:51:05.033 _ldd_resolve: 'libunwind.so.1' '/home/main/prime/usr/lib/arm-linux-gnueabihf/libunwind.so.1'
2022-11-02 10:51:05.034 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:05.034 _ldd_resolve: 'libm.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6'
2022-11-02 10:51:05.034 _ldd_resolve: 'libgcc_s.so.1' '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1'
2022-11-02 10:51:05.036 libunwind.so.1 with original path /home/main/prime/usr/lib/arm-linux-gnueabihf/libunwind.so.1 found on '/home/main/prime/usr/lib/arm-linux-gnueabihf/libunwind.so.1' in base False
2022-11-02 10:51:05.036 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:05.036 libm.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libm.so.6' in base True
2022-11-02 10:51:05.036 libgcc_s.so.1 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libgcc_s.so.1' in base True
2022-11-02 10:51:05.037 Getting dependencies for 'usr/lib/llvm-14/lib/libunwind.so.1.0'
2022-11-02 10:51:05.046 executing: LD_LIBRARY_PATH=/home/main/prime/lib:/home/main/prime/usr/lib:/home/main/prime/usr/lib/arm-linux-gnueabihf:/snap/core22/current/lib:/snap/core22/current/usr/lib:/snap/core22/current/lib/arm-linux-gnueabihf:/snap/core22/current/usr/lib/arm-linux-gnueabihf /usr/bin/ldd usr/lib/llvm-14/lib/libunwind.so.1.0
2022-11-02 10:51:05.108 _ldd_resolve: 'libc.so.6' '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6'
2022-11-02 10:51:05.110 libc.so.6 with original path /snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6 found on '/snap/core22/current/lib/arm-linux-gnueabihf/libc.so.6' in base True
2022-11-02 10:51:05.112 pack_snap: output=None, compression='xz'
2022-11-02 10:51:05.112 pack_snap: check skeleton
2022-11-02 10:51:05.228 Creating snap package...
2022-11-02 10:51:05.229 Pack command: ['snap', 'pack', '--filename', 'main_1.0_armhf.snap', '--compression', 'xz', PosixPath('/home/main/prime'), PosixPath('/home/main')]
2022-11-02 10:51:05.306 Cannot pack snap file: Command '['snap', 'pack', '--filename', 'main_1.0_armhf.snap', '--compression', 'xz', PosixPath('/home/main/prime'), PosixPath('/home/main')]' returned non-zero exit status 1. (2022/11/02 10:51:05.302630 container.go:215: in snap "main": path "bin/main" does not exist
2022/11/02 10:51:05.302824 container.go:215: in snap "main": path "bin" does not exist
error: cannot pack "/home/main/prime": snap is unusable due to missing files)
2022-11-02 10:51:05.312 Traceback (most recent call last):
2022-11-02 10:51:05.312   File "/snap/snapcraft/8494/lib/python3.8/site-packages/snapcraft/pack.py", line 134, in pack_snap
2022-11-02 10:51:05.312     proc = subprocess.run(
2022-11-02 10:51:05.312   File "/snap/snapcraft/8494/usr/lib/python3.8/subprocess.py", line 516, in run
2022-11-02 10:51:05.312     raise CalledProcessError(retcode, process.args,
2022-11-02 10:51:05.312 subprocess.CalledProcessError: Command '['snap', 'pack', '--filename', 'main_1.0_armhf.snap', '--compression', 'xz', PosixPath('/home/main/prime'), PosixPath('/home/main')]' returned non-zero exit status 1.
2022-11-02 10:51:05.312 
2022-11-02 10:51:05.312 During handling of the above exception, another exception occurred:
2022-11-02 10:51:05.312 Traceback (most recent call last):
2022-11-02 10:51:05.312   File "/snap/snapcraft/8494/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 284, in _run_command
2022-11-02 10:51:05.312     _run_lifecycle_and_pack(
2022-11-02 10:51:05.312   File "/snap/snapcraft/8494/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 354, in _run_lifecycle_and_pack
2022-11-02 10:51:05.312     snap_filename = pack.pack_snap(
2022-11-02 10:51:05.312   File "/snap/snapcraft/8494/lib/python3.8/site-packages/snapcraft/pack.py", line 141, in pack_snap
2022-11-02 10:51:05.312     raise errors.SnapcraftError(msg)
2022-11-02 10:51:05.312 snapcraft.errors.SnapcraftError: Cannot pack snap file: Command '['snap', 'pack', '--filename', 'main_1.0_armhf.snap', '--compression', 'xz', PosixPath('/home/main/prime'), PosixPath('/home/main')]' returned non-zero exit status 1. (2022/11/02 10:51:05.302630 container.go:215: in snap "main": path "bin/main" does not exist
2022-11-02 10:51:05.312 2022/11/02 10:51:05.302824 container.go:215: in snap "main": path "bin" does not exist
2022-11-02 10:51:05.312 error: cannot pack "/home/main/prime": snap is unusable due to missing files)
2022-11-02 10:51:05.312 Full execution log: '/root/.cache/snapcraft/log/snapcraft-20221102-104829.719196.log'

I see the problem here, you are using override-build which entirely overrides the build, so instead of building the app with cmake snapcraft is just calling apt install twice. Try adding snapcraftctl build to the end of the override like this:

    override-build: |
      apt install build-essential libc++-dev libc++abi-dev libuv1-dev libasound2-dev libsdl2-dev -y
      apt install libunwind-dev
      snapcraftctl build

you are also missing a -y parameter here. I suggest not overriding the build instructions at all and instead using build-packagesas suggested above by @diddledani

Thank you, I fixed it by using the code below:

name: main
version: '1.0'
summary: streaming app
description: our streaming app
confinement: strict
grade: stable
base: core22

parts:
  alsa-mixin:
    plugin: nil
    source: https://github.com/diddledan/snapcraft-alsa.git
    override-pull: |
      craftctl default
      cat > alsa.conf <<EOF
      pcm.!default {
        type pulse
        fallback "sysdefault"
        hint {
          show on
          description "Default ALSA Output (currently PulseAudio Sound Server)"
        }
      }
      ctl.!default {
        type pulse
        fallback "sysdefault"
      }
      EOF
    override-build: |
      craftctl default
      install -m644 -D -t $CRAFT_PART_INSTALL/etc alsa.conf
    build-packages:
      - libasound2-dev
    stage-packages:
      - libasound2
      - libasound2-plugins

  libraries:
    plugin: dump
    source: lib/tokbox/lib/.
    organize:
      libopentok.so: lib/libopentok.so
    stage-packages:
      - libc++1
      - libc++abi1

  stream:
    plugin: cmake
    source: .
    cmake-parameters:
      - -DCMAKE_INSTALL_PREFIX=/
    override-build: |
      craftctl default
      apt install build-essential libc++-dev libc++abi-dev libuv1-dev libasound2-dev libsdl2-dev -y
      apt install libunwind-dev -y
    stage-packages:
      - libc++1
      - libc++abi1
      - libunwind8
      - libuv1
      - libasound2
      - libasound2-plugins
      - libsdl2-2.0-0
    after:
      - alsa-mixin

layout:
  /usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib:
    bind: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib
  /usr/share/alsa:
    bind: $SNAP/usr/share/alsa

apps:
  main:
    command: bin/main
    plugs:
      - alsa
      - audio-record
      - audio-playback
      - camera
      - pulseaudio
      - network
      - network-bind
      - network-observe
      - network-control
    environment:
      ALSA_CONFIG_PATH: /snap/$CRAFT_PROJECT_NAME/current/usr/share/alsa/alsa.conf

It’s core22 so I had to use craftctl default instead of commands like snapcraftctl build or snapcraftcl pull.

Now it builds without any issues.

2 Likes

you really should not be using apt install or apt-get install inside a scriptlet for a snap package build. Any packages you think you want to install that way should be installed with build-packages and stage-packages - the former for packages that are required at build time (usually packages providing build tools or header files) and the latter for packages that are required at run time (usually libraries and executables that your app needs to be usable).

2 Likes

Yes, I agree, but I had an issue with these dependencies conflicting with libunwind-dev. Anyway, this is not important now, as building for core20 and core22 doesn’t solve my other problems that I have with this app.