[pulseaudio-tickets] [PulseAudio] #338: PowerPC build broken
PulseAudio
trac-noreply at tango.0pointer.de
Fri Aug 8 01:19:05 PDT 2008
#338: PowerPC build broken
----------------------+-----------------------------------------------------
Reporter: rdiez | Owner: lennart
Type: defect | Status: new
Priority: normal | Milestone:
Component: libpulse | Severity: normal
Keywords: |
----------------------+-----------------------------------------------------
I'm getting the following error messages when trying to cross-compile
libpulse for an embedded 32-bit PowerPC target:
------------8<------------8<------------8<------------8<------------
In file included from
/cygdrive/c/Code/External/pulseaudio-0.9.11/release/libatomic_ops-1.2-bin/include/atomic_ops.h:214,
from ./pulsecore/atomic.h:417,
from pulsecore/flist.c:28:
{standard input}: Assembler messages:
{standard input}:355: Error: syntax error; found `,' but expected `('
{standard input}:355: Error: junk at end of line: `,0'
{standard input}:920: Error: syntax error; found `,' but expected `('
{standard input}:920: Error: junk at end of line: `,0'
------------8<------------8<------------8<------------8<------------
The problem is in libatomic_ops 1.2 and has already been fixed in that
library. The library has moved and is now maintained as part of a bigger
project, the new address is:
http://sourceforge.net/projects/bdwgc
Unfortunately, I could not find a link to download a newer version of just
the libatomic_ops library.
For PulseAudio, file powerpc.h needs to be updated to fix the PowerPC
build. The file is here:
http://bdwgc.cvs.sourceforge.net/bdwgc/bdwgc/libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/powerpc.h?view=log
The recommended libatomic_ops-1.2 for PulseAudio at this address has
version 1.1 of powerpc.h :
http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-1.2.tar.gz
The problem was apparently fixed between versions 1.3 and 1.4 of powerpc.h
These are some options I can think of:
- Provide a patched-up version of libatomic_ops-1.2.tar.gz in
pulseaudio.org
- Provide a new version of libatomic_ops with all recent improvements.
- Make PulseAudio dependent on the whole bdwgc project.
This is the patch I use against libatomic_ops-1.2.tar.gz :
*** src/atomic_ops/sysdeps/gcc/powerpc.h.old Wed Mar 29 00:49:14 2006
--- src/atomic_ops/sysdeps/gcc/powerpc.h Thu Aug 7 15:46:50 2008
***************
*** 72,78 ****
/* registers. I always got "impossible constraint" when I */
/* tried the "y" constraint. */
__asm__ __volatile__ (
! "lwz %0,%1\n"
"cmpw cr7,%0,%0\n"
"bne- cr7,1f\n"
"1: isync\n"
--- 72,78 ----
/* registers. I always got "impossible constraint" when I */
/* tried the "y" constraint. */
__asm__ __volatile__ (
! "lwz%X1 %0,%1\n"
"cmpw cr7,%0,%0\n"
"bne- cr7,1f\n"
"1: isync\n"
--
Ticket URL: <http://pulseaudio.org/ticket/338>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server
More information about the pulseaudio-bugs
mailing list