https://bugs.kde.org/show_bug.cgi?id=360773

            Bug ID: 360773
           Summary: Krita fails to build with Vc 1.2.0
           Product: krita
           Version: git master
          Platform: Debian unstable
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: krita-bugs-n...@kde.org
          Reporter: jfeb...@gmail.com

I can't build Krita from current master with Vc 1.2.0, however with Vc 0.7.5 it
builds correctly.
I'm using Debian sid with GCC 5.3.1, Qt 5.5.1 and Mesa 11.1.2.

The relevant parts of the build and errors:

-- Found Vc: /usr/lib/cmake/Vc/VcConfig.cmake (found suitable version "1.2.0",
minimum required is "0.6.70") 
-- Vc found!
-- Vc version is greater than 0.7, enabling AVX2 support
CMake Warning at /usr/lib/cmake/Vc/AddCompilerFlag.cmake:55 (message):
  Deprecated use of the AddCompilerFlag macro.
Call Stack (most recent call first):
  CMakeLists.txt:529 (AddCompilerFlag)

In file included from
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoOptimizedCompositeOpFactoryPerArch.h:24:0,
                 from
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoOptimizedCompositeOpFactory.cpp:20:
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:
In function ‘typename FactoryType::ReturnType createOptimizedClass(typename
FactoryType::ParamType)’:
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:122:41:
error: ‘VC_IMPL’ was not declared in this scope
     return FactoryType::template create<VC_IMPL>(param);
                                         ^
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:
In instantiation of ‘typename FactoryType::ReturnType
createOptimizedClass(typename FactoryType::ParamType) [with FactoryType =
KoReportCurrentArch; typename FactoryType::ReturnType = void; typename
FactoryType::ParamType = void*]’:
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoOptimizedCompositeOpFactory.cpp:30:52:
  required from here
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:122:49:
error: ‘create<<expression error> >’ is not a member of ‘KoReportCurrentArch’
     return FactoryType::template create<VC_IMPL>(param);
                                                 ^
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:122:55:
error: return-statement with a value, in function returning 'void'
[-fpermissive]
     return FactoryType::template create<VC_IMPL>(param);
                                                       ^
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:
In instantiation of ‘typename FactoryType::ReturnType
createOptimizedClass(typename FactoryType::ParamType) [with FactoryType =
KoOptimizedCompositeOpFactoryPerArch<KoOptimizedCompositeOpAlphaDarken32>;
typename FactoryType::ReturnType = KoCompositeOp*; typename
FactoryType::ParamType = const KoColorSpace*]’:
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoOptimizedCompositeOpFactory.cpp:37:111:
  required from here
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:122:49:
error: ‘create<<expression error> >’ is not a member of
‘KoOptimizedCompositeOpFactoryPerArch<KoOptimizedCompositeOpAlphaDarken32>’
     return FactoryType::template create<VC_IMPL>(param);
                                                 ^
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:
In instantiation of ‘typename FactoryType::ReturnType
createOptimizedClass(typename FactoryType::ParamType) [with FactoryType =
KoOptimizedCompositeOpFactoryPerArch<KoOptimizedCompositeOpOver32>; typename
FactoryType::ReturnType = KoCompositeOp*; typename FactoryType::ParamType =
const KoColorSpace*]’:
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoOptimizedCompositeOpFactory.cpp:42:104:
  required from here
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:122:49:
error: ‘create<<expression error> >’ is not a member of
‘KoOptimizedCompositeOpFactoryPerArch<KoOptimizedCompositeOpOver32>’
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:
In instantiation of ‘typename FactoryType::ReturnType
createOptimizedClass(typename FactoryType::ParamType) [with FactoryType =
KoOptimizedCompositeOpFactoryPerArch<KoOptimizedCompositeOpAlphaDarken128>;
typename FactoryType::ReturnType = KoCompositeOp*; typename
FactoryType::ParamType = const KoColorSpace*]’:
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoOptimizedCompositeOpFactory.cpp:47:112:
  required from here
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:122:49:
error: ‘create<<expression error> >’ is not a member of
‘KoOptimizedCompositeOpFactoryPerArch<KoOptimizedCompositeOpAlphaDarken128>’
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:
In instantiation of ‘typename FactoryType::ReturnType
createOptimizedClass(typename FactoryType::ParamType) [with FactoryType =
KoOptimizedCompositeOpFactoryPerArch<KoOptimizedCompositeOpOver128>; typename
FactoryType::ReturnType = KoCompositeOp*; typename FactoryType::ParamType =
const KoColorSpace*]’:
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoOptimizedCompositeOpFactory.cpp:52:105:
  required from here
/home/josep/src/git/kde/krita/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:122:49:
error: ‘create<<expression error> >’ is not a member of
‘KoOptimizedCompositeOpFactoryPerArch<KoOptimizedCompositeOpOver128>’
libs/pigment/CMakeFiles/kritapigment.dir/build.make:857: recipe for target
'libs/pigment/CMakeFiles/kritapigment.dir/compositeops/KoOptimizedCompositeOpFactory.cpp.o'
failed
make[4]: ***
[libs/pigment/CMakeFiles/kritapigment.dir/compositeops/KoOptimizedCompositeOpFactory.cpp.o]
Error 1

And the full dependecy build log:

-- The C compiler identification is GNU 5.3.1
-- The CXX compiler identification is GNU 5.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CMake version: 3.5.0
-- Krita version: 3.0 Alpha
Module
path:/mnt/coses/src/git/kde/krita/cmake/modules/mnt/coses/src/git/kde/krita/cmake/kde_macro
-- Release build: FALSE
-- -------------------------------------------------------------------
-- Configured with product set "ALL"
-- -------------------------------------------------------------------
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Found KF5Archive:
/usr/lib/x86_64-linux-gnu/cmake/KF5Archive/KF5ArchiveConfig.cmake (found
version "5.20.0") 
-- Found KF5Config:
/usr/lib/x86_64-linux-gnu/cmake/KF5Config/KF5ConfigConfig.cmake (found version
"5.20.0") 
-- Found KF5WidgetsAddons:
/usr/lib/x86_64-linux-gnu/cmake/KF5WidgetsAddons/KF5WidgetsAddonsConfig.cmake
(found version "5.20.0") 
-- Found KF5Completion:
/usr/lib/x86_64-linux-gnu/cmake/KF5Completion/KF5CompletionConfig.cmake (found
version "5.20.0") 
-- Found KF5CoreAddons:
/usr/lib/x86_64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found
version "5.21.0") 
-- Found KF5GuiAddons:
/usr/lib/x86_64-linux-gnu/cmake/KF5GuiAddons/KF5GuiAddonsConfig.cmake (found
version "5.20.0") 
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.7") 
-- Found PythonInterp: /usr/bin/python (found version "2.7.11") 
-- Found KF5I18n: /usr/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18nConfig.cmake
(found version "5.20.0") 
-- Found KF5ItemModels:
/usr/lib/x86_64-linux-gnu/cmake/KF5ItemModels/KF5ItemModelsConfig.cmake (found
version "5.19.0") 
-- Found KF5ItemViews:
/usr/lib/x86_64-linux-gnu/cmake/KF5ItemViews/KF5ItemViewsConfig.cmake (found
version "5.20.0") 
-- Found KF5WindowSystem:
/usr/lib/x86_64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake
(found version "5.20.0") 
-- Found KF5: success (found suitable version "5.19.0", minimum required is
"5.7.0") found components:  Archive Config WidgetsAddons Completion CoreAddons
GuiAddons I18n ItemModels ItemViews WindowSystem 
-- Looking for XOpenDisplay in
/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in
/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so -
found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 
-- Found XCB_XCB: /usr/lib/x86_64-linux-gnu/libxcb.so (found version "1.11.1") 
-- Found XCB_ATOM: /usr/lib/x86_64-linux-gnu/libxcb-util.so (found version
"0.3.8") 
-- Found XCB:
/usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so
(found version "1.11.1") found components:  XCB ATOM 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") 
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.54") 
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   system
-- Found GNU Scientific Library 2.1: /usr/include/gsl
/usr/lib/x86_64-linux-gnu/libgsl.so;/usr/lib/x86_64-linux-gnu/libgslcblas.so
-- Found OPENEXR:
/usr/lib/x86_64-linux-gnu/libImath.so;/usr/lib/x86_64-linux-gnu/libIlmImf.so;/usr/lib/x86_64-linux-gnu/libIex.so;/usr/lib/x86_64-linux-gnu/libHalf.so;/usr/lib/x86_64-linux-gnu/libIlmThread.so
-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.6") 
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so  
-- Found OpenJPEG: /usr/lib/x86_64-linux-gnu/libopenjpeg.so
-- Checking for module 'libraw'
--   Found libraw, version 0.17.1
-- Checking for module 'libraw_r'
--   Found libraw_r, version 0.17.1
-- Found LibRaw: /usr/lib/x86_64-linux-gnu/libraw.so (found suitable version
"0.17.1", minimum required is "0.16") 
-- Checking for module 'fftw3>=3.2'
--   Found fftw3, version 3.3.4
-- Found FFTW3 
-- FFTW Found Version: 
-- Found QtGui OpenGL support
-- OpenGL found -- krita will be able  to use OpenGL for hardware accelerated
rendering.
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0") 
-- Found Exiv2: /usr/lib/x86_64-linux-gnu/libexiv2.so (found suitable version
"0.25.0", minimum required is "0.16") 
-- Checking for module 'lcms2'
--   Found lcms2, version 2.6
-- Found lcms version 2.06, /usr/lib/x86_64-linux-gnu/liblcms2.so
-- Detected Compiler: GCC 5.3.1
-- Performing Test check_cxx_compiler_flag__Wabi
-- Performing Test check_cxx_compiler_flag__Wabi - Success
-- Performing Test check_cxx_compiler_flag__fabi_version_0
-- Performing Test check_cxx_compiler_flag__fabi_version_0 - Success
-- Performing Test check_cxx_compiler_flag__fabi_compat_version_0
-- Performing Test check_cxx_compiler_flag__fabi_compat_version_0 - Success
-- Performing Test check_cxx_compiler_flag__ffp_contract_fast
-- Performing Test check_cxx_compiler_flag__ffp_contract_fast - Success
-- target changed from "" to "auto"
-- Detected CPU: sandy-bridge
-- Performing Test check_cxx_compiler_flag__march_sandybridge
-- Performing Test check_cxx_compiler_flag__march_sandybridge - Success
-- Performing Test check_cxx_compiler_flag__msse2
-- Performing Test check_cxx_compiler_flag__msse2 - Success
-- Performing Test check_cxx_compiler_flag__msse3
-- Performing Test check_cxx_compiler_flag__msse3 - Success
-- Looking for pmmintrin.h
-- Looking for pmmintrin.h - found
-- Performing Test check_cxx_compiler_flag__mssse3
-- Performing Test check_cxx_compiler_flag__mssse3 - Success
-- Looking for tmmintrin.h
-- Looking for tmmintrin.h - found
-- Performing Test check_cxx_compiler_flag__msse4_1
-- Performing Test check_cxx_compiler_flag__msse4_1 - Success
-- Looking for smmintrin.h
-- Looking for smmintrin.h - found
-- Performing Test check_cxx_compiler_flag__msse4_2
-- Performing Test check_cxx_compiler_flag__msse4_2 - Success
-- Performing Test check_cxx_compiler_flag__mavx
-- Performing Test check_cxx_compiler_flag__mavx - Success
-- Looking for immintrin.h
-- Looking for immintrin.h - found
-- Performing Test check_cxx_compiler_flag__mno_sse4a
-- Performing Test check_cxx_compiler_flag__mno_sse4a - Success
-- Performing Test check_cxx_compiler_flag__mno_fma
-- Performing Test check_cxx_compiler_flag__mno_fma - Success
-- Performing Test check_cxx_compiler_flag__mno_bmi2
-- Performing Test check_cxx_compiler_flag__mno_bmi2 - Success
-- Performing Test check_cxx_compiler_flag__mno_avx2
-- Performing Test check_cxx_compiler_flag__mno_avx2 - Success
-- Performing Test check_cxx_compiler_flag__mno_xop
-- Performing Test check_cxx_compiler_flag__mno_xop - Success
-- Performing Test check_cxx_compiler_flag__mno_fma4
-- Performing Test check_cxx_compiler_flag__mno_fma4 - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512f
-- Performing Test check_cxx_compiler_flag__mno_avx512f - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512vl
-- Performing Test check_cxx_compiler_flag__mno_avx512vl - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512pf
-- Performing Test check_cxx_compiler_flag__mno_avx512pf - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512er
-- Performing Test check_cxx_compiler_flag__mno_avx512er - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512cd
-- Performing Test check_cxx_compiler_flag__mno_avx512cd - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512dq
-- Performing Test check_cxx_compiler_flag__mno_avx512dq - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512bw
-- Performing Test check_cxx_compiler_flag__mno_avx512bw - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512ifma
-- Performing Test check_cxx_compiler_flag__mno_avx512ifma - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512vbmi
-- Performing Test check_cxx_compiler_flag__mno_avx512vbmi - Success
-- Found Vc: /usr/lib/cmake/Vc/VcConfig.cmake (found suitable version "1.2.0",
minimum required is "0.6.70") 
-- Vc found!
-- Vc version is greater than 0.7, enabling AVX2 support
CMake Warning at /usr/lib/cmake/Vc/AddCompilerFlag.cmake:55 (message):
  Deprecated use of the AddCompilerFlag macro.
Call Stack (most recent call first):
  CMakeLists.txt:529 (AddCompilerFlag)


-- Performing Test check_cxx_compiler_flag__std_c__11
-- Performing Test check_cxx_compiler_flag__std_c__11 - Success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found SharedMimeInfo: /usr/bin/update-mime-database (found suitable version
"1.5", minimum required is "0.18") 
-- Checking for module 'poppler-qt5'
--   Found poppler-qt5, version 0.38.0
-- Performing Test HAVE_POPPLER_0_24
-- Performing Test HAVE_POPPLER_0_24 - Failed
-- Performing Test HAVE_POPPLER_0_28
-- Performing Test HAVE_POPPLER_0_28 - Failed
-- Found Poppler-Qt5: /usr/lib/x86_64-linux-gnu/libpoppler-qt5.so, (>= )
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp  
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.47.0") 
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Looking for backtrace
-- Looking for backtrace - found
Following objects are generated from the per-arch lib
compositeops/KoOptimizedCompositeOpFactoryPerArch.cpp
G'Mic: using pthreads
G'Mic: using OpenMP
G'Mic: using FFTW3
G'Mic: using Curl

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * QtQuick - Qt Quick
   * dbus - Qt DBUS integration
   * KIO - KDE's KIO Framework
   * kcrash - KDE's Crash Handler
   * GSL - GNU Scientific Library
   * zlib - Compression library
   * OpenEXR - High dynamic-range (HDR) image file format
   * tiff - TIFF Library and Utilities
   * jpeg - Free library for JPEG image compression. Note: libjpeg8 is NOT
supported.
   * openjpeg - Free library for JPEG 2000 image compression
   * LibRaw - Library to decode RAW images
   * FFTW3 - A fast, free C FFT library
   * OCIO - The OpenColorIO Library
   * Eigen - C++ template library for linear algebra
   * Exiv2 - Image metadata library and tools
   * LittleCMS - Color management engine
   * Vc - Portable, zero-overhead SIMD library for C++
   * SharedMimeInfo - Shared Mime Info
   * Poppler-Qt5 - A PDF rendering library
   * PThreads - A low-level threading library
   * OpenMP - A low-level parallel execution library
   * CURL - A tool to fetch remote data

-----------------------------------------------------------------------------
-- Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- ------ The following product(set)s/features will be built ---------
-- LIB_KOVECTORIMAGE:  libkovectorimage
-- LIB_CALLIGRA:  Calligra core libs
-- PLUGIN_TEXTSHAPE:  Text shape plugin
-- APP_KRITA:  Krita app (for Desktop)
-- PLUGIN_COLORENGINES:  Colorengine plugins
-- PLUGIN_ARTISTICTEXTSHAPE:  Artistic shape plugin
-- PLUGIN_DOCKERS:  Default dockers plugin
-- PLUGIN_DEFAULTTOOLS:  Default Flake tools plugin
-- PLUGIN_PATHSHAPES:  Path shape plugins
-- PLUGIN_VECTORSHAPE:  Vectorgraphic shape plugin
-- KRITA:  Full Krita
-- -------------------------------------------------------------------
-- Looking for powf
-- Looking for powf - not found
-- Configuring done
-- Generating done

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to