https://bugs.freedesktop.org/show_bug.cgi?id=95432
Bug ID: 95432
Summary: sparc64 is not properly detected as 64 bit due to
incorrect architecture mapping
Product: PulseAudio
Version: unspecified
Hardware: SPARC
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: core
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
Created attachment 123794
--> https://bugs.freedesktop.org/attachment.cgi?id=123794&action=edit
[PATCH] pulsecore: Fix incorrect architecture mapping on sparc64.
Hello!
While debugging build problems of Firefox on sparc64 in Debian [1], I
discovered that one of the reasons the build is failing is an incorrect
detection of the architecture due to the wrong assumption that gcc defines
__sparc64__ on sparc64.
However, this is not correct as can be easily verified:
root@landau:~# echo | gcc -E -dM - |grep __sparc64__
root@landau:~# echo | gcc -E -dM - |grep __sparc__
#define __sparc__ 1
root@landau:~# echo | gcc -E -dM - |grep __arch64__
#define __arch64__ 1
root@landau:~# uname -m
sparc64
root@landau:~# dpkg --print-architecture
sparc64
root@landau:~#
I have discovered the same problem in systemd, too, and have already opened a
pull request to fix the problem [2]. The attached patch fixes the bug for
pulseaudio.
This particular bug might the reason why pulseaudio's testsuite fails on
sparc64 with [3]:
FAIL: once-test
===============
Running suite(s): Once
0%: Checks: 1, Failures: 1, Errors: 0
tests/once-test.c:74:F:once:once_test:0: Assertion
'pthread_setaffinity_np(pthread_self(), sizeof(mask), &mask) == 0' failed
FAIL once-test (exit status: 1)
Cheers,
Adrian
> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824449
> [2] https://github.com/systemd/systemd/pull/3274
> [3]
> https://buildd.debian.org/status/fetch.php?pkg=pulseaudio&arch=sparc64&ver=8.0-3&stamp=1461452303
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug._______________________________________________
pulseaudio-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs