[Bug 1216121] New: rust1.7{1,2,3} fail to build with newest binutils
https://bugzilla.suse.com/show_bug.cgi?id=1216121 Bug ID: 1216121 Summary: rust1.7{1,2,3} fail to build with newest binutils Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Keywords: build Severity: Normal Priority: P5 - None Component: Development Assignee: screening-team-bugs@suse.de Reporter: burnus@gmx.de QA Contact: qa-bugs@suse.de CC: william.brown@suse.com Target Milestone: --- Found By: --- Blocker: --- I have no idea why rust1.7{1,2,3} fails, I just note that with the new binutils https://build.opensuse.org/request/show/1113885 as shown below. The current error message does not point to anything obvious with regards to binutils - but looks more like a generic Rust build issue. But it as it does compile on opensuse:Factory, it must have something to do with binutils. The fails is: [ 191s] Finished release [optimized] target(s) in 1m 54s [ 192s] Building LLD for x86_64-unknown-linux-gnu ... [ 192s] CMake Deprecation Warning at /home/abuild/rpmbuild/BUILD/rustc-1.73.0-src/src/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy): [ 192s] The OLD behavior for policy CMP0114 will be removed from a future version [ 192s] of CMake. [ 192s] [ 192s] The cmake-policies(7) manual explains that the OLD behaviors of all [ 192s] policies are deprecated and that a policy should be set to OLD only under [ 192s] specific short-term circumstances. Projects should be ported to the NEW [ 192s] behavior and not rely on setting a policy to OLD. [ 192s] Call Stack (most recent call first): [ 192s] CMakeLists.txt:6 (include) [ 192s] [ 192s] [ 192s] -- The C compiler identification is GNU 13.2.1 [ 192s] -- The CXX compiler identification is GNU 13.2.1 [ 192s] -- Detecting C compiler ABI info [ 192s] -- Detecting C compiler ABI info - done ... [ 194s] -- Configuring done (2.2s) [ 194s] CMake Error at /usr/lib64/cmake/llvm/AddLLVM.cmake:714 (target_link_libraries): [ 194s] Target "lldELF" links to: [ 194s] [ 194s] zstd::libzstd_static [ 194s] [ 194s] but the target was not found. Possible reasons include: [ 194s] [ 194s] * There is a typo in the target name. [ 194s] * A find_package call is missing for an IMPORTED target. [ 194s] * An ALIAS target is missing. [ 194s] [ 194s] Call Stack (most recent call first): [ 194s] cmake/modules/AddLLD.cmake:13 (llvm_add_library) [ 194s] ELF/CMakeLists.txt:21 (add_lld_library) [ 194s] [ 194s] [ 194s] -- Generating done (0.0s) [ 194s] CMake Warning: [ 194s] Manually-specified variables were not used by the project: [ 194s] [ 194s] CMAKE_ASM_COMPILER [ 194s] [ 194s] [ 194s] CMake Generate step failed. Build files cannot be regenerated correctly. [ 194s] thread 'main' panicked at /home/abuild/rpmbuild/BUILD/rustc-1.73.0-src/vendor/cmake/src/lib.rs:975:5: [ 194s] [ 194s] command did not execute successfully, got: exit status: 1 [ 194s] [ 194s] build script failed, must exit now [ 194s] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace [ 194s] finished in 2.256 seconds [ 194s] Build completed unsuccessfully in 0:02:30 [ 194s] error: Bad exit status from /var/tmp/rpm-tmp.YhjGx1 (%build) -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1216121 https://bugzilla.suse.com/show_bug.cgi?id=1216121#c6 --- Comment #6 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1216121) was mentioned in https://build.opensuse.org/request/show/1119115 Factory / llvm16 https://build.opensuse.org/request/show/1119116 Factory / llvm15 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1216121 https://bugzilla.suse.com/show_bug.cgi?id=1216121#c11 Aaron Puchert <aaronpuchert@alice-dsl.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|IN_PROGRESS |RESOLVED --- Comment #11 from Aaron Puchert <aaronpuchert@alice-dsl.net> --- Fixed for llvm15, llvm16, llvm17. Older versions don't use zstd-devel. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1216121 https://bugzilla.suse.com/show_bug.cgi?id=1216121#c13 --- Comment #13 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1216121) 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=1216121 https://bugzilla.suse.com/show_bug.cgi?id=1216121#c15 Martin Liška <martin.liska@hey.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.liska@hey.com --- Comment #15 from Martin Liška <martin.liska@hey.com> --- @Dimstar, @Aaron: Would it be possible to enable ZSTD now (https://build.opensuse.org/request/show/1198526)? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1216121 https://bugzilla.suse.com/show_bug.cgi?id=1216121#c16 --- Comment #16 from Aaron Puchert <aaronpuchert@alice-dsl.net> --- I don't remember the exact details of this issue, but the build error was in Rust, which was building its own version of LLD against the llvm-devel. (So as not to rebuild the entirety of LLVM I assume.) Something went wrong there, presumably the CMake files shipped in llvm-devel indicated a link to libzstd would be necessary, but it selected the static library instead of the shared library. Whether ZSTD is used is indicated in %{_libdir}/cmake/llvm/LLVMConfig.cmake: set(LLVM_ENABLE_ZSTD 0) if(LLVM_ENABLE_ZSTD) find_package(zstd) endif() This would then change to 1, which results in invoking %{_libdir}/cmake/llvm/Findzstd.cmake. I don't know what happened there and whether that's still an issue. In any case, to verify that this works now, you should also branch some Rust version into that repository and check whether it builds. You should also try setting up a simple CMake project with CMakeLists.txt simply containing find_package(LLVM REQUIRED) This should configure fine. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com