First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 181234
Alias:
Product:
Component:
Status: CLOSED
Resolution: FIXED
Assigned To: ppc64 architecture team <ppc64@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Markus Rothe <corsair@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
flist.s flist.s text/plain Markus Rothe 2007-06-07 19:18 0000 9.84 KB Details
flist.s flist.s text/plain Markus Rothe 2007-06-07 19:48 0000 63.70 KB Details
flist_patched.s flist_patched.s text/plain Markus Rothe 2007-06-09 07:43 0000 9.83 KB Details
cli-command.s cli-command.s text/plain Markus Rothe 2007-10-28 15:05 0000 74.47 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 181234 depends on: Show dependency tree
Bug 181234 blocks: 180117 197126
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.




View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-06-07 19:18 0000
Seperating this issue from bug #180117 to avoid spam for other arches.

While compiling media-sound/pulseaudio-0.9.6 we are running into this issue on
ppc64:


if powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..    -I../src
-I../src/modules -I../src/modules/rtp -I../src/modules/gconf 
-D_POSIX_PTHREAD_SEMANTICS   
-DPA_DLSEARCHPATH=\"/usr/lib64/pulse-0.9/modules/\"
-DPA_DEFAULT_CONFIG_DIR=\"/etc/pulse\" -DPA_BINARY=\"/usr/bin/pulseaudio\"
-DPA_SYSTEM_RUNTIME_PATH=\"/var/run/pulse\" -DAO_REQUIRE_CAS
'-DDEBUG_TRAP=__asm__("int $3")' -O2 -pipe -std=gnu99 -Wall -W -Wextra
-pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement
-Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes
-Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith
-Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -MT
flist_test-flist.o -MD -MP -MF ".deps/flist_test-flist.Tpo" -c -o
flist_test-flist.o `test -f 'pulsecore/flist.c' || echo './'`pulsecore/flist.c;
\
        then mv -f ".deps/flist_test-flist.Tpo" ".deps/flist_test-flist.Po";
else rm -f ".deps/flist_test-flist.Tpo"; exit 1; fi
{standard input}: Assembler messages:
{standard input}:97: Error: syntax error; found `,' but expected `('
{standard input}:97: Error: junk at end of line: `,9'
make[3]: *** [flist_test-flist.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/media-sound/pulseaudio-0.9.6/work/pulseaudio-0.9.6/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/media-sound/pulseaudio-0.9.6/work/pulseaudio-0.9.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/media-sound/pulseaudio-0.9.6/work/pulseaudio-0.9.6'
make: *** [all] Error 2


The instruction causing this is "lwz 0,10,9" (see attachment). According to [1]
on page 45 of the pdf (or page 35 if your looking at the pages *written* on the
page) the syntax is wrong. it should be something like "lwz RT,D(RA)". I don't
really know if this should just be "lwz 0,10(9)" or something really different.

Now.. where the heck comes this from? I don't see assembler code in the sources
so this is a compiler issue?


[1]
http://www.opensolaris.org/os/community/power_pc/powerpc_doc_library/archpub1.pdf

------- Comment #1 From Markus Rothe 2007-06-07 19:18:36 0000 -------
Created an attachment (id=121434) [details]
flist.s

------- Comment #2 From Markus Rothe 2007-06-07 19:31:05 0000 -------
compiling with -O0 works. -O1 breaks:

# pwd
/var/tmp/portage/media-sound/pulseaudio-0.9.6/work/pulseaudio-0.9.6/src
# gcc -save-temps -I. -c -O1 pulsecore/flist.c
flist.s: Assembler messages:
flist.s:91: Error: syntax error; found `,' but expected `('
flist.s:91: Error: junk at end of line: `,11'
# gcc -save-temps -I. -c -O0 pulsecore/flist.c
#

------- Comment #3 From Markus Rothe 2007-06-07 19:48:42 0000 -------
Created an attachment (id=121438) [details]
flist.s

now compiled with -g. The error is now in line 181.

does that ".file 3 "./pulsecore/atomic.h"" in line 154 mean, that the
/following/ lines are from that file? (and so the error comes from atomic.h?)

------- Comment #4 From Diego E. 'Flameeyes' Pettenò 2007-06-07 19:55:35 0000 -------
The code comes from libatomic_ops as I was afraid :/

------- Comment #5 From Diego E. 'Flameeyes' Pettenò 2007-06-07 19:56:18 0000 -------
Yeah I didn't need that but it's appreciated. The code in between #APP and
#NO_APP in GCC's output is inline assembler in the source code:

./src/atomic_ops/sysdeps/gcc/powerpc.h:    "lwz %0,%1\n"

now to get a fix, that's difficult.

------- Comment #6 From Markus Rothe 2007-06-07 20:07:07 0000 -------
Ah.. now I understand. The problem is dev-libs/libatomic_ops.. Uhm.. yea,
getting a fix is difficult...

------- Comment #7 From Luca Barbato 2007-06-08 22:45:45 0000 -------
aops 1.2 seems to build and pass 3/4 tests, yet I hadn't tracked why the test
failed...

------- Comment #8 From Luca Barbato 2007-06-08 23:24:31 0000 -------
aops fixed in order to pass at least the tests, _should_ work fine

------- Comment #9 From Markus Rothe 2007-06-09 07:43:12 0000 -------
sorry, this did not fix the pulseaudio error:

flist.s: Assembler messages:
flist.s:97: Error: offset not a multiple of 4
flist.s:97: Error: syntax error; found `,' but expected `('
flist.s:97: Error: junk at end of line: `,9'

------- Comment #10 From Markus Rothe 2007-06-09 07:43:35 0000 -------
Created an attachment (id=121544) [details]
flist_patched.s

------- Comment #11 From Joe Jezak 2007-09-10 19:13:14 0000 -------
The pulseaudio error was a different bug.  I've patched libatomic_ops to fix
that one (it hit ppc too) so this can be closed.

------- Comment #12 From Markus Rothe 2007-10-28 15:04:34 0000 -------
I tried to compile media-sound/pulseaudio-0.9.6-r1 for bug #197126 and ran into
this issue:

 powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/include/liboil-0.3 -I../src -I../src/modules -I../src/modules/rtp
-I../src/modules/gconf -D_POSIX_PTHREAD_SEMANTICS
-DPA_DLSEARCHPATH=\"/usr/lib64/pulse-0.9/modules/\"
-DPA_DEFAULT_CONFIG_DIR=\"/etc/pulse\" -DPA_BINARY=\"/usr/bin/pulseaudio\"
-DPA_SYSTEM_RUNTIME_PATH=\"/var/run/pulse\" -DAO_REQUIRE_CAS
"-DDEBUG_TRAP=__asm__(\"int \$3\")" -O2 -pipe -std=gnu99 -Wall -W -Wextra
-pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement
-Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes
-Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith
-Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -MT
libpulsecore_la-cli-command.lo -MD -MP -MF
.deps/libpulsecore_la-cli-command.Tpo -c pulsecore/cli-command.c  -fPIC -DPIC
-o .libs/libpulsecore_la-cli-command.o
./pulsecore/atomic.h: In function 'pa_atomic_load':
./pulsecore/atomic.h:45: warning: passing argument 1 of 'AO_load_acquire'
discards qualifiers from pointer target type
{standard input}: Assembler messages:
{standard input}:3588: Error: operand out of domain (31 is not a multiple of 4)
{standard input}:3588: Error: syntax error; found `,' but expected `('
{standard input}:3588: Error: junk at end of line: `,0'
{standard input}:3598: Error: operand out of domain (31 is not a multiple of 4)
{standard input}:3598: Error: syntax error; found `,' but expected `('
{standard input}:3598: Error: junk at end of line: `,9'
make[3]: *** [libpulsecore_la-cli-command.lo] Error 1
make[3]: Leaving directory
`/var/tmp/paludis/media-sound/pulseaudio-0.9.6-r1/work/pulseaudio-0.9.6/src'

------- Comment #13 From Markus Rothe 2007-10-28 15:05:33 0000 -------
Created an attachment (id=134537) [details]
cli-command.s

the preproccessed source

------- Comment #14 From Joe Jezak 2007-11-11 09:19:10 0000 -------
Which libatomic_ops is installed?

------- Comment #15 From Markus Rothe 2007-11-11 16:12:24 0000 -------
(In reply to comment #14)
> Which libatomic_ops is installed?

dev-libs/libatomic_ops-1.2-r1

------- Comment #16 From Brent Baude 2008-01-01 02:42:29 0000 -------
@corsair - I keyworded libatomic_ops-1.2-r1 ppc64 today as it compiled fine and
also pulseaudio.  Wanna close this sucker?

------- Comment #17 From Markus Rothe 2008-01-06 08:12:28 0000 -------
yes, compiles fine. I *guess* it happened here due to -mcpu=power3 or some
other non-standart things with the install. Cannot say for sure, as the hard
drive is now in nirvana ;-)

thanks for looking into this.

First Last Prev Next    No search results available      Search page      Enter new bug