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: