[Bug 1207928] New: [Staging] Mesa:drivers fails to build against Rust 1.67
http://bugzilla.opensuse.org/show_bug.cgi?id=1207928 Bug ID: 1207928 Summary: [Staging] Mesa:drivers fails to build against Rust 1.67 Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org Assignee: gfx-bugs@suse.de Reporter: dimstar@opensuse.org QA Contact: gfx-bugs@suse.de Found By: --- Blocker: --- Rust 1.67 has been submitted for inclusion and as new default https://build.opensuse.org/request/show/1062360 Mesa:drivers seems to be the only ring package that fails to build against this update (only considering the rings of course) Lin to failed build log: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:L... [ 938s] [2373/2465] rustc -C linker=cc --color=always --crate-type rlib --edition=2021 -C relocation-model=pic --crate-name mesa_rust_gen --emit dep-info=src/gallium/frontends/rusticl/mesa_rust_gen.d --emit link -Aclippy::all -Anon_snake_case -Anon_camel_case_types -Anon_upper_case_globals -o src/gallium/frontends/rusticl/libmesa_rust_gen.rlib -l static=gallium -l static=libclc -l dylib=drm -l dylib=LLVM -l dylib=m -l dylib=z -l dylib=clang-cpp -l dylib=LLVM -l dylib=LLVMSPIRVLib -l dylib=z -l dylib=m -l dylib=SPIRV-Tools-opt -l dylib=SPIRV-Tools -l dylib=SPIRV-Tools-link -L src/gallium/auxiliary -L src/compiler/clc -L /usr/lib64 src/gallium/frontends/rusticl/rusticl_mesa_bindings.rs [ 938s] FAILED: src/gallium/frontends/rusticl/libmesa_rust_gen.rlib [ 938s] rustc -C linker=cc --color=always --crate-type rlib --edition=2021 -C relocation-model=pic --crate-name mesa_rust_gen --emit dep-info=src/gallium/frontends/rusticl/mesa_rust_gen.d --emit link -Aclippy::all -Anon_snake_case -Anon_camel_case_types -Anon_upper_case_globals -o src/gallium/frontends/rusticl/libmesa_rust_gen.rlib -l static=gallium -l static=libclc -l dylib=drm -l dylib=LLVM -l dylib=m -l dylib=z -l dylib=clang-cpp -l dylib=LLVM -l dylib=LLVMSPIRVLib -l dylib=z -l dylib=m -l dylib=SPIRV-Tools-opt -l dylib=SPIRV-Tools -l dylib=SPIRV-Tools-link -L src/gallium/auxiliary -L src/compiler/clc -L /usr/lib64 src/gallium/frontends/rusticl/rusticl_mesa_bindings.rs [ 938s] error: failed to add native library src/gallium/auxiliary/libgallium.a: Unsupported archive identifier -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207928 http://bugzilla.opensuse.org/show_bug.cgi?id=1207928#c1 --- Comment #1 from Dominique Leuenberger <dimstar@opensuse.org> --- Possibly related to https://github.com/rust-lang/rust/issues/107334 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207928 http://bugzilla.opensuse.org/show_bug.cgi?id=1207928#c2 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |william.brown@suse.com --- Comment #2 from Stefan Dirsch <sndirsch@suse.com> --- Hmm. How am I supposed to reproduce that issue? I was trying by running osc build -M drivers --alternative-project openSUSE:Factory:Staging:G standard After this succeeded I noticed that there is still rust 1.66 installed in the buildsystem. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207928 http://bugzilla.opensuse.org/show_bug.cgi?id=1207928#c3 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |IN_PROGRESS Assignee|gfx-bugs@suse.de |sndirsch@suse.com --- Comment #3 from Stefan Dirsch <sndirsch@suse.com> --- Not knowing anything about rust could I use BuildRequires: rust = 1.66 BuildRequires: rust-bindgen -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207928 http://bugzilla.opensuse.org/show_bug.cgi?id=1207928#c4 --- Comment #4 from Dominique Leuenberger <dimstar@opensuse.org> --- (In reply to Stefan Dirsch from comment #2)
Hmm. How am I supposed to reproduce that issue? I was trying by running
osc build -M drivers --alternative-project openSUSE:Factory:Staging:G standard
It's in Staging:L - not :G
After this succeeded I noticed that there is still rust 1.66 installed in the buildsystem.
According to comment#1 this seems more likely to be a rust regression which I don't think we should just work around by picking Rust 1.66 to avoid it. It should be fixed in Rust -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207928 http://bugzilla.opensuse.org/show_bug.cgi?id=1207928#c5 --- Comment #5 from Stefan Dirsch <sndirsch@suse.com> ---
It's in Staging:L - not :G
Ok. I didnt't read the comments in SR to the end. :-(
According to comment#1 this seems more likely to be a rust regression which I don't think we should just work around by picking Rust 1.66 to avoid it. It should be fixed in Rust
Well, I still don't understand when this issue was really fixed. According to git with # git show 252741673b9c2b06267cd3a036d77489e92f963a commit 252741673b9c2b06267cd3a036d77489e92f963a Merge: 6cd6bad51fb de363d54c40 Author: bors <bors@rust-lang.org> Date: Sat Jan 28 04:02:25 2023 +0000 Auto merge of #107360 - bjorn3:fix_thin_archive_reading, r=wesleywiser Fix thin archive reading This includes a revert of https://github.com/rust-lang/rust/pull/105221 to restore fat archive reading with LlvmArchiveBuilder. Should fix #107162, #107334 and https://github.com/google/shaderc-rs/issues/133 # git describe 252741673b9c2b06267cd3a036d77489e92f963a 1.0.0-beta-175357-g252741673b9 So long before 1.67 and even 1.66. OTOH this is just 9 days ago ... References: https://github.com/rust-lang/rust/issues/107334 https://github.com/rust-lang/rust/pull/107360 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207928 http://bugzilla.opensuse.org/show_bug.cgi?id=1207928#c6 --- Comment #6 from Stefan Dirsch <sndirsch@suse.com> --- https://gitlab.freedesktop.org/mesa/mesa/-/issues/8172 [...] That is a known regression [1] in rust, which is already fixed upstream[2] and likely will soon make it to the point release. [1] https://github.com/rust-lang/rust/issues/107334 [2] https://github.com/rust-lang/rust/pull/107360 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207928 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[Staging] Mesa:drivers |Rust 1.67 breaks rusticl |fails to build against Rust |build in Mesa:drivers (rust |1.67 |upstream fix available in | |git) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207928 http://bugzilla.opensuse.org/show_bug.cgi?id=1207928#c7 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P5 - None CC|william.brown@suse.com |sndirsch@suse.com Component|X.Org |Other Assignee|sndirsch@suse.com |william.brown@suse.com QA Contact|gfx-bugs@suse.de |qa-bugs@suse.de --- Comment #7 from Stefan Dirsch <sndirsch@suse.com> --- Reassigning ... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207928 http://bugzilla.opensuse.org/show_bug.cgi?id=1207928#c8 --- Comment #8 from William Brown <william.brown@suse.com> --- Okay, I guess we just have to wait on a .1 release then ... -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com