icc 2018 fails to build x265-2.8

Issue #405 new
Former user created an issue

I try to build x265-2.8 on Centos7.4 by using the following command:

cd x265-2.8/build/linux ./make-Makefiles.bash make

But ICC 2018 fails to build x265-2.8, and reports errors as below:

[ 22%] Building CXX object common/CMakeFiles/common.dir/x86/asm-primitives.cpp.o /export/qiang/buildDir/jdcloud-vod-ffmpeg/x265-2.8/source/common/x86/asm-primitives.cpp(5405): error #165: too few arguments in function call uint32_t cpu = x265::cpu_detect(); ^

compilation aborted for /export/qiang/buildDir/jdcloud-vod-ffmpeg/x265-2.8/source/common/x86/asm-primitives.cpp (code 2) make[2]: [common/CMakeFiles/common.dir/x86/asm-primitives.cpp.o] Error 2 make[1]: [common/CMakeFiles/common.dir/all] Error 2 make: *** [all] Error 2

The following is cmake configuration:

-- The C compiler identification is Intel 18.0.1.20171018 -- The CXX compiler identification is Intel 18.0.1.20171018 -- Check for working C compiler: /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc -- Check for working C compiler: /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icpc -- Check for working CXX compiler: /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icpc -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detected x86_64 target processor -- Found NUMA: /usr
-- Looking for numa_node_of_cpu -- Looking for numa_node_of_cpu - found -- libnuma found, building with support for NUMA nodes -- Looking for include file inttypes.h -- Looking for include file inttypes.h - found -- Performing Test CC_HAS_NO_STRICT_OVERFLOW -- Performing Test CC_HAS_NO_STRICT_OVERFLOW - Failed -- Performing Test CC_HAS_NO_NARROWING -- Performing Test CC_HAS_NO_NARROWING - Success -- Performing Test CC_HAS_NO_ARRAY_BOUNDS -- Performing Test CC_HAS_NO_ARRAY_BOUNDS - Success -- Performing Test CC_HAS_FAST_MATH -- Performing Test CC_HAS_FAST_MATH - Success -- Performing Test CC_HAS_STACK_REALIGN -- Performing Test CC_HAS_STACK_REALIGN - Failed -- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG -- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG - Success -- Found nasm: /usr/local/bin/nasm (found version "2.13.03") -- Found Nasm 2.13.03 to build assembly primitives -- x265 version 0.0 -- The ASM_NASM compiler identification is NASM -- Found assembler: /usr/local/bin/nasm -- Looking for strtok_r -- Looking for strtok_r - found -- Looking for include file getopt.h -- Looking for include file getopt.h - found -- Configuring done -- Generating done -- Build files have been written to: /export/qiang/buildDir/jdcloud-vod-ffmpeg/x265-2.8/build/linux

I search x265 source code, and find cpu_detect() should have one argument. Is that a bug in x265?

Thanks!

Regard

Andrew

Comments (1)

  1. Log in to comment