Bug 473542

Summary: craft kate build fails with qcollectiongenerator not found
Product: [I don't know] kde Reporter: matthias sweertvaegher <matthias.sweertvaegher>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description matthias sweertvaegher 2023-08-19 19:40:19 UTC
SUMMARY
***
I'm trying to build kate on apple silicon macos using craft. it builds for 15 mins but then fails trying to compile kuserfeedback.

STEPS TO REPRODUCE
1. craft kate

OBSERVED RESULT
build fails

EXPECTED RESULT
build succeeds

SOFTWARE/OS VERSIONS
macOS: 13.3.1 (a) 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
here is the build output (for last target):
*** Handling package: kde/unreleased/kuserfeedback, action: all ***
*** Action: fetch-binary for kde/unreleased/kuserfeedback ***
Could not find kde/unreleased/kuserfeedback=1.2.0 in https://files.kde.org/craft/master/23.07/macos/clang/arm64/RelWithDebInfo
Could not find kde/unreleased/kuserfeedback=1.2.0 in https://files.kde.org/craft/master/23.07/macos/clang/arm64/Release
*** kde/unreleased/kuserfeedback not found in cache ***
*** Action: fetch for kde/unreleased/kuserfeedback ***
curl https://download.kde.org/stable/kuserfeedback/kuserfeedback-1.2.0.tar.xz
Warning: --ssl is an insecure option, consider --ssl-reqd instead
#=#=-  #       #                                                                                                                                                                                                                                               #=O#-     #    ######################################################################################################################################################################################################################################################### 100.0%
*** Action: unpack for kde/unreleased/kuserfeedback ***
executing command: /Users/matthias/CraftRoot/dev-utils/bin/7za x /Users/matthias/CraftRoot/download/archives/kde/unreleased/kuserfeedback/kuserfeedback-1.2.0.tar.xz -so -bsp2 | /usr/bin/tar --directory /Users/matthias/CraftRoot/build/kde/unreleased/kuserfeedback/work -xf -
*** Action: compile for kde/unreleased/kuserfeedback ***                           
executing command: /Users/matthias/CraftRoot/dev-utils/bin/cmake -G Ninja -DBUILD_TESTING=ON -DBUILD_SHARED_LIBS=ON -DENABLE_DOCS=OFF -DCMAKE_INSTALL_PREFIX=/Users/matthias/CraftRoot -DCMAKE_PREFIX_PATH=/Users/matthias/CraftRoot -DCMAKE_REQUIRED_INCLUDES=/Users/matthias/CraftRoot/include -DCMAKE_C_STANDARD_INCLUDE_DIRECTORIES=/Users/matthias/CraftRoot/include -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DKDE_INSTALL_BUNDLEDIR=/Users/matthias/CraftRoot/Applications/KDE -DAPPLE_SUPPRESS_X11_WARNING=ON -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -S /Users/matthias/CraftRoot/build/kde/unreleased/kuserfeedback/work/kuserfeedback-1.2.0
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could not set up the appstream test. appstreamcli is missing.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Could NOT find Qt5DocTools (missing: Qt5DocTools_DIR)
CMake Warning at /Users/matthias/CraftRoot/lib/cmake/Qt5/Qt5Config.cmake:39 (message):
  Failed to find Qt5 component "DocTools" config file at
  "/Users/matthias/CraftRoot/lib/cmake/Qt5DocTools/Qt5DocToolsConfig.cmake"
Call Stack (most recent call first):
  CMakeLists.txt:43 (find_package)


CMake Error at /Users/matthias/CraftRoot/lib/cmake/Qt5Help/Qt5HelpConfig.cmake:14 (message):
  The imported target "Qt5::Help" references the file

     "/Users/matthias/CraftRoot/bin/qcollectiongenerator"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/Users/matthias/CraftRoot/lib/cmake/Qt5Help/Qt5HelpConfigExtras.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /Users/matthias/CraftRoot/lib/cmake/Qt5Help/Qt5HelpConfigExtras.cmake:6 (_qt5_Help_check_file_exists)
  /Users/matthias/CraftRoot/lib/cmake/Qt5Help/Qt5HelpConfig.cmake:227 (include)
  /Users/matthias/CraftRoot/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
  CMakeLists.txt:61 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/matthias/CraftRoot/build/kde/unreleased/kuserfeedback/work/build/CMakeFiles/CMakeOutput.log".
See also "/Users/matthias/CraftRoot/build/kde/unreleased/kuserfeedback/work/build/CMakeFiles/CMakeError.log".
Command ['/Users/matthias/CraftRoot/dev-utils/bin/cmake', '-G', 'Ninja', '-DBUILD_TESTING=ON', '-DBUILD_SHARED_LIBS=ON', '-DENABLE_DOCS=OFF', '-DCMAKE_INSTALL_PREFIX=/Users/matthias/CraftRoot', '-DCMAKE_PREFIX_PATH=/Users/matthias/CraftRoot', '-DCMAKE_REQUIRED_INCLUDES=/Users/matthias/CraftRoot/include', '-DCMAKE_C_STANDARD_INCLUDE_DIRECTORIES=/Users/matthias/CraftRoot/include', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DKDE_INSTALL_BUNDLEDIR=/Users/matthias/CraftRoot/Applications/KDE', '-DAPPLE_SUPPRESS_X11_WARNING=ON', '-DKDE_INSTALL_USE_QT_SYS_PATHS=ON', '-S', '/Users/matthias/CraftRoot/build/kde/unreleased/kuserfeedback/work/kuserfeedback-1.2.0'] failed with exit code 1
Action: compile for kde/unreleased/kuserfeedback:1.2.0 FAILED
*** Craft all failed: kde/unreleased/kuserfeedback after 2 seconds ***
fatal error: package kde/unreleased/kuserfeedback all failed
Craft stopped with out completing ['kde/unreleased/kuserfeedback', 'kde/applications/kate']
~/CraftRoot                                                                                                                                                                                                                                                           16m 55s
❯
Comment 1 Bug Janitor Service 2023-08-19 20:29:33 UTC
A possibly relevant merge request was started @ https://invent.kde.org/packaging/craft-blueprints-kde/-/merge_requests/643
Comment 2 Nicolas Fella 2023-08-20 10:27:22 UTC
Git commit 3393ee7621b8973669eda33ea0ef40e5cd25c790 by Nicolas Fella.
Committed on 19/08/2023 at 22:29.
Pushed by vonreth into branch 'master'.

kuserfeedback: Backport patch to fix build without QtDocTools

A  +48   -0    kde/unreleased/kuserfeedback/0001-Hide-finding-docs-dependencies-behind-ENABLE_DOCS.patch
M  +2    -0    kde/unreleased/kuserfeedback/kuserfeedback.py

https://invent.kde.org/packaging/craft-blueprints-kde/-/commit/3393ee7621b8973669eda33ea0ef40e5cd25c790
Comment 3 matthias sweertvaegher 2023-08-22 16:06:02 UTC
hi Nicolas,

thanks for the fast response. I ran 'craft kde' once more, and it seemed to update stuff, but it still fails, seemingly with the same error. 

It's my first time using craft, do I need to run a special command to update? I tried the '-i' option, but same result (running 'craft kate'):

*** Handling package: kde/unreleased/kuserfeedback, action: all ***
*** Action: fetch-binary for kde/unreleased/kuserfeedback ***
Could not find kde/unreleased/kuserfeedback=1.2.0 in https://files.kde.org/craft/master/23.07/macos/clang/arm64/RelWithDebInfo
Could not find kde/unreleased/kuserfeedback=1.2.0 in https://files.kde.org/craft/master/23.07/macos/clang/arm64/Release
*** kde/unreleased/kuserfeedback not found in cache ***
*** Action: fetch for kde/unreleased/kuserfeedback ***
*** Action: unpack for kde/unreleased/kuserfeedback ***
executing command: /Users/matthias/CraftRoot/dev-utils/bin/7za x /Users/matthias/CraftRoot/download/archives/kde/unreleased/kuserfeedback/kuserfeedback-1.2.0.tar.xz -so -bsp2 | /usr/bin/tar --directory /Users/matthias/CraftRoot/build/kde/unreleased/kuserfeedback/work -xf -
executing command: /usr/bin/patch --ignore-whitespace -d /Users/matthias/CraftRoot/build/kde/unreleased/kuserfeedback/work/kuserfeedback-1.2.0 -p 1 -i /Users/matthias/CraftRoot/etc/blueprints/locations/craft-blueprints-kde/kde/unreleased/kuserfeedback/0001-Hide-finding-docs-dependencies-behind-ENABLE_DOCS.patch
patching file CMakeLists.txt
*** Action: compile for kde/unreleased/kuserfeedback ***
executing command: /Users/matthias/CraftRoot/dev-utils/bin/cmake -G Ninja -DBUILD_TESTING=ON -DBUILD_SHARED_LIBS=ON -DENABLE_DOCS=OFF -DCMAKE_INSTALL_PREFIX=/Users/matthias/CraftRoot -DCMAKE_PREFIX_PATH=/Users/matthias/CraftRoot -DCMAKE_REQUIRED_INCLUDES=/Users/matthias/CraftRoot/include -DCMAKE_C_STANDARD_INCLUDE_DIRECTORIES=/Users/matthias/CraftRoot/include -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DKDE_INSTALL_BUNDLEDIR=/Users/matthias/CraftRoot/Applications/KDE -DAPPLE_SUPPRESS_X11_WARNING=ON -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -S /Users/matthias/CraftRoot/build/kde/unreleased/kuserfeedback/work/kuserfeedback-1.2.0
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could not set up the appstream test. appstreamcli is missing.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
CMake Error at /Users/matthias/CraftRoot/lib/cmake/Qt5Help/Qt5HelpConfig.cmake:14 (message):
  The imported target "Qt5::Help" references the file

     "/Users/matthias/CraftRoot/bin/qcollectiongenerator"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/Users/matthias/CraftRoot/lib/cmake/Qt5Help/Qt5HelpConfigExtras.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /Users/matthias/CraftRoot/lib/cmake/Qt5Help/Qt5HelpConfigExtras.cmake:6 (_qt5_Help_check_file_exists)
  /Users/matthias/CraftRoot/lib/cmake/Qt5Help/Qt5HelpConfig.cmake:227 (include)
  /Users/matthias/CraftRoot/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
  CMakeLists.txt:55 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/matthias/CraftRoot/build/kde/unreleased/kuserfeedback/work/build/CMakeFiles/CMakeOutput.log".
See also "/Users/matthias/CraftRoot/build/kde/unreleased/kuserfeedback/work/build/CMakeFiles/CMakeError.log".
Command ['/Users/matthias/CraftRoot/dev-utils/bin/cmake', '-G', 'Ninja', '-DBUILD_TESTING=ON', '-DBUILD_SHARED_LIBS=ON', '-DENABLE_DOCS=OFF', '-DCMAKE_INSTALL_PREFIX=/Users/matthias/CraftRoot', '-DCMAKE_PREFIX_PATH=/Users/matthias/CraftRoot', '-DCMAKE_REQUIRED_INCLUDES=/Users/matthias/CraftRoot/include', '-DCMAKE_C_STANDARD_INCLUDE_DIRECTORIES=/Users/matthias/CraftRoot/include', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DKDE_INSTALL_BUNDLEDIR=/Users/matthias/CraftRoot/Applications/KDE', '-DAPPLE_SUPPRESS_X11_WARNING=ON', '-DKDE_INSTALL_USE_QT_SYS_PATHS=ON', '-S', '/Users/matthias/CraftRoot/build/kde/unreleased/kuserfeedback/work/kuserfeedback-1.2.0'] failed with exit code 1
Action: compile for kde/unreleased/kuserfeedback:1.2.0 FAILED
*** Craft all failed: kde/unreleased/kuserfeedback after 1 second ***
fatal error: package kde/unreleased/kuserfeedback all failed
Craft stopped with out completing ['kde/unreleased/kuserfeedback', 'kde/applications/kate']
Comment 4 Bug Janitor Service 2023-09-21 19:37:08 UTC
A possibly relevant merge request was started @ https://invent.kde.org/libraries/kuserfeedback/-/merge_requests/47
Comment 5 Julius Künzel 2023-09-21 19:55:37 UTC
Git commit 969ae35f415e1c33b700e8d2125afb2e897eabae by Julius Künzel.
Committed on 21/09/2023 at 21:55.
Pushed by jlskuz into branch 'dev'.

[KUserFeedback] Backport another fix

This is needed for macOS ARM

A  +35   -0    kde/unreleased/kuserfeedback/disable-qthelp-if-docs-disabled.patch
M  +2    -1    kde/unreleased/kuserfeedback/kuserfeedback.py

https://invent.kde.org/packaging/craft-blueprints-kde/-/commit/969ae35f415e1c33b700e8d2125afb2e897eabae
Comment 6 Julius Künzel 2023-09-21 19:55:46 UTC
Git commit 5f3912ac400949a0b55140078e1f9c97c2ae6ef0 by Julius Künzel.
Committed on 21/09/2023 at 21:36.
Pushed by jlskuz into branch 'master'.

Do not look for QtHelp if docs are disabled

Otherwise it may fail like on macOS ARM

M  +4    -3    CMakeLists.txt

https://invent.kde.org/libraries/kuserfeedback/-/commit/5f3912ac400949a0b55140078e1f9c97c2ae6ef0