Bug 2264986

Summary: gcc 14.0.1-0.7 break mesa build
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: agurenko, awilliam, dmalcolm, ego.cordatus, fweimer, jakub, jlaw, josmyers, jwakely, mcermak, mpolacek, msebor, nickc, nixuser, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard: RejectedFreezeException
Fixed In Version: gcc-14.0.1-0.8.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-23 00:24:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
good mesa build log
none
bad mesa build log
none
mesa.spec none

Description Mikhail 2024-02-19 20:27:42 UTC
last good gcc version is gcc-14.0.1-0.6.fc40

[1755/3687] g++  -o src/freedreno/vulkan/libvulkan_freedreno.so src/freedreno/vulkan/libvulkan_freedreno.so.p/meson-generated_.._tu_entrypoints.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/meson-generated_.._tu_tracepoints.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_autotune.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_clear_blit.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_cmd_buffer.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_cs_breadcrumbs.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_cs.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_device.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_descriptor_set.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_dynamic_rendering.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_formats.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_image.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_knl.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_lrz.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_nir_lower_multiview.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_pass.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_pipeline.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_query.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_shader.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_suballoc.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_util.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_wsi.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_knl_drm_msm.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_knl_drm.cc.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libvulkan_freedreno.so -Wl,--whole-archive src/vulkan/runtime/libvulkan_runtime.a src/vulkan/wsi/libvulkan_wsi.a -Wl,--no-whole-archive -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection src/freedreno/ir3/libfreedreno_ir3.a src/freedreno/isa/libir3decode.a src/util/libmesa_util.a src/util/libmesa_util_sse41.a src/util/blake3/libblake3.a src/c11/impl/libmesa_util_c11.a src/freedreno/isa/libir3encode.a src/compiler/nir/libnir.a src/compiler/libcompiler.a src/freedreno/common/libfreedreno_common.a src/freedreno/fdl/libfreedreno_layout.a src/freedreno/perfcntrs/libfreedreno_perfcntrs.a src/vulkan/util/libvulkan_util.a src/compiler/spirv/libvtn.a src/util/libxmlconfig.a -Wl,--version-script /builddir/build/BUILD/mesa-893780b36251616e967f12354fab5fc0d05d79d7/src/vulkan/vulkan.sym -Wl,-Bsymbolic -Wl,--gc-sections -Wl,--build-id=sha1 /usr/lib/libelf.so -lm -pthread /usr/lib/libz.so /usr/lib/libzstd.so /usr/lib/libunwind.so /usr/lib/libxcb-dri3.so /usr/lib/libwayland-client.so /usr/lib/libXrandr.so /usr/lib/libdrm.so /usr/lib/libxcb.so /usr/lib/libX11-xcb.so /usr/lib/libX11.so /usr/lib/libxcb-present.so /usr/lib/libxcb-xfixes.so /usr/lib/libxcb-sync.so /usr/lib/libxcb-randr.so /usr/lib/libxcb-shm.so /usr/lib/libxshmfence.so /usr/lib/libexpat.so -Wl,--end-group
FAILED: src/freedreno/vulkan/libvulkan_freedreno.so 
g++  -o src/freedreno/vulkan/libvulkan_freedreno.so src/freedreno/vulkan/libvulkan_freedreno.so.p/meson-generated_.._tu_entrypoints.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/meson-generated_.._tu_tracepoints.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_autotune.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_clear_blit.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_cmd_buffer.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_cs_breadcrumbs.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_cs.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_device.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_descriptor_set.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_dynamic_rendering.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_formats.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_image.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_knl.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_lrz.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_nir_lower_multiview.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_pass.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_pipeline.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_query.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_shader.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_suballoc.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_util.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_wsi.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_knl_drm_msm.cc.o src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_knl_drm.cc.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libvulkan_freedreno.so -Wl,--whole-archive src/vulkan/runtime/libvulkan_runtime.a src/vulkan/wsi/libvulkan_wsi.a -Wl,--no-whole-archive -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection src/freedreno/ir3/libfreedreno_ir3.a src/freedreno/isa/libir3decode.a src/util/libmesa_util.a src/util/libmesa_util_sse41.a src/util/blake3/libblake3.a src/c11/impl/libmesa_util_c11.a src/freedreno/isa/libir3encode.a src/compiler/nir/libnir.a src/compiler/libcompiler.a src/freedreno/common/libfreedreno_common.a src/freedreno/fdl/libfreedreno_layout.a src/freedreno/perfcntrs/libfreedreno_perfcntrs.a src/vulkan/util/libvulkan_util.a src/compiler/spirv/libvtn.a src/util/libxmlconfig.a -Wl,--version-script /builddir/build/BUILD/mesa-893780b36251616e967f12354fab5fc0d05d79d7/src/vulkan/vulkan.sym -Wl,-Bsymbolic -Wl,--gc-sections -Wl,--build-id=sha1 /usr/lib/libelf.so -lm -pthread /usr/lib/libz.so /usr/lib/libzstd.so /usr/lib/libunwind.so /usr/lib/libxcb-dri3.so /usr/lib/libwayland-client.so /usr/lib/libXrandr.so /usr/lib/libdrm.so /usr/lib/libxcb.so /usr/lib/libX11-xcb.so /usr/lib/libX11.so /usr/lib/libxcb-present.so /usr/lib/libxcb-xfixes.so /usr/lib/libxcb-sync.so /usr/lib/libxcb-randr.so /usr/lib/libxcb-shm.so /usr/lib/libxshmfence.so /usr/lib/libexpat.so -Wl,--end-group
/usr/bin/ld: src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_device.cc.o: in function `void tu_cs_dbg_stomp_regs<(chip)6>(tu_cs*, bool, unsigned int, unsigned int, bool)':
/builddir/build/BUILD/mesa-893780b36251616e967f12354fab5fc0d05d79d7/redhat-linux-build/../src/freedreno/vulkan/tu_device.cc:1995:(.text._Z20tu_cs_dbg_stomp_regsIL4chip6EEvP5tu_csbjjb+0x30): undefined reference to `RP_BLIT_REGS<(chip)6>'
/usr/bin/ld: /builddir/build/BUILD/mesa-893780b36251616e967f12354fab5fc0d05d79d7/redhat-linux-build/../src/freedreno/vulkan/tu_device.cc:1998:(.text._Z20tu_cs_dbg_stomp_regsIL4chip6EEvP5tu_csbjjb+0x1b8): undefined reference to `CMD_REGS<(chip)6>'
/usr/bin/ld: src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_device.cc.o: in function `void tu_cs_dbg_stomp_regs<(chip)7>(tu_cs*, bool, unsigned int, unsigned int, bool)':
/builddir/build/BUILD/mesa-893780b36251616e967f12354fab5fc0d05d79d7/redhat-linux-build/../src/freedreno/vulkan/tu_device.cc:1995:(.text._Z20tu_cs_dbg_stomp_regsIL4chip7EEvP5tu_csbjjb+0x30): undefined reference to `RP_BLIT_REGS<(chip)7>'
/usr/bin/ld: /builddir/build/BUILD/mesa-893780b36251616e967f12354fab5fc0d05d79d7/redhat-linux-build/../src/freedreno/vulkan/tu_device.cc:1998:(.text._Z20tu_cs_dbg_stomp_regsIL4chip7EEvP5tu_csbjjb+0x1f0): undefined reference to `CMD_REGS<(chip)7>'
/usr/bin/ld: src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_cmd_buffer.cc.o: in function `void tu_emit_event_write<(chip)6>(tu_cmd_buffer*, tu_cs*, fd_gpu_event)':
/builddir/build/BUILD/mesa-893780b36251616e967f12354fab5fc0d05d79d7/redhat-linux-build/../src/freedreno/vulkan/tu_cmd_buffer.cc:75:(.text._Z19tu_emit_event_writeIL4chip6EEvP13tu_cmd_bufferP5tu_cs12fd_gpu_event[_Z19tu_emit_event_writeIL4chip6EEvP13tu_cmd_bufferP5tu_cs12fd_gpu_event]+0x16): undefined reference to `fd_gpu_events<(chip)6>'
/usr/bin/ld: src/freedreno/vulkan/libvulkan_freedreno.so.p/tu_cmd_buffer.cc.o: relocation R_386_GOTOFF against undefined symbol `_Z13fd_gpu_eventsIL4chip6EE' can not be used when making a shared object
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status


Reproducible: Always

Comment 1 Mikhail 2024-02-19 20:28:52 UTC
Created attachment 2017695 [details]
good mesa build log

Comment 2 Mikhail 2024-02-19 20:29:22 UTC
Created attachment 2017696 [details]
bad mesa build log

Comment 3 Jakub Jelinek 2024-02-20 15:29:35 UTC
Where do I get the mesa src.rpm? koji only has 24.0.0 and so does pkgs.fedoraproject.org git repo.

Comment 4 Mikhail 2024-02-20 15:41:30 UTC
Created attachment 2017798 [details]
mesa.spec

(In reply to Jakub Jelinek from comment #3)
> Where do I get the mesa src.rpm? koji only has 24.0.0 and so does
> pkgs.fedoraproject.org git repo.

I am build mesa snapshot everyday by myself.

mesa.src.rpm: https://mega.nz/file/98RBjYTL#7-_5NG-IBwC0sFuA48Lqc1TJ-hM0-vR6UMzt8qzAZ8A

Comment 5 Jakub Jelinek 2024-02-20 16:36:58 UTC
Filed upstream.

Comment 6 Fedora Update System 2024-02-29 10:58:36 UTC
FEDORA-2024-04a26a52c4 (gcc-14.0.1-0.8.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-04a26a52c4

Comment 7 Fedora Update System 2024-03-01 01:57:01 UTC
FEDORA-2024-04a26a52c4 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-04a26a52c4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-04a26a52c4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Blocker Bugs Application 2024-03-07 19:11:54 UTC
Proposed as a Freeze Exception for 40-beta by Fedora user atim using the blocker tracking app because:

 Please add to exceptions. This could speedup things for these who interested in testing NVK with upcoming Mesa 24.1 (https://copr.fedorainfracloud.org/coprs/xxmitsu/mesa-git/).

Comment 9 Adam Williamson 2024-03-12 01:34:16 UTC
Discussed at today's blocker review meeting: https://meetbot-raw.fedoraproject.org/blocker-review_matrix_fedoraproject-org/2024-03-11/f40-blocker-review.2024-03-11-16.00.html . This was rejected on the grounds there's no clear justification for it. We would usually only take a compiler fix if it was causing widespread mayhem to builds, or we needed it to fix the build of something we needed to pull in as a blocker or FE fix. Neither appears to be the case here.

Comment 10 Fedora Update System 2024-03-23 00:24:40 UTC
FEDORA-2024-04a26a52c4 (gcc-14.0.1-0.8.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.