Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
6.5.1
-
None
-
11.2.1 gcc and g++ cmake version is 3.26.3 ninja-build is 1.10.2
-
-
i finally change my os to ubuntu22.04 and then no errors at all
Description
Well things just went wrong
i wget qt-everywhere-src-6.5.1 onto my linux virtual environment (centos7)
and used the below according to readme
./configure -prefix $PWD/qtbase
and then i encoutered the first trouble QTBUG-115590 Qt build fails with enable qtdeclarative - Qt Bug Tracker
and i execute the solution below
firstly Require std::filesystem (467058) · Gerrit Code Review (qt-project.org)
and WIP: Link syncqt to std::filesystem the correct way (470929) · Gerrit Code Review (qt-project.org)
provided by semlanik
and then the next barely new error coming
[root@localhost qt-everywhere-src-6.5.1]# ./configure -prefix $PWD/qtbase + mkdir -p qtbase + cd qtbase + exec /root/qt-everywhere-src-6.5.1/qtbase/configure -top-level -prefix /root/qt-everywhere-src-6.5.1/qtbase CMake Warning (dev) at qtbase/cmake/QtBuildInformation.cmake:270 (set): Cannot set "__qt_configure_reports": current scope has no parent. Call Stack (most recent call first): qtsensors/src/sensors/configure.cmake:48 (qt_configure_add_report) qtbase/cmake/QtProcessConfigureArgs.cmake:272 (include) This warning is for project developers. Use -Wno-dev to suppress it.'/usr/local/bin/cmake' '-DCMAKE_INSTALL_PREFIX=/root/qt-everywhere-src-6.5.1/qtbase' '-G' 'Ninja' '/root/qt-everywhere-src-6.5.1' -- The CXX compiler identification is GNU 11.2.1 -- The C compiler identification is GNU 11.2.1 -- The ASM compiler identification is GNU -- Found assembler: /opt/rh/devtoolset-11/root/usr/bin/cc -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /opt/rh/devtoolset-11/root/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /opt/rh/devtoolset-11/root/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Checking dependencies of submodule 'qtbase' -- Checking dependencies of submodule 'qtimageformats' -- Checking dependencies of submodule 'qtlanguageserver' -- Checking dependencies of submodule 'qtshadertools' -- Checking dependencies of submodule 'qtsvg' -- Checking dependencies of submodule 'qtdeclarative' -- Checking dependencies of submodule 'qtquicktimeline' -- Checking dependencies of submodule 'qtquick3d' -- Checking dependencies of submodule 'qtmultimedia' -- Checking dependencies of submodule 'qt3d' -- Checking dependencies of submodule 'qt5compat' -- Checking dependencies of submodule 'qtactiveqt' -- Checking dependencies of submodule 'qtcharts' -- Checking dependencies of submodule 'qtcoap' -- Checking dependencies of submodule 'qtconnectivity' -- Checking dependencies of submodule 'qtdatavis3d' -- Checking dependencies of submodule 'qtwebsockets' -- Checking dependencies of submodule 'qthttpserver' -- Checking dependencies of submodule 'qttools' -- Checking dependencies of submodule 'qtserialport' -- Checking dependencies of submodule 'qtpositioning' -- Checking dependencies of submodule 'qtwebchannel' -- Checking dependencies of submodule 'qtwebengine' -- Checking dependencies of submodule 'qtdoc' -- Checking dependencies of submodule 'qtgrpc' -- Checking dependencies of submodule 'qtlocation' -- Checking dependencies of submodule 'qtlottie' -- Checking dependencies of submodule 'qtmqtt' -- Checking dependencies of submodule 'qtnetworkauth' -- Checking dependencies of submodule 'qtopcua' -- Checking dependencies of submodule 'qtquick3dphysics' -- Checking dependencies of submodule 'qtquickeffectmaker' -- Checking dependencies of submodule 'qtremoteobjects' -- Checking dependencies of submodule 'qtsensors' -- Checking dependencies of submodule 'qtserialbus' -- Checking dependencies of submodule 'qtspeech' -- Checking dependencies of submodule 'qttranslations' -- Checking dependencies of submodule 'qtvirtualkeyboard' -- Checking dependencies of submodule 'qtwayland' -- Checking dependencies of submodule 'qtwebview' -- Configuring submodule 'qtbase' -DCMAKE_C_FLAGS_DEBUG=-g -DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG -DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG -DCMAKE_CXX_FLAGS_DEBUG=-g -DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG -DCMAKE_OBJCOPY=/opt/rh/devtoolset-11/root/usr/bin/objcopy -DCMAKE_C_STANDARD=11 -DCMAKE_C_STANDARD_REQUIRED=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_MODULE_PATH:STRING=/root/qt-everywhere-src-6.5.1/qtbase/cmake/platforms *** Error in `/root/qt-everywhere-src-6.5.1/qtbase/libexec/syncqt': free(): invalid pointer: 0x0000000002239980 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x81329)[0x7f051959e329] /lib64/libstdc++.so.6(_ZNSsD2Ev+0x15)[0x7f0519f6b641] /lib64/libstdc++.so.6(+0x11c75b)[0x7f0519fb575b] /lib64/libstdc++.so.6(_ZNKSt10filesystem4path5_List13_Impl_deleterclEPNS1_5_ImplE+0x12)[0x7f0519fb577a] /root/qt-everywhere-src-6.5.1/qtbase/libexec/syncqt[0x428e4f] /root/qt-everywhere-src-6.5.1/qtbase/libexec/syncqt[0x4063fb] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7f051953f555] /root/qt-everywhere-src-6.5.1/qtbase/libexec/syncqt[0x4065a3] ======= Memory map: ======== 00400000-00405000 r--p 00000000 fd:00 43858543 /root/qt-everywhere-src-6.5.1/qtbase/libexec/syncqt 00405000-0042d000 r-xp 00005000 fd:00 43858543 /root/qt-everywhere-src-6.5.1/qtbase/libexec/syncqt 0042d000-00436000 r--p 0002d000 fd:00 43858543 /root/qt-everywhere-src-6.5.1/qtbase/libexec/syncqt 00437000-00438000 r--p 00036000 fd:00 43858543 /root/qt-everywhere-src-6.5.1/qtbase/libexec/syncqt 00438000-00439000 rw-p 00037000 fd:00 43858543 /root/qt-everywhere-src-6.5.1/qtbase/libexec/syncqt 00439000-0043a000 rw-p 00000000 00:00 0 021f1000-02244000 rw-p 00000000 00:00 0 [heap] 7f0514000000-7f0514021000 rw-p 00000000 00:00 0 7f0514021000-7f0518000000 ---p 00000000 00:00 0 7f051951d000-7f05196e1000 r-xp 00000000 fd:00 77527 /usr/lib64/libc-2.17.so 7f05196e1000-7f05198e0000 ---p 001c4000 fd:00 77527 /usr/lib64/libc-2.17.so 7f05198e0000-7f05198e4000 r--p 001c3000 fd:00 77527 /usr/lib64/libc-2.17.so 7f05198e4000-7f05198e6000 rw-p 001c7000 fd:00 77527 /usr/lib64/libc-2.17.so 7f05198e6000-7f05198eb000 rw-p 00000000 00:00 0 7f05198eb000-7f0519900000 r-xp 00000000 fd:00 77796 /usr/lib64/libgcc_s-4.8.5-20150702.so.1 7f0519900000-7f0519aff000 ---p 00015000 fd:00 77796 /usr/lib64/libgcc_s-4.8.5-20150702.so.1 7f0519aff000-7f0519b00000 r--p 00014000 fd:00 77796 /usr/lib64/libgcc_s-4.8.5-20150702.so.1 7f0519b00000-7f0519b01000 rw-p 00015000 fd:00 77796 /usr/lib64/libgcc_s-4.8.5-20150702.so.1 7f0519b01000-7f0519c02000 r-xp 00000000 fd:00 77535 /usr/lib64/libm-2.17.so 7f0519c02000-7f0519e01000 ---p 00101000 fd:00 77535 /usr/lib64/libm-2.17.so 7f0519e01000-7f0519e02000 r--p 00100000 fd:00 77535 /usr/lib64/libm-2.17.so 7f0519e02000-7f0519e03000 rw-p 00101000 fd:00 77535 /usr/lib64/libm-2.17.so 7f0519e03000-7f0519e25000 r-xp 00000000 fd:00 77520 /usr/lib64/ld-2.17.so 7f0519e93000-7f0519e99000 rw-p 00000000 00:00 0 7f0519e99000-7f0519f3b000 r--p 00000000 fd:00 2946342 /usr/lib64/libstdc++.so.6.0.26 7f0519f3b000-7f0519fba000 r-xp 000a2000 fd:00 2946342 /usr/lib64/libstdc++.so.6.0.26 7f0519fba000-7f0519ffb000 r--p 00121000 fd:00 2946342 /usr/lib64/libstdc++.so.6.0.26 7f0519ffb000-7f051a006000 r--p 00161000 fd:00 2946342 /usr/lib64/libstdc++.so.6.0.26 7f051a006000-7f051a00a000 rw-p 0016c000 fd:00 2946342 /usr/lib64/libstdc++.so.6.0.26 7f051a00a000-7f051a00d000 rw-p 00000000 00:00 0 7f051a022000-7f051a024000 rw-p 00000000 00:00 0 7f051a024000-7f051a025000 r--p 00021000 fd:00 77520 /usr/lib64/ld-2.17.so 7f051a025000-7f051a026000 rw-p 00022000 fd:00 77520 /usr/lib64/ld-2.17.so 7f051a026000-7f051a027000 rw-p 00000000 00:00 0 7ffd43f51000-7ffd43fde000 rw-p 00000000 00:00 0 [stack] 7ffd43ffb000-7ffd43ffd000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] -- Configuring incomplete, errors occurred! CMake Error at qtbase/cmake/QtSyncQtHelpers.cmake:243 (message): syncqt.cpp failed for module QtCore: Header file name of /root/qt-everywhere-src-6.5.1/qtbase/src/corelib/serialization/is emptyCall Stack (most recent call first): qtbase/cmake/QtModuleHelpers.cmake:873 (qt_internal_target_sync_headers) qtbase/cmake/QtScopeFinalizerHelpers.cmake:24:EVAL:1 (qt_finalize_module) qtbase/src/corelib/CMakeLists.txt:DEFERRED CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:995 (message): CMake exited with code 1.
sometimes there is another error when i delete the cmakecache.txt and cmakefiles to redo
CMake Error at qtbase/cmake/QtSyncQtHelpers.cmake:243 (message): syncqt.cpp failed for module QtCore: terminate called after throwing an instance of 'std::length_error' what(): basic_string::_S_create Call Stack (most recent call first): qtbase/cmake/QtModuleHelpers.cmake:873 (qt_internal_target_sync_headers) qtbase/cmake/QtScopeFinalizerHelpers.cmake:24:EVAL:1 (qt_finalize_module) qtbase/src/corelib/CMakeLists.txt:DEFERRED -- Configuring incomplete, errors occurred!
all of the above two are error:
CMake Error at qtbase/cmake/QtSyncQtHelpers.cmake:243 (message): syncqt.cpp failed for module QtCore
qtbase/cmake/QtSyncQtHelpers.cmake pfa
plz help me
Added another new error occured
[root@localhost qt-everywhere-src-6.5.1]# yum clean all 已加载插件:fastestmirror, langpacks 正在清理软件源: base centos-sclo-rh centos-sclo-sclo epel extras updates [root@localhost qt-everywhere-src-6.5.1]# rm -rf /root/qt-everywhere-src-6.5.1/qtbase/config.tests/binary_for_strip_built [root@localhost qt-everywhere-src-6.5.1]# ./configure -prefix $PWD/qtbase + mkdir -p qtbase + cd qtbase + exec /root/qt-everywhere-src-6.5.1/qtbase/configure -top-level -prefix /root/qt-everywhere-src-6.5.1/qtbase CMake Warning (dev) at qtbase/cmake/QtBuildInformation.cmake:270 (set): Cannot set "__qt_configure_reports": current scope has no parent. Call Stack (most recent call first): qtsensors/src/sensors/configure.cmake:48 (qt_configure_add_report) qtbase/cmake/QtProcessConfigureArgs.cmake:272 (include) This warning is for project developers. Use -Wno-dev to suppress it.'/usr/local/bin/cmake' '-DCMAKE_INSTALL_PREFIX=/root/qt-everywhere-src-6.5.1/qtbase' '-G' 'Ninja' '/root/qt-everywhere-src-6.5.1' -- Checking dependencies of submodule 'qtbase' -- Checking dependencies of submodule 'qtimageformats' -- Checking dependencies of submodule 'qtlanguageserver' -- Checking dependencies of submodule 'qtshadertools' -- Checking dependencies of submodule 'qtsvg' -- Checking dependencies of submodule 'qtdeclarative' -- Checking dependencies of submodule 'qtquicktimeline' -- Checking dependencies of submodule 'qtquick3d' -- Checking dependencies of submodule 'qtmultimedia' -- Checking dependencies of submodule 'qt3d' -- Checking dependencies of submodule 'qt5compat' -- Checking dependencies of submodule 'qtactiveqt' -- Checking dependencies of submodule 'qtcharts' -- Checking dependencies of submodule 'qtcoap' -- Checking dependencies of submodule 'qtconnectivity' -- Checking dependencies of submodule 'qtdatavis3d' -- Checking dependencies of submodule 'qtwebsockets' -- Checking dependencies of submodule 'qthttpserver' -- Checking dependencies of submodule 'qttools' -- Checking dependencies of submodule 'qtserialport' -- Checking dependencies of submodule 'qtpositioning' -- Checking dependencies of submodule 'qtwebchannel' -- Checking dependencies of submodule 'qtwebengine' -- Checking dependencies of submodule 'qtdoc' -- Checking dependencies of submodule 'qtgrpc' -- Checking dependencies of submodule 'qtlocation' -- Checking dependencies of submodule 'qtlottie' -- Checking dependencies of submodule 'qtmqtt' -- Checking dependencies of submodule 'qtnetworkauth' -- Checking dependencies of submodule 'qtopcua' -- Checking dependencies of submodule 'qtquick3dphysics' -- Checking dependencies of submodule 'qtquickeffectmaker' -- Checking dependencies of submodule 'qtremoteobjects' -- Checking dependencies of submodule 'qtsensors' -- Checking dependencies of submodule 'qtserialbus' -- Checking dependencies of submodule 'qtspeech' -- Checking dependencies of submodule 'qttranslations' -- Checking dependencies of submodule 'qtvirtualkeyboard' -- Checking dependencies of submodule 'qtwayland' -- Checking dependencies of submodule 'qtwebview' -- Configuring submodule 'qtbase' -DCMAKE_C_FLAGS_DEBUG=-g -DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG -DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG -DCMAKE_CXX_FLAGS_DEBUG=-g -DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG -DCMAKE_OBJCOPY=/opt/rh/devtoolset-11/root/usr/bin/objcopy -DCMAKE_C_STANDARD=11 -DCMAKE_C_STANDARD_REQUIRED=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_MODULE_PATH:STRING=/root/qt-everywhere-src-6.5.1/qtbase/cmake/platforms CMake Error: Running '/usr/bin/ninja-build' '-C' '/root/qt-everywhere-src-6.5.1/config.tests/separate_debug_info' '-t' 'recompact' failed with: ninja: warning: bad deps log signature or version; starting over ninja: error: failed recompaction: No such file or directoryCMake Error at qtbase/cmake/QtFeature.cmake:911 (try_compile): Failed to generate test project build system. Call Stack (most recent call first): qtbase/configure.cmake:335 (qt_config_compile_test) qtbase/cmake/QtBaseGlobalTargets.cmake:86 (include) qtbase/CMakeLists.txt:130 (include) -- Configuring incomplete, errors occurred! CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:995 (message): CMake exited with code 1.