Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/dde-kwin.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-322431-68279/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/dde-kwin.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1675814400 Wrote: /builddir/build/SRPMS/dde-kwin-5.5.24-2.an23.src.rpm RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/dde-kwin.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-322431-68279/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/dde-kwin.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1675814400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.CIK06v + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf dde-kwin-5.5.24 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/dde-kwin-5.5.24.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd dde-kwin-5.5.24 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (0001-dde-kwin-support-QFont.patch):' Patch #0 (0001-dde-kwin-support-QFont.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file plugins/kdecoration/chameleon.h Patch #1 (0002-feat-close-judge-XDG_SESSION_TYPE.patch): + echo 'Patch #1 (0002-feat-close-judge-XDG_SESSION_TYPE.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file deepin-wm-dbus/deepinwmfaker.cpp + sed -i s:/lib:/lib64: plugins/platforms/lib/CMakeLists.txt + sed -i s:/usr/lib:/usr/lib64: plugins/platforms/plugin/main.cpp plugins/platforms/plugin/main_wayland.cpp + sed -i s:/usr/lib:/usr/libexec: deepin-wm-dbus/deepinwmfaker.cpp + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.whCskf + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd dde-kwin-5.5.24 + export PATH=/usr/lib64/qt5/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PATH=/usr/lib64/qt5/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX ++ rpm -q --qf '%{version}' kwin-devel + /usr/bin/cmake -S . -B anolis-linux-build -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=lib64 -DCMAKE_INSTALL_FULL_LIBDIR:PATH=/usr/lib64 -DCMAKE_INSTALL_LIBEXECDIR:PATH=libexec -DCMAKE_INSTALL_FULL_LIBEXECDIR:PATH=/usr/libexec -DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=/var/lib -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DUSE_WINDOW_TOOL=OFF -DKWIN_VERSION=5.15.11.59 . CMake Warning (dev) at CMakeLists.txt:1 (project): cmake_minimum_required() should be called prior to this top-level project() call. Please see the cmake-commands(7) manual for usage documentation of both commands. This warning is for project developers. Use -Wno-dev to suppress it. -- The C compiler identification is GNU 12.2.1 -- The CXX compiler identification is GNU 12.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - 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: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Warning (dev) at CMakeLists.txt:13 (add_definitions): Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMakeLists.txt:13 (add_definitions): Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it. kwin version: 5.15.11.59 CMake Warning (dev) at CMakeLists.txt:91 (add_definitions): Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it. -- Found X11: /usr/include -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/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 CMake Warning (dev) at /usr/lib/cmake/Dtk/DtkInstallDConfigConfig.cmake:20 (add_definitions): Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /usr/lib/cmake/Dtk/DtkConfig.cmake:5 (include) /usr/lib64/cmake/DtkGui/DtkGuiConfig.cmake:1 (find_package) plugins/platforms/plugin/CMakeLists.txt:12 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at plugins/kdecoration/CMakeLists.txt:3 (add_definitions): Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it. Updating '/builddir/build/BUILD/dde-kwin-5.5.24/plugins/kdecoration/translations/splitmenu.qm'... Generated 4 translation(s) (4 finished and 0 unfinished) Updating '/builddir/build/BUILD/dde-kwin-5.5.24/plugins/kdecoration/translations/splitmenu_bo.qm'... Generated 4 translation(s) (4 finished and 0 unfinished) Updating '/builddir/build/BUILD/dde-kwin-5.5.24/plugins/kdecoration/translations/splitmenu_ca.qm'... Generated 4 translation(s) (4 finished and 0 unfinished) Updating '/builddir/build/BUILD/dde-kwin-5.5.24/plugins/kdecoration/translations/splitmenu_hu.qm'... Generated 4 translation(s) (4 finished and 0 unfinished) Updating '/builddir/build/BUILD/dde-kwin-5.5.24/plugins/kdecoration/translations/splitmenu_nl.qm'... Generated 4 translation(s) (4 finished and 0 unfinished) Updating '/builddir/build/BUILD/dde-kwin-5.5.24/plugins/kdecoration/translations/splitmenu_pl.qm'... Generated 4 translation(s) (4 finished and 0 unfinished) Updating '/builddir/build/BUILD/dde-kwin-5.5.24/plugins/kdecoration/translations/splitmenu_sq.qm'... Generated 4 translation(s) (4 finished and 0 unfinished) Updating '/builddir/build/BUILD/dde-kwin-5.5.24/plugins/kdecoration/translations/splitmenu_tr.qm'... Generated 4 translation(s) (4 finished and 0 unfinished) Updating '/builddir/build/BUILD/dde-kwin-5.5.24/plugins/kdecoration/translations/splitmenu_ug.qm'... Generated 4 translation(s) (4 finished and 0 unfinished) Updating '/builddir/build/BUILD/dde-kwin-5.5.24/plugins/kdecoration/translations/splitmenu_zh_CN.qm'... Generated 4 translation(s) (4 finished and 0 unfinished) Updating '/builddir/build/BUILD/dde-kwin-5.5.24/plugins/kdecoration/translations/splitmenu_zh_HK.qm'... Generated 4 translation(s) (4 finished and 0 unfinished) Updating '/builddir/build/BUILD/dde-kwin-5.5.24/plugins/kdecoration/translations/splitmenu_zh_TW.qm'... Generated 4 translation(s) (4 finished and 0 unfinished) CMake Warning (dev) at plugins/kdecoration/CMakeLists.txt:57 (target_link_libraries): Policy CMP0023 is not set: Plain and keyword target_link_libraries signatures cannot be mixed. Run "cmake --help-policy CMP0023" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The keyword signature for target_link_libraries has already been used with the target "deepin-chameleon". All uses of target_link_libraries with a target should be either all-keyword or all-plain. The uses of the keyword signature are here: * plugins/kdecoration/CMakeLists.txt:41 (target_link_libraries) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at plugins/kwineffects/scissor-window/CMakeLists.txt:26 (target_link_libraries): Policy CMP0023 is not set: Plain and keyword target_link_libraries signatures cannot be mixed. Run "cmake --help-policy CMP0023" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The keyword signature for target_link_libraries has already been used with the target "scissor-window". All uses of target_link_libraries with a target should be either all-keyword or all-plain. The uses of the keyword signature are here: * plugins/kwineffects/scissor-window/CMakeLists.txt:10 (target_link_libraries) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /usr/share/ECM/modules/ECMFindModuleHelpers.cmake:113 (message): Your project should require at least CMake 3.16.0 to use FindKF5.cmake Call Stack (most recent call first): /usr/share/ECM/find-modules/FindKF5.cmake:30 (ecm_find_package_version_check) plugins/kwineffects/multitasking/CMakeLists.txt:12 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found KF5Wayland: /usr/lib64/cmake/KF5Wayland/KF5WaylandConfig.cmake (found version "5.54.0") -- Found KF5: success (found suitable version "5.54.0", minimum required is "5.54.0") found components: Wayland CMake Warning (dev) at /usr/share/ECM/modules/ECMFindModuleHelpers.cmake:113 (message): Your project should require at least CMake 3.16.0 to use FindXCB.cmake Call Stack (most recent call first): /usr/share/ECM/find-modules/FindXCB.cmake:67 (ecm_find_package_version_check) plugins/kwineffects/multitasking/CMakeLists.txt:30 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found XCB_XCB: /usr/lib64/libxcb.so (found version "1.15") -- Found XCB_RENDER: /usr/lib64/libxcb-render.so (found version "1.15") -- Found XCB_SHAPE: /usr/lib64/libxcb-shape.so (found version "1.15") -- Found XCB_XFIXES: /usr/lib64/libxcb-xfixes.so (found version "1.15") -- Found XCB_COMPOSITE: /usr/lib64/libxcb-composite.so (found version "1.15") -- Found XCB_DAMAGE: /usr/lib64/libxcb-damage.so (found version "1.15") -- Found XCB: /usr/lib64/libxcb.so;/usr/lib64/libxcb-render.so;/usr/lib64/libxcb-shape.so;/usr/lib64/libxcb-xfixes.so;/usr/lib64/libxcb-composite.so;/usr/lib64/libxcb-damage.so (found version "1.15") found components: XCB COMPOSITE DAMAGE SHAPE XFIXES RENDER -- Warning: Property URL already set to "https://xcb.freedesktop.org/", overriding it with "http://xcb.freedesktop.org" CMake Warning (dev) at /usr/share/cmake/Modules/FindOpenGL.cmake:315 (message): Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when available. Run "cmake --help-policy CMP0072" for policy details. Use the cmake_policy command to set the policy and suppress this warning. FindOpenGL found both a legacy GL library: OPENGL_gl_LIBRARY: /usr/lib64/libGL.so and GLVND libraries for OpenGL and GLX: OPENGL_opengl_LIBRARY: /usr/lib64/libOpenGL.so OPENGL_glx_LIBRARY: /usr/lib64/libGLX.so OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for compatibility with CMake 3.10 and below the legacy GL library will be used. Call Stack (most recent call first): plugins/kwineffects/multitasking/CMakeLists.txt:42 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found OpenGL: /usr/lib64/libOpenGL.so CMake Warning (dev) at /usr/share/ECM/modules/ECMFindModuleHelpers.cmake:113 (message): Your project should require at least CMake 3.16.0 to use FindEGL.cmake Call Stack (most recent call first): /usr/share/ECM/find-modules/FindEGL.cmake:45 (ecm_find_package_version_check) plugins/kwineffects/multitasking/CMakeLists.txt:48 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Performing Test HAVE_EGL -- Performing Test HAVE_EGL - Success -- Found EGL: /usr/include (found version "1.5") -- Found Gettext: /usr/bin/msgmerge (found version "0.21.1") -- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") -- Checking for one of the modules 'gsettings-qt' -- Checking for one of the modules 'gsettings-qt' CMake Warning (dev) at /usr/share/cmake/Modules/FindPkgConfig.cmake:414 (list): Policy CMP0007 is not set: list command no longer ignores empty elements. Run "cmake --help-policy CMP0007" for policy details. Use the cmake_policy command to set the policy and suppress this warning. List has value = [;/usr/lib64/pkgconfig;/usr/share/pkgconfig]. Call Stack (most recent call first): /usr/share/cmake/Modules/FindPkgConfig.cmake:548 (_pkg_set_path_internal) /usr/share/cmake/Modules/FindPkgConfig.cmake:883 (_pkg_check_modules_internal) deepin-wm-dbus/CMakeLists.txt:20 (pkg_search_module) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.26) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring done (3.1s) CMake Warning (dev) at plugins/platforms/plugin/CMakeLists.txt:50 (add_library): Policy CMP0003 should be set before this line. Add code such as if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) endif(COMMAND cmake_policy) as early as possible but after the most recent call to cmake_minimum_required or cmake_policy(VERSION). This warning appears because target "dde-kwin-xcb" links to some libraries for which the linker must search: dtkgui, dtkcore and other libraries with known full path: /usr/lib64/libQt5DBus.so.5.15.11 /builddir/build/BUILD/dde-kwin-5.5.24/anolis-linux-build/plugins/platforms/lib/libkwin-xcb.so.0.0.1 CMake is adding directories in the second list to the linker search path in case they are needed to find libraries from the first list (for backwards compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for more information. This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_C_FLAGS_RELEASE CMAKE_Fortran_FLAGS_RELEASE CMAKE_INSTALL_DO_STRIP CMAKE_INSTALL_FULL_LIBDIR CMAKE_INSTALL_FULL_LIBEXECDIR CMAKE_INSTALL_LIBEXECDIR CMAKE_INSTALL_LOCALSTATEDIR CMAKE_INSTALL_RUNSTATEDIR CMAKE_INSTALL_SHAREDSTATEDIR CMAKE_INSTALL_SYSCONFDIR INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /builddir/build/BUILD/dde-kwin-5.5.24/anolis-linux-build + /usr/bin/make -O -j80 V=1 VERBOSE=1 make: *** No targets specified and no makefile found. Stop. error: Bad exit status from /var/tmp/rpm-tmp.whCskf (%build) %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.whCskf (%build) RPM build warnings: RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/dde-kwin.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/dde-kwin.spec