intel/x86-simd-sort

Compilation falure on vpcompressw

Opened this issue · 1 comments

Hi,
A build failure on some asm instr:

The Meson build system
Version: 0.55.1
Source dir: repos/x86-simd-sort
Build dir: repos/x86-simd-sort/builddir
Build type: native build
Project name: x86-simd-sort
Project version: 4.0.0
C++ compiler for the host machine: ccache c++ (gcc 11.3.0 "c++ (GCC) 11.3.0")
C++ linker for the host machine: c++ ld.bfd 2.27-44
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C++ supports arguments -march=haswell: YES 
Compiler for C++ supports arguments -march=skylake-avx512: YES 
Compiler for C++ supports arguments -march=icelake-client: YES 
Build targets in project: 4

x86-simd-sort 4.0.0

  Configuration
    Can compile AVX-512 FP16 ISA: NO
              Build test content: NO
                Build benchmarks: NO

Found runner: /usr/bin/ninja
ninja: Entering directory `.'
[2/8] Compiling C++ object lib/liblibicl.a.p/x86simdsort-icl.cpp.o
FAILED: lib/liblibicl.a.p/x86simdsort-icl.cpp.o 
ccache c++ -Ilib/liblibicl.a.p -Ilib -I../lib -I../src -fvisibility=hidden -fvisibility-inlines-hidden -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -fPIC -march=icelake-client -MD -MQ lib/liblibicl.a.p/x86simdsort-icl.cpp.o -MF lib/liblibicl.a.p/x86simdsort-icl.cpp.o.d -o lib/liblibicl.a.p/x86simdsort-icl.cpp.o -c ../lib/x86simdsort-icl.cpp
{standard input}: Assembler messages:
{standard input}:184: Error: no such instruction: `vpcompressw %zmm4,(%rbx,%r12,2){%k2}'
{standard input}:185: Error: no such instruction: `vpcompressw %zmm4,64(%rbx,%rax,2){%k1}'
{standard input}:197: Error: no such instruction: `vpcompressw %zmm4,(%rbx,%r12,2){%k2}'
{standard input}:198: Error: no such instruction: `vpcompressw %zmm4,(%rbx,%rax,2){%k1}'
...

Tks

Very likely that your binutils/assembler is old. C++ linker for the host machine: c++ ld.bfd 2.27-44. Could you update that and re-build?