![]() ![]() If it is different, any saved function pointers would need relocation and gcc isn't prepared to do that. The test checks if a function pointer saved in the PCH file matches the corresponding function pointer in the cc1 or cc1plus binary. "The "had text segment at different address" error is about having the PCH file generated with a compiler that is different from the compiler that is trying to read it, > (RunCMake.PrecompileHeaders) and i have not idea why happens: > New CMake-3.17.* build is failing on EPEL8 for a failed test builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: - SkipPrecompileHeaders-test - PASSED builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: /builddir/build/BUILD/cmake-3.17.1/Tests/RunCMake/PrecompileHeaders/RunCMakeTest.cmake:19 (run_test) builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: actual-err> cc1plus: warning: /builddir/build/BUILD/cmake-3.17.1/build/Tests/RunCMake/PrecompileHeaders/SkipPrecompileHeaders-build/CMakeFiles/pch-test.dir/cmake_: had text segment at different address builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: actual-out> Built target pch-test builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: actual-out> Linking CXX executable pch-test builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: actual-out> Building CXX object CMakeFiles/pch-test.dir/ builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: actual-out> Building CXX object CMakeFiles/pch-test.dir/cmake_ builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: actual-out> Scanning dependencies of target pch-test builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: Actual stdout: builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: command> "/builddir/build/BUILD/cmake-3.17.1/build/bin/cmake3" "-build" "." "-config" "Debug" builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: Command was: builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: stderr does not match that expected. builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: SkipPrecompileHeaders-build - FAILED: builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: CMake Error at /builddir/build/BUILD/cmake-3.17.1/Tests/RunCMake/RunCMake.cmake:191 (message): builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: /builddir/build/BUILD/cmake-3.17.1/Tests/RunCMake/PrecompileHeaders/RunCMakeTest.cmake:17 (run_test) builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: /builddir/build/BUILD/cmake-3.17.1/Tests/RunCMake/PrecompileHeaders/RunCMakeTest.cmake:10 (run_cmake_command) builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: /builddir/build/BUILD/cmake-3.17.1/Tests/RunCMake/RunCMake.cmake:205 (run_cmake) builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: Call Stack (most recent call first): builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: actual-err> cc1: warning: /builddir/build/BUILD/cmake-3.17.1/build/Tests/RunCMake/PrecompileHeaders/PchInterface-build/CMakeFiles/foobar.dir/cmake_pch.h.gch: had text segment at different address builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: actual-err> cc1: warning: /builddir/build/BUILD/cmake-3.17.1/build/Tests/RunCMake/PrecompileHeaders/PchInterface-build/CMakeFiles/foo.dir/cmake_pch.h.gch: had text segment at different address builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: Actual stderr: builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: expect-err> ^$ builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: Expected stderr to match: builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: actual-out> Built target foobar builddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: actual-out> Linking C executable foobar Lddir/build/BUILD/cmake-3.17.1/Source/CTest/cmCTestRunTest.cxx:42 496: actual-out> Building C object CMakeFiles/foobar.dir/foobar.c.o ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |