Skip to content

Parallel builds sometimes cause race conditions in assembly generation #777

Description

@Akilan-Sivakumar

BB Issue #1025
Original issue created by pxnguyen (bitbucket username :pxnguyen).
Created on Bitbucket: 2026-01-21
Last updated on Bitbucket: 2026-01-27

We’ve observed race conditions building x265 on AWS Graviton hosts in which we’ve occasionally seen link failures due to undefined references. We build it as part of a ‘superbuild’, so this can be somewhat time consuming if we have to restart it.

Attached is a proposed patch to resolve this.

With the aid of Claude Opus LLM, we believe we’ve found a race condition in that none of the final targets rely on the generated ASM_OBJS list structure in CMake; as a result. This has the effect in which multiple library targets will independently rebuild assembly subtargets, and step over each other; it’s possible for final link to attempt to link against an incompletely-written target:

[ 64%] Generating asm.S.o
[ 64%] Generating asm.S.o
[ 64%] Generating blockcopy8-common.S.o
[ 64%] Generating blockcopy8-common.S.o
[ 64%] Generating blockcopy8.S.o
[ 64%] Generating blockcopy8.S.o
[ 64%] Generating ssd-neon-dotprod.S.o
[ 64%] Generating ssd-neon-dotprod.S.o
[ 67%] Generating dct.S.o
[ 67%] Generating dct.S.o
[ 67%] Generating intrapred.S.o
[ 69%] Generating intrapred.S.o
[ 69%] Generating mc-a-common.S.o
[ 70%] Generating mc-a-common.S.o
[ 71%] Generating mc-a.S.o
[ 74%] Generating mc-a.S.o
[ 74%] Generating p2s-common.S.o
[ 74%] Generating p2s.S.o
[ 76%] Generating p2s-common.S.o
[ 76%] Generating pixel-util-common.S.o
[ 77%] Generating pixel-util.S.o
[ 78%] Generating p2s.S.o
[ 79%] Generating sad-a.S.o
[ 80%] Generating sad-neon-dotprod.S.o
[ 82%] Generating pixel-util-common.S.o
[ 82%] Generating ssd-a-common.S.o
[ 83%] Generating pixel-util.S.o
[ 84%] Generating ssd-a.S.o
[ 85%] Generating sad-a.S.o
[ 86%] Generating sad-neon-dotprod.S.o
[ 88%] Generating ssd-a-common.S.o
[ 88%] Generating ssd-a.S.o

Our wrapper superbuild code generates this cmake command on Amazon Linux 2023. We presently target Graviton 2 and the Apple M1 as our baseline.

cmake3 "/sd/workspace/src/git/org/build/_scm/libx265/source"
  -DCMAKE_INSTALL_PREFIX=/opt/org/libx265/4.1
  -DCMAKE_INSTALL_LIBDIR:PATH=lib 
  -DCMAKE_INSTALL_BINDIR:PATH=bin 
  -DCMAKE_INSTALL_INCLUDEDIR:PATH=include 
  -DCMAKE_BUILD_TYPE=RelWithDebInfo 
  -DCMAKE_COLOR_MAKEFILE=ON 
  -DCMAKE_COLOR_DIAGNOSTICS=ON 
  -DCLICOLOR_FORCE=1 
  -DCMAKE_VERBOSE_MAKEFILE=ON 
  -DCMAKE_INCLUDE_FLAG_C="-I" 
  -DCMAKE_INCLUDE_FLAG_CXX="-I" 
  -DCMAKE_INCLUDE_SYSTEM_FLAG_C="-isystem" 
  -DCMAKE_INCLUDE_SYSTEM_FLAG_CXX="-isystem" 
  -DCMAKE_C_FLAGS="-O2 -ggdb -Wextra -fdiagnostics-color=always -grecord-gcc-switches -frecord-gcc-switches -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -march=armv8.2-a+crypto+dotprod+rcpc+fp16 -moutline-atomics" 
  -DCMAKE_CXX_FLAGS="-O2 -ggdb -Wextra -fdiagnostics-color=always -grecord-gcc-switches -frecord-gcc-switches -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -march=armv8.2-a+crypto+dotprod+rcpc+fp16 -moutline-atomics -std=c++17" 
  -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-rpath='\$ORIGIN/../lib',--enable-new-dtags -Wl,-rpath-link=/sd/workspace/src/git/org/build/_sdk/release_posix-aarch64_gcc_11/numactl_2.0.19/lib" 
  -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-rpath='\$ORIGIN/../lib',--enable-new-dtags -Wl,-rpath-link=/sd/workspace/src/git/org/build/_sdk/release_posix-aarch64_gcc_11/numactl_2.0.19/lib" 
  -DCMAKE_CXX_COMPILER=/usr/bin/g++ 
  -DCMAKE_C_COMPILER=/usr/bin/gcc
  -DNUMA_ROOT_DIR=/sd/workspace/src/git/org/build/_build/build_release_posix-aarch64_gcc_11/numactl/destdir/opt/org/numactl/2.0 
  -DENABLE_NEON_DOTPROD=ON 
  -DENABLE_NEON_I8MM=OFF 
  -DENABLE_SVE=OFF 
  -DENABLE_SVE2=OFF

Example undefined reference error below:

