2.8 fails to build on ppc64le GNU/Linux Ubuntu

Issue #404 new
Former user created an issue

On an up to date ppc64le Ubuntu 16.04 system which already has x265 version 2.7, trying to build 2.8 fails with:

[ 37%] Building CXX object common/CMakeFiles/common.dir/param.cpp.o /usr/pkgsrc/multimedia/x265/work/x265_2.8/source/common/param.cpp: In function ‘int x265_param_parse(x265_param, const char, const char)’: /usr/pkgsrc/multimedia/x265/work/x265_2.8/source/common/param.cpp:636:50: error: too few arguments to function ‘int x265::parseCpuName(const char, bool&, bool)’ p->cpuid = parseCpuName(value, bError); ^ In file included from /usr/pkgsrc/multimedia/x265/work/x265_2.8/source/common/param.cpp:28:0: /usr/pkgsrc/multimedia/x265/work/x265_2.8/source/common/param.h:36:7: note: declared here int parseCpuName(const char value, bool& bError, bool bEnableavx512); ^ common/CMakeFiles/common.dir/build.make:361: recipe for target 'common/CMakeFiles/common.dir/param.cpp.o' failed make[2]: [common/CMakeFiles/common.dir/param.cpp.o] Error 1 CMakeFiles/Makefile2:317: recipe for target 'common/CMakeFiles/common.dir/all' failed make[1]: [common/CMakeFiles/common.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: ** [all] Error 2

Comments (2)

  1. M CHEN

    This is very common bug, they forgot sync new interface on non-x86 path (ppc, arm) You may simple change the code to:

    p->cpuid = parseCpuName(value, bError, 0); 
    
  2. Log in to comment