Bug 403057 - Cannot build packages with Craft: cmake failed with exit code 9
Summary: Cannot build packages with Craft: cmake failed with exit code 9
Status: REPORTED
Alias: None
Product: Craft
Classification: Developer tools
Component: Blueprints (show other bugs)
Version: unspecified
Platform: Other macOS
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-10 03:59 UTC by Andrew Udvare
Modified: 2019-07-24 20:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Udvare 2019-01-10 03:59:52 UTC
SUMMARY

Getting no output from CMake. It seems CMake that is packaged through Craft is broken as even invoking it as `cmake --help` shows no output.

STEPS TO REPRODUCE
1. Install Craft
2. Source craft environment
3. craft systemsettings

OBSERVED RESULT

2019-01-09 22:52:51,851 DEBUG Command "/Users/tatsh/.local/share/dev-utils/bin/cmake" -G "Ninja" -DBUILD_TESTING=ON    -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_INSTALL_PREFIX="/Users/tatsh/.local/share" -DCMAKE_PREFIX_PATH="/Users/tatsh/.local/share" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DKDE_INSTALL_BUNDLEDIR="/Users/tatsh/.local/share/Applications/KDE" -DAPPLE_SUPPRESS_X11_WARNING=ON -DKDE_INSTALL_USE_QT_SYS_PATHS=ON "/Users/tatsh/.local/share/build/kde/plasma/systemsettings/work/systemsettings-5.14.4" failed with exit code 9
2019-01-09 22:52:51,852 WARNING Action: compile for kde/plasma/systemsettings:5.14.4 FAILED
2019-01-09 22:52:51,852 INFO *** Craft all failed: kde/plasma/systemsettings after 1 second ***
2019-01-09 22:52:51,856 DEBUG Craft was unable to locate: snoretoast, in None
2019-01-09 22:52:51,856 ERROR fatal error: package kde/plasma/systemsettings all failed

EXPECTED RESULT

The package should build.

SOFTWARE/OS VERSIONS
Windows: 
MacOS: macOS 10.14.2
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version:
Comment 1 Ben Cooksley 2019-01-11 06:03:38 UTC
This was a recent regression which should have subsequently been fixed - could you retest please?
Comment 2 Andrew Udvare 2019-01-11 06:46:49 UTC
I had to do `craft -i --update` and it seems like the CMake binary now works. But I was unable to install systemsettings due to missing packages, it seems:

-- Could NOT find KF5ActivitiesStats: found neither KF5ActivitiesStatsConfig.cmake nor kf5activitiesstats-config.cmake 
-- Could NOT find KF5KHtml: found neither KF5KHtmlConfig.cmake nor kf5khtml-config.cmake 
CMake Error at /Users/tatsh/.local/share/dev-utils/cmake/CMake.app/Contents/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find KF5 (missing: ActivitiesStats) (found suitable version
  "5.52.0", minimum required is "5.50.0")
Call Stack (most recent call first):
  /Users/tatsh/.local/share/dev-utils/cmake/CMake.app/Contents/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /Users/tatsh/.local/share/share/ECM/find-modules/FindKF5.cmake:110 (find_package_handle_standard_args)
  CMakeLists.txt:28 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/tatsh/.local/share/build/kde/plasma/systemsettings/work/RelWithDebInfo-5.14.4/CMakeFiles/CMakeOutput.log".
See also "/Users/tatsh/.local/share/build/kde/plasma/systemsettings/work/RelWithDebInfo-5.14.4/CMakeFiles/CMakeError.log".
executing command: "/Users/tatsh/.local/share/dev-utils/bin/ninja" 
ninja: error: loading 'build.ninja': No such file or directory
Action: compile for kde/plasma/systemsettings:5.14.4 FAILED
*** Craft all failed: kde/plasma/systemsettings after 3 seconds ***
fatal error: package kde/plasma/systemsettings all failed
Comment 3 Ben Cooksley 2019-01-11 07:37:12 UTC
System Settings is a package which likely isn't built very often with Craft, so you may need to fix it's dependencies in the Craft Blueprints. Once those are fixed, it should be able to pass the configure stage.
Comment 4 Andrew Udvare 2019-02-04 10:56:57 UTC
We're missing a blueprint for kactivities-stats, and systemsettings does not pull in khtml as it should.