Activity log for bug #1882792

Date Who What changed Old value New value Message
2020-06-09 14:32:58 tom bug added bug
2020-06-09 14:32:58 tom attachment added builderror https://bugs.launchpad.net/bugs/1882792/+attachment/5382041/+files/builderror
2020-06-09 14:45:46 tom attachment added outputdevices_x11.cpp https://bugs.launchpad.net/compiz/+bug/1882792/+attachment/5382042/+files/outputdevices_x11.cpp
2020-06-09 14:48:29 tom attachment added unity_0_cxx.cxx https://bugs.launchpad.net/compiz/+bug/1882792/+attachment/5382043/+files/unity_0_cxx.cxx
2020-06-09 15:07:02 tom tags unitybuild jumbo-build unity-build
2020-06-09 15:11:56 tom description salve, i am using cmake to build compiz but it breaks with the cmake switch -DCMAKE_UNIT_BUILD=TRUE. a very good and short description how does unity build are work: https://mesonbuild.com/Unity-builds.html ``` make[1]: *** [CMakeFiles/Makefile2:8084: compizconfig/libcompizconfig/src/CMakeFiles/compizconfig.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... In file included from /tmp/makepkg/compiz/src/compiz-0.9.14.1/src/outputdevices_x11.cpp:25, from /tmp/makepkg/compiz/src/compiz-0.9.14.1/build/src/CMakeFiles/compiz_outputdevices.dir/Unity/unity_0_cxx.cxx:4: /tmp/makepkg/compiz/src/compiz-0.9.14.1/src/outputdevices.h:40:7: error: redefinition of 'class compiz::core::OutputDevices' 40 | class OutputDevices | ^~~~~~~~~~~~~ In file included from /tmp/makepkg/compiz/src/compiz-0.9.14.1/src/outputdevices.cpp:26, from /tmp/makepkg/compiz/src/compiz-0.9.14.1/build/src/CMakeFiles/compiz_outputdevices.dir/Unity/unity_0_cxx.cxx:3: /tmp/makepkg/compiz/src/compiz-0.9.14.1/src/outputdevices.h:40:7: note: previous definition of 'class compiz::core::OutputDevices' 40 | class OutputDevices | ^~~~~~~~~~~~~ make[2]: *** [src/CMakeFiles/compiz_outputdevices.dir/build.make:83: src/CMakeFiles/compiz_outputdevices.dir/Unity/unity_0_cxx.cxx.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:7514: src/CMakeFiles/compiz_outputdevices.dir/all] Error 2 [ 68%] Linking CXX static library libresize_logic.a [ 68%] Built target resize_logic make: *** [Makefile:183: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... ==> Removing installed dependencies... ``` salve, i am using archlinux and with cmake to build compiz but it breaks with the cmake switch -DCMAKE_UNIT_BUILD=TRUE. a very good and short description how does unity build are work: https://mesonbuild.com/Unity-builds.html as build time example for a successful unity build or jumbo build. i tested this feature with kactivities three times and it reduce the build time greatly! #with set `-DCMAKE_UNITY_BUILD=true` real 66,03 - 68,91 - 68,93 user 92,77 - 98,05 - 68,93 sys 8,80 - 8,76 - 8,95``` #without `-DCMAKE_UNITY_BUILD=true` real 128,53 - 125,27 - 129,16 user 219,17 - 215,70 - 219,40 sys 15,54 - 15,68 - 16,41 unfortunale compiz isn't in the arch repository and i must rebuild every time when something is changed and i don't "speak" c++ so it isn't possible to fix this problem :(
2020-08-06 19:17:22 Launchpad Janitor merge proposal linked https://code.launchpad.net/~mitya57/compiz/+git/compiz/+merge/388842