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

protobuf-3.19.6-2.fc38.src.rpm build fails with -flto + ld-gold

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • rhel-9.0.0
    • protobuf
    • None
    • Low
    • sst_kernel_tps
    • ssg_core_kernel
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      build log:

      libtool: link: (cd ".libs" && rm -f "libprotoc.so.30" && ln -s "libprotoc.so.30.0.6" "libprotoc.so.30")
      libtool: link: (cd ".libs" && rm -f "libprotoc.so" && ln -s "libprotoc.so.30.0.6" "libprotoc.so")
      libtool: link: ar cru .libs/libprotoc.a google/protobuf/compiler/code_generator.o google/protobuf/compiler/command_line_interface.o google/protobuf/compiler/cpp/cpp_enum.o google/protobuf/compiler/cpp/cpp_enum_field.o google/protobuf/compiler/cpp/cpp_extension.o google/protobuf/compiler/cpp/cpp_field.o google/protobuf/compiler/cpp/cpp_file.o google/protobuf/compiler/cpp/cpp_generator.o google/protobuf/compiler/cpp/cpp_helpers.o google/protobuf/compiler/cpp/cpp_map_field.o google/protobuf/compiler/cpp/cpp_message.o google/protobuf/compiler/cpp/cpp_message_field.o google/protobuf/compiler/cpp/cpp_padding_optimizer.o google/protobuf/compiler/cpp/cpp_parse_function_generator.o google/protobuf/compiler/cpp/cpp_primitive_field.o google/protobuf/compiler/cpp/cpp_service.o google/protobuf/compiler/cpp/cpp_string_field.o google/protobuf/compiler/csharp/csharp_doc_comment.o google/protobuf/compiler/csharp/csharp_enum.o google/protobuf/compiler/csharp/csharp_enum_field.o google/protobuf/compiler/csharp/csharp_field_base.o google/protobuf/compiler/csharp/csharp_generator.o google/protobuf/compiler/csharp/csharp_helpers.o google/protobuf/compiler/csharp/csharp_map_field.o google/protobuf/compiler/csharp/csharp_message.o google/protobuf/compiler/csharp/csharp_message_field.o google/protobuf/compiler/csharp/csharp_primitive_field.o google/protobuf/compiler/csharp/csharp_reflection_class.o google/protobuf/compiler/csharp/csharp_repeated_enum_field.o google/protobuf/compiler/csharp/csharp_repeated_message_field.o google/protobuf/compiler/csharp/csharp_repeated_primitive_field.o google/protobuf/compiler/csharp/csharp_source_generator_base.o google/protobuf/compiler/csharp/csharp_wrapper_field.o google/protobuf/compiler/java/java_context.o google/protobuf/compiler/java/java_doc_comment.o google/protobuf/compiler/java/java_enum.o google/protobuf/compiler/java/java_enum_field.o google/protobuf/compiler/java/java_enum_field_lite.o google/protobuf/compiler/java/java_enum_lite.o google/protobuf/compiler/java/java_extension.o google/protobuf/compiler/java/java_extension_lite.o google/protobuf/compiler/java/java_field.o google/protobuf/compiler/java/java_file.o google/protobuf/compiler/java/java_generator.o google/protobuf/compiler/java/java_generator_factory.o google/protobuf/compiler/java/java_helpers.o google/protobuf/compiler/java/java_kotlin_generator.o google/protobuf/compiler/java/java_map_field.o google/protobuf/compiler/java/java_map_field_lite.o google/protobuf/compiler/java/java_message.o google/protobuf/compiler/java/java_message_builder.o google/protobuf/compiler/java/java_message_builder_lite.o google/protobuf/compiler/java/java_message_field.o google/protobuf/compiler/java/java_message_field_lite.o google/protobuf/compiler/java/java_message_lite.o google/protobuf/compiler/java/java_name_resolver.o google/protobuf/compiler/java/java_primitive_field.o google/protobuf/compiler/java/java_primitive_field_lite.o google/protobuf/compiler/java/java_service.o google/protobuf/compiler/java/java_shared_code_generator.o google/protobuf/compiler/java/java_string_field.o google/protobuf/compiler/java/java_string_field_lite.o google/protobuf/compiler/js/js_generator.o google/protobuf/compiler/js/well_known_types_embed.o google/protobuf/compiler/objectivec/objectivec_enum.o google/protobuf/compiler/objectivec/objectivec_enum_field.o google/protobuf/compiler/objectivec/objectivec_extension.o google/protobuf/compiler/objectivec/objectivec_field.o google/protobuf/compiler/objectivec/objectivec_file.o google/protobuf/compiler/objectivec/objectivec_generator.o google/protobuf/compiler/objectivec/objectivec_helpers.o google/protobuf/compiler/objectivec/objectivec_map_field.o google/protobuf/compiler/objectivec/objectivec_message.o google/protobuf/compiler/objectivec/objectivec_message_field.o google/protobuf/compiler/objectivec/objectivec_oneof.o google/protobuf/compiler/objectivec/objectivec_primitive_field.o google/protobuf/compiler/php/php_generator.o google/protobuf/compiler/plugin.o google/protobuf/compiler/plugin.pb.o google/protobuf/compiler/python/python_generator.o google/protobuf/compiler/ruby/ruby_generator.o google/protobuf/compiler/subprocess.o google/protobuf/compiler/zip_writer.o
      libtool: link: ranlib .libs/libprotoc.a
      libtool: link: ( cd ".libs" && rm -f "libprotoc.la" && ln -s "../libprotoc.la" "libprotoc.la" )
      make[2]: Leaving directory '/home/mockbuild/rpmbuild/BUILD/protobuf-3.19.6/src'
      make[2]: Entering directory '/home/mockbuild/rpmbuild/BUILD/protobuf-3.19.6/src'
      /bin/sh ../libtool --tag=CXX --mode=link g++ -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-error=type-limits -flto -o protoc google/protobuf/compiler/main.o -lpthread libprotobuf.la libprotoc.la -lz
      libtool: link: g++ -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-error=type-limits -flto -o .libs/protoc google/protobuf/compiler/main.o ./.libs/libprotobuf.so ./.libs/libprotoc.so /home/mockbuild/rpmbuild/BUILD/protobuf-3.19.6/src/.libs/libprotobuf.so -lpthread -lz
      ./.libs/libprotoc.so: error: undefined reference to 'descriptor_table_google_2fprotobuf_2fdescriptor_2eproto'
      collect2: error: ld returned 1 exit status
      make[2]: *** [Makefile:3990: protoc] Error 1
      make[2]: Leaving directory '/home/mockbuild/rpmbuild/BUILD/protobuf-3.19.6/src'
      make[1]: *** [Makefile:1913: all-recursive] Error 1
      make: *** [Makefile:1820: all] Error 2
      virhe: Bad exit status from /var/tmp/rpm-tmp.V6CZpD (%build)

      RPM käännösvirheitä:
      protobuf-3.19.6-2.fc38.src.rpm: Otsikko V4 RSA/SHA256 Signature, key ID 18b8e74c: NOKEY
      Bad exit status from /var/tmp/rpm-tmp.V6CZpD (%build)

            areber@redhat.com Adrian Reber
            zf-6667 Ilari Jääskeläinen (Inactive)
            Adrian Reber Adrian Reber
            bot rhel-cs-apps-subsystem-qe bot rhel-cs-apps-subsystem-qe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: