[CMake] Tests 115, 116, 117 and, 118 fail
Christoph Grüninger
foss at grueninger.de
Sat Jul 25 04:04:16 EDT 2015
Dear CMake,
I am trying to create a CMake 3.3.0 RPM for openSuse using their Open
Build Service. It compiles but the tests 115, 116, 117 and, 118 fail.
The RPM build causes the error but I don't get what I should change. I
attached the output.
Bye
Christoph
--
I'm OK. The world's all wrong. -- Harry Weese
-------------- next part --------------
[ 512s] 123/386 Test #115: CPackComponentsForAll-RPM-default ................***Failed 2.16 sec
[ 512s] Generate graphviz: /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/CPackComponentsForAll.dot
[ 512s] Writing /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/CPackComponentsForAll.dot.mylib...
[ 512s] Writing /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/CPackComponentsForAll.dot.mylibapp...
[ 512s] Writing /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/CPackComponentsForAll.dot.mylibapp2...
[ 512s] Writing /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/CPackComponentsForAll.dot.mylib.dependers...
[ 512s] Writing /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/CPackComponentsForAll.dot.mylibapp.dependers...
[ 512s] Writing /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/CPackComponentsForAll.dot.mylibapp2.dependers...
[ 512s] Writing /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/CPackComponentsForAll.dot...
[ 512s] Internal cmake changing into directory: /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default
[ 512s] ======== CMake output ======
[ 512s] The C compiler identification is GNU 5.1.1
[ 512s] The CXX compiler identification is GNU 5.1.1
[ 512s] Check for working C compiler: /usr/bin/cc
[ 512s] Configuring
[ 512s] Check for working C compiler: /usr/bin/cc -- works
[ 512s] Detecting C compiler ABI info
[ 512s] Configuring
[ 512s] Detecting C compiler ABI info - done
[ 512s] Detecting C compile features
[ 512s] Configuring
[ 512s] Configuring
[ 512s] Configuring
[ 512s] Detecting C compile features - done
[ 512s] Check for working CXX compiler: /usr/bin/c++
[ 512s] Configuring
[ 512s] Check for working CXX compiler: /usr/bin/c++ -- works
[ 512s] Detecting CXX compiler ABI info
[ 512s] Configuring
[ 512s] Detecting CXX compiler ABI info - done
[ 512s] Detecting CXX compile features
[ 512s] Configuring
[ 512s] Configuring
[ 512s] Configuring
[ 512s] Detecting CXX compile features - done
[ 512s] Configuring
[ 512s] Configuring done
[ 512s] Generating
[ 512s] Generating done
[ 512s] Build files have been written to: /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default
[ 512s] ======== End CMake output ======
[ 512s] Change Dir: /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default
[ 512s]
[ 512s] Run Clean Command:"/usr/bin/gmake" "clean"
[ 512s]
[ 512s] Run Build Command:"/usr/bin/gmake"
[ 512s] Scanning dependencies of target mylib
[ 512s] [ 16%] Building CXX object CMakeFiles/mylib.dir/mylib.cpp.o
[ 512s] [ 33%] Linking CXX static library libmylib.a
[ 512s] [ 33%] Built target mylib
[ 512s] Scanning dependencies of target mylibapp
[ 512s] [ 50%] Building CXX object CMakeFiles/mylibapp.dir/mylibapp.cpp.o
[ 512s] [ 66%] Linking CXX executable mylibapp
[ 512s] [ 66%] Built target mylibapp
[ 512s] Scanning dependencies of target mylibapp2
[ 512s] [ 83%] Building CXX object CMakeFiles/mylibapp2.dir/mylibapp.cpp.o
[ 512s] [100%] Linking CXX executable mylibapp2
[ 512s] [100%] Built target mylibapp2
[ 512s] Running test command: "/home/abuild/rpmbuild/BUILD/cmake-3.3.0/bin/cmake" "-DCPackComponentsForAll_BINARY_DIR:PATH=/home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default" "-DCPackGen=RPM" "-DCPackComponentWay=default" "-P" "/home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake"
[ 512s] Test command failed: /home/abuild/rpmbuild/BUILD/cmake-3.3.0/bin/cmake
[ 512s] -- =============================================================================
[ 512s] -- CTEST_FULL_OUTPUT (Avoid ctest truncation of output)
[ 512s] --
[ 512s] CMAKE_CPACK_COMMAND = /home/abuild/rpmbuild/BUILD/cmake-3.3.0/bin/cpack
[ 512s] config_args = -C;NoConfig
[ 512s] config_verbose = -D;CPACK_RPM_PACKAGE_DEBUG=1
[ 512s] CMake Error at /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake:105 (message):
[ 512s] error: CPack execution went wrong!, CPack_output=CPack: Create package
[ 512s] using RPM
[ 512s]
[ 512s] CPack: Install projects
[ 512s]
[ 512s] CPack: - Run preinstall target for: CPackComponentsForAll
[ 512s]
[ 512s] CPack: - Install project: CPackComponentsForAll
[ 512s]
[ 512s] CPack: Create package
[ 512s]
[ 512s] , CPack_error=CPackRPM:Debug: rpmbuild version is <4.12.0.1>
[ 512s]
[ 512s] CPackRPM:Debug: LSB_RELEASE = lsb_release not installed/found!
[ 512s]
[ 512s] CPackRPM:Debug: Trying to build a relocatable package
[ 512s]
[ 512s] CPackRPM:Debug: removing '/usr' from relocation paths
[ 512s]
[ 512s] CPackRPM:Debug: processing URL
[ 512s]
[ 512s] CPackRPM:Debug: processing REQUIRES
[ 512s]
[ 512s] CPackRPM:Debug: processing SUGGESTS
[ 512s]
[ 512s] CPackRPM:Debug: processing PROVIDES
[ 512s]
[ 512s] CPackRPM:Debug: processing OBSOLETES
[ 512s]
[ 512s] CPackRPM:Debug: processing PREFIX
[ 512s]
[ 512s] CPackRPM:Debug: using CPACK_RPM_PACKAGE_PREFIX
[ 512s]
[ 512s] CPackRPM:Debug: User defined Prefix:
[ 512s]
[ 512s] /usr
[ 512s]
[ 512s] CPackRPM:Debug: processing CONFLICTS
[ 512s]
[ 512s] CPackRPM:Debug: processing AUTOPROV
[ 512s]
[ 512s] CPackRPM:Debug: processing AUTOREQ
[ 512s]
[ 512s] CPackRPM:Debug: processing AUTOREQPROV
[ 512s]
[ 512s] CPackRPM:Debug: processing REQUIRES_PRE
[ 512s]
[ 512s] CPackRPM:Debug: processing REQUIRES_POST
[ 512s]
[ 512s] CPackRPM:Debug: processing REQUIRES_PREUN
[ 512s]
[ 512s] CPackRPM:Debug: processing REQUIRES_POSTUN
[ 512s]
[ 512s] CPackRPM:Debug: Initial list of path to OMIT in RPM:
[ 512s]
[ 512s] CPackRPM:Debug: CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST=
[ 512s] /etc;/etc/init.d;/usr;/usr/share;/usr/share/doc;/usr/bin;/usr/lib;/usr/lib64;/usr/include
[ 512s]
[ 512s]
[ 512s] CPackRPM:Debug: Final list of path to OMIT in RPM:
[ 512s] /etc;/etc/init.d;/usr;/usr/share;/usr/share/doc;/usr/bin;/usr/lib;/usr/lib64;/usr/include
[ 512s]
[ 512s]
[ 512s] CPackRPM:Debug: CPACK_TOPLEVEL_DIRECTORY =
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM
[ 512s]
[ 512s]
[ 512s] CPackRPM:Debug: CPACK_TOPLEVEL_TAG = Linux
[ 512s]
[ 512s] CPackRPM:Debug: CPACK_TEMPORARY_DIRECTORY =
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/MyLib-1.0.2-Linux
[ 512s]
[ 512s]
[ 512s] CPackRPM:Debug: CPACK_OUTPUT_FILE_NAME = MyLib-1.0.2-Linux.rpm
[ 512s]
[ 512s] CPackRPM:Debug: CPACK_OUTPUT_FILE_PATH =
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/MyLib-1.0.2-Linux.rpm
[ 512s]
[ 512s]
[ 512s] CPackRPM:Debug: CPACK_PACKAGE_FILE_NAME = MyLib-1.0.2-Linux
[ 512s]
[ 512s] CPackRPM:Debug: CPACK_RPM_BINARY_SPECFILE =
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/SPECS/mylib.spec
[ 512s]
[ 512s]
[ 512s] CPackRPM:Debug: CPACK_PACKAGE_INSTALL_DIRECTORY = CPack Component Example
[ 512s]
[ 512s] CPackRPM:Debug: CPACK_TEMPORARY_PACKAGE_FILE_NAME =
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/MyLib-1.0.2-Linux.rpm
[ 512s]
[ 512s]
[ 512s] CPackRPM: Will use GENERATED spec file:
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/SPECS/mylib.spec
[ 512s]
[ 512s]
[ 512s] CPackRPM:Debug: You may consult rpmbuild logs in:
[ 512s]
[ 512s] CPackRPM:Debug: -
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/rpmbuild.err
[ 512s]
[ 512s]
[ 512s] CPackRPM:Debug: *** + umask 022
[ 512s]
[ 512s] + cd
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/BUILD
[ 512s]
[ 512s]
[ 512s] + mv
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/MyLib-1.0.2-Linux
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/tmpBBroot
[ 512s]
[ 512s]
[ 512s] + exit 0
[ 512s]
[ 512s] + umask 022
[ 512s]
[ 512s] + cd
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/BUILD
[ 512s]
[ 512s]
[ 512s] + '[' -e
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/MyLib-1.0.2-Linux
[ 512s] ']'
[ 512s]
[ 512s] + mv
[ 512s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/tmpBBroot
[ 513s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/MyLib-1.0.2-Linux
[ 513s]
[ 513s]
[ 513s] + /usr/lib/rpm/brp-compress
[ 513s]
[ 513s] + /usr/lib/rpm/brp-suse
[ 513s]
[ 513s] error: Bad exit status from /var/tmp/rpm-tmp.kuAXCf (%install)
[ 513s]
[ 513s] Bad exit status from /var/tmp/rpm-tmp.kuAXCf (%install)
[ 513s] ***
[ 513s]
[ 513s] CPackRPM:Debug: -
[ 513s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/rpmbuild.out
[ 513s]
[ 513s]
[ 513s] CPackRPM:Debug: *** Building target platforms: x86_64
[ 513s]
[ 513s] Building for target x86_64
[ 513s]
[ 513s] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.KlszZP
[ 513s]
[ 513s] Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.kuAXCf
[ 513s]
[ 513s] calling /usr/lib/rpm/brp-suse.d/brp-05-permissions
[ 513s]
[ 513s] setting / to root:root 0755. (wrong owner/group abuild:abuild)
[ 513s]
[ 513s] setting /usr/ to root:root 0755. (wrong owner/group abuild:abuild)
[ 513s]
[ 513s] calling /usr/lib/rpm/brp-suse.d/brp-15-strip-debug
[ 513s]
[ 513s] calling /usr/lib/rpm/brp-suse.d/brp-25-symlink
[ 513s]
[ 513s] INFO: relinking
[ 513s] /usr/non_relocatable/depth_two/symlink_from_non_relocatable_path ->
[ 513s] ../../lib64/inside_relocatable_two/depth_two (was
[ 513s] .././../lib64/inside_relocatable_two/depth_two)
[ 513s]
[ 513s] INFO: relinking /usr/lib64/inside_relocatable_one/symlink_subdir_path ->
[ 513s] depth_two/depth_three (was
[ 513s] ../../lib64/inside_relocatable_one/depth_two/depth_three)
[ 513s]
[ 513s] INFO: relinking
[ 513s] /usr/lib64/inside_relocatable_one/depth_two/symlink_samedir_path_current_dir
[ 513s] -> depth_three (was ./depth_three)
[ 513s]
[ 513s] INFO: relinking
[ 513s] /usr/lib64/inside_relocatable_one/depth_two/depth_three/symlink_parentdir_path
[ 513s] -> ../depth_two (was
[ 513s] .././../../../lib64/inside_relocatable_one/./depth_two)
[ 513s]
[ 513s] ERROR: link target doesn't exist (neither in build root nor in installed
[ 513s] system):
[ 513s]
[ 513s] /usr/lib64/inside_relocatable_one/depth_two/symlink_outside_package -> /usr/lib64/inside_relocatable_one/depth_two/outside_package
[ 513s]
[ 513s] Add the package providing the target to neededforbuild and Requires
[ 513s]
[ 513s] INFO: relinking
[ 513s] /usr/lib64/inside_relocatable_one/depth_two/symlink_outside_package ->
[ 513s] outside_package (was ./outside_package)
[ 513s]
[ 513s] INFO: relinking
[ 513s] /usr/lib64/inside_relocatable_one/depth_two/symlink_samedir_path_longer ->
[ 513s] depth_three (was
[ 513s] ../../../lib64/.././lib64/inside_relocatable_one/./depth_two/depth_three)
[ 513s]
[ 513s] INFO: relinking
[ 513s] /usr/lib64/inside_relocatable_two/depth_two/symlink_to_non_relocatable_path
[ 513s] -> ../../../non_relocatable/depth_two (was
[ 513s] .././../../non_relocatable/./depth_two)
[ 513s]
[ 513s] INFO: relinking
[ 513s] /usr/lib64/inside_relocatable_two/depth_two/symlink_other_relocatable_path
[ 513s] -> ../../../other_relocatable/depth_two (was
[ 513s] .././.././../other_relocatable/./depth_two)
[ 513s]
[ 513s]
[ 513s]
[ 513s]
[ 513s]
[ 513s] RPM build errors:
[ 513s]
[ 513s] ***
[ 513s]
[ 513s] CPack Error: Problem copying the package:
[ 513s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/_CPack_Packages/Linux/RPM/MyLib-1.0.2-Linux.rpm
[ 513s] to
[ 513s] /home/abuild/rpmbuild/BUILD/cmake-3.3.0/Tests/CPackComponentsForAll/buildRPM-default/MyLib-1.0.2-Linux.rpm
[ 513s]
[ 513s]
[ 513s] CPack Error: Error when generating package: MyLib
[ 513s]
[ 513s]
More information about the CMake
mailing list