moc FATAL_ERROR: Server exited!

Hi all,

Thanks for your player, I'm enjoying it very much. However, I'm having a problem on the Raspberry Pi.
I'm running Archlinux Arm, Linux 3.12.19-3-ARCH armv6l
mocp -V

This is : Music On Console
Version : 2.5.0-beta2
Revision : 2604
Built : Feb 6 2014 14:24:27
Compiled with : OSS ALSA JACK Network streams resample
Running on : Linux 3.12.19-3-ARCH armv6l
Author : Damian Pietras
Homepage : http://moc.daper.net/
E-Mail : mocmaint@daper.net
Copyright : (C) 2003-2014 Damian Pietras and others
License : GNU General Public License, version 2 or later
Already pasted output on ArchlinuxArm, without answer, which I did not expect perse.
Running the server...
Trying JACK...
FATAL_ERROR: Server exited!
Removed the cache, reinstalled, without success.

A strace shows a SIGCHLD,
<... futex resumed> ) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
1556 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1557, si_status=0, si_utime=1, si_stime=5} ---
1556 futex(0xb6b5546c, FUTEX_WAIT_PRIVATE, 1, NULL
1555 <... read resumed> "/dev/shm\n", 4096) = 9
1555 close(9) = 0
1555 wait4(1557, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1557
1555 munmap(0xb6f0e000, 4096) = 0
1555 open("/proc/cpuinfo", O_RDONLY) = 9
1555 fstat64(9, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
1555 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f0e000
1555 read(9, "processor\t: 0\nmodel name\t: ARMv6-compatible proces"..., 1024) = 278
1555 read(9, "", 1024) = 0
1555 close(3) = 0
1555 exit_group(1) = ?
1556 +++ exited with 1 +++
1554 <... read resumed> "", 4) = 0
1554 write(2, "\nFATAL_ERROR: Server exited!\n\n", 30) = 30
1554 close(3
1555 +++ exited with 1 +++
1554 <... close resumed> ) = 0
1554 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1555, si_status=1, si_utime=0, si_stime=4} ---
1554 exit_group(2) = ?
1554 +++ exited with 2 +++

Thanks for any help, qinohe

It's very difficult to determine what is happening here. It may or may not be related to the SIGCHLD or some problem connecting to JACK. Unfortunately, your MOC was not built with logging enabled, so that avenue of evidence gathering is denied to us.

However, we have recently committed r2635 which might provide a solution (but it's a long shot).

You may want the check that your JACK server is behaving as intended because I'm not in a position to test or debug the MOC JACK sound driver at this time.

You might also want to check any external commands run using the On... options in your MOC configuration file.

If you are able, then rebuilding MOC (preferably at the current SVN HEAD) configured with --enable-debug, running with the -D option and sending mocmaint the compressed mocp_server_log file would enable further investigation.

Thank you very much for your answer.

Have tried to start jack as follows, which gives me an error.

sudo jackd -d alsa -P hw:0,0<br /> jackd 0.124.1<br /> Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.<br /> jackd comes with ABSOLUTELY NO WARRANTY<br /> This is free software, and you are welcome to redistribute it<br /> under certain conditions; see the file COPYING for details</p> <p>could not open driver .so '/usr/lib/jack/jack_net.so': libcelt0.so.2: cannot open shared object file: No such file or directory</p> <p>could not open driver .so '/usr/lib/jack/jack_firewire.so': libffado.so.2: cannot open shared object file: No such file or directory</p> <p>JACK compiled with System V SHM support.<br /> FATAL: cannot locate cpu MHz in /proc/cpuinfo

I also tried to build the svn, it failed with the following build file and next the error
PKGBUILD;
#Maintainer: Øyvind 'MrElendig' Heggstad<br /> #Contributor: jsteel </p> <p>pkgname=moc-svn<br /> pkgver=2646<br /> pkgrel=1<br /> pkgdesc='A powerful &amp; easy to use console audio player'<br /> url="http://moc.daper.net"<br /> arch=('i686' 'x86_64' 'armv6h')<br /> license=('GPL')<br /> depends=('libmad' 'libid3tag' 'jack' 'curl' 'libltdl' 'file')<br /> source=('moc::svn://daper.net/moc/trunk')<br /> sha1sums=('SKIP')<br /> makedepends=('speex' 'ffmpeg' 'taglib' 'libmpcdec' 'wavpack'<br /> 'libmodplug' 'subversion' 'faad2')<br /> optdepends=('speex: for using the speex plugin'<br /> 'ffmpeg: for using the ffmpeg plugin'<br /> 'taglib: for using the musepack plugin'<br /> 'libmpcdec: for using the musepack plugin'<br /> 'wavpack: for using the wavpack plugin'<br /> 'libmodplug: for using the modplug plugin'<br /> 'faad2: for use the aac plugin')<br /> conflicts=('moc')<br /> provides=('moc')<br /> options=('!libtool')</p> <p>pkgver() {<br /> cd moc<br /> svnversion<br /> }</p> <p>build() {<br /> cd moc<br /> export CPPFLAGS="${CPPFLAGS} -I/usr/lib/oss/include"<br /> autoreconf -f -i -Wall,no-obsolete<br /> ./configure --prefix=/usr --without-rcc \<br /> --with-oss --with-alsa --with-jack --with-aac --with-mp3 \<br /> --with-musepack --with-vorbis --with-flac --with-wavpack \<br /> --with-sndfile --with-modplug --with-ffmpeg --with-speex \<br /> --with-samplerate --with-curl --enable-debug<br /> make<br /> }</p> <p>package() {<br /> cd moc<br /> make DESTDIR="$pkgdir" install<br /> }

ERROR;
Checked out revision 2646.<br /> ==&gt; Validating source files with sha1sums...<br /> moc ... Skipped<br /> ==&gt; Extracting sources...<br /> -&gt; Creating working copy of trunk svn repo...<br /> ==&gt; Starting pkgver()...<br /> ==&gt; Updated version: moc-svn 2646-1<br /> ==&gt; Starting build()...<br /> configure.in:156: warning: AC_RUN_IFELSE called without default to allow cross compiling<br /> ../../lib/autoconf/general.m4:2748: AC_RUN_IFELSE is expanded from...<br /> m4/ax_path_bdb.m4:405: AX_PATH_BDB_ENV_CONFIRM_LIB is expanded from...<br /> m4/ax_path_bdb.m4:461: AX_PATH_BDB_ENV_GET_VERSION is expanded from...<br /> m4/ax_path_bdb.m4:144: AX_PATH_BDB_NO_OPTIONS is expanded from...<br /> m4/ax_path_bdb.m4:67: AX_PATH_BDB is expanded from...<br /> configure.in:156: the top level<br /> configure.in:156: warning: AC_RUN_IFELSE called without default to allow cross compiling<br /> ../../lib/autoconf/general.m4:2748: AC_RUN_IFELSE is expanded from...<br /> m4/ax_path_bdb.m4:326: AX_PATH_BDB_PATH_GET_VERSION is expanded from...<br /> m4/ax_path_bdb.m4:282: AX_PATH_BDB_PATH_FIND_HIGHEST is expanded from...<br /> m4/ax_path_bdb.m4:144: AX_PATH_BDB_NO_OPTIONS is expanded from...<br /> m4/ax_path_bdb.m4:67: AX_PATH_BDB is expanded from...<br /> configure.in:156: the top level<br /> configure.in:157: warning: AC_RUN_IFELSE called without default to allow cross compiling<br /> ../../lib/autoconf/general.m4:2748: AC_RUN_IFELSE is expanded from...<br /> m4/ax_path_bdb.m4:405: AX_PATH_BDB_ENV_CONFIRM_LIB is expanded from...<br /> m4/ax_path_bdb.m4:461: AX_PATH_BDB_ENV_GET_VERSION is expanded from...<br /> m4/ax_path_bdb.m4:144: AX_PATH_BDB_NO_OPTIONS is expanded from...<br /> m4/ax_path_bdb.m4:67: AX_PATH_BDB is expanded from...<br /> configure.in:157: the top level<br /> configure.in:157: warning: AC_RUN_IFELSE called without default to allow cross compiling<br /> ../../lib/autoconf/general.m4:2748: AC_RUN_IFELSE is expanded from...<br /> m4/ax_path_bdb.m4:326: AX_PATH_BDB_PATH_GET_VERSION is expanded from...<br /> m4/ax_path_bdb.m4:282: AX_PATH_BDB_PATH_FIND_HIGHEST is expanded from...<br /> m4/ax_path_bdb.m4:144: AX_PATH_BDB_NO_OPTIONS is expanded from...<br /> m4/ax_path_bdb.m4:67: AX_PATH_BDB is expanded from...<br /> configure.in:157: the top level<br /> libtoolize: putting auxiliary files in `.'.<br /> libtoolize: copying file `./ltmain.sh'<br /> libtoolize: putting auxiliary files in `.'.<br /> libtoolize: copying file `libltdl/config/compile'<br /> libtoolize: copying file `libltdl/config/config.guess'<br /> libtoolize: copying file `libltdl/config/config.sub'<br /> libtoolize: copying file `libltdl/config/depcomp'<br /> libtoolize: copying file `libltdl/config/install-sh'<br /> libtoolize: copying file `libltdl/config/missing'<br /> libtoolize: copying file `libltdl/config/ltmain.sh'<br /> libtoolize: putting macros in `m4'.<br /> libtoolize: copying file `m4/argz.m4'<br /> libtoolize: copying file `m4/libtool.m4'<br /> libtoolize: copying file `m4/ltdl.m4'<br /> libtoolize: copying file `m4/ltoptions.m4'<br /> libtoolize: copying file `m4/ltsugar.m4'<br /> libtoolize: copying file `m4/ltversion.m4'<br /> libtoolize: copying file `m4/lt~obsolete.m4'<br /> libtoolize: putting macros in `libltdl/m4'.<br /> libtoolize: copying file `libltdl/m4/argz.m4'<br /> libtoolize: copying file `libltdl/m4/libtool.m4'<br /> libtoolize: copying file `libltdl/m4/ltdl.m4'<br /> libtoolize: copying file `libltdl/m4/ltoptions.m4'<br /> libtoolize: copying file `libltdl/m4/ltsugar.m4'<br /> libtoolize: copying file `libltdl/m4/ltversion.m4'<br /> libtoolize: copying file `libltdl/m4/lt~obsolete.m4'<br /> libtoolize: putting libltdl files in `libltdl'.<br /> libtoolize: copying file `libltdl/COPYING.LIB'<br /> libtoolize: copying file `libltdl/README'<br /> libtoolize: copying file `libltdl/Makefile.am'<br /> libtoolize: copying file `libltdl/configure.ac'<br /> libtoolize: copying file `libltdl/aclocal.m4'<br /> libtoolize: copying file `libltdl/Makefile.in'<br /> libtoolize: copying file `libltdl/config-h.in'<br /> libtoolize: copying file `libltdl/configure'<br /> libtoolize: copying file `libltdl/argz_.h'<br /> libtoolize: copying file `libltdl/argz.c'<br /> libtoolize: copying file `libltdl/loaders/dld_link.c'<br /> libtoolize: copying file `libltdl/loaders/dlopen.c'<br /> libtoolize: copying file `libltdl/loaders/dyld.c'<br /> libtoolize: copying file `libltdl/loaders/load_add_on.c'<br /> libtoolize: copying file `libltdl/loaders/loadlibrary.c'<br /> libtoolize: copying file `libltdl/loaders/shl_load.c'<br /> libtoolize: copying file `libltdl/lt__dirent.c'<br /> libtoolize: copying file `libltdl/lt__strl.c'<br /> libtoolize: copying file `libltdl/libltdl/lt__alloc.h'<br /> libtoolize: copying file `libltdl/libltdl/lt__dirent.h'<br /> libtoolize: copying file `libltdl/libltdl/lt__glibc.h'<br /> libtoolize: copying file `libltdl/libltdl/lt__private.h'<br /> libtoolize: copying file `libltdl/libltdl/lt__strl.h'<br /> libtoolize: copying file `libltdl/libltdl/lt_dlloader.h'<br /> libtoolize: copying file `libltdl/libltdl/lt_error.h'<br /> libtoolize: copying file `libltdl/libltdl/lt_system.h'<br /> libtoolize: copying file `libltdl/libltdl/slist.h'<br /> libtoolize: copying file `libltdl/loaders/preopen.c'<br /> libtoolize: copying file `libltdl/lt__alloc.c'<br /> libtoolize: copying file `libltdl/lt_dlloader.c'<br /> libtoolize: copying file `libltdl/lt_error.c'<br /> libtoolize: copying file `libltdl/ltdl.c'<br /> libtoolize: copying file `libltdl/ltdl.h'<br /> libtoolize: copying file `libltdl/slist.c'<br /> libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([libltdl])' to `configure.in'.<br /> libtoolize: Consider using `AC_CONFIG_AUX_DIR([libltdl/config])' in configure.in.<br /> libtoolize: Consider using `AC_CONFIG_MACRO_DIR([libltdl/m4])' in configure.in.<br /> configure.in:156: warning: AC_RUN_IFELSE called without default to allow cross compiling<br /> ../../lib/autoconf/general.m4:2748: AC_RUN_IFELSE is expanded from...<br /> m4/ax_path_bdb.m4:405: AX_PATH_BDB_ENV_CONFIRM_LIB is expanded from...<br /> m4/ax_path_bdb.m4:461: AX_PATH_BDB_ENV_GET_VERSION is expanded from...<br /> m4/ax_path_bdb.m4:144: AX_PATH_BDB_NO_OPTIONS is expanded from...<br /> m4/ax_path_bdb.m4:67: AX_PATH_BDB is expanded from...<br /> configure.in:156: the top level<br /> configure.in:156: warning: AC_RUN_IFELSE called without default to allow cross compiling<br /> ../../lib/autoconf/general.m4:2748: AC_RUN_IFELSE is expanded from...<br /> m4/ax_path_bdb.m4:326: AX_PATH_BDB_PATH_GET_VERSION is expanded from...<br /> m4/ax_path_bdb.m4:282: AX_PATH_BDB_PATH_FIND_HIGHEST is expanded from...<br /> m4/ax_path_bdb.m4:144: AX_PATH_BDB_NO_OPTIONS is expanded from...<br /> m4/ax_path_bdb.m4:67: AX_PATH_BDB is expanded from...<br /> configure.in:156: the top level<br /> configure.in:157: warning: AC_RUN_IFELSE called without default to allow cross compiling<br /> ../../lib/autoconf/general.m4:2748: AC_RUN_IFELSE is expanded from...<br /> m4/ax_path_bdb.m4:405: AX_PATH_BDB_ENV_CONFIRM_LIB is expanded from...<br /> m4/ax_path_bdb.m4:461: AX_PATH_BDB_ENV_GET_VERSION is expanded from...<br /> m4/ax_path_bdb.m4:144: AX_PATH_BDB_NO_OPTIONS is expanded from...<br /> m4/ax_path_bdb.m4:67: AX_PATH_BDB is expanded from...<br /> configure.in:157: the top level<br /> configure.in:157: warning: AC_RUN_IFELSE called without default to allow cross compiling<br /> ../../lib/autoconf/general.m4:2748: AC_RUN_IFELSE is expanded from...<br /> m4/ax_path_bdb.m4:326: AX_PATH_BDB_PATH_GET_VERSION is expanded from...<br /> m4/ax_path_bdb.m4:282: AX_PATH_BDB_PATH_FIND_HIGHEST is expanded from...<br /> m4/ax_path_bdb.m4:144: AX_PATH_BDB_NO_OPTIONS is expanded from...<br /> m4/ax_path_bdb.m4:67: AX_PATH_BDB is expanded from...<br /> configure.in:157: the top level<br /> configure.in:52: installing './compile'<br /> configure.in:51: installing './config.guess'<br /> configure.in:51: installing './config.sub'<br /> configure.in:8: installing './install-sh'<br /> configure.in:8: installing './missing'<br /> Makefile.am: installing './depcomp'<br /> /usr/share/automake-1.14/am/ltlibrary.am: warning: 'libaac_decoder.la': linking libtool libraries using a non-POSIX<br /> /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in'<br /> decoder_plugins/aac/Makefile.am:1: while processing Libtool library 'libaac_decoder.la'<br /> /usr/share/automake-1.14/am/ltlibrary.am: warning: 'libffmpeg_decoder.la': linking libtool libraries using a non-POSIX<br /> /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in'<br /> decoder_plugins/ffmpeg/Makefile.am:1: while processing Libtool library 'libffmpeg_decoder.la'<br /> /usr/share/automake-1.14/am/ltlibrary.am: warning: 'libflac_decoder.la': linking libtool libraries using a non-POSIX<br /> /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in'<br /> decoder_plugins/flac/Makefile.am:1: while processing Libtool library 'libflac_decoder.la'<br /> /usr/share/automake-1.14/am/ltlibrary.am: warning: 'libmodplug_decoder.la': linking libtool libraries using a non-POSIX<br /> /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in'<br /> decoder_plugins/modplug/Makefile.am:1: while processing Libtool library 'libmodplug_decoder.la'<br /> /usr/share/automake-1.14/am/ltlibrary.am: warning: 'libmp3_decoder.la': linking libtool libraries using a non-POSIX<br /> /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in'<br /> decoder_plugins/mp3/Makefile.am:1: while processing Libtool library 'libmp3_decoder.la'<br /> /usr/share/automake-1.14/am/ltlibrary.am: warning: 'libmusepack_decoder.la': linking libtool libraries using a non-POSIX<br /> /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in'<br /> decoder_plugins/musepack/Makefile.am:1: while processing Libtool library 'libmusepack_decoder.la'<br /> /usr/share/automake-1.14/am/ltlibrary.am: warning: 'libsidplay2_decoder.la': linking libtool libraries using a non-POSIX<br /> /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in'<br /> decoder_plugins/sidplay2/Makefile.am:1: while processing Libtool library 'libsidplay2_decoder.la'<br /> /usr/share/automake-1.14/am/ltlibrary.am: warning: 'libsndfile_decoder.la': linking libtool libraries using a non-POSIX<br /> /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in'<br /> decoder_plugins/sndfile/Makefile.am:1: while processing Libtool library 'libsndfile_decoder.la'<br /> /usr/share/automake-1.14/am/ltlibrary.am: warning: 'libspeex_decoder.la': linking libtool libraries using a non-POSIX<br /> /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in'<br /> decoder_plugins/speex/Makefile.am:1: while processing Libtool library 'libspeex_decoder.la'<br /> /usr/share/automake-1.14/am/ltlibrary.am: warning: 'libtimidity_decoder.la': linking libtool libraries using a non-POSIX<br /> /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in'<br /> decoder_plugins/timidity/Makefile.am:1: while processing Libtool library 'libtimidity_decoder.la'<br /> /usr/share/automake-1.14/am/ltlibrary.am: warning: 'libvorbis_decoder.la': linking libtool libraries using a non-POSIX<br /> /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in'<br /> decoder_plugins/vorbis/Makefile.am:1: while processing Libtool library 'libvorbis_decoder.la'<br /> /usr/share/automake-1.14/am/ltlibrary.am: warning: 'libwavpack_decoder.la': linking libtool libraries using a non-POSIX<br /> /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in'<br /> decoder_plugins/wavpack/Makefile.am:1: while processing Libtool library 'libwavpack_decoder.la'<br /> /home/mark/build/moc-svn/PKGBUILD: line 36: ./configure: Permission denied<br /> ==&gt; ERROR: A failure occurred in build().<br /> Aborting...

Thanks again for any help, or pointers on what to do next

The line starting with the word "FATAL" when launching JACK is probably the clue you need. I think you need to ask the Raspberry Pi community about that. It's now clear why there is one more process in your original posting's strace output than expected (it's the JACK server), and I'll have a look and see if MOC is reporting on the failure to launch JACK appropriately.

The line preceeding the final "ERROR" during the MOC build suggests you may need to be doing that as root.

There are several additional problems apparant in your build which the Raspberry Pi MOC package maintainer can take up with me if he wishes to e-mail mocmaint.

I'm also tracking the thread you mentioned above. The libraries mentioned in the messages are not required otherwise JACK would not have started at all. They will no doubt be optional and are dynamically loaded at run time.

It might be useful for you to post the output of cat /proc/cpuinfo. There should be a line there "cpu MHz" for which JACK is looking. If there is no file /proc/cpuinfo then you need to look at whether procfs is enabled in your kernel and the /proc filesystem is mounted (check using the mount command without any arguments).

Yes, about the libraries being optional, I thought so.

Cpuinfo does show output, but no Mhz.

cat /proc/cpuinfo<br /> processor : 0<br /> model name : ARMv6-compatible processor rev 7 (v6l)<br /> Features : swp half thumb fastmult vfp edsp java tls<br /> CPU implementer : 0x41<br /> CPU architecture: 7<br /> CPU variant : 0x0<br /> CPU part : 0xb76<br /> CPU revision : 7</p> <p>Hardware : BCM2708<br /> Revision : 000e<br /> Serial : 000000000baa7413

Mount shows the following output
mount<br /> /dev/sdb5 on / type ext4 (rw,noatime,data=ordered)<br /> devtmpfs on /dev type devtmpfs (rw,relatime,size=218224k,nr_inodes=54556,mode=755)<br /> proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)<br /> sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)<br /> securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)<br /> tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)<br /> devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)<br /> tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)<br /> tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)<br /> cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)<br /> cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)<br /> cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)<br /> cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)<br /> cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)<br /> cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)<br /> cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)<br /> cgroup on /sys/fs/cgroup/net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio)<br /> systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)<br /> tmpfs on /tmp type tmpfs (rw)<br /> debugfs on /sys/kernel/debug type debugfs (rw,relatime)<br /> mqueue on /dev/mqueue type mqueue (rw,relatime)<br /> configfs on /sys/kernel/config type configfs (rw,relatime)<br /> /dev/mmcblk0p1 on /boot type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)<br /> /dev/sdb7 on /home type ext4 (rw,nosuid,nodev,noexec,noatime,data=ordered)<br /> /dev/sdb6 on /srv type ext4 (rw,nodev,noatime,data=ordered)<br /> /dev/sdb8 on /data type ext4 (rw,nodev,noatime,data=ordered)<br /> binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)

I'm very glad with the help I get, as MOC was playing 24/7 on the RPI (literately), I definitely miss that.

That then is the source of your problem: JACK needs it, /proc/cpuinfo doesn't have it, game over!

It's something you'll need to take up with the Raspberry Pi package maintainers, but I'm a little surprised they've let such an obvious problem through.

But do you actually have a need for JACK? MOC should run fine with just ALSA. Try running MOC with the -O "SoundDriver=ALSA" option. If that works you can set that option up permanently in your ~/.moc/config file.

MOC is playing again, that's solved. ;)

You mean the Archlinux ARM packagers I guess, or specifically the Raspberry Pi package maintainers?
Would be nice to see JACK is patched.

Do I need JACK? No, I don't need JACK, ALSA is installed, I immediately changed the config, working OOTB.
What I don't understand, why it has been playing for the last 5 months' with the same config.

Thank you very much jcf, helping me troubleshoot this .

Regards,
qinohe

You mean the Archlinux ARM packagers I guess...

Yep.

What I don't understand, why it has been playing for the last 5 months with the same config.

The answer to that is simple: something changed. Your purpose in this life is to figure out what.

Ah right, I already left a comment at ARCHlinux ARM about that.

Yeah, I have found 'My meaning of life', I'm now gonna look for the Holy Grail

The reason, not being able to configure without root rights, was simply a security problem.
mount showed;
<br /> /dev/sdb7 on /home type ext4 (rw,nosuid,nodev,noexec,noatime,data=ordered)<br />

So I changed to my /data partition, which doesn't have these options set.

Now the configure part runs smoothly, only make fails.

My PKGBUILD looks like this right now;
# This is an example PKGBUILD file. Use this as a start to creating your own,<br /> # and remove these comments. For more information, see 'man PKGBUILD'.<br /> # NOTE: Please fill out the license field for your package! If it is unknown,<br /> # then please put 'unknown'.</p> <p># See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines<br /> # for more information on packaging from SVN sources.</p> <p># Maintainer: qinohe[ed]gmail.com<br /> pkgname=moc-svn-arm<br /> pkgver=2546<br /> pkgrel=1<br /> pkgdesc="MOC, Console audio player for ArchLinux ARM, svn-version"<br /> arch=('armv6h')<br /> url="http://moc.daper.net"<br /> license=('GPL')<br /> groups=()<br /> depends=('libmad' 'libid3tag' 'curl' 'libltdl' 'file')<br /> makedepends=('subversion' 'ffmpeg' 'taglib' 'libmpcdec' 'wavpack'<br /> 'libmodplug' 'faad2')<br /> provides=('moc')<br /> conflicts=('moc')<br /> replaces=()<br /> backup=()<br /> options=('!libtool')<br /> install=<br /> source=('moc::svn://daper.net/moc/trunk')<br /> noextract=()<br /> md5sums=('SKIP') #generate with 'makepkg -g'<br /> sha1sums=('SKIP')</p> <p>_svntrunk=svn://daper.net/moc/trunk<br /> _svnmod=moc</p> <p>build() {<br /> cd "$srcdir"<br /> msg "Connecting to SVN server...."</p> <p> if [[ -d "$_svnmod/.svn" ]]; then<br /> (cd "$_svnmod" &amp;&amp; svn up -r "$pkgver")<br /> else<br /> svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"<br /> fi</p> <p> msg "SVN checkout done or server timeout"<br /> msg "Starting build..."</p> <p> rm -rf "$srcdir/$_svnmod-build"<br /> svn export "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"<br /> cd "$srcdir/$_svnmod-build"</p> <p> #<br /> # BUILD HERE<br /> #</p> <p> export CPPFLAGS="${CPPFLAGS} -I/usr/lib/oss/include"<br /> autoreconf -f -i -Wall,no-obsolete<br /> sudo sh ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --without-rcc \<br /> --with-oss --with-alsa --with-aac --with-mp3 \<br /> --with-musepack --with-vorbis --with-flac --with-wavpack \<br /> --with-sndfile --with-modplug --with-ffmpeg \<br /> --with-samplerate --with-curl --enable-debug<br /> make<br /> }</p> <p>package() {<br /> cd "$srcdir/$_svnmod-build"<br /> make DESTDIR="$pkgdir/" install<br /> }</p> <p># vim:set ts=2 sw=2 et:

The error;

<br /> make all-recursive<br /> make[1]: Entering directory '/data/compile/moc-svn/src/moc-build'<br /> Making all in themes<br /> make[2]: Entering directory '/data/compile/moc-svn/src/moc-build/themes'<br /> make[2]: Nothing to be done for 'all'.<br /> make[2]: Leaving directory '/data/compile/moc-svn/src/moc-build/themes'<br /> Making all in decoder_plugins<br /> make[2]: Entering directory '/data/compile/moc-svn/src/moc-build/decoder_plugins'<br /> Making all in mp3<br /> make[3]: Entering directory '/data/compile/moc-svn/src/moc-build/decoder_plugins/mp3'<br /> /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -Wall -W -I/usr/include/alsa -MT libmp3_decoder_la-mp3.lo -MD -MP -MF .deps/libmp3_decoder_la-mp3.Tpo -c -o libmp3_decoder_la-mp3.lo `test -f 'mp3.c' || echo './'`mp3.c<br /> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -Wall -W -I/usr/include/alsa -MT libmp3_decoder_la-mp3.lo -MD -MP -MF .deps/libmp3_decoder_la-mp3.Tpo -c mp3.c -fPIC -DPIC -o .libs/libmp3_decoder_la-mp3.o<br /> mp3.c:809:1: fatal error: opening dependency file .deps/libmp3_decoder_la-mp3.Tpo: Permission denied<br /> }<br /> ^<br /> compilation terminated.<br /> Makefile:519: recipe for target 'libmp3_decoder_la-mp3.lo' failed<br /> make[3]: *** [libmp3_decoder_la-mp3.lo] Error 1<br /> make[3]: Leaving directory '/data/compile/moc-svn/src/moc-build/decoder_plugins/mp3'<br /> Makefile:450: recipe for target 'all-recursive' failed<br /> make[2]: *** [all-recursive] Error 1<br /> make[2]: Leaving directory '/data/compile/moc-svn/src/moc-build/decoder_plugins'<br /> Makefile:846: recipe for target 'all-recursive' failed<br /> make[1]: *** [all-recursive] Error 1<br /> make[1]: Leaving directory '/data/compile/moc-svn/src/moc-build'<br /> Makefile:589: recipe for target 'all' failed<br /> make: *** [all] Error 2<br /> ==&gt; ERROR: A failure occurred in build().<br /> Aborting..<br />

Maybe you have some pointers?
I have a log file at http://pastebin.com/vRkKAd9z
Thanks,
qinohe

Well, this is another permissions problem which has probably arisen after having had repeated build attempts as different users. It should be easily solved by setting the directory ownership and permissions correctly and consistantly. (See the -R option of chown(1) and chmod(1).)

But if you need to, start over with a fresh source tree and build as a single user having appropriate permissions.

All works well, the change to another build partition, and a few minor adjustments to the PKGBUILD.
I tried the PKGBUILD from the other maintainer, and that also works on that partition.

I'll keep svn version running as it does all it should, and more.

This little problem learned me a lot. Thanks for your patience jcf
Regards, qinohe

This little problem learned me a lot.

Yes, between the two threads I could almost see you learning as we went along. Very rewarding.

Also see this thread and this thread for further information.

(Thanks to user "trpost" for spotting these.)

Thank you for this information, and trpost for finding this.
I have updated ArchLinuxArm
The idea is, patching Arm package with code provided on Jack audio forum by Fernando Lopez-Lez, until a fix is submitted, although, I don't know if this is appropriate?, but we would be able to use Jack.

After learning how to patch, I did it, JACK is running on the PI, need to solve some issues, though.
When all is done, I will make a package with the patch available, for ArchLinuxArm (armv6h)
<br /> sudo jackd -d alsa -P hw:0,0<br /> jackd 0.124.1<br /> Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.<br /> jackd comes with ABSOLUTELY NO WARRANTY<br /> This is free software, and you are welcome to redistribute it<br /> under certain conditions; see the file COPYING for details</p> <p>JACK compiled with System V SHM support.<br /> loading driver ..<br /> creating alsa driver ... hw:0,0|-|1024|2|48000|0|0|nomon|swmeter|-|32bit<br /> configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods<br /> ALSA: final selected sample format for playback: 16bit little-endian<br /> ALSA: use 2 periods for playback

Thanks for looking into JACK.

I reported to Mr.Elendig, the maintainer of the AUR (Arch user repository)package about this, now I can only hope he'll contact you.
The package can be found here https://aur.archlinux.org/packages/moc-svn/

I tried to create a package myself, without success at the moment, I'll try some more, first time, so could take a while.

edit; should have used the reply button.