Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854084 - [kde overlay] media-gfx/krita-9999: cmake configure error: Cannot specify precompile headers for target "PRIVATE" which is not built by this project.
Summary: [kde overlay] media-gfx/krita-9999: cmake configure error: Cannot specify pre...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-24 12:07 UTC by hugegameartgd
Modified: 2022-07-05 11:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,220.33 KB, text/plain)
2022-06-24 12:12 UTC, hugegameartgd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hugegameartgd 2022-06-24 12:07:00 UTC
Current krita live ebuild in krita overlay fails at configure.

Reproducible: Always

Steps to Reproduce:
Gentoo Linux clang toolchain (amd64 musl libc).
emerge =krita-9999::kde
Actual Results:  
build.log:
```
cmake -C /var/tmp/portage/media-gfx/krita-9999/work/krita-9999_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DKDE_INSTALL_DOCBUNDLEDIR=/usr/share/help -DENABLE_UPDATERS=OFF -DFETCH_TRANSLATIONS=OFF -DCMAKE_DISABLE_FIND_PACKAGE_KSeExpr=ON -DCMAKE_DISABLE_FIND_PACKAGE_OpenColorIO=ON -DCMAKE_DISABLE_FIND_PACKAGE_FFTW3=ON -DCMAKE_DISABLE_FIND_PACKAGE_GIF=ON -DCMAKE_DISABLE_FIND_PACKAGE_GSL=OFF -DCMAKE_DISABLE_FIND_PACKAGE_HEIF=ON -DCMAKE_DISABLE_FIND_PACKAGE_JPEG=OFF -DCMAKE_DISABLE_FIND_PACKAGE_LibMyPaint=OFF -DCMAKE_DISABLE_FIND_PACKAGE_OpenEXR=OFF -DCMAKE_DISABLE_FIND_PACKAGE_Poppler=ON -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Multimedia=ON -DCMAKE_DISABLE_FIND_PACKAGE_LibRaw=OFF -DCMAKE_DISABLE_FIND_PACKAGE_Vc=ON -DCMAKE_DISABLE_FIND_PACKAGE_WebP=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-gfx/krita-9999/work/krita-9999_build/gentoo_toolchain.cmake /var/tmp/portage/media-gfx/krita-9999/work/krita-9999
loading initial cache file /var/tmp/portage/media-gfx/krita-9999/work/krita-9999_build/gentoo_common_config.cmake
-- The CXX compiler identification is Clang 14.0.5
-- The C compiler identification is Clang 14.0.5
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Using CMake version: 3.23.2
-- Krita version: 5.2.0-prealpha
-- Branding selected: Next
[...]
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
[31mCMake Error at cmake/modules/KritaAddBrokenUnitTest.cmake:117 (krita_select_pch_file):
  krita_select_pch_file Function invoked with incorrect arguments for
  function named: krita_select_pch_file
Call Stack (most recent call first):
  cmake/modules/KritaAddBrokenUnitTest.cmake:145 (KRITA_ADD_UNIT_TESTS)
  libs/global/tests/CMakeLists.txt:7 (kis_add_tests)

[0m
[31mCMake Error at cmake/modules/KritaAddBrokenUnitTest.cmake:118 (file):
  file Incorrect arguments to GENERATE subcommand.
Call Stack (most recent call first):
  cmake/modules/KritaAddBrokenUnitTest.cmake:145 (KRITA_ADD_UNIT_TESTS)
  libs/global/tests/CMakeLists.txt:7 (kis_add_tests)

[0m
[31mCMake Error at cmake/modules/KritaAddBrokenUnitTest.cmake:121 (target_precompile_headers):
  Cannot specify precompile headers for target "PRIVATE" which is not built
  by this project.
Call Stack (most recent call first):
  cmake/modules/KritaAddBrokenUnitTest.cmake:145 (KRITA_ADD_UNIT_TESTS)
  libs/global/tests/CMakeLists.txt:7 (kis_add_tests)

[0m
[31mCMake Error at cmake/modules/KritaAddBrokenUnitTest.cmake:117 (krita_select_pch_file):
  krita_select_pch_file Function invoked with incorrect arguments for
  function named: krita_select_pch_file
Call Stack (most recent call first):
  cmake/modules/KritaAddBrokenUnitTest.cmake:145 (KRITA_ADD_UNIT_TESTS)
  libs/global/tests/CMakeLists.txt:7 (kis_add_tests)

[0m
[31mCMake Error at cmake/modules/KritaAddBrokenUnitTest.cmake:118 (file):
  file Incorrect arguments to GENERATE subcommand.
Call Stack (most recent call first):
  cmake/modules/KritaAddBrokenUnitTest.cmake:145 (KRITA_ADD_UNIT_TESTS)
  libs/global/tests/CMakeLists.txt:7 (kis_add_tests)

[...]

[0m
[31mCMake Error at cmake/modules/KritaAddBrokenUnitTest.cmake:118 (file):
  file Incorrect arguments to GENERATE subcommand.
Call Stack (most recent call first):
  cmake/modules/KritaAddBrokenUnitTest.cmake:145 (KRITA_ADD_UNIT_TESTS)
  plugins/color/lcms2engine/tests/CMakeLists.txt:43 (kis_add_tests)

[0m
[31mCMake Error at cmake/modules/KritaAddBrokenUnitTest.cmake:121 (target_precompile_headers):
  Cannot specify precompile headers for target "PRIVATE" which is not built
  by this project.
Call Stack (most recent call first):
  cmake/modules/KritaAddBrokenUnitTest.cmake:145 (KRITA_ADD_UNIT_TESTS)
  plugins/color/lcms2engine/tests/CMakeLists.txt:43 (kis_add_tests)

[0m
-- Found Threads: TRUE  
[0m060601 - The version of SIP found expressed as a 6 digit hex number suitable for comparison as a string.[0m
[0m6.6.1 - The version of SIP found as a human readable string.[0m
[0m/usr/bin/sip-build - Path and filename of the SIP command line executable.[0m
-- Looking for powf
-- Looking for powf - found
[0m
Broken tests:[0m
-- The following features have been enabled:

 * Hide safe asserts, Don't show message box for "safe" asserts, just ignore them automatically and dump a message to the terminal.
 * Lock free hash table, Use lock free hash table instead of blocking.
 * Limit long tests, Run long running unittests in a limited quick mode
 * Precompiled Headers, precompiled headers make build process faster on some systems

[...]

-- <<< Gentoo configuration >>>
Build type      RelWithDebInfo
Install path    /usr
Compiler flags:
C               -march=native -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -fno-semantic-interposition -flto=full -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -Werror=implicit-function-declaration
C++             -march=native -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -fno-semantic-interposition -flto=full -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -fno-operator-names -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -fdiagnostics-color=always -fexceptions
Linker flags:
Executable      -Wl,--enable-new-dtags -L/usr/lib -lexecinfo -L/usr/lib -lexecinfo -Wl,-znow,-zrelro -pie -fuse-ld=mold -unwindlib=libunwind -Wl,--as-needed -Wl,--threads=4 -march=native -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -fno-semantic-interposition -flto=full
Module          -Wl,--no-undefined -Wl,--enable-new-dtags -L/usr/lib -lexecinfo -L/usr/lib -lexecinfo -Wl,-znow,-zrelro -pie -fuse-ld=mold -unwindlib=libunwind -Wl,--as-needed -Wl,--threads=4 -march=native -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -fno-semantic-interposition -flto=full
Shared          -Wl,--no-undefined -Wl,--enable-new-dtags -L/usr/lib -lexecinfo -L/usr/lib -lexecinfo -Wl,-znow,-zrelro -pie -fuse-ld=mold -unwindlib=libunwind -Wl,--as-needed -Wl,--threads=4 -march=native -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -fno-semantic-interposition -flto=full

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/media-gfx/krita-9999/work/krita-9999_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/media-gfx/krita-9999/work/krita-9999_build/CMakeFiles/CMakeError.log".
```

