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

qemu-kvm fails to build in ppc64le with LLVM 20

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-9.7
    • rhel-9.7
    • llvm
    • None
    • llvm-20.1.1-3.el9
    • No
    • Moderate
    • 2
    • rhel-pt-llvm-rust
    • ssg_platform_tools
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • PT LLVMRustGo 2025 S5, PT LLVMRustGo 2025 S6
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • ppc64le
    • None

      qemu-kvm fails to build with latest llvm-20.1.0-1.el9 (gated as this ticket is being written, not yet in buildroot).
      A brew scratch build showing the problem can be found in https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=67080997

      The error can be found in build.log:

      FAILED: libblock.a.p/block_qcow2-bitmap.c.o 
      clang -m64 -mlittle-endian -Ilibblock.a.p -I. -I.. -Iqapi -Itrace -Iui -Iui/shader -Iblock -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -fcolor-diagnostics -Wall -Winvalid-pch -Werror -std=gnu11 -O2 -g -fstack-protector-strong -Wempty-body -Wendif-labels -Wexpansion-to-defined -Wformat-security -Wformat-y2k -Wignored-qualifiers -Winit-self -Wmissing-format-attribute -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wstrict-prototypes -Wtype-limits -Wundef -Wvla -Wwrite-strings -Wno-gnu-variable-sized-type-not-at-end -Wno-initializer-overrides -Wno-missing-include-dirs -Wno-psabi -Wno-shift-negative-value -Wno-string-plus-int -Wno-tautological-type-limit-compare -Wno-typedef-redefinition -Wthread-safety -isystem /builddir/build/BUILD/qemu-9.1.0/linux-headers -isystem linux-headers -iquote . -iquote /builddir/build/BUILD/qemu-9.1.0 -iquote /builddir/build/BUILD/qemu-9.1.0/include -iquote /builddir/build/BUILD/qemu-9.1.0/host/include/ppc64 -iquote /builddir/build/BUILD/qemu-9.1.0/host/include/generic -iquote /builddir/build/BUILD/qemu-9.1.0/tcg/ppc -pthread -DSTAP_SDT_V2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-common -fwrapv -ftrivial-auto-var-init=zero -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mcpu=power9 -mtune=power9 -fasynchronous-unwind-tables -fstack-clash-protection -Wno-string-plus-int -fPIE -MD -MQ libblock.a.p/block_qcow2-bitmap.c.o -MF libblock.a.p/block_qcow2-bitmap.c.o.d -o libblock.a.p/block_qcow2-bitmap.c.o -c ../block/qcow2-bitmap.c
      error: Undefined temporary symbol .L_MergedGlobals.59
      1 error generated.
      

      Rebuilding the same file with previous llmv19 does not reproduce the issue.

      This seems to be caused because the ppc64le backend is now using GlobalMerge instead PPCMergeStringPool.

      Reported in bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=2352554

      Tulio reported it upstream as well https://github.com/llvm/llvm-project/issues/131394

              tstellar@redhat.com Thomas Stellard
              rhn-support-jchecahi Jesus Checa Hidalgo
              Thomas Stellard Thomas Stellard
              Jesus Checa Hidalgo Jesus Checa Hidalgo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: