PIE-pie_off and CMP0083-cmp0083_new fail for openSuse Leap 15.0

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

PIE-pie_off and CMP0083-cmp0083_new fail for openSuse Leap 15.0

Christoph Grüninger-2
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
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: PIE-pie_off and CMP0083-cmp0083_new fail for openSuse Leap 15.0

Alan W. Irwin-2
On 2019-03-20 00:01+0100 Christoph Grüninger wrote:

> 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?

Hi Christoph:

Just in case the trouble is simply due to a real CMake bug for some
old version of CMake, what exact versions of CMake are you testing on
each of your various "good" platforms compared to your "bad" platform,
openSuse Leap 15.0?

Alan
__________________________
Alan W. Irwin

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: PIE-pie_off and CMP0083-cmp0083_new fail for openSuse Leap 15.0

Christoph Grüninger-2
Hi Alan,
thanks for you answer. Do you know how the open build service works? It
sets up a fresh installation for each (openSuse) platform. Then CMake's
sources are deflated, configure is called and the package is build,
installed, tested and then packaged. So no other CMake version is
involved beside CMake 3.14. So both good and bad platforms are from the
same CMake source. They only differ in the versions of GCC, make, and so on.

In the meantime I got some input from the openSuse community, indicating
that Leap 15.0's GCC discrespects the pie/no-pie switch, cf.
http://paste.opensuse.org/14067189
If an openSuse bug is confirmen, I let you know.

Bye
Christoph


Am 20.03.19 um 02:21 schrieb Alan W. Irwin:

>
> Hi Christoph:
>
> Just in case the trouble is simply due to a real CMake bug for some
> old version of CMake, what exact versions of CMake are you testing on
> each of your various "good" platforms compared to your "bad" platform,
> openSuse Leap 15.0?
>
> Alan
> __________________________
> Alan W. Irwin

--
Unfortunately, plots are notoriously hard to get right. Partly, the
default settings of programs like gnuplot or Excel are to blame for
this since these programs make it very convenient to create bad plots.
                        -- Till Tantau, "The TikZ and PGF Packages"
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: PIE-pie_off and CMP0083-cmp0083_new fail for openSuse Leap 15.0

Marc CHEVRIER
clearly, from what shown on http://paste.opensuse.org/14067189, c++ compiler from OpenSuse Leap is buggy.
Expected output from readelf for executable tests_1 is « Elf file type is EXEC (Executable file) » which is not the case. Option -no-pie is not taken into account.

This explains the failures for some PIE tests.
Le 20 mars 2019 à 11:44 +0100, Christoph Grüninger <[hidden email]>, a écrit :
Hi Alan,
thanks for you answer. Do you know how the open build service works? It
sets up a fresh installation for each (openSuse) platform. Then CMake's
sources are deflated, configure is called and the package is build,
installed, tested and then packaged. So no other CMake version is
involved beside CMake 3.14. So both good and bad platforms are from the
same CMake source. They only differ in the versions of GCC, make, and so on.

In the meantime I got some input from the openSuse community, indicating
that Leap 15.0's GCC discrespects the pie/no-pie switch, cf.
http://paste.opensuse.org/14067189
If an openSuse bug is confirmen, I let you know.

Bye
Christoph


Am 20.03.19 um 02:21 schrieb Alan W. Irwin:

Hi Christoph:

Just in case the trouble is simply due to a real CMake bug for some
old version of CMake, what exact versions of CMake are you testing on
each of your various "good" platforms compared to your "bad" platform,
openSuse Leap 15.0?

Alan
__________________________
Alan W. Irwin

--
Unfortunately, plots are notoriously hard to get right. Partly, the
default settings of programs like gnuplot or Excel are to blame for
this since these programs make it very convenient to create bad plots.
-- Till Tantau, "The TikZ and PGF Packages"
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: PIE-pie_off and CMP0083-cmp0083_new fail for openSuse Leap 15.0

Christoph Grüninger-2
Hi Marc,
thank you for having a look. openSuse confirmed it is a bug, cf.
https://bugzilla.suse.com/show_bug.cgi?id=1096008

Sorry for the noise. Good to know, that packaging CMake reveal bugs.

Bye
Christoph

Am 20.03.19 um 12:27 schrieb Marc CHEVRIER:
> clearly, from what shown on http://paste.opensuse.org/14067189, c++
> compiler from OpenSuse Leap is buggy.
> Expected output from readelf for executable tests_1 is « Elf file type
> is EXEC (Executable file) » which is not the case. Option -no-pie is not
> taken into account.
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake