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

cdef16_avx2.asm:858: error: invalid number of operands #65

Closed
dzenanz opened this issue Nov 18, 2022 · 12 comments
Closed

cdef16_avx2.asm:858: error: invalid number of operands #65

dzenanz opened this issue Nov 18, 2022 · 12 comments

Comments

@dzenanz
Copy link

dzenanz commented Nov 18, 2022

Using tensorstore as a CMake dependency in my project, compiling on Linux in CI fails (log tail below). This happens both with b8949f2 and af7dbb9. Relevant GitHub action.

[570/2065] Building C object _deps/aom-build/CMakeFiles/aom_av1.dir/av1/common/cdef.c.o
[571/2065] Building C object _deps/aom-build/CMakeFiles/aom_av1.dir/av1/common/entropymv.c.o
[572/2065] Building ASM_NASM object _deps/dav1d-build/CMakeFiles/dav1d_dav1d_asm_x86.dir/src/x86/cdef16_avx2.asm.o
FAILED: _deps/dav1d-build/CMakeFiles/dav1d_dav1d_asm_x86.dir/src/x86/cdef16_avx2.asm.o 
/usr/bin/yasm  -I/work/ITK-source/ITK/Modules/ThirdParty/Eigen3/src/itkeigen/.. -I/work/ITK-cp37-cp37m-manylinux2014_x64/Modules/ThirdParty/Eigen3/src -I/work/ITK-cp37-cp37m-manylinux2014_x64/Modules/ThirdParty/KWSys/src -I/work/oneTBB-prefix/include -I/work/ITK-source/ITK/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/work/ITK-source/ITK/Modules/ThirdParty/VNL/src/vxl/vcl -I/work/ITK-source/ITK/Modules/ThirdParty/VNL/src/vxl/core -I/work/ITK-cp37-cp37m-manylinux2014_x64/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/work/ITK-cp37-cp37m-manylinux2014_x64/Modules/ThirdParty/VNL/src/vxl/vcl -I/work/ITK-cp37-cp37m-manylinux2014_x64/Modules/ThirdParty/VNL/src/vxl/core -I/work/ITK-cp37-cp37m-manylinux2014_x64/Modules/Core/Common -I/work/ITK-source/ITK/Modules/Core/Common/include -I/work/ITK-cp37-cp37m-manylinux2014_x64/Modules/IO/ImageBase -I/work/ITK-source/ITK/Modules/IO/ImageBase/include -I/work/ITK-source/ITK/Modules/IO/HDF5/include -I/work/ITK-cp37-cp37m-manylinux2014_x64/Modules/ThirdParty/ZLIB/src -I/work/ITK-cp37-cp37m-manylinux2014_x64/Modules/ThirdParty/ZLIB/src/itkzlib-ng -I/work/ITK-source/ITK/Modules/ThirdParty/ZLIB/src -I/work/include -I/work/_skbuild/linux-x86_64-3.7/cmake-build/include -I/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-build -I/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-build/build -I/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src -I/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src -I/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/ext/x86 -I/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86 -s -w-macro-params-legacy -w-orphan-labels -felf64 -f elf64 -o _deps/dav1d-build/CMakeFiles/dav1d_dav1d_asm_x86.dir/src/x86/cdef16_avx2.asm.o /work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:858: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:870: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:871: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:872: error: invalid number of operands
/work/_skbuild/linux-x86_64-3.7/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:873: error: invalid number of operands
[573/2065] Building C object _deps/aom-build/CMakeFiles/aom_av1.dir/av1/encoder/var_based_part.c.o
[574/2065] Building C object _deps/aom-build/CMakeFiles/aom_av1.dir/av1/encoder/rdopt.c.o
ninja: build stopped: subcommand failed.
```.
@jbms
Copy link
Collaborator

jbms commented Nov 18, 2022

This may be due to not having

enable_language(ASM)
enable_language(ASM_NASM)

at the start of the top level cmakelists.txt file. I think this is (unfortunately) a requirement of CMake.

@dzenanz
Copy link
Author

dzenanz commented Nov 18, 2022

I am trying this suggestion. Do you have an explanation for the regular build succeeding, whereas python package build fails?

@jbms
Copy link
Collaborator

jbms commented Nov 18, 2022

Not sure, but it could be affected by other dependencies also included in the build, if they differ.

I learned of this issue from the CMake docs and I observed similar issues in the tensorstore build before adding code to ensure the necessary enable_languages calls were at the top level of the tensorstore build, but I didn't attempt to understand exactly why this issue exists in CMake.

@dzenanz
Copy link
Author

dzenanz commented Nov 18, 2022

Adding

enable_language(ASM)
enable_language(ASM_NASM)

before project(IOOMEZarrNGFF) causes a different error:

-- Build files have been written to: /work/_skbuild/linux-x86_64-3.10/cmake-build
[386/2065] Building ASM_NASM object _deps/dav1d-build/CMakeFiles/dav1d_dav1d_asm_x86.dir/src/x86/cdef16_avx2.asm.o
FAILED: _deps/dav1d-build/CMakeFiles/dav1d_dav1d_asm_x86.dir/src/x86/cdef16_avx2.asm.o 
/usr/bin/yasm  -I/work/ITK-source/ITK/Modules/ThirdParty/Eigen3/src/itkeigen/.. -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/Eigen3/src -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/KWSys/src -I/work/oneTBB-prefix/include -I/work/ITK-source/ITK/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/work/ITK-source/ITK/Modules/ThirdParty/VNL/src/vxl/vcl -I/work/ITK-source/ITK/Modules/ThirdParty/VNL/src/vxl/core -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/VNL/src/vxl/vcl -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/VNL/src/vxl/core -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/Core/Common -I/work/ITK-source/ITK/Modules/Core/Common/include -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/IO/ImageBase -I/work/ITK-source/ITK/Modules/IO/ImageBase/include -I/work/ITK-source/ITK/Modules/IO/HDF5/include -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/ZLIB/src -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/ZLIB/src/itkzlib-ng -I/work/ITK-source/ITK/Modules/ThirdParty/ZLIB/src -I/work/include -I/work/_skbuild/linux-x86_64-3.10/cmake-build/include -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-build -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-build/build -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/ext/x86 -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86 -s -w-macro-params-legacy -w-orphan-labels -felf64 -f elf -o _deps/dav1d-build/CMakeFiles/dav1d_dav1d_asm_x86.dir/src/x86/cdef16_avx2.asm.o /work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:590: error: undefined symbol `rbx' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:590: error:  (Each undefined symbol is reported only once.)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:590: error: undefined symbol `rsp' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:603: error: undefined symbol `R10d' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:604: error: undefined symbol `R11' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:605: error: undefined symbol `rdi' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:605: error: undefined symbol `rsi' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:615: error: undefined symbol `R10b' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:617: error: undefined symbol `rcx' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:636: error: undefined symbol `R8' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:655: error: undefined symbol `rdx' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:671: error: undefined symbol `ymm8' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:671: error: undefined symbol `R9d' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:671: error: undefined symbol `R8d' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:671: error: undefined symbol `ymm9' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:671: error: undefined symbol `R9' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:671: error: undefined symbol `ymm10' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:671: error: undefined symbol `ymm13' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:671: error: undefined symbol `R10' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:671: error: undefined symbol `rax' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:671: error: undefined symbol `ymm11' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/dav1d-src/src/x86/cdef16_avx2.asm:671: error: undefined symbol `ymm12' (first use)
[391/2065] Building C object _deps/aom-build/CMakeFiles/aom_av1_x86_avx2.dir/av1/encoder/x86/av1_fwd_txfm2d_avx2.c.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/opt/python/cp310-cp310/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 551, in setup
    cmkr.make(make_args, env=env)
  File "/opt/python/cp310-cp310/lib/python3.10/site-packages/skbuild/cmaker.py", line 471, in make
    raise SKBuildError(

An error occurred while building with CMake.
  Command:
    "cmake" "--build" "." "--target" "install" "--config" "Release" "--"
  Source directory:
    /work
  Working directory:
    /work/_skbuild/linux-x86_64-3.10/cmake-build
Please see CMake's output for more information.

Keeping just enable_language(ASM_NASM) produces yet a different error:

-- Build files have been written to: /work/_skbuild/linux-x86_64-3.10/cmake-build
[215/2065] Building ASM_NASM object _deps/aom-build/CMakeFiles/aom_dsp_x86_asm.dir/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm.o
FAILED: _deps/aom-build/CMakeFiles/aom_dsp_x86_asm.dir/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm.o 
/usr/bin/yasm  -I/work/ITK-source/ITK/Modules/ThirdParty/Eigen3/src/itkeigen/.. -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/Eigen3/src -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/KWSys/src -I/work/oneTBB-prefix/include -I/work/ITK-source/ITK/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/work/ITK-source/ITK/Modules/ThirdParty/VNL/src/vxl/vcl -I/work/ITK-source/ITK/Modules/ThirdParty/VNL/src/vxl/core -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/VNL/src/vxl/vcl -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/VNL/src/vxl/core -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/Core/Common -I/work/ITK-source/ITK/Modules/Core/Common/include -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/IO/ImageBase -I/work/ITK-source/ITK/Modules/IO/ImageBase/include -I/work/ITK-source/ITK/Modules/IO/HDF5/include -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/ZLIB/src -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/ZLIB/src/itkzlib-ng -I/work/ITK-source/ITK/Modules/ThirdParty/ZLIB/src -I/work/include -I/work/_skbuild/linux-x86_64-3.10/cmake-build/include -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-build -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-build/config -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_ports -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/third_party/x86inc -w+all -felf64 -f elf -o _deps/aom-build/CMakeFiles/aom_dsp_x86_asm.dir/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm.o /work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:216: error: undefined symbol `rbp' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:216: error:  (Each undefined symbol is reported only once.)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:217: error: undefined symbol `rsp' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `rdi' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `rsi' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `rdx' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `rcx' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `r8' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `r9' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `rax' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:222: error: undefined symbol `rbx' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:235: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:240: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:241: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:245: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:306: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:308: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:309: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:313: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:315: error: redefinition of `movsxd.loop'
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:247: error: `movsxd.loop' previously defined here
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:365: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:367: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:368: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:372: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:374: error: redefinition of `movsxd.loop'
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:247: error: `movsxd.loop' previously defined here
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:426: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:431: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:432: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:435: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:437: error: redefinition of `movsxd.loop'
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:247: error: `movsxd.loop' previously defined here
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:502: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:504: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:505: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:508: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:510: error: redefinition of `movsxd.loop'
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:247: error: `movsxd.loop' previously defined here
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:568: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:570: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:571: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:574: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:576: error: redefinition of `movsxd.loop'
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:247: error: `movsxd.loop' previously defined here
[220/2065] Building CXX object _deps/tensorstore-build/CMakeFiles/tensorstore_kvstore_gcs.dir/tensorstore/kvstore/gcs/gcs_key_value_store.cc.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/opt/python/cp310-cp310/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 551, in setup
    cmkr.make(make_args, env=env)
  File "/opt/python/cp310-cp310/lib/python3.10/site-packages/skbuild/cmaker.py", line 471, in make
    raise SKBuildError(

An error occurred while building with CMake.
  Command:
    "cmake" "--build" "." "--target" "install" "--config" "Release" "--"
  Source directory:
    /work
  Working directory:
    /work/_skbuild/linux-x86_64-3.10/cmake-build
Please see CMake's output for more information.
+ exit 1

@laramiel
Copy link
Collaborator

It's trying to use yasm; maybe there's a syntax issue between the two?

@jbms
Copy link
Collaborator

jbms commented Nov 22, 2022

Thanks for spotting that Laramie.

We haven't tested with yasm, but I believe cmake's asm_nasm language support (limited as it is) will look for either nasm or yasm. It seems like we need to somehow force it to only accept nasm, and to fail if yasm is found.

Not sure if CMake will choose nasm if both nasm and yasm are installed --- if so the solution could be to just install nasm on your build machine.

@dzenanz
Copy link
Author

dzenanz commented Nov 22, 2022

I already have an install nasm step which uses ilammy/setup-nasm@v1.

@dzenanz
Copy link
Author

dzenanz commented Nov 22, 2022

On my local computer, this is the log I get:

-- Configuring done
-- Generating done
-- Build files have been written to: /work/_skbuild/linux-x86_64-3.10/cmake-build
[215/2065] Building ASM_NASM object _deps/aom-build/CMakeFiles/aom_dsp_x86_asm.dir/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm.o
FAILED: _deps/aom-build/CMakeFiles/aom_dsp_x86_asm.dir/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm.o 
/usr/bin/yasm  -I/work/ITK-source/ITK/Modules/ThirdParty/Eigen3/src/itkeigen/.. -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/Eigen3/src -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/KWSys/src -I/work/oneTBB-prefix/include -I/work/ITK-source/ITK/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/work/ITK-source/ITK/Modules/ThirdParty/VNL/src/vxl/vcl -I/work/ITK-source/ITK/Modules/ThirdParty/VNL/src/vxl/core -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/VNL/src/vxl/vcl -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/VNL/src/vxl/core -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/Core/Common -I/work/ITK-source/ITK/Modules/Core/Common/include -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/IO/ImageBase -I/work/ITK-source/ITK/Modules/IO/ImageBase/include -I/work/ITK-source/ITK/Modules/IO/HDF5/include -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/ZLIB/src -I/work/ITK-cp310-cp310-manylinux2014_x64/Modules/ThirdParty/ZLIB/src/itkzlib-ng -I/work/ITK-source/ITK/Modules/ThirdParty/ZLIB/src -I/work/include -I/work/_skbuild/linux-x86_64-3.10/cmake-build/include -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-build -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-build/config -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_ports -I/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/third_party/x86inc -w+all -felf64 -f elf -o _deps/aom-build/CMakeFiles/aom_dsp_x86_asm.dir/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm.o /work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:216: error: undefined symbol `rbp' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:216: error:  (Each undefined symbol is reported only once.)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:217: error: undefined symbol `rsp' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `rdi' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `rsi' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `rdx' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `rcx' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `r8' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `r9' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:218: error: undefined symbol `rax' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:222: error: undefined symbol `rbx' (first use)
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:235: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:240: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:241: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:245: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:306: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:308: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:309: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:313: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:315: error: redefinition of `movsxd.loop'
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:247: error: `movsxd.loop' previously defined here
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:365: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:367: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:368: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:372: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:374: error: redefinition of `movsxd.loop'
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:247: error: `movsxd.loop' previously defined here
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:426: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:431: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:432: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:435: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:437: error: redefinition of `movsxd.loop'
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:247: error: `movsxd.loop' previously defined here
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:502: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:504: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:505: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:508: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:510: error: redefinition of `movsxd.loop'
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:247: error: `movsxd.loop' previously defined here
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:568: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:570: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:571: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:574: error: instruction expected after label
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:576: error: redefinition of `movsxd.loop'
/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_8t_sse2.asm:247: error: `movsxd.loop' previously defined here
[220/2065] Building CXX object _deps/tensorstore-build/CMakeFiles/tensorstore_kvstore_gcs.dir/tensorstore/kvstore/gcs/gcs_key_value_store.cc.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/opt/python/cp310-cp310/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 551, in setup
    cmkr.make(make_args, env=env)
  File "/opt/python/cp310-cp310/lib/python3.10/site-packages/skbuild/cmaker.py", line 471, in make
    raise SKBuildError(

An error occurred while building with CMake.

but yasm isn't even installed:

dzenan@corista:~/zarr/tsZarrPackage$ yasm --version
Command 'yasm' not found, but can be installed with:
sudo apt install yasm

@dzenanz
Copy link
Author

dzenanz commented Nov 22, 2022

NASM is installed:

dzenan@corista:~/zarr/tsZarrPackage$ nasm --version
NASM version 2.15.05

@jbms
Copy link
Collaborator

jbms commented Nov 22, 2022

The command line from CMake shows /usr/bin/yasm --- are you sure that file does not exist?

@dzenanz
Copy link
Author

dzenanz commented Nov 22, 2022

dzenan@corista:~/ITK-git-rel$ ll /usr/bin/y*
lrwxrwxrwx 1 root root    22 Nov  5  2019 /usr/bin/yacc -> /etc/alternatives/yacc*
-rwxr-xr-x 1 root root 14360 Feb  7  2021 /usr/bin/ybmtopbm*
-rwxr-xr-x 1 root root 67816 Mar 28  2022 /usr/bin/yelp*
-rwxr-xr-x 1 root root 31104 Feb  7  2022 /usr/bin/yes*
lrwxrwxrwx 1 root root     8 Mar 23  2022 /usr/bin/ypdomainname -> hostname*
lrwxrwxrwx 1 root root    47 Feb  4  2022 /usr/bin/yplan -> ../share/texlive/texmf-dist/scripts/yplan/yplan
-rwxr-xr-x 1 root root 14360 Feb  7  2021 /usr/bin/yuvsplittoppm*
-rwxr-xr-x 1 root root 14360 Feb  7  2021 /usr/bin/yuvtoppm*
dzenan@corista:~/ITK-git-rel$

There is no yasm there. I don't know how this is possible. Maybe yasm is temporarily put there?

Now I remember. The Python package script uses https://github.com/dockcross/dockcross/ for compiling packages compatible with a variety if Linux distributions, and these paths mentioned in the error message are as mounted in the docker container. And the docker container probably has yasm instead of nasm.

@dzenanz
Copy link
Author

dzenanz commented Nov 22, 2022

This is definitely yasm/nasm difference. If I set CMAKE_ASM_NASM_COMPILER to /usr/bin/yasm on my local machine, the compilation process starts to fail the same was as in package CI:

dzenan@corista:~/ITKIOOMEZarrNGFF-rwd$ ninja
[1/82] Building ASM_NASM object _deps/aom-build/CMakeFiles/aom_dsp_x86_asm.dir/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm.o
FAILED: _deps/aom-build/CMakeFiles/aom_dsp_x86_asm.dir/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm.o 
/usr/bin/yasm  -I/home/dzenan/ITK-git/Modules/ThirdParty/Eigen3/src/itkeigen/.. -I/home/dzenan/ITK-git-rel/Modules/ThirdParty/Eigen3/src -I/home/dzenan/ITK-git-rel/Modules/ThirdParty/KWSys/src -I/home/dzenan/ITK-git/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/home/dzenan/ITK-git/Modules/ThirdParty/VNL/src/vxl/vcl -I/home/dzenan/ITK-git/Modules/ThirdParty/VNL/src/vxl/core -I/home/dzenan/ITK-git-rel/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/home/dzenan/ITK-git-rel/Modules/ThirdParty/VNL/src/vxl/vcl -I/home/dzenan/ITK-git-rel/Modules/ThirdParty/VNL/src/vxl/core -I/home/dzenan/ITK-git-rel/Modules/Core/Common -I/home/dzenan/ITK-git/Modules/Core/Common/include -I/home/dzenan/ITK-git-rel/Modules/IO/ImageBase -I/home/dzenan/ITK-git/Modules/IO/ImageBase/include -I/home/dzenan/ITK-git/Modules/IO/HDF5/include -I/home/dzenan/ITK-git-rel/Modules/ThirdParty/ZLIB/src -I/home/dzenan/ITK-git-rel/Modules/ThirdParty/ZLIB/src/itkzlib-ng -I/home/dzenan/ITK-git/Modules/ThirdParty/ZLIB/src -I/home/dzenan/ITKIOOMEZarrNGFF/include -I/home/dzenan/ITKIOOMEZarrNGFF-rwd/include -I/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-build -I/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-build/config -I/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src -I/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_ports -I/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/third_party/x86inc -w+all -felf64 -f elf -o _deps/aom-build/CMakeFiles/aom_dsp_x86_asm.dir/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm.o /home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:182: error: undefined symbol `rbp' (first use)
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:182: error:  (Each undefined symbol is reported only once.)
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:183: error: undefined symbol `rsp' (first use)
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:184: error: undefined symbol `rdi' (first use)
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:184: error: undefined symbol `rsi' (first use)
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:184: error: undefined symbol `rdx' (first use)
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:184: error: undefined symbol `rcx' (first use)
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:184: error: undefined symbol `r8' (first use)
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:184: error: undefined symbol `r9' (first use)
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:184: error: undefined symbol `rax' (first use)
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:189: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:189: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:189: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:189: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:219: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:219: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:219: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:219: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:220: error: redefinition of `movsxd.loop'
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:190: error: `movsxd.loop' previously defined here
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:253: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:253: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:253: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:253: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:254: error: redefinition of `movsxd.loop'
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:190: error: `movsxd.loop' previously defined here
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:283: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:283: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:283: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:283: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:284: error: redefinition of `movsxd.loop'
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:190: error: `movsxd.loop' previously defined here
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:314: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:314: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:314: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:314: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:315: error: redefinition of `movsxd.loop'
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:190: error: `movsxd.loop' previously defined here
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:348: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:348: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:348: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:348: error: instruction expected after label
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:349: error: redefinition of `movsxd.loop'
/home/dzenan/ITKIOOMEZarrNGFF-rwd/_deps/aom-src/aom_dsp/x86/aom_high_subpixel_bilinear_sse2.asm:190: error: `movsxd.loop' previously defined here

With both nasm and yasm installed, CMake configure step picks up nasm and compiles tensorstore normally.

While it would be good to support yasm, I assume that is non-trivial change.

@dzenanz dzenanz closed this as completed Nov 22, 2022
dzenanz added a commit to dzenanz/dockcross that referenced this issue Nov 22, 2022
Netwide assembler is a small package, but when require it is hard to avoid it (e.g. google/tensorstore#65 (comment)).

$ apt show nasm
Package: nasm
Version: 2.15.05-1
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Anibal Monsalve Salazar <anibal@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3,345 kB
Depends: dpkg (>= 1.15.4) | install-info, libc6 (>= 2.14)
Homepage: http://www.nasm.us/
Download-Size: 375 kB
APT-Manual-Installed: yes
APT-Sources: http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
Description: General-purpose x86 assembler
 Netwide Assembler.  NASM will currently output flat-form binary files,
 a.out, COFF and ELF Unix object files, and Microsoft 16-bit DOS and
 Win32 object files.
 .
 Also included is NDISASM, a prototype x86 binary-file disassembler
 which uses the same instruction table as NASM.
 .
 NASM is released under the GNU Lesser General Public License (LGPL).
JonasVautherin pushed a commit to dockcross/dockcross that referenced this issue Nov 23, 2022
Netwide assembler is a small package, but when require it is hard to avoid it (e.g. google/tensorstore#65 (comment)).

$ apt show nasm
Package: nasm
Version: 2.15.05-1
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Anibal Monsalve Salazar <anibal@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3,345 kB
Depends: dpkg (>= 1.15.4) | install-info, libc6 (>= 2.14)
Homepage: http://www.nasm.us/
Download-Size: 375 kB
APT-Manual-Installed: yes
APT-Sources: http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
Description: General-purpose x86 assembler
 Netwide Assembler.  NASM will currently output flat-form binary files,
 a.out, COFF and ELF Unix object files, and Microsoft 16-bit DOS and
 Win32 object files.
 .
 Also included is NDISASM, a prototype x86 binary-file disassembler
 which uses the same instruction table as NASM.
 .
 NASM is released under the GNU Lesser General Public License (LGPL).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants