Build fails on RPI3 -> asm-primitives.cpp.o failed
Issue #347
new
ENVIRONMENT: RPi3 (armv7l), Raspbian (4.9.24-v7+), x265 2.4 gcc version 6.3.0 20170415 (Raspbian 6.3.0-14+rpi1)
BUILD ERROR: The output is extremely long, http://termbin.com/96l8 (incomplete) but below is an excerpt.
In file included from /tmp/tmp.wz9IgryGcK/x265_2.4/source/common/primitives.h:34:0,
from /tmp/tmp.wz9IgryGcK/x265_2.4/source/common/arm/asm-primitives.cpp:28:
/tmp/tmp.wz9IgryGcK/x265_2.4/source/common/arm/asm-primitives.cpp: In function ‘void x265_12bit::setupAssemblyPrimitives(x265_12bit::EncoderPrimitives&, int)’:
<command-line>:0:9: error: ‘x265_12bit_ssim_4x4x2_core_neon’ was not declared in this scope
/tmp/tmp.wz9IgryGcK/x265_2.4/source/common/cpu.h:31:28: note: in definition of macro ‘PFX3’
#define PFX3(prefix, name) prefix ## _ ## name
^~~~~~
/tmp/tmp.wz9IgryGcK/x265_2.4/source/common/cpu.h:33:28: note: in expansion of macro ‘PFX2’
#define PFX(name) PFX2(X265_NS, name)
^~~~
/tmp/tmp.wz9IgryGcK/x265_2.4/source/common/cpu.h:33:33: note: in expansion of macro ‘X265_NS’
#define PFX(name) PFX2(X265_NS, name)
^~~~~~~
/tmp/tmp.wz9IgryGcK/x265_2.4/source/common/arm/asm-primitives.cpp:48:29: note: in expansion of macro ‘PFX’
p.ssim_4x4x2_core = PFX(ssim_4x4x2_core_neon);
^~~
<command-line>:0:9: error: ‘x265_12bit_addAvg_4x4_neon’ was not declared in this scope
STEPS:
DIR=$(mktemp -d) && cd ${DIR} && \
curl -sL https://download.videolan.org/pub/videolan/x265/x265_2.4.tar.gz | tar -zx && \
cd x265_2.4/build/linux && ./multilib.sh
The error seems linked only to 12bit and 10bit builds, since following those build for the 8bit library works fine.
It seems related to macro expansions and arm/asm-primitives.cpp
.
What am I missing?