Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x265 build fails in Docker with arm64 architecture #133

Open
matteocontrini opened this issue Mar 22, 2022 · 3 comments
Open

x265 build fails in Docker with arm64 architecture #133

matteocontrini opened this issue Mar 22, 2022 · 3 comments

Comments

@matteocontrini
Copy link

I'm trying to build ffmpeg with this script within Docker with the arm64 architecture. I'm using a Dockerfile which is almost identical to the one in this repository but it takes the script at version 1.34.

The command I'm using is a buildx command:

docker buildx build --platform linux/arm64 --load .

I'm running the command on macOS with M1 (hence if I simply use docker build it fails in the same way).

The build fails when trying to compile x265. The full output follows.

Thanks!


 > [build 4/4] RUN curl -L -o build-ffmpeg https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/v1.34/build-ffmpeg     && chmod u+x build-ffmpeg     && SKIPINSTALL=yes ./build-ffmpeg --build --enable-gpl-and-non-free:
#8 0.135   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#8 0.135                                  Dload  Upload   Total   Spent    Left  Speed
100 31024  100 31024    0     0   142k      0 --:--:-- --:--:-- --:--:--  142k
#8 0.354 ffmpeg-build-script v1.34
#8 0.354 =========================
#8 0.354
#8 0.354 Using 4 make jobs simultaneously.
#8 0.355 With GPL and non-free codecs
#8 0.358 cargo not installed. rav1e encoder will not be available.
#8 0.359
#8 0.359 building giflib - version 5.2.1
#8 0.359 =======================
#8 0.359 Downloading https://netcologne.dl.sourceforge.net/project/giflib/giflib-5.2.1.tar.gz as giflib-5.2.1.tar.gz
#8 0.709 ... Done
#8 0.752 Extracted giflib-5.2.1.tar.gz
#8 0.752 $ make -j 4
#8 1.289 $ make PREFIX=/build/workspace install
#8 1.306
#8 1.306 building pkg-config - version 0.29.2
#8 1.306 =======================
#8 1.306 Downloading https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz as pkg-config-0.29.2.tar.gz
#8 3.676 ... Done
#8 3.771 Extracted pkg-config-0.29.2.tar.gz
#8 3.772 $ ./configure --silent --prefix=/build/workspace --with-pc-path=/build/workspace/lib/pkgconfig --with-internal-glib
#8 15.66 $ make -j 4
#8 21.66 $ make install
#8 21.86
#8 21.86 building yasm - version 1.3.0
#8 21.86 =======================
#8 21.86 Downloading https://github.com/yasm/yasm/releases/download/v1.3.0/yasm-1.3.0.tar.gz as yasm-1.3.0.tar.gz
#8 22.49 ... Done
#8 22.57 Extracted yasm-1.3.0.tar.gz
#8 22.57 $ ./configure --prefix=/build/workspace
#8 24.18 $ make -j 4
#8 27.42 $ make install
#8 27.59
#8 27.59 building nasm - version 2.15.05
#8 27.59 =======================
#8 27.59 Downloading https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.xz as nasm-2.15.05.tar.xz
#8 29.06 ... Done
#8 29.19 Extracted nasm-2.15.05.tar.xz
#8 29.19 $ ./configure --prefix=/build/workspace --disable-shared --enable-static
#8 34.72 $ make -j 4
#8 37.60 $ make install
#8 37.61
#8 37.61 building zlib - version 1.2.11
#8 37.61 =======================
#8 37.61 Downloading https://www.zlib.net/zlib-1.2.11.tar.gz as zlib-1.2.11.tar.gz
#8 38.95 ... Done
#8 39.00 Extracted zlib-1.2.11.tar.gz
#8 39.00 $ ./configure --static --prefix=/build/workspace
#8 39.22 $ make -j 4
#8 39.76 $ make install
#8 39.77
#8 39.77 building m4 - version 1.4.19
#8 39.77 =======================
#8 39.77 Downloading https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.gz as m4-1.4.19.tar.gz
#8 40.91 ... Done
#8 41.02 Extracted m4-1.4.19.tar.gz
#8 41.02 $ ./configure --prefix=/build/workspace
#8 59.26 $ make -j 4
#8 62.75 $ make install
#8 63.10
#8 63.10 building autoconf - version 2.71
#8 63.10 =======================
#8 63.10 Downloading https://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.gz as autoconf-2.71.tar.gz
#8 64.17 ... Done
#8 64.25 Extracted autoconf-2.71.tar.gz
#8 64.25 $ ./configure --prefix=/build/workspace
#8 65.44 $ make -j 4
#8 65.63 $ make install
#8 65.75
#8 65.75 building automake - version 1.16.5
#8 65.75 =======================
#8 65.75 Downloading https://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.gz as automake-1.16.5.tar.gz
#8 66.83 ... Done
#8 66.92 Extracted automake-1.16.5.tar.gz
#8 66.92 $ ./configure --prefix=/build/workspace
#8 68.15 $ make -j 4
#8 68.36 $ make install
#8 68.50
#8 68.50 building libtool - version 2.4.6
#8 68.50 =======================
#8 68.50 Downloading https://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz as libtool-2.4.6.tar.gz
#8 69.88 ... Done
#8 69.94 Extracted libtool-2.4.6.tar.gz
#8 69.94 $ ./configure --prefix=/build/workspace --enable-static --disable-shared
#8 73.06 $ make -j 4
#8 73.60 $ make install
#8 73.88
#8 73.88 building openssl - version 1.1.1m
#8 73.88 =======================
#8 73.88 Downloading https://www.openssl.org/source/openssl-1.1.1m.tar.gz as openssl-1.1.1m.tar.gz
#8 74.21 ... Done
#8 74.45 Extracted openssl-1.1.1m.tar.gz
#8 74.45 $ ./config --prefix=/build/workspace --openssldir=/build/workspace --with-zlib-include=/build/workspace/include/ --with-zlib-lib=/build/workspace/lib no-shared zlib
#8 75.04 $ make -j 4
#8 101.7 $ make install_sw
#8 102.4
#8 102.4 building cmake - version 3.22.1
#8 102.4 =======================
#8 102.4 Downloading https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1.tar.gz as cmake-3.22.1.tar.gz
#8 103.4 ... Done
#8 104.0 Extracted cmake-3.22.1.tar.gz
#8 104.0 $ ./configure --prefix=/build/workspace --parallel=4 -- -DCMAKE_USE_OPENSSL=OFF
#8 166.8 $ make -j 4
#8 331.7 $ make install
#8 334.2
#8 334.2 building dav1d - version 0.9.2
#8 334.2 =======================
#8 334.2 Downloading https://code.videolan.org/videolan/dav1d/-/archive/0.9.2/dav1d-0.9.2.tar.gz as dav1d-0.9.2.tar.gz
#8 334.8 ... Done
#8 334.8 Extracted dav1d-0.9.2.tar.gz
#8 334.8 $ meson build --prefix=/build/workspace --buildtype=release --default-library=static --libdir=/build/workspace/lib
#8 335.5 $ ninja -C build
#8 342.4 $ ninja -C build install
#8 342.5
#8 342.5 building svtav1 - version 0.9.0
#8 342.5 =======================
#8 342.5 Downloading https://github.com/AOMediaCodec/SVT-AV1/archive/refs/tags/v0.9.0.tar.gz as svtav1-0.9.0.tar.gz
#8 344.1 ... Done
#8 344.3 Extracted svtav1-0.9.0.tar.gz
#8 344.3 $ cmake -DCMAKE_INSTALL_PREFIX=/build/workspace -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../.. -GUnix Makefiles -DCMAKE_BUILD_TYPE=Release
#8 345.2 $ make -j 4
#8 364.9 $ make install
#8 365.1 $ cp SvtAv1Enc.pc /build/workspace/lib/pkgconfig/
#8 365.1 $ cp SvtAv1Dec.pc /build/workspace/lib/pkgconfig/
#8 365.1
#8 365.1 building x264 - version 5db6aa6
#8 365.1 =======================
#8 365.1 Downloading https://code.videolan.org/videolan/x264/-/archive/5db6aa6cab1b146e07b60cc1736a01f21da01154/x264-5db6aa6cab1b146e07b60cc1736a01f21da01154.tar.gz as x264-5db6aa6.tar.gz
#8 365.6 ... Done
#8 365.6 Extracted x264-5db6aa6.tar.gz
#8 365.6 $ ./configure --prefix=/build/workspace --enable-static --enable-pic CXXFLAGS=-fPIC
#8 366.3 $ make -j 4
#8 379.6 $ make install
#8 379.7 $ make install-lib-static
#8 379.7
#8 379.7 building x265 - version 3.5
#8 379.7 =======================
#8 379.7 Downloading https://github.com/videolan/x265/archive/Release_3.5.tar.gz as x265-3.5.tar.gz
#8 380.5 ... Done
#8 380.6 Extracted x265-3.5.tar.gz
#8 380.6 $ cmake ../../../source -DCMAKE_INSTALL_PREFIX=/build/workspace -DENABLE_SHARED=OFF -DBUILD_SHARED_LIBS=OFF -DHIGH_BIT_DEPTH=ON -DENABLE_HDR10_PLUS=ON -DEXPORT_C_API=OFF -DENABLE_CLI=OFF -DMAIN12=ON
#8 381.1 $ make -j 4
#8 385.3 Failed to Execute make -j 4
#8 385.3 [  1%] Building CXX object dynamicHDR10/CMakeFiles/dynamicHDR10.dir/json11/json11.cpp.o
#8 385.3 [  3%] Building CXX object dynamicHDR10/CMakeFiles/dynamicHDR10.dir/JsonHelper.cpp.o
#8 385.3 [  6%] Building CXX object common/CMakeFiles/common.dir/aarch64/asm-primitives.cpp.o
#8 385.3 [  6%] Building CXX object encoder/CMakeFiles/encoder.dir/analysis.cpp.o
#8 385.3 c++: error: unrecognized command line option '-mfloat-abi=hard'
#8 385.3 c++: error: unrecognized command line option '-mfloat-abi=hard'
#8 385.3 c++: error: unrecognized command line option '-mfpu=neon'
#8 385.3 c++: error: unrecognized command line option '-marm'
#8 385.3 c++: error: unrecognized command line option '-mfpu=neon'
#8 385.3 c++: error: unrecognized command line option '-marm'
#8 385.3 make[2]: *** [dynamicHDR10/CMakeFiles/dynamicHDR10.dir/build.make:76: dynamicHDR10/CMakeFiles/dynamicHDR10.dir/json11/json11.cpp.o] Error 1
#8 385.3 make[2]: *** Waiting for unfinished jobs....
#8 385.3 make[2]: *** [dynamicHDR10/CMakeFiles/dynamicHDR10.dir/build.make:90: dynamicHDR10/CMakeFiles/dynamicHDR10.dir/JsonHelper.cpp.o] Error 1
#8 385.3 make[1]: *** [CMakeFiles/Makefile2:246: dynamicHDR10/CMakeFiles/dynamicHDR10.dir/all] Error 2
#8 385.3 make[1]: *** Waiting for unfinished jobs....
#8 385.3 [  8%] Building CXX object encoder/CMakeFiles/encoder.dir/search.cpp.o
#8 385.3 [  9%] Building CXX object encoder/CMakeFiles/encoder.dir/bitcost.cpp.o
#8 385.3 In file included from /build/packages/x265-3.5/source/common/primitives.h:36,
#8 385.3                  from /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:26:
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp: In function 'void x265_12bit::setupAssemblyPrimitives(x265_12bit::EncoderPrimitives&, int)':
#8 385.3 <command-line>: error: 'x265_12bit_pixel_satd_4x4_neon' was not declared in this scope; did you mean 'x265_pixel_satd_4x4_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:104:33: note: in expansion of macro 'PFX'
#8 385.3   104 |         p.pu[LUMA_4x4].satd   = PFX(pixel_satd_4x4_neon);
#8 385.3       |                                 ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_satd_4x8_neon' was not declared in this scope; did you mean 'x265_pixel_satd_4x8_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:105:33: note: in expansion of macro 'PFX'
#8 385.3   105 |         p.pu[LUMA_4x8].satd   = PFX(pixel_satd_4x8_neon);
#8 385.3       |                                 ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_satd_4x16_neon' was not declared in this scope; did you mean 'x265_pixel_satd_4x16_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:106:33: note: in expansion of macro 'PFX'
#8 385.3   106 |         p.pu[LUMA_4x16].satd  = PFX(pixel_satd_4x16_neon);
#8 385.3       |                                 ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_satd_8x4_neon' was not declared in this scope; did you mean 'x265_pixel_satd_8x4_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:107:33: note: in expansion of macro 'PFX'
#8 385.3   107 |         p.pu[LUMA_8x4].satd   = PFX(pixel_satd_8x4_neon);
#8 385.3       |                                 ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_satd_8x8_neon' was not declared in this scope; did you mean 'x265_pixel_satd_8x8_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:108:33: note: in expansion of macro 'PFX'
#8 385.3   108 |         p.pu[LUMA_8x8].satd   = PFX(pixel_satd_8x8_neon);
#8 385.3       |                                 ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_satd_12x16_neon' was not declared in this scope; did you mean 'x265_pixel_satd_12x16_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:109:33: note: in expansion of macro 'PFX'
#8 385.3   109 |         p.pu[LUMA_12x16].satd = PFX(pixel_satd_12x16_neon);
#8 385.3       |                                 ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_satd_4x32_neon' was not declared in this scope; did you mean 'x265_pixel_satd_4x32_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:121:62: note: in expansion of macro 'PFX'
#8 385.3   121 |         p.chroma[X265_CSP_I422].pu[CHROMA_422_4x32].satd   = PFX(pixel_satd_4x32_neon);
#8 385.3       |                                                              ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_satd_12x32_neon' was not declared in this scope; did you mean 'x265_pixel_satd_12x32_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:124:62: note: in expansion of macro 'PFX'
#8 385.3   124 |         p.chroma[X265_CSP_I422].pu[CHROMA_422_12x32].satd  = PFX(pixel_satd_12x32_neon);
#8 385.3       |                                                              ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_avg_pp_4x4_neon' was not declared in this scope; did you mean 'x265_pixel_avg_pp_4x4_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:126:52: note: in expansion of macro 'PFX'
#8 385.3   126 |         p.pu[LUMA_4x4].pixelavg_pp[NONALIGNED]   = PFX(pixel_avg_pp_4x4_neon);
#8 385.3       |                                                    ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_avg_pp_4x8_neon' was not declared in this scope; did you mean 'x265_pixel_avg_pp_4x8_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:127:52: note: in expansion of macro 'PFX'
#8 385.3   127 |         p.pu[LUMA_4x8].pixelavg_pp[NONALIGNED]   = PFX(pixel_avg_pp_4x8_neon);
#8 385.3       |                                                    ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_avg_pp_4x16_neon' was not declared in this scope; did you mean 'x265_pixel_avg_pp_4x16_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:128:52: note: in expansion of macro 'PFX'
#8 385.3   128 |         p.pu[LUMA_4x16].pixelavg_pp[NONALIGNED]  = PFX(pixel_avg_pp_4x16_neon);
#8 385.3       |                                                    ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_avg_pp_8x4_neon' was not declared in this scope; did you mean 'x265_pixel_avg_pp_8x4_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:129:52: note: in expansion of macro 'PFX'
#8 385.3   129 |         p.pu[LUMA_8x4].pixelavg_pp[NONALIGNED]   = PFX(pixel_avg_pp_8x4_neon);
#8 385.3       |                                                    ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_avg_pp_8x8_neon' was not declared in this scope; did you mean 'x265_pixel_avg_pp_8x8_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:130:52: note: in expansion of macro 'PFX'
#8 385.3   130 |         p.pu[LUMA_8x8].pixelavg_pp[NONALIGNED]   = PFX(pixel_avg_pp_8x8_neon);
#8 385.3       |                                                    ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_avg_pp_8x16_neon' was not declared in this scope; did you mean 'x265_pixel_avg_pp_8x16_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:131:52: note: in expansion of macro 'PFX'
#8 385.3   131 |         p.pu[LUMA_8x16].pixelavg_pp[NONALIGNED]  = PFX(pixel_avg_pp_8x16_neon);
#8 385.3       |                                                    ^~~
#8 385.3 <command-line>: error: 'x265_12bit_pixel_avg_pp_8x32_neon' was not declared in this scope; did you mean 'x265_pixel_avg_pp_8x32_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:132:52: note: in expansion of macro 'PFX'
#8 385.3   132 |         p.pu[LUMA_8x32].pixelavg_pp[NONALIGNED]  = PFX(pixel_avg_pp_8x32_neon);
#8 385.3       |                                                    ^~~
#8 385.3 <command-line>: error: 'x265_12bit_sad_x3_8x4_neon' was not declared in this scope; did you mean 'x265_sad_x3_8x4_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:142:35: note: in expansion of macro 'PFX'
#8 385.3   142 |         p.pu[LUMA_8x4].sad_x3   = PFX(sad_x3_8x4_neon);
#8 385.3       |                                   ^~~
#8 385.3 <command-line>: error: 'x265_12bit_sad_x3_8x8_neon' was not declared in this scope; did you mean 'x265_sad_x3_8x8_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:143:35: note: in expansion of macro 'PFX'
#8 385.3   143 |         p.pu[LUMA_8x8].sad_x3   = PFX(sad_x3_8x8_neon);
#8 385.3       |                                   ^~~
#8 385.3 <command-line>: error: 'x265_12bit_sad_x3_8x16_neon' was not declared in this scope; did you mean 'x265_sad_x3_8x16_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:144:35: note: in expansion of macro 'PFX'
#8 385.3   144 |         p.pu[LUMA_8x16].sad_x3  = PFX(sad_x3_8x16_neon);
#8 385.3       |                                   ^~~
#8 385.3 <command-line>: error: 'x265_12bit_sad_x3_8x32_neon' was not declared in this scope; did you mean 'x265_sad_x3_8x32_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:145:35: note: in expansion of macro 'PFX'
#8 385.3   145 |         p.pu[LUMA_8x32].sad_x3  = PFX(sad_x3_8x32_neon);
#8 385.3       |                                   ^~~
#8 385.3 <command-line>: error: 'x265_12bit_sad_x4_8x4_neon' was not declared in this scope; did you mean 'x265_sad_x4_8x4_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:147:35: note: in expansion of macro 'PFX'
#8 385.3   147 |         p.pu[LUMA_8x4].sad_x4   = PFX(sad_x4_8x4_neon);
#8 385.3       |                                   ^~~
#8 385.3 <command-line>: error: 'x265_12bit_sad_x4_8x8_neon' was not declared in this scope; did you mean 'x265_sad_x4_8x8_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:148:35: note: in expansion of macro 'PFX'
#8 385.3   148 |         p.pu[LUMA_8x8].sad_x4   = PFX(sad_x4_8x8_neon);
#8 385.3       |                                   ^~~
#8 385.3 <command-line>: error: 'x265_12bit_sad_x4_8x16_neon' was not declared in this scope; did you mean 'x265_sad_x4_8x16_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:149:35: note: in expansion of macro 'PFX'
#8 385.3   149 |         p.pu[LUMA_8x16].sad_x4  = PFX(sad_x4_8x16_neon);
#8 385.3       |                                   ^~~
#8 385.3 <command-line>: error: 'x265_12bit_sad_x4_8x32_neon' was not declared in this scope; did you mean 'x265_sad_x4_8x32_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:150:35: note: in expansion of macro 'PFX'
#8 385.3   150 |         p.pu[LUMA_8x32].sad_x4  = PFX(sad_x4_8x32_neon);
#8 385.3       |                                   ^~~
#8 385.3 <command-line>: error: 'x265_12bit_quant_neon' was not declared in this scope; did you mean 'x265_quant_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:153:19: note: in expansion of macro 'PFX'
#8 385.3   153 |         p.quant = PFX(quant_neon);
#8 385.3       |                   ^~~
#8 385.3 <command-line>: error: 'x265_12bit_interp_8tap_horiz_ps_4x4_neon' was not declared in this scope; did you mean 'x265_interp_8tap_horiz_ps_4x4_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:155:37: note: in expansion of macro 'PFX'
#8 385.3   155 |         p.pu[LUMA_4x4].luma_hps   = PFX(interp_8tap_horiz_ps_4x4_neon);
#8 385.3       |                                     ^~~
#8 385.3 <command-line>: error: 'x265_12bit_interp_8tap_horiz_ps_4x8_neon' was not declared in this scope; did you mean 'x265_interp_8tap_horiz_ps_4x8_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:156:37: note: in expansion of macro 'PFX'
#8 385.3   156 |         p.pu[LUMA_4x8].luma_hps   = PFX(interp_8tap_horiz_ps_4x8_neon);
#8 385.3       |                                     ^~~
#8 385.3 <command-line>: error: 'x265_12bit_interp_8tap_horiz_ps_4x16_neon' was not declared in this scope; did you mean 'x265_interp_8tap_horiz_ps_4x16_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:157:37: note: in expansion of macro 'PFX'
#8 385.3   157 |         p.pu[LUMA_4x16].luma_hps  = PFX(interp_8tap_horiz_ps_4x16_neon);
#8 385.3       |                                     ^~~
#8 385.3 <command-line>: error: 'x265_12bit_interp_8tap_horiz_ps_8x4_neon' was not declared in this scope; did you mean 'x265_interp_8tap_horiz_ps_8x4_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:158:37: note: in expansion of macro 'PFX'
#8 385.3   158 |         p.pu[LUMA_8x4].luma_hps   = PFX(interp_8tap_horiz_ps_8x4_neon);
#8 385.3       |                                     ^~~
#8 385.3 <command-line>: error: 'x265_12bit_interp_8tap_horiz_ps_8x8_neon' was not declared in this scope; did you mean 'x265_interp_8tap_horiz_ps_8x8_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:159:37: note: in expansion of macro 'PFX'
#8 385.3   159 |         p.pu[LUMA_8x8].luma_hps   = PFX(interp_8tap_horiz_ps_8x8_neon);
#8 385.3       |                                     ^~~
#8 385.3 <command-line>: error: 'x265_12bit_interp_8tap_horiz_ps_8x16_neon' was not declared in this scope; did you mean 'x265_interp_8tap_horiz_ps_8x16_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:160:37: note: in expansion of macro 'PFX'
#8 385.3   160 |         p.pu[LUMA_8x16].luma_hps  = PFX(interp_8tap_horiz_ps_8x16_neon);
#8 385.3       |                                     ^~~
#8 385.3 <command-line>: error: 'x265_12bit_interp_8tap_horiz_ps_8x32_neon' was not declared in this scope; did you mean 'x265_interp_8tap_horiz_ps_8x32_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:161:37: note: in expansion of macro 'PFX'
#8 385.3   161 |         p.pu[LUMA_8x32].luma_hps  = PFX(interp_8tap_horiz_ps_8x32_neon);
#8 385.3       |                                     ^~~
#8 385.3 <command-line>: error: 'x265_12bit_interp_8tap_horiz_ps_12x16_neon' was not declared in this scope; did you mean 'x265_interp_8tap_horiz_ps_12x16_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:162:37: note: in expansion of macro 'PFX'
#8 385.3   162 |         p.pu[LUMA_12x16].luma_hps = PFX(interp_8tap_horiz_ps_12x16_neon);
#8 385.3       |                                     ^~~
#8 385.3 <command-line>: error: 'x265_12bit_interp_8tap_horiz_ps_24x32_neon' was not declared in this scope; did you mean 'x265_interp_8tap_horiz_ps_24x32_neon'?
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:30:28: note: in definition of macro 'PFX3'
#8 385.3    30 | #define PFX3(prefix, name) prefix ## _ ## name
#8 385.3       |                            ^~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:28: note: in expansion of macro 'PFX2'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                            ^~~~
#8 385.3 /build/packages/x265-3.5/source/common/cpu.h:32:33: note: in expansion of macro 'X265_NS'
#8 385.3    32 | #define PFX(name)          PFX2(X265_NS, name)
#8 385.3       |                                 ^~~~~~~
#8 385.3 /build/packages/x265-3.5/source/common/aarch64/asm-primitives.cpp:163:37: note: in expansion of macro 'PFX'
#8 385.3   163 |         p.pu[LUMA_24x32].luma_hps = PFX(interp_8tap_horiz_ps_24x32_neon);
#8 385.3       |                                     ^~~
#8 385.3 make[2]: *** [common/CMakeFiles/common.dir/build.make:76: common/CMakeFiles/common.dir/aarch64/asm-primitives.cpp.o] Error 1
#8 385.3 make[1]: *** [CMakeFiles/Makefile2:298: common/CMakeFiles/common.dir/all] Error 2
#8 385.3 [ 11%] Building CXX object encoder/CMakeFiles/encoder.dir/motion.cpp.o
#8 385.3 [ 12%] Building CXX object encoder/CMakeFiles/encoder.dir/slicetype.cpp.o
#8 385.3 [ 14%] Building CXX object encoder/CMakeFiles/encoder.dir/frameencoder.cpp.o
#8 385.3 [ 16%] Building CXX object encoder/CMakeFiles/encoder.dir/framefilter.cpp.o
#8 385.3 [ 17%] Building CXX object encoder/CMakeFiles/encoder.dir/level.cpp.o
#8 385.3 [ 19%] Building CXX object encoder/CMakeFiles/encoder.dir/nal.cpp.o
#8 385.3 [ 20%] Building CXX object encoder/CMakeFiles/encoder.dir/sei.cpp.o
#8 385.3 [ 22%] Building CXX object encoder/CMakeFiles/encoder.dir/sao.cpp.o
#8 385.3 [ 24%] Building CXX object encoder/CMakeFiles/encoder.dir/entropy.cpp.o
#8 385.3 [ 25%] Building CXX object encoder/CMakeFiles/encoder.dir/dpb.cpp.o
#8 385.3 [ 27%] Building CXX object encoder/CMakeFiles/encoder.dir/ratecontrol.cpp.o
#8 385.3 /build/packages/x265-3.5/source/encoder/ratecontrol.cpp: In member function 'int x265_12bit::RateControl::writeRateControlFrameStats(x265_12bit::Frame*, x265_12bit::RateControlEntry*)':
#8 385.3 /build/packages/x265-3.5/source/encoder/ratecontrol.cpp:3025:21: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
#8 385.3  3025 |             sprintf(deltaPOC, "%s%d~", deltaPOC, rpsWriter->deltaPOC[i]);
#8 385.3       |                     ^~~~~~~~           ~~~~~~~~
#8 385.3 /build/packages/x265-3.5/source/encoder/ratecontrol.cpp:3026:21: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
#8 385.3  3026 |             sprintf(bUsed, "%s%d~", bUsed, rpsWriter->bUsed[i]);
#8 385.3       |                     ^~~~~           ~~~~~
#8 385.3 /build/packages/x265-3.5/source/encoder/ratecontrol.cpp: In member function 'double x265_12bit::RateControl::forwardMasking(x265_12bit::Frame*, double)':
#8 385.3 /build/packages/x265-3.5/source/encoder/ratecontrol.cpp:3195:12: warning: unused variable 'bwdRefQpDelta' [-Wunused-variable]
#8 385.3  3195 |     double bwdRefQpDelta = double(m_param->bwdRefQpDelta);
#8 385.3       |            ^~~~~~~~~~~~~
#8 385.3 /build/packages/x265-3.5/source/encoder/ratecontrol.cpp:3196:12: warning: unused variable 'bwdNonRefQpDelta' [-Wunused-variable]
#8 385.3  3196 |     double bwdNonRefQpDelta = double(m_param->bwdNonRefQpDelta);
#8 385.3       |            ^~~~~~~~~~~~~~~~
#8 385.3 [ 29%] Building CXX object encoder/CMakeFiles/encoder.dir/reference.cpp.o
#8 385.3 [ 30%] Building CXX object encoder/CMakeFiles/encoder.dir/encoder.cpp.o
#8 385.3 [ 32%] Building CXX object encoder/CMakeFiles/encoder.dir/api.cpp.o
#8 385.3 /build/packages/x265-3.5/source/encoder/ratecontrol.cpp: In member function 'int x265_12bit::RateControl::writeRateControlFrameStats(x265_12bit::Frame*, x265_12bit::RateControlEntry*)':
#8 385.3 /build/packages/x265-3.5/source/encoder/ratecontrol.cpp:3025:36: warning: '~' directive writing 1 byte into a region of size between 0 and 127 [-Wformat-overflow=]
#8 385.3  3025 |             sprintf(deltaPOC, "%s%d~", deltaPOC, rpsWriter->deltaPOC[i]);
#8 385.3       |                                    ^
#8 385.3 In file included from /usr/include/stdio.h:867,
#8 385.3                  from /usr/include/c++/9/cstdio:42,
#8 385.3                  from /build/packages/x265-3.5/source/common/common.h:33,
#8 385.3                  from /build/packages/x265-3.5/source/encoder/ratecontrol.cpp:30:
#8 385.3 /usr/include/aarch64-linux-gnu/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 3 and 140 bytes into a destination of size 128
#8 385.3    36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
#8 385.3       |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#8 385.3    37 |       __bos (__s), __fmt, __va_arg_pack ());
#8 385.3       |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#8 385.3 /build/packages/x265-3.5/source/encoder/ratecontrol.cpp:3026:33: warning: '~' directive writing 1 byte into a region of size between 0 and 39 [-Wformat-overflow=]
#8 385.3  3026 |             sprintf(bUsed, "%s%d~", bUsed, rpsWriter->bUsed[i]);
#8 385.3       |                                 ^
#8 385.3 In file included from /usr/include/stdio.h:867,
#8 385.3                  from /usr/include/c++/9/cstdio:42,
#8 385.3                  from /build/packages/x265-3.5/source/common/common.h:33,
#8 385.3                  from /build/packages/x265-3.5/source/encoder/ratecontrol.cpp:30:
#8 385.3 /usr/include/aarch64-linux-gnu/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 3 and 42 bytes into a destination of size 40
#8 385.3    36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
#8 385.3       |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#8 385.3    37 |       __bos (__s), __fmt, __va_arg_pack ());
#8 385.3       |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#8 385.3 [ 33%] Building CXX object encoder/CMakeFiles/encoder.dir/weightPrediction.cpp.o
#8 385.3 [ 33%] Built target encoder
#8 385.3 make: *** [Makefile:136: all] Error 2
#8 385.3
------
executor failed running [/bin/sh -c curl -L -o build-ffmpeg https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/v1.34/build-ffmpeg     && chmod u+x build-ffmpeg     && SKIPINSTALL=yes ./build-ffmpeg --build --enable-gpl-and-non-free]: exit code: 1
@matteocontrini
Copy link
Author

This should be fixed in the next release of x265, according to https://bitbucket.org/multicoreware/x265_git/issues/608/compile-issue-for-high-bit-rate-on-apple

@matteocontrini
Copy link
Author

Is there any chance that x265 could be built from master, instead of the latest tagged release? They haven't released a new version for almost 2 years now and it includes a fix for this issue, among other stuff.

Another "ffmpeg build" project already made this choice: wader/static-ffmpeg#243

Thanks!

@TalkLounge
Copy link

TalkLounge commented Feb 17, 2023

Can confirm this on Raspberry Pi 4 Model B 8 GB with an Arm Processor
Pull request fixes it

@TalkLounge TalkLounge mentioned this issue Feb 17, 2023
guillaumechave added a commit to guillaumechave/ffmpeg-build-script that referenced this issue Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants