Bug#923650: x265: Please don't build with -DX265_ARCH_POWER8=1 on ppc64
Source: x265
Version: 2.9-4
Severity: normal
User: debian-powerpc@lists.debian.org
Usertags: ppc64
Hello!
x265 currently builds with POWER8 support enabled on ppc64 [1]
which means that X265_ARCH_POWER8 is defined during build:
cd /<<PKGBUILDDIR>>/x265-10bit/common && /usr/bin/c++ -DEXPORT_C_API=0 -DHAVE_ALTIVEC=0 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=1 -DPPC64=1 -DX265_ARCH_POWER8=1 -DX265_ARCH_POWER=1 -DX265_DEPTH=10 -DX265_NS=x265_10bit -D__STDC_LIMIT_MACROS=1 -I/<<PKGBUILDDIR>>/source/. -I/<<PKGBUILDDIR>>/source/common -I/<<PKGBUILDDIR>>/source/encoder -I/<<PKGBUILDDIR>>/x265-10bit -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wshadow -std=gnu++98 -fPIC -Wno-array-bounds -ffast-math -fno-exceptions -mcpu=power8 -o CMakeFiles/common.dir/dct.cpp.o -c /<<PKGBUILDDIR>>/source/common/dct.cpp
While the buildd is actually a POWER8 machine, the official
baseline of the ppc64 port is POWER5. We have user reports of
multimedia applications crashing on their POWER5 machines [2]
which is not surprising as a lot of these applications link
against libx265.
Thus, the x265 package needs to be patched not to define
X265_ARCH_POWER8 when building on ppc64.
Adrian
> [1] https://buildd.debian.org/status/fetch.php?pkg=x265&arch=ppc64&ver=2.9-4&stamp=1548413561&raw=0
> [2] https://lists.debian.org/debian-powerpc/2019/03/msg00002.html
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: