Package Details: snapcast 0.34.0-1

Git Clone URL: https://aur.archlinux.org/snapcast.git (read-only, click to copy)
Package Base: snapcast
Description: Synchronous multi-room audio player
Upstream URL: https://github.com/badaix/snapcast
Keywords: audio multi-room
Licenses: GPL-1.0-or-later
Submitter: mogwai
Maintainer: mogwai
Last Packager: mogwai
Votes: 39
Popularity: 0.033714
First Submitted: 2016-01-01 21:21 (UTC)
Last Updated: 2025-10-03 12:39 (UTC)

Dependencies (20)

Required by (0)

Sources (5)

Latest Comments

1 2 3 4 5 6 .. 10 Next › Last »

nshephard commented on 2025-12-12 08:12 (UTC) (edited on 2026-01-06 11:08 (UTC) by nshephard)

@m040601 Sorry for the delay in replying I don't have notifications set for AUR.

This is with a Pi4b which has 8GB RAM.

No particular reason for using the 32bit kernel other than it was the default. I may switch at some point (currently recovering from an update which hosed USB, even the latest image is affected https://archlinuxarm.org/forum/viewtopic.php?f=60&t=17365&p=73853#p73853).

Could you clarify that point ? At which step of the process did you "remove the whole ./src/...." ?

I did this before makepkg -sri, so...

  1. Update configuration options adding -mno-omit-leaf-frame-pointer to CFLAGS in /etc/makepkag-sri.
  2. git clone https://aur.archlinux.org/snapcast.git
  3. cd snapcast
  4. makepkg -sri

If you already have a clone of the repository for snapcastthen...

  1. Update configuration options adding -mno-omit-leaf-frame-pointer to CFLAGS in /etc/makepkag-sri.
  2. cd ~/path/to/snapcast - where ever you have it cloned.
  3. rm -rf src- this removes the existing source and configuration files that may have been written from previous attempts to install
  4. makepkg -sri - this will download the source anew and unpack it to src/snapcast-0.34.0 and start the build process.

m040601 commented on 2025-10-02 04:41 (UTC) (edited on 2025-10-02 04:42 (UTC) by m040601)

nshephard commented on 2025-03-14 11:37 (UTC)

... its now built and installed :-D

192.168.1.45 ❱ pacman -Qi linux
Name            : linux-rpi
Version         : 6.12.18-1
Architecture    : armv7h

@nshephard

How did you manage to do this ? Was there any special trick ?

I understand you are using the Raspberry Pi 4 ? Correct ? Which version and how much memory exactly ? 1, 2, 4 or 8 GB RAM ?

Although it is a 64bit device I see you are using the linux armv7h 32 bit kernel, correct ? Any special reason you are not using the 64bit kernel ?

I'm also using that 32bit kernel, because I am using a Raspberry Pi 2 version 1.1 (that is the armv7h 32 bit not 64bit) . It has 1 GB of RAM

I'v been trying for more than a year to build snapcast but I ran out of memory every time,

Oct 02 05:24:08 alarmpi kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=cc1plus,pid=9866,uid=1009
Oct 02 05:24:08 alarmpi kernel: Out of memory: Killed process 9866 (cc1plus) total-vm:943972kB, anon-rss:810860kB, file-rss:1476kB, shmem-rss:0kB, UID:1009 pgtables:1744kB oom_score_adj:

Without resorting to any alternative like distcc, I cant see a way to bulid snapcast with "only" 1 GB of RAM.

... .... After carefully reading the error message I saw that
-mno-omit-leaf-frame-pointer was still listed despite removing it from /etc/makepkg.conf.

I therefore removed the whole ./src/snapcast-0.31.0 directory and its now built and
installed :-D

Could you clarify that point ? At which step of the process did you "remove the whole ./src/...." ?

Thanks in advance.

kingo55 commented on 2025-09-27 03:12 (UTC)

As with @0x4F72, I needed to build with -DBUILD_WITH_PULSE=ON too. Now it runs again for PulseAudio setups.

0x4F72 commented on 2025-08-15 20:00 (UTC)

This package lists libpulse as dependency but running snapclient --player pulse leads to an error unless -DBUILD_WITH_PULSE=ON is added on build. I would expect it to work with pulse out of the box or move dependency to optional.

mogwai commented on 2025-06-02 20:33 (UTC)

@stevil: Should be fixed now. Thanks for the notification.

stevil commented on 2025-05-27 08:02 (UTC)

This currently (0.31.0) doesn't build with boost 1.88.0. There's an upstream ticket here and a patch here.

nshephard commented on 2025-03-14 11:37 (UTC)

Ok, I think I may have solved this. After carefully reading the error message I saw that -mno-omit-leaf-frame-pointer was still listed despite removing it from /etc/makepkg.conf.

I therefore removed the whole ./src/snapcast-0.31.0 directory and its now built and installed :-D

Sorry for the noise.

nshephard commented on 2025-03-14 10:51 (UTC)

Hi,

I've encountered a problem trying to build this under ArchLinuxARM (Raspberry Pi 4b)

192.168.1.45 ❱ pacman -Qi linux
Name            : linux-rpi
Version         : 6.12.18-1
Description     : Linux kernel and modules (RPi Foundation fork)
Architecture    : armv7h
URL             : https://github.com/raspberrypi/linux
Licenses        : GPL2
Groups          : None
Provides        : linux=6.12.18  KSMBD-MODULE  WIREGUARD-MODULE
Depends On      : coreutils  firmware-raspberrypi  kmod  linux-firmware  mkinitcpio>=0.7  raspberrypi-bootloader
Optional Deps   : wireless-regdb: to set the correct wireless channels of your country [installed]
Required By     : None
Optional For    : base
Conflicts With  : linux  linux-rpi-16k  uboot-raspberrypi
Replaces        : None
Installed Size  : 28.99 MiB
Packager        : Arch Linux ARM Build System <builder+xu4@archlinuxarm.org>
Build Date      : Mon 10 Mar 2025 15:15:42 UTC
Install Date    : Tue 11 Mar 2025 20:27:25 UTC
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature

I've read the posts above from @m040601 and @mogwai and have a modern version of C++ (14.2.1). I noted the advice to disable -mno-omit-leaf-frame-pointer from CFLAGS in /etc/makepkg and have done so, still hit an error with Detecting CXX compiler ABI info - failed and Check for working CXX compiler: /usr/bin/c++ - broken.

192.168.1.45 ❱ makepkg -sri
==> Making package: snapcast 0.31.0-3 (Fri 14 Mar 2025 10:39:27 UTC)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found snapcast-0.31.0.tar.gz
  -> Found snapweb-0.8.0.zip
  -> Found snapcast.sysusers
  -> Found snapcast.tmpfiles
  -> Found snapcast.install
==> Validating source files with sha256sums...
    snapcast-0.31.0.tar.gz ... Passed
    snapweb-0.8.0.zip ... Passed
    snapcast.sysusers ... Passed
    snapcast.tmpfiles ... Passed
    snapcast.install ... Passed
==> Extracting sources...
  -> Extracting snapcast-0.31.0.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The CXX compiler identification is GNU 14.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:73 (message):
  The C++ compiler

    "/usr/bin/c++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/home/neil/aur/snapcast/src/snapcast-0.31.0/build/CMakeFiles/CMakeScratch/TryCompile-Hmp8hB'

    Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_7e1f3/fast
    /usr/bin/make  -f CMakeFiles/cmTC_7e1f3.dir/build.make CMakeFiles/cmTC_7e1f3.dir/build
    make[1]: Entering directory '/home/neil/aur/snapcast/src/snapcast-0.31.0/build/CMakeFiles/CMakeScratch/TryCompile-Hmp8hB'
    Building CXX object CMakeFiles/cmTC_7e1f3.dir/testCXXCompiler.cxx.o
    /usr/bin/c++   -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS  -o CMakeFiles/cmTC_7e1f3.dir/testCXXCompiler.cxx.o -c /home/neil/aur/snapcast/src/snapcast-0.31.0/build/CMakeFiles/CMakeScratch/TryCompile-Hmp8hB/testCXXCompiler.cxx
    c++: error: unrecognized command-line option ‘-mno-omit-leaf-frame-pointer’; did you mean ‘-fno-omit-frame-pointer’?
    make[1]: *** [CMakeFiles/cmTC_7e1f3.dir/build.make:81: CMakeFiles/cmTC_7e1f3.dir/testCXXCompiler.cxx.o] Error 1
    make[1]: Leaving directory '/home/neil/aur/snapcast/src/snapcast-0.31.0/build/CMakeFiles/CMakeScratch/TryCompile-Hmp8hB'
    make: *** [Makefile:134: cmTC_7e1f3/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:8 (project)


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...

Unfortunately I can't build 0.28.0 and would be keen to move to the most recent version.

mogwai commented on 2025-02-24 18:14 (UTC)

@BrainDamage: done

mogwai commented on 2025-02-23 20:32 (UTC)

@kingo55: That's how AUR packages work: if any of the dependencies are updated, it's your own responsibility to recompile it, even if the package itself has not been updated. Most dependency updates are fine, it's mainly the major release upgrades that need recompiling. Apparently that was the case with flac now.