Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 157349

Summary: media-sound/jack-audio-connection-kit - jackd does not work on ppc
Product: Gentoo Linux Reporter: David Gurvich <david.gurvich>
Component: Current packagesAssignee: Professional Audio Applications Maintainers <proaudio>
Status: VERIFIED TEST-REQUEST    
Severity: major CC: ppc
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Gurvich 2006-12-06 10:24:26 UTC
jackd does not start on ppc.

Using realtime the following error message is generated:
jackd -R -dalsa
----------------------------------------------------
JACK compiled with System V SHM support.
cannot use real-time scheduling (FIFO at priority 10) [for thread 805433200, from thread 805433200] (1: Operation not permitted)
cannot create engine
----------------------------------------------------
without realtime:
jackd -dalsa
----------------------------------------------------
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
Sorry. The audio interface "hw:0" doesn't support any of the hardware sample formats that JACK's alsa-driver can use.
ALSA: cannot configure capture channel
cannot load driver module alsa
no message buffer overruns

-------------------------------------------------------------
emerge --info
--------------------
Portage 2.1.2_rc2-r5 (default-linux/ppc/ppc32/2006.0/G4, gcc-4.1.1, glibc-2.4-r3, 2.6.18.5 ppc)
=================================================================
System uname: 2.6.18.5 ppc 7455, altivec supported
Gentoo Base System version 1.12.4
Last Sync: Wed, 06 Dec 2006 15:00:01 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mlong-double-128"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mlong-double-128"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_US de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/migrated-java-experimental-overlay /usr/local/overlays/gcj-overlay /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa alsa_cards_powermac altivec apache2 apm berkdb bitmap-fonts bogofilter bonobo cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr eds elibc_glibc emboss encode esd foomaticdb fortran gcj gdbm gif glitz gnome gpm gstreamer gtk gtkhtml hal iconv imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jack java jpeg kde kdehiddenvisibility kernel_linux ldap libg++ libwww linguas_de linguas_en_US mad mikmod motif mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre perl png pppd python qt qt3 qt4 quicktime readline reflection ruby sdl seamonkey session spell spl ssl svg tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_ati video_cards_radeon vorbis xfs xml xorg xprint xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Joe Jezak (RETIRED) gentoo-dev 2006-12-06 10:43:17 UTC
With -R, it works only if I'm root, there's probably a group or some kind of control for allowing users to ask for the priority requested.  As for the other error, try another bitrate (44100 maybe?) it works fine with snd-aoa at 480000, but perhaps the older Power Mac driver doesn't support it?

Either way, jackd does work fine on ppc here.
Comment 2 David Gurvich 2006-12-06 10:56:28 UTC
Same error at every bitrate, using root doesn't matter. For realtime with normal user add "options realtime gid=18" to /etc/modules.d/realtime, that allows members of audio group to use realtime.


Comment 3 Joe Jezak (RETIRED) gentoo-dev 2006-12-06 11:09:28 UTC
Does adding -v help at all to see what the options are?
Comment 4 David Gurvich 2006-12-06 11:28:03 UTC
The following results are typical, realtime fails regardless.
--------------------------------------
jackd -v -dalsa -p512 -r44100 -n3 -P
--------------------------------------
getting driver descriptor from /usr/lib/jack/jack_alsa.so
getting driver descriptor from /usr/lib/jack/jack_dummy.so
jackd 0.102.20
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with System V SHM support.
server `default' registered
loading driver ..
apparent rate = 44100
creating alsa driver ... hw:0|-|512|3|44100|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 44100Hz, period = 512 frames, buffer = 3 periods
Sorry. The audio interface "hw:0" doesn't support any of the hardware sample formats that JACK's alsa-driver can use.
ALSA: cannot configure playback channel
cannot load driver module alsa
registered builtin port type 32 bit float mono audio
registered builtin port type 8 bit raw midi
clock source = system clock via gettimeofday
running with uid=0 and euid=0, will not try to use capabilites
new client: alsa_pcm, id = 1 type 1 @ 0x100256f0 fd = -1
starting server engine shutdown
freeing shared port segments
stopping server thread
last xrun delay: 0.000 usecs
max delay reported by backend: 0.000 usecs
freeing engine shared memory
max usecs: 0.000, engine deleted
no message buffer overruns
cleaning up shared memory
cleaning up files
unregistering server `default'
Comment 5 David Gurvich 2006-12-06 12:28:52 UTC
Chroot into a debian install and starting jackd there works.
------------------------------------------
jackd -R -dalsa -r44100 -n3 -S
------------------------------------------
jackd 0.101.1
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with System V SHM support.
loading driver ..
apparent rate = 44100
creating alsa driver ... hw:0|hw:0|1024|3|44100|0|0|nomon|swmeter|-|16bit
control device hw:0
configuring for 44100Hz, period = 1024 frames, buffer = 3 periods
nperiods = 3 for capture
nperiods = 3 for playback
Comment 6 David Gurvich 2006-12-06 12:46:48 UTC
copying jackd and some of the libraries from the debian chroot works.
Comment 7 Joe Jezak (RETIRED) gentoo-dev 2007-05-17 11:35:17 UTC
Can you check to see if there's a mismatch between the ALSA version in your kernel and the alsa-libs you have emerged?
Comment 8 N. Dan Smith 2007-06-30 17:47:02 UTC
With the older powermac sound driver I am experiencing the same problem as the reporter (same error messages).

Portage 2.1.3_rc6 (default-linux/ppc/ppc32/2007.0/G4, gcc-4.1.2, glibc-2.5-r2, 2.6.20-gentoo-r5 ppc)
=================================================================
System uname: 2.6.20-gentoo-r5 ppc 7447A, altivec supported
Gentoo Base System release 2.0.0_alpha3
Timestamp of tree: Sat, 30 Jun 2007 16:30:11 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/gnustep"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa altivec berkdb bitmap-fonts branding cdr cli cracklib crypt cups dri dvd flac fortran gdbm gnome gpm gtk iconv ipv6 isdnlog libg++ midi mozbranding mudflap ncurses nls nptl nptlonly ogg opengl openmp pcre perl ppc pppd python readline reflection session spell spl ssl tcpd theora truetype-fonts type1-fonts unicode vorbis xorg zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 David Gurvich 2007-10-28 20:46:47 UTC
I've found the only driver that jack will work with on my system, portaudio.  All others get the message no driver found.
Comment 10 Joe Jezak (RETIRED) gentoo-dev 2009-02-27 20:17:54 UTC
Can you still reproduce this?
Comment 11 Alexis Ballier gentoo-dev 2009-06-29 17:56:42 UTC
(In reply to comment #10)
> Can you still reproduce this?

please try with newer jack versions.
Comment 12 Joe Jezak (RETIRED) gentoo-dev 2009-07-22 15:53:46 UTC
Closed, no response, works for me.