Expected Results:  
Expected result after adding additional cmake flag:
```
-- <<< Gentoo configuration >>>
Build type      RelWithDebInfo
Install path    /usr
Compiler flags:
C               -march=native -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -fno-semantic-interposition -flto=full -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -Werror=implicit-function-declaration
C++             -march=native -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -fno-semantic-interposition -flto=full -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -fno-operator-names -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -fdiagnostics-color=always -fexceptions
Linker flags:
Executable      -Wl,--enable-new-dtags -L/usr/lib -lexecinfo -L/usr/lib -lexecinfo -Wl,-znow,-zrelro -pie -fuse-ld=mold -unwindlib=libunwind -Wl,--as-needed -Wl,--threads=4 -march=native -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -fno-semantic-interposition -flto=full
Module          -Wl,--no-undefined -Wl,--enable-new-dtags -L/usr/lib -lexecinfo -L/usr/lib -lexecinfo -Wl,-znow,-zrelro -pie -fuse-ld=mold -unwindlib=libunwind -Wl,--as-needed -Wl,--threads=4 -march=native -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -fno-semantic-interposition -flto=full
Shared          -Wl,--no-undefined -Wl,--enable-new-dtags -L/usr/lib -lexecinfo -L/usr/lib -lexecinfo -Wl,-znow,-zrelro -pie -fuse-ld=mold -unwindlib=libunwind -Wl,--as-needed -Wl,--threads=4 -march=native -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -Wformat -Werror=format-security -fdata-sections -ffunction-sections -O3 -fno-semantic-interposition -flto=full

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_DISABLE_FIND_PACKAGE_Vc


-- Build files have been written to: /var/tmp/portage/media-gfx/krita-9999/work/krita-9999_build
>>> Source configured.
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-gfx/krita-9999/work/krita-9999"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-gfx/krita-9999/work/krita-9999_build"
ninja -v -j4 -l5.0
``

Works with cmake flag "-DKRITA_ENABLE_PCH=OFF", otherwise configure fails
Comment 1 hugegameartgd 2022-06-24 12:12:21 UTC
Created attachment 787361 [details]
build.log

build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-26 06:46:25 UTC
Yeah, we really don't want PCH anyway. It's far too buggy.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-26 06:46:59 UTC
Please also include:
- emerge --info
- /var/tmp/portage/media-gfx/krita-9999/work/krita-9999_build/CMakeFiles/CMakeOutput.log
- /var/tmp/portage/media-gfx/krita-9999/work/krita-9999_build/CMakeFiles/CMakeError.log