[Pkg-rust-maintainers] Bug#1084754: rustc FTCBFS: does not find src/zlib/adler32.c
Helmut Grohne
helmut at subdivi.de
Mon Oct 7 15:31:31 BST 2024
Source: rustc
Version: 1.79.0+dfsg1-2
User: debian-cross at lists.debian.org
Usertags: ftcbfs
Hi,
rustc fails to cross build from source since a while. The last working
version was 1.78.0+dfsg1-2. Since then, build logs indicate that it
fails locating zlib sources:
| [libz-sys 1.1.18] CFLAGS_s390x_unknown_linux_gnu = Some("-ffunction-sections -fdata-sections -fPIC -g -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security")
| [libz-sys 1.1.18] cargo:warning=cc1: fatal error: src/zlib/adler32.c: No such file or directory
| [libz-sys 1.1.18] cargo:warning=compilation terminated.
| [libz-sys 1.1.18] exit status: 1
| [libz-sys 1.1.18] cargo:warning=ToolExecError: Command "s390x-linux-gnu-gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-I" "src/zlib" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-Werror=implicit-function-declaration" "-ffile-prefix-map=/<<PKGBUILDDIR>>=." "-fstack-protector-strong" "-Wformat" "-Werror=format-security" "-fvisibility=hidden" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/<<PKGBUILDDIR>>/build/x86_64-unknown-linux-gnu/stage2-tools/s390x-unknown-linux-gnu/release/build/libz-sys-b2f86cc909b391e8/out/lib/0dc752f03a07a721-adler32.o" "-c" "src/zlib/adler32.c" with args s390x-linux-gnu-gcc did not execute successfully (status code exit status: 1).cargo:warning=cc1: fatal error: src/zlib/compress.c: No such file or directory
There is a dependency on both zlib1g-dev and zlib1g-dev:native, so
arguably, it should not be building zlib.
In earlier times, you were happy with getting a report and fixing it
yourself. Hence, this report comes without a patch. I hope this amount
of detail makes it easy to figure out the cause.
Helmut
More information about the Pkg-rust-maintainers
mailing list