Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-125355

Ubuntu 24.04 x64: qtgrpc build fails - struct redeclared with different access

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.0 FF
    • 6.8
    • Protocol Buffers
    • None
    • Linux/X11
    • ed9b23bff (dev)

    Description

      https://testresults.qt.io/coin/integration/qt/qtgrpc/tasks/web_rescheduled_qt_qtgrpc_1715759567319

       

      https://testresults.qt.io/coin/log/qt/qtgrpc/cdcea3162c1482a3ca707b40d256cea0b2ad7cf4/LinuxUbuntu_24_04x86_64LinuxUbuntu_24_04x86_64GCCqtci-linux-Ubuntu-24.04-x86_64-50-d73fbbDocumentation_Sccache_UseConfigure/2dff925f3eaa6277fc41c8ee0f4002557ff8242b/build_1715759569

      Error:

      /usr/include/c++/13/sstream:457:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access

      More logs:

      agent:2024/05/15 08:01:21 build.go:404: [214/964] sccache /usr/bin/g++ -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_NAMESPACE=TestNamespace -DQT_NO_AS_CONST=1 -DQT_NO_CONTEXTLESS_CONNECT=1 -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_PROTOBUF_LIB -DQT_STRICT_QLIST_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/basic\" -DQT_TESTCASE_SOURCEDIR=\"/home/qt/work/qt/qtgrpc/tests/auto/protobuf/basic\" -DQT_TESTLIB_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_GLIBCXX_ASSERTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/basic/tst_protobuf_internals_autogen/include -I/home/qt/work/qt/qtgrpc/tests/auto/protobuf/basic -I/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/basic -I/home/qt/work/qt/qtgrpc_standalone_tests/include -I/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/basic/qt_protobuf_generated -isystem /home/qt/work/install/include/QtTest -isystem /home/qt/work/install/include -isystem /home/qt/work/install/include/QtCore -isystem /home/qt/work/install/mkspecs/linux-g++ -isystem /home/qt/work/install/include/QtProtobuf -g -std=gnu++20 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fexceptions -fPIC -Wsuggest-override -fcf-protection=full -ftrivial-auto-var-init=pattern -fstack-protector-strong -fstack-clash-protection -MD -MT tests/auto/protobuf/basic/CMakeFiles/tst_protobuf_internals.dir/tst_protobuf_internals.cpp.o -MF tests/auto/protobuf/basic/CMakeFiles/tst_protobuf_internals.dir/tst_protobuf_internals.cpp.o.d -o tests/auto/protobuf/basic/CMakeFiles/tst_protobuf_internals.dir/tst_protobuf_internals.cpp.o -c /home/qt/work/qt/qtgrpc/tests/auto/protobuf/basic/tst_protobuf_internals.cpp
      agent:2024/05/15 08:01:21 build.go:404: FAILED: tests/auto/protobuf/basic/CMakeFiles/tst_protobuf_internals.dir/tst_protobuf_internals.cpp.o 
      agent:2024/05/15 08:01:21 build.go:404: sccache /usr/bin/g++ -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_NAMESPACE=TestNamespace -DQT_NO_AS_CONST=1 -DQT_NO_CONTEXTLESS_CONNECT=1 -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_PROTOBUF_LIB -DQT_STRICT_QLIST_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/basic\" -DQT_TESTCASE_SOURCEDIR=\"/home/qt/work/qt/qtgrpc/tests/auto/protobuf/basic\" -DQT_TESTLIB_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_GLIBCXX_ASSERTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/basic/tst_protobuf_internals_autogen/include -I/home/qt/work/qt/qtgrpc/tests/auto/protobuf/basic -I/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/basic -I/home/qt/work/qt/qtgrpc_standalone_tests/include -I/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/basic/qt_protobuf_generated -isystem /home/qt/work/install/include/QtTest -isystem /home/qt/work/install/include -isystem /home/qt/work/install/include/QtCore -isystem /home/qt/work/install/mkspecs/linux-g++ -isystem /home/qt/work/install/include/QtProtobuf -g -std=gnu++20 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fexceptions -fPIC -Wsuggest-override -fcf-protection=full -ftrivial-auto-var-init=pattern -fstack-protector-strong -fstack-clash-protection -MD -MT tests/auto/protobuf/basic/CMakeFiles/tst_protobuf_internals.dir/tst_protobuf_internals.cpp.o -MF tests/auto/protobuf/basic/CMakeFiles/tst_protobuf_internals.dir/tst_protobuf_internals.cpp.o.d -o tests/auto/protobuf/basic/CMakeFiles/tst_protobuf_internals.dir/tst_protobuf_internals.cpp.o -c /home/qt/work/qt/qtgrpc/tests/auto/protobuf/basic/tst_protobuf_internals.cpp
      agent:2024/05/15 08:01:21 build.go:404: In file included from /usr/include/c++/13/chrono:45,
      agent:2024/05/15 08:01:21 build.go:404:                  from /home/qt/work/install/include/QtCore/qdebug.h:20,
      agent:2024/05/15 08:01:21 build.go:404:                  from /home/qt/work/install/include/QtCore/qvariant.h:12,
      agent:2024/05/15 08:01:21 build.go:404:                  from /home/qt/work/install/include/QtCore/qmetaobject.h:10,
      agent:2024/05/15 08:01:21 build.go:404:                  from /home/qt/work/install/include/QtProtobuf/qprotobufmessage.h:12,
      agent:2024/05/15 08:01:21 build.go:404:                  from /home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/basic/qt_protobuf_generated/basicmessages.qpb.h:6,
      agent:2024/05/15 08:01:21 build.go:404:                  from /home/qt/work/qt/qtgrpc/tests/auto/protobuf/basic/tst_protobuf_internals.cpp:6:
      agent:2024/05/15 08:01:21 build.go:404: /usr/include/c++/13/sstream:457:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access
      agent:2024/05/15 08:01:21 build.go:404:   457 |       struct __xfer_bufptrs
      agent:2024/05/15 08:01:21 build.go:404:       |       ^~~~~~
      agent:2024/05/15 08:01:21 build.go:404: Sccache command failed, re-try calling build tool directly
      agent:2024/05/15 08:01:21 build.go:404: In file included from /usr/include/c++/13/chrono:45,
      agent:2024/05/15 08:01:21 build.go:404:                  from /home/qt/work/install/include/QtCore/qdebug.h:20,
      agent:2024/05/15 08:01:21 build.go:404:                  from /home/qt/work/install/include/QtCore/qvariant.h:12,
      agent:2024/05/15 08:01:21 build.go:404:                  from /home/qt/work/install/include/QtCore/qmetaobject.h:10,
      agent:2024/05/15 08:01:21 build.go:404:                  from /home/qt/work/install/include/QtProtobuf/qprotobufmessage.h:12,
      agent:2024/05/15 08:01:21 build.go:404:                  from /home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/basic/qt_protobuf_generated/basicmessages.qpb.h:6,
      agent:2024/05/15 08:01:21 build.go:404:                  from /home/qt/work/qt/qtgrpc/tests/auto/protobuf/basic/tst_protobuf_internals.cpp:6:
      agent:2024/05/15 08:01:21 build.go:404: /usr/include/c++/13/sstream:457:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access
      agent:2024/05/15 08:01:21 build.go:404:   457 |       struct __xfer_bufptrs
      agent:2024/05/15 08:01:21 build.go:404:       |       ^~~~~~
      agent:2024/05/15 08:01:23 build.go:404: [215/964] sccache /usr/bin/g++ -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_NAMESPACE=TestNamespace -DQT_NO_AS_CONST=1 -DQT_NO_CONTEXTLESS_CONNECT=1 -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_PROTOBUF_LIB -DQT_STRICT_QLIST_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/json\" -DQT_TESTCASE_SOURCEDIR=\"/home/qt/work/qt/qtgrpc/tests/auto/protobuf/json\" -DQT_TESTLIB_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_GLIBCXX_ASSERTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/json/tst_protobuf_serialization_json_basic_types_autogen/include -I/home/qt/work/qt/qtgrpc/tests/auto/protobuf/json -I/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/json -I/home/qt/work/qt/qtgrpc_standalone_tests/include -I/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/json/qt_protobuf_generated -isystem /home/qt/work/install/include/QtTest -isystem /home/qt/work/install/include -isystem /home/qt/work/install/include/QtCore -isystem /home/qt/work/install/mkspecs/linux-g++ -isystem /home/qt/work/install/include/QtProtobuf -g -std=gnu++20 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fexceptions -fPIC -Wsuggest-override -fcf-protection=full -ftrivial-auto-var-init=pattern -fstack-protector-strong -fstack-clash-protection -MD -MT tests/auto/protobuf/json/CMakeFiles/tst_protobuf_serialization_json_basic_types.dir/tst_protobuf_serialization_json_basictypes.cpp.o -MF tests/auto/protobuf/json/CMakeFiles/tst_protobuf_serialization_json_basic_types.dir/tst_protobuf_serialization_json_basictypes.cpp.o.d -o tests/auto/protobuf/json/CMakeFiles/tst_protobuf_serialization_json_basic_types.dir/tst_protobuf_serialization_json_basictypes.cpp.o -c /home/qt/work/qt/qtgrpc/tests/auto/protobuf/json/tst_protobuf_serialization_json_basictypes.cpp
      agent:2024/05/15 08:01:23 build.go:404: [216/964] sccache /usr/bin/g++ -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_NAMESPACE=TestNamespace -DQT_NO_AS_CONST=1 -DQT_NO_CONTEXTLESS_CONNECT=1 -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_PROTOBUF_LIB -DQT_STRICT_QLIST_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/json\" -DQT_TESTCASE_SOURCEDIR=\"/home/qt/work/qt/qtgrpc/tests/auto/protobuf/json\" -DQT_TESTLIB_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_GLIBCXX_ASSERTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/json/tst_protobuf_deserialization_json_basictypes_autogen/include -I/home/qt/work/qt/qtgrpc/tests/auto/protobuf/json -I/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/json -I/home/qt/work/qt/qtgrpc_standalone_tests/include -I/home/qt/work/qt/qtgrpc_standalone_tests/tests/auto/protobuf/json/qt_protobuf_generated -isystem /home/qt/work/install/include/QtTest -isystem /home/qt/work/install/include -isystem /home/qt/work/install/include/QtCore -isystem /home/qt/work/install/mkspecs/linux-g++ -isystem /home/qt/work/install/include/QtProtobuf -g -std=gnu++20 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fexceptions -fPIC -Wsuggest-override -fcf-protection=full -ftrivial-auto-var-init=pattern -fstack-protector-strong -fstack-clash-protection -MD -MT tests/auto/protobuf/json/CMakeFiles/tst_protobuf_deserialization_json_basictypes.dir/tst_protobuf_deserialization_json_basictypes.cpp.o -MF tests/auto/protobuf/json/CMakeFiles/tst_protobuf_deserialization_json_basictypes.dir/tst_protobuf_deserialization_json_basictypes.cpp.o.d -o tests/auto/protobuf/json/CMakeFiles/tst_protobuf_deserialization_json_basictypes.dir/tst_protobuf_deserialization_json_basictypes.cpp.o -c /home/qt/work/qt/qtgrpc/tests/auto/protobuf/json/tst_protobuf_deserialization_json_basictypes.cpp
      agent:2024/05/15 08:01:23 build.go:404: ninja: build stopped: subcommand failed.
      agent:2024/05/15 08:01:23 build.go:455: Process finished with error: exit status 1
      agent:2024/05/15 08:01:23 build.go:755: Executing scheduled instruction 1 of 2 - Upload all core dumps if there are some
      agent:2024/05/15 08:01:23 build.go:652: Skip uploading core files because CORE_FILES_PATH is not set in the environment
      agent:2024/05/15 08:01:23 build.go:763: 
      agent:2024/05/15 08:01:23 build.go:755: Executing scheduled instruction 2 of 2 - Print sccache statistics
      agent:2024/05/15 08:01:23 build.go:427: [sccache -s] 30s 30s false true
      agent:2024/05/15 08:01:23 build.go:404: Compile requests                    294
      agent:2024/05/15 08:01:23 build.go:404: Compile requests executed           289
      agent:2024/05/15 08:01:23 build.go:404: Cache hits                          279
      agent:2024/05/15 08:01:23 build.go:404: Cache hits (C/C++)                  279
      agent:2024/05/15 08:01:23 build.go:404: Cache misses                          9
      agent:2024/05/15 08:01:23 build.go:404: Cache misses (C/C++)                  9
      agent:2024/05/15 08:01:23 build.go:404: Cache timeouts                        0
      agent:2024/05/15 08:01:23 build.go:404: Cache read errors                     0
      agent:2024/05/15 08:01:23 build.go:404: Forced recaches                       0
      agent:2024/05/15 08:01:23 build.go:404: Cache write errors                    0
      agent:2024/05/15 08:01:23 build.go:404: Compilation failures                  1
      agent:2024/05/15 08:01:23 build.go:404: Cache errors                          0
      agent:2024/05/15 08:01:23 build.go:404: Non-cacheable compilations            0
      agent:2024/05/15 08:01:23 build.go:404: Non-cacheable calls                   5
      agent:2024/05/15 08:01:23 build.go:404: Non-compilation calls                 0
      agent:2024/05/15 08:01:23 build.go:404: Unsupported compiler calls            0
      agent:2024/05/15 08:01:23 build.go:404: Average cache write               0.007 s
      agent:2024/05/15 08:01:23 build.go:404: Average cache read miss           1.906 s
      agent:2024/05/15 08:01:23 build.go:404: Average cache read hit            0.007 s
      agent:2024/05/15 08:01:23 build.go:404: Failed distributed compilations       0
      agent:2024/05/15 08:01:23 build.go:404: Non-cacheable reasons:
      agent:2024/05/15 08:01:23 build.go:404: -x                                    5
      agent:2024/05/15 08:01:23 build.go:404: Cache location                  S3, bucket: Bucket(name=cache, base_url=http://ci-sccache:9000/cache/)
      agent:2024/05/15 08:01:23 build.go:763: 
      agent:2024/05/15 08:01:23 agent.go:385: Build failed
      agent:2024/05/15 08:01:23 agent.go:248: ERROR building: exit status 1
      INFO:workitem.py:691(63196): Agent FINISHED FAIL: : qt/qtgrpc/cdcea3162c1482a3ca707b40d256cea0b2ad7cf4/LinuxUbuntu_24_04x86_64LinuxUbuntu_24_04x86_64GCCqtci-linux-Ubuntu-24.04-x86_64-50-d73fbbDocumentation_Sccache_UseConfigure/2dff925f3eaa6277fc41c8ee0f4002557ff8242b/Build
      INFO:workitem.py:773(63196): VM metrics
      INFO:workitem.py:776(63196): Host metrics

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              semlanik Alexey Edelev
              teheikki Tero Heikkinen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change