[CMake] PIE-pie_off and CMP0083-cmp0083_new fail for openSuse Leap 15.0

Christoph Grüninger foss at grueninger.de
Tue Mar 19 19:01:28 EDT 2019


Dear CMake,
while trying to update the RPMs for openSuse with the Open Build
service, I stumbled upon a strange problem. Following the same spec file
for all target plattforms, CMake is first built and then the tests are
executed. The tests pass for different types of openSuse versions
(Factory, Tumbleweed, Leap 42.3, SLE 12 SP3) but fail for a single
version, openSuse Leap 15.0. I attached the output of the failing tests.
The failure is related to CMP0083 and PIE. But I cannot spot any
difference causing different test results.
Could someone advice how to track down the reason for my issue?

Bye,
Christoph



[  683s] 356/495 Test #363: RunCMake.add_executable
..........................   Passed    3.39 sec
[  683s]         Start 369: RunCMake.cmake_minimum_required
[  683s] 357/495 Test #354: RunCMake.PositionIndependentCode
.................***Failed   25.89 sec
[  683s] -- Conflict1 - PASSED
[  683s] -- Conflict2 - PASSED
[  683s] -- Conflict3 - PASSED
[  683s] -- Conflict4 - PASSED
[  683s] -- Conflict5 - PASSED
[  683s] -- Conflict6 - PASSED
[  683s] -- Debug - PASSED
[  683s] -- Genex1 - PASSED
[  683s] -- Genex2 - PASSED
[  683s] -- CheckPIESupported - PASSED
[  683s] -- PIE - PASSED
[  683s] -- PIE-pie_on - PASSED
[  683s] CMake Error at RunCMake.cmake:168 (message):
[  683s]   PIE-pie_off - FAILED:
[  683s]
[  683s]   Executable is NOT 'no PIE' (PIE).
[  683s]
[  683s]   Command was:
[  683s]
[  683s]    command>
"/home/abuild/rpmbuild/BUILD/cmake-3.14.0/bin/cmake" "--build" "."
"--config" "Release" "--target" "pie_off"
[  683s]
[  683s]   Actual stdout:
[  683s]
[  683s]    actual-out> Scanning dependencies of target pie_off
[  683s]    actual-out> [ 50%] Building CXX object
CMakeFiles/pie_off.dir/main.cpp.o
[  683s]    actual-out> [100%] Linking CXX executable pie_off
[  683s]    actual-out> [100%] Built target pie_off
[  683s]
[  683s]   Actual stderr:
[  683s]
[  683s]    actual-err>
[  683s]
[  683s] Call Stack (most recent call first):
[  683s]   RunCMake.cmake:182 (run_cmake)
[  683s]   PositionIndependentCode/RunCMakeTest.cmake:35 (run_cmake_command)
[  683s]   PositionIndependentCode/RunCMakeTest.cmake:52 (run_cmake_target)
[  683s]
[  683s]
[  683s] -- CMP0083 - PASSED
[  683s] -- CMP0083-cmp0083_ref - PASSED
[  683s] CMake Error at RunCMake.cmake:168 (message):
[  683s]   CMP0083-cmp0083_new - FAILED:
[  683s]
[  683s]   CMP0083(NEW) do not produce expected executable.
[  683s]
[  683s]   Command was:
[  683s]
[  683s]    command>
"/home/abuild/rpmbuild/BUILD/cmake-3.14.0/bin/cmake" "--build" "."
"--config" "Release" "--target" "cmp0083_new"
[  683s]
[  683s]   Actual stdout:
[  683s]
[  683s]    actual-out> Scanning dependencies of target cmp0083_new_pie
[  683s]    actual-out> [ 16%] Building CXX object
CMakeFiles/cmp0083_new_pie.dir/main.cpp.o
[  683s]    actual-out> [ 33%] Linking CXX executable cmp0083_new_pie
[  683s]    actual-out> [ 33%] Built target cmp0083_new_pie
[  683s]    actual-out> [ 66%] Built target cmp0083_ref
[  683s]    actual-out> Scanning dependencies of target cmp0083_new_no_pie
[  683s]    actual-out> [ 83%] Building CXX object
CMakeFiles/cmp0083_new_no_pie.dir/main.cpp.o
[  683s]    actual-out> [100%] Linking CXX executable cmp0083_new_no_pie
[  683s]    actual-out> [100%] Built target cmp0083_new_no_pie
[  683s]    actual-out> Scanning dependencies of target cmp0083_new
[  683s]    actual-out> [100%] Built target cmp0083_new
[  683s]
[  683s]   Actual stderr:
[  683s]
[  683s]    actual-err>
[  683s]
[  683s] Call Stack (most recent call first):
[  683s]   RunCMake.cmake:182 (run_cmake)
[  683s]   PositionIndependentCode/RunCMakeTest.cmake:35 (run_cmake_command)
[  683s]   PositionIndependentCode/RunCMakeTest.cmake:65 (run_cmake_target)
[  683s]
[  683s]
[  683s] -- CMP0083-cmp0083_old - PASSED
[  683s]
[  683s]         Start 370: RunCMake.cmake_parse_arguments
[  683s] 358/495 Test #369: RunCMake.cmake_minimum_required
..................   Passed    0.51 sec


More information about the CMake mailing list