[ 89%] Linking CXX static library libx265.a
/usr/bin/cmake -P CMakeFiles/x265-static.dir/cmake_clean_target.cmake
/usr/bin/cmake -E cmake_link_script CMakeFiles/x265-static.dir/link.txt --verbose=1
/usr/bin/ar qc libx265.a encoder/CMakeFiles/encoder.dir/analysis.cpp.o encoder/CMakeFiles/encoder.dir/search.cpp.o encoder/CMakeFiles/encoder.dir/bitcost.cpp.o encoder/CMakeFiles/encoder.dir/motion.cpp.o encoder/CMakeFiles/encoder.dir/slicetype.cpp.o encoder/CMakeFiles/encoder.dir/frameencoder.cpp.o encoder/CMakeFiles/encoder.dir/framefilter.cpp.o encoder/CMakeFiles/encoder.dir/level.cpp.o encoder/CMakeFiles/encoder.dir/nal.cpp.o encoder/CMakeFiles/encoder.dir/sei.cpp.o encoder/CMakeFiles/encoder.dir/sao.cpp.o encoder/CMakeFiles/encoder.dir/entropy.cpp.o encoder/CMakeFiles/encoder.dir/dpb.cpp.o encoder/CMakeFiles/encoder.dir/ratecontrol.cpp.o encoder/CMakeFiles/encoder.dir/reference.cpp.o encoder/CMakeFiles/encoder.dir/encoder.cpp.o encoder/CMakeFiles/encoder.dir/api.cpp.o encoder/CMakeFiles/encoder.dir/weightPrediction.cpp.o common/CMakeFiles/common.dir/aarch64/asm-primitives.cpp.o common/CMakeFiles/common.dir/aarch64/pixel-prim.cpp.o common/CMakeFiles/common.dir/aarch64/filter-prim.cpp.o common/CMakeFiles/common.dir/aarch64/dct-prim.cpp.o common/CMakeFiles/common.dir/aarch64/loopfilter-prim.cpp.o common/CMakeFiles/common.dir/aarch64/intrapred-prim.cpp.o common/CMakeFiles/common.dir/aarch64/arm64-utils.cpp.o common/CMakeFiles/common.dir/aarch64/sao-prim.cpp.o common/CMakeFiles/common.dir/aarch64/filter-neon-dotprod.cpp.o common/CMakeFiles/common.dir/primitives.cpp.o common/CMakeFiles/common.dir/pixel.cpp.o common/CMakeFiles/common.dir/dct.cpp.o common/CMakeFiles/common.dir/lowpassdct.cpp.o common/CMakeFiles/common.dir/ipfilter.cpp.o common/CMakeFiles/common.dir/intrapred.cpp.o common/CMakeFiles/common.dir/loopfilter.cpp.o common/CMakeFiles/common.dir/constants.cpp.o common/CMakeFiles/common.dir/cpu.cpp.o common/CMakeFiles/common.dir/version.cpp.o common/CMakeFiles/common.dir/threading.cpp.o common/CMakeFiles/common.dir/threadpool.cpp.o common/CMakeFiles/common.dir/wavefront.cpp.o common/CMakeFiles/common.dir/md5.cpp.o common/CMakeFiles/common.dir/bitstream.cpp.o common/CMakeFiles/common.dir/yuv.cpp.o common/CMakeFiles/common.dir/shortyuv.cpp.o common/CMakeFiles/common.dir/picyuv.cpp.o common/CMakeFiles/common.dir/common.cpp.o common/CMakeFiles/common.dir/param.cpp.o common/CMakeFiles/common.dir/frame.cpp.o common/CMakeFiles/common.dir/framedata.cpp.o common/CMakeFiles/common.dir/cudata.cpp.o common/CMakeFiles/common.dir/slice.cpp.o common/CMakeFiles/common.dir/lowres.cpp.o common/CMakeFiles/common.dir/piclist.cpp.o common/CMakeFiles/common.dir/predict.cpp.o common/CMakeFiles/common.dir/scalinglist.cpp.o common/CMakeFiles/common.dir/quant.cpp.o common/CMakeFiles/common.dir/deblock.cpp.o common/CMakeFiles/common.dir/scaler.cpp.o common/CMakeFiles/common.dir/ringmem.cpp.o common/CMakeFiles/common.dir/temporalfilter.cpp.o asm.S.o mc-a.S.o mc-a-common.S.o sad-a.S.o pixel-util.S.o pixel-util-common.S.o p2s.S.o p2s-common.S.o blockcopy8.S.o blockcopy8-common.S.o ssd-a.S.o ssd-a-common.S.o intrapred.S.o dct.S.o sad-neon-dotprod.S.o ssd-neon-dotprod.S.o
/usr/bin/ld: common/CMakeFiles/common.dir/aarch64/asm-primitives.cpp.o: in function `x265::setupNeonPrimitives(x265::EncoderPrimitives&)':
/sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xee4): undefined reference to `x265_pixel_sad_4x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xf58): undefined reference to `x265_pixel_sad_32x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xf68): undefined reference to `x265_pixel_sad_8x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xf80): undefined reference to `x265_pixel_sad_4x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xf90): undefined reference to `x265_pixel_sad_4x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0xf94): undefined reference to `x265_sad_x3_8x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xf9c): undefined reference to `x265_pixel_sad_8x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xfa8): undefined reference to `x265_pixel_sad_8x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xfac): undefined reference to `x265_pixel_sad_32x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xfb4): undefined reference to `x265_pixel_sad_16x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xfc0): undefined reference to `x265_pixel_sad_64x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xfc8): undefined reference to `x265_pixel_sad_32x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xfd0): undefined reference to `x265_pixel_sad_16x12_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xfdc): undefined reference to `x265_pixel_sad_12x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xfe4): undefined reference to `x265_pixel_sad_16x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xfec): undefined reference to `x265_pixel_sad_4x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xff4): undefined reference to `x265_pixel_sad_32x24_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0xffc): undefined reference to `x265_pixel_sad_24x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1004): undefined reference to `x265_pixel_sad_32x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x100c): undefined reference to `x265_pixel_sad_8x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1014): undefined reference to `x265_pixel_sad_64x48_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x101c): undefined reference to `x265_pixel_sad_48x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1024): undefined reference to `x265_pixel_sad_64x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x102c): undefined reference to `x265_pixel_sad_16x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1034): undefined reference to `x265_sad_x3_64x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x103c): undefined reference to `x265_pixel_sad_16x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1044): undefined reference to `x265_pixel_sad_32x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1048): undefined reference to `x265_pixel_sad_64x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1050): undefined reference to `x265_pixel_sad_64x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1054): undefined reference to `x265_pixel_sad_16x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x105c): undefined reference to `x265_sad_x4_64x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1060): undefined reference to `x265_pixel_sad_16x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1068): undefined reference to `x265_pixel_sad_16x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x106c): undefined reference to `x265_sad_x3_64x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x107c): undefined reference to `x265_pixel_sad_8x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1080): undefined reference to `x265_pixel_sad_4x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1088): undefined reference to `x265_pixel_sad_8x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1090): undefined reference to `x265_pixel_sad_16x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1098): undefined reference to `x265_sad_x3_8x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x109c): undefined reference to `x265_pixel_sad_32x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x10a4): undefined reference to `x265_sad_x3_16x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x10a8): undefined reference to `x265_pixel_sad_8x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x10b0): undefined reference to `x265_sad_x3_32x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x10bc): undefined reference to `x265_sad_x3_16x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x10c8): undefined reference to `x265_sad_x3_16x12_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x10cc): undefined reference to `x265_pixel_sad_64x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x10d4): undefined reference to `x265_sad_x3_4x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x10dc): undefined reference to `x265_sad_x3_32x24_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x10e4): undefined reference to `x265_sad_x3_4x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x10ec): undefined reference to `x265_sad_x3_12x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x10f4): undefined reference to `x265_sad_x3_16x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x10fc): undefined reference to `x265_sad_x3_32x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1100): undefined reference to `x265_pixel_sad_32x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1108): undefined reference to `x265_sad_x3_32x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x110c): undefined reference to `x265_pixel_sad_64x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1110): undefined reference to `x265_pixel_sad_64x48_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1118): undefined reference to `x265_sad_x3_48x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x111c): undefined reference to `x265_pixel_sad_16x12_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1124): undefined reference to `x265_sad_x3_8x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1128): undefined reference to `x265_sad_x3_8x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1130): undefined reference to `x265_sad_x3_4x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1134): undefined reference to `x265_sad_x3_4x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x113c): undefined reference to `x265_sad_x3_64x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1140): undefined reference to `x265_pixel_sad_12x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1148): undefined reference to `x265_sad_x3_16x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x114c): undefined reference to `x265_pixel_sad_16x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1154): undefined reference to `x265_sad_x3_32x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1158): undefined reference to `x265_pixel_sad_4x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1160): undefined reference to `x265_sad_x4_4x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1164): undefined reference to `x265_pixel_sad_32x24_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x116c): undefined reference to `x265_sad_x4_32x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1170): undefined reference to `x265_pixel_sad_24x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1178): undefined reference to `x265_sad_x4_24x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x117c): undefined reference to `x265_pixel_sad_32x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1184): undefined reference to `x265_sad_x4_16x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1188): undefined reference to `x265_pixel_sad_8x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1190): undefined reference to `x265_sad_x4_8x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x1194): undefined reference to `x265_pixel_sad_48x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x119c): undefined reference to `x265_sad_x4_12x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:541:(.text+0x11a0): undefined reference to `x265_pixel_sad_16x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x11ac): undefined reference to `x265_sad_x3_16x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x11b4): undefined reference to `x265_sad_x4_8x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x11bc): undefined reference to `x265_sad_x4_64x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x11c0): undefined reference to `x265_sad_x3_32x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x11c8): undefined reference to `x265_sad_x3_16x12_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x11cc): undefined reference to `x265_sad_x3_12x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x11d8): undefined reference to `x265_sad_x3_64x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x11e0): undefined reference to `x265_sad_x3_8x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x11e4): undefined reference to `x265_sad_x3_8x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x11ec): undefined reference to `x265_sad_x3_24x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x11f0): undefined reference to `x265_sad_x3_4x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x11f8): undefined reference to `x265_sad_x4_64x48_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x11fc): undefined reference to `x265_sad_x3_16x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1208): undefined reference to `x265_sad_x3_8x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1210): undefined reference to `x265_sad_x4_32x24_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1214): undefined reference to `x265_sad_x3_16x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1220): undefined reference to `x265_sad_x3_32x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1228): undefined reference to `x265_sad_x4_48x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x122c): undefined reference to `x265_sad_x3_64x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1238): undefined reference to `x265_sad_x3_32x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1244): undefined reference to `x265_sad_x3_4x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1250): undefined reference to `x265_sad_x3_32x24_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1258): undefined reference to `x265_sad_x3_16x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1268): undefined reference to `x265_sad_x3_24x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1278): undefined reference to `x265_sad_x3_32x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1284): undefined reference to `x265_sad_x3_64x48_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1288): undefined reference to `x265_sad_x3_8x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x128c): undefined reference to `x265_sad_x3_64x48_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x1294): undefined reference to `x265_sad_x3_48x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x12a0): undefined reference to `x265_sad_x3_64x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x12ac): undefined reference to `x265_sad_x3_16x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:542:(.text+0x12b0): undefined reference to `x265_sad_x3_16x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x12b8): undefined reference to `x265_sad_x4_4x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x12bc): undefined reference to `x265_sad_x4_4x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x12c4): undefined reference to `x265_sad_x4_8x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x12c8): undefined reference to `x265_sad_x4_8x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x12d0): undefined reference to `x265_sad_x4_16x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x12dc): undefined reference to `x265_sad_x4_32x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x12e0): undefined reference to `x265_sad_x4_4x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x12e8): undefined reference to `x265_sad_x4_64x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x12ec): undefined reference to `x265_sad_x4_64x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x12f4): undefined reference to `x265_sad_x4_8x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x12f8): undefined reference to `x265_sad_x4_8x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1300): undefined reference to `x265_sad_x4_16x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1304): undefined reference to `x265_sad_x4_32x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x130c): undefined reference to `x265_sad_x4_16x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1310): undefined reference to `x265_sad_x4_16x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x131c): undefined reference to `x265_sad_x4_8x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1328): undefined reference to `x265_sad_x4_16x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1330): undefined reference to `x265_sad_x4_32x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x133c): undefined reference to `x265_sad_x4_32x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1344): undefined reference to `x265_sad_x4_32x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1348): undefined reference to `x265_sad_x4_12x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x134c): undefined reference to `x265_sad_x4_32x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1354): undefined reference to `x265_sad_x4_16x12_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1358): undefined reference to `x265_sad_x4_16x12_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1360): undefined reference to `x265_sad_x4_32x24_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x136c): undefined reference to `x265_sad_x4_16x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1370): undefined reference to `x265_sad_x4_8x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x137c): undefined reference to `x265_sad_x4_4x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1380): undefined reference to `x265_sad_x4_64x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1388): undefined reference to `x265_sad_x4_64x48_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x1390): undefined reference to `x265_sad_x4_48x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x139c): undefined reference to `x265_sad_x4_64x16_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x13a8): undefined reference to `x265_sad_x4_16x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x13ac): undefined reference to `x265_sad_x4_16x64_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x13b4): undefined reference to `x265_sad_x4_16x4_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x13c4): undefined reference to `x265_sad_x4_24x32_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x13d0): undefined reference to `x265_sad_x4_32x8_neon'
/usr/bin/ld: /sd/workspace/src/git/org/build/_scm/libx265/source/common/aarch64/asm-primitives.cpp:543:(.text+0x13dc): undefined reference to `x265_sad_x4_4x16_neon'
/usr/bin/ranlib libx265.a
collect2: error: ld returned 1 exit status

Attachments:

0001-Add-explicit-dependencies-on-build-ASM_OBJS-to-avoid.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions