Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-104565

Protobuf fails when building with c++20 on s390x

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-8.10.z
    • rhel-8.10.z
    • protobuf
    • None
    • protobuf-3.5.0-16.el8_10
    • No
    • Moderate
    • 1
    • rhel-kernel-ft
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • CK Parent Issues In Progress
    • Unspecified
    • Unspecified
    • Unspecified
    • s390x
    • None

      What were you trying to do that didn't work?

      I am trying to build mysql8.4.5 for rhel8 but protobuf fails when building on rhel8 with:
      In file included from /usr/include/google/protobuf/stubs/atomicops.h:217,
      from /usr/include/google/protobuf/io/coded_stream.h:134,
      from /builddir/build/BUILD/mysql-8.4.5/sql/protobuf/generated/protobuf_lite/replication_asynchronous_connection_failover.pb.h:22,
      from /builddir/build/BUILD/mysql-8.4.5/sql/protobuf/generated/protobuf_lite/replication_asynchronous_connection_failover.pb.cc:4:
      /usr/include/google/protobuf/stubs/atomicops_internals_generic_c11_atomic.h: In function 'void google::protobuf::internal::MemoryBarrierInternal()':
      /usr/include/google/protobuf/stubs/atomicops_internals_generic_c11_atomic.h:59:30: error: cannot convert 'const std::memory_order' to 'int'
      59 | __atomic_thread_fence(std::memory_order_seq_cst);

      ~~~~^~~~~~~~~~~~~~~~~~~
       
      const std::memory_order
      <built-in>: note: initializing argument 1 of 'void __atomic_thread_fence(int)'

      The build in question: https://copr.fedorainfracloud.org/coprs/psloboda/mysql8.4_rhel8-full_test/build/9274217/

      more info about the issue in this thread: https://redhat-internal.slack.com/archives/C04NH7K27H6/p1752585347291409

      What is the impact of this issue to you?

      Inability to build mysql8.4.5 on s390x. Working on a cmake patch but it isn't sustainable to maintain such a big cmake patch.

      Please provide the package NVR for which the bug is seen:

      protobuf-3.5.0-15

      How reproducible is this bug?:

      Every time

      Steps to reproduce

      1. Run a build of mysql8.4.5 on rhel8 for s390x

      Expected results

      Everything compiles successfully.

      Actual results

      The compilation fails with the abovementioned error.

              areber@redhat.com Adrian Reber
              rh-ee-psloboda Pavol Sloboda
              Adrian Reber Adrian Reber
              Radostin Stoyanov Radostin Stoyanov
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: