[Bug 1218701] New: llvm17 on i586: fails to build with RPM 4.19
https://bugzilla.suse.com/show_bug.cgi?id=1218701 Bug ID: 1218701 Summary: llvm17 on i586: fails to build with RPM 4.19 Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: ana.guerrero@suse.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Created attachment 871750 --> https://bugzilla.suse.com/attachment.cgi?id=871750&action=edit llvm17 on i586 with RPM 4.19 The remaining blocker for RPM 4.19 to go is llvm17 failing to build on i586, please see attached log. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1218701 https://bugzilla.suse.com/show_bug.cgi?id=1218701#c1 --- Comment #1 from Ana Guerrero <ana.guerrero@suse.com> --- In case it helps, from the bottom of the log: [12316s] ******************** [12346s] Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. [12346s] [12346s] 1 warning(s) in tests [12346s] ******************** [12346s] Failed Tests (2): [12346s] Clang Tools :: clang-tidy/checkers/abseil/duration-factory-scale.cpp [12346s] Clang Tools :: clang-tidy/checkers/altera/struct-pack-align.cpp [12346s] [12346s] [12346s] Testing Time: 31.18s [12346s] Unsupported : 1 [12346s] Passed : 797 [12346s] Expectedly Failed: 2 [12346s] Failed : 2 [12346s] error: Bad exit status from /var/tmp/rpm-tmp.HNfYRP (%check) -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1218701 Ana Guerrero <ana.guerrero@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |aaronpuchert@alice-dsl.net -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1218701 https://bugzilla.suse.com/show_bug.cgi?id=1218701#c2 Fabian Vogt <fabian@ritter-vogt.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fabian@ritter-vogt.de --- Comment #2 from Fabian Vogt <fabian@ritter-vogt.de> --- Looking at the build log, there is this diff: - -- LLVM host triple: i586-suse-linux - -- LLVM default target triple: i586-suse-linux + -- LLVM host triple: i686-suse-linux + -- LLVM default target triple: i686-suse-linux Which is coming from %_host_cpu: # Figure out the host triple. %ifarch armv6hl # See https://build.opensuse.org/request/show/968066. %define host_cpu armv6kz %else %define host_cpu %{_host_cpu} %endif The build happens on a recent x86_64 VM with an x86_64 kernel and 32bit x86 userspace, so technically i686 is actually more correct than i586 and IMO not an RPM regression. I guess the clang-tidy testsuite failure is because of https://github.com/llvm/llvm-project/issues/40805, which is related to floating point precision. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1218701 https://bugzilla.suse.com/show_bug.cgi?id=1218701#c3 --- Comment #3 from Fabian Vogt <fabian@ritter-vogt.de> --- (In reply to Fabian Vogt from comment #2)
The build happens on a recent x86_64 VM with an x86_64 kernel and 32bit x86 userspace, so technically i686 is actually more correct than i586 and IMO not an RPM regression.
FTR, the most likely cause upstream is https://github.com/rpm-software-management/rpm/commit/26d3802390602c6aadc523... -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1218701 https://bugzilla.suse.com/show_bug.cgi?id=1218701#c4 --- Comment #4 from Aaron Puchert <aaronpuchert@alice-dsl.net> --- (In reply to Fabian Vogt from comment #2)
Looking at the build log, there is this diff:
- -- LLVM host triple: i586-suse-linux - -- LLVM default target triple: i586-suse-linux + -- LLVM host triple: i686-suse-linux + -- LLVM default target triple: i686-suse-linux
Which is coming from %_host_cpu:
# Figure out the host triple. %ifarch armv6hl # See https://build.opensuse.org/request/show/968066. %define host_cpu armv6kz %else %define host_cpu %{_host_cpu} %endif
The build happens on a recent x86_64 VM with an x86_64 kernel and 32bit x86 userspace, so technically i686 is actually more correct than i586 and IMO not an RPM regression.
The intent here is actually not to figure out the host, but the "default target": what the compiler will emit without explicit --target=<triple>. Presumably our default target is still i586 and not i686, so how do I get that? Maybe %{_target_cpu}? With the current RPM, that's just an alias on x86_64: /usr/lib/rpm/macros:%_build_cpu %{_host_cpu} /usr/lib/rpm/macros:%_host_cpu x86_64 /usr/lib/rpm/macros:%_target_cpu %{_host_cpu} Though maybe that's not actually where it comes from, since I can override the target when building the package. Conceptually, using the _target_* macros instead of _host_* macros seems definitely right, but I'm not sure if it would fix the issue. The clang-tidy tests are not a big issue, but I don't think we want i686 as default target. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1218701 https://bugzilla.suse.com/show_bug.cgi?id=1218701#c7 --- Comment #7 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1218701) was mentioned in https://build.opensuse.org/request/show/1138185 Factory / llvm17 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1218701 https://bugzilla.suse.com/show_bug.cgi?id=1218701#c8 --- Comment #8 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1218701) was mentioned in https://build.opensuse.org/request/show/1157115 Backports:SLE-15-SP5 / llvm17 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1218701 https://bugzilla.suse.com/show_bug.cgi?id=1218701#c9 Ana Guerrero <ana.guerrero@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|IN_PROGRESS |RESOLVED --- Comment #9 from Ana Guerrero <ana.guerrero@suse.com> --- This is fixed already. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com