[pulseaudio-tickets] [Bug 95432] New: sparc64 is not properly detected as 64 bit due to incorrect architecture mapping
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon May 16 19:03:12 UTC 2016
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: pulseaudio-bugs at lists.freedesktop.org
Reporter: glaubitz at physik.fu-berlin.de
QA Contact: pulseaudio-bugs at lists.freedesktop.org
CC: lennart at poettering.net
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 at landau:~# echo | gcc -E -dM - |grep __sparc64__
root at landau:~# echo | gcc -E -dM - |grep __sparc__
#define __sparc__ 1
root at landau:~# echo | gcc -E -dM - |grep __arch64__
#define __arch64__ 1
root at landau:~# uname -m
sparc64
root at landau:~# dpkg --print-architecture
sparc64
root at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20160516/2338fcb8/attachment.html>
More information about the pulseaudio-bugs
mailing list