[Pkg-rust-maintainers] Bug#947709: rust-clang-sys: autopkgtest failure: all tests fail

Paul Gevers elbrus at debian.org
Sun Dec 29 12:16:23 GMT 2019


Source: rust-clang-sys
Version: 0.28.1-3
X-Debbugs-CC: debian-ci at lists.debian.org
Severity: serious
User: debian-ci at lists.debian.org
Usertags: regression

Dear maintainers,

With a recent upload of rust-clang-sys you added an autopkgtest to
rust-clang-sys, great. However, it fails. I copied some of the output at
the bottom of this report. It seems to me that this package is not the
only package in the rust ecosystem that is failing its new autopktest,
so probably there is something to fix in the generating code. I am not
familiar with the rust ecosystem, hence I'm filing against the failing
package.

Currently this regression is blocking the migration to testing [1]. Can
you please investigate the situation and fix it?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=rust-clang-sys

https://ci.debian.net/data/autopkgtest/testing/amd64/r/rust-clang-sys/3801037/log.gz

autopkgtest [08:12:03]: test command1:
/usr/share/cargo/bin/cargo-auto-test clang-sys 0.28.1 --all-targets
--all-features
autopkgtest [08:12:03]: test command1: [-----------------------
debian cargo wrapper: options, profiles, parallel: ['parallel=2'] [] ['-j2']
debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu,
x86_64-linux-gnu
debian cargo wrapper: linking /usr/share/cargo/registry/* into
/tmp/tmp.BSvGuVoPuG/registry/
debian cargo wrapper: options, profiles, parallel: ['parallel=2'] [] ['-j2']
debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu,
x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1',
'/usr/bin/cargo', '-Zavoid-dev-deps', 'test', '--verbose', '--verbose',
'-j2', '--target', 'x86_64-unknown-linux-gnu', '--all-targets',
'--all-features'],) {}
   Compiling cc v1.0.37
   Compiling libc v0.2.62
     Running `CARGO_PKG_VERSION=1.0.37
CARGO_PKG_HOMEPAGE='https://github.com/alexcrichton/cc-rs'
CARGO_PKG_VERSION_MINOR=0
LD_LIBRARY_PATH='/tmp/tmp.BSvGuVoPuG/target/debug/deps:/usr/lib'
CARGO=/usr/bin/cargo
CARGO_MANIFEST_DIR=/tmp/tmp.BSvGuVoPuG/registry/cc-1.0.37
CARGO_PKG_VERSION_PRE= CARGO_PKG_NAME=cc CARGO_PKG_DESCRIPTION='A
build-time dependency for Cargo build scripts to assist in invoking the
native
C compiler to compile native C code into a static archive to be linked
into Rust
code.
' CARGO_PKG_REPOSITORY='https://github.com/alexcrichton/cc-rs'
CARGO_PKG_AUTHORS='Alex Crichton <alex at alexcrichton.com>'
CARGO_PKG_VERSION_PATCH=37 CARGO_PKG_VERSION_MAJOR=1 rustc --crate-name
cc /tmp/tmp.BSvGuVoPuG/registry/cc-1.0.37/src/lib.rs --color never
--crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C
metadata=055b36e8d34bc9b1 -C extra-filename=-055b36e8d34bc9b1 --out-dir
/tmp/tmp.BSvGuVoPuG/target/debug/deps -L
dependency=/tmp/tmp.BSvGuVoPuG/target/debug/deps --cap-lints warn`
     Running `CARGO_PKG_VERSION=0.2.62
CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/libc'
CARGO_PKG_VERSION_MINOR=2
LD_LIBRARY_PATH='/tmp/tmp.BSvGuVoPuG/target/debug/deps:/usr/lib'
CARGO=/usr/bin/cargo
CARGO_MANIFEST_DIR=/tmp/tmp.BSvGuVoPuG/registry/libc-0.2.62
CARGO_PKG_VERSION_PRE= CARGO_PKG_NAME=libc CARGO_PKG_DESCRIPTION='Raw
FFI bindings to platform libraries like libc.
' CARGO_PKG_REPOSITORY='https://github.com/rust-lang/libc'
CARGO_PKG_AUTHORS='The Rust Project Developers'
CARGO_PKG_VERSION_PATCH=62 CARGO_PKG_VERSION_MAJOR=0 rustc --crate-name
build_script_build /tmp/tmp.BSvGuVoPuG/registry/libc-0.2.62/build.rs
--color never --crate-type bin --emit=dep-info,link -C debuginfo=2 -C
metadata=7f6a065a46d56068 -C extra-filename=-7f6a065a46d56068 --out-dir
/tmp/tmp.BSvGuVoPuG/target/debug/build/libc-7f6a065a46d56068 -L
dependency=/tmp/tmp.BSvGuVoPuG/target/debug/deps --cap-lints warn`
   Compiling glob v0.3.0
     Running `CARGO_PKG_VERSION=0.3.0
CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/glob'
CARGO_PKG_VERSION_MINOR=3
LD_LIBRARY_PATH='/tmp/tmp.BSvGuVoPuG/target/debug/deps:/usr/lib'
CARGO=/usr/bin/cargo
CARGO_MANIFEST_DIR=/tmp/tmp.BSvGuVoPuG/registry/glob-0.3.0
CARGO_PKG_VERSION_PRE= CARGO_PKG_NAME=glob
CARGO_PKG_DESCRIPTION='Support for matching file paths against Unix
shell style patterns.
' CARGO_PKG_REPOSITORY='https://github.com/rust-lang/glob'
CARGO_PKG_AUTHORS='The Rust Project Developers'
CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_MAJOR=0 rustc --crate-name
glob /tmp/tmp.BSvGuVoPuG/registry/glob-0.3.0/src/lib.rs --color never
--crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C
metadata=660f73cd021b27bc -C extra-filename=-660f73cd021b27bc --out-dir
/tmp/tmp.BSvGuVoPuG/target/debug/deps -L
dependency=/tmp/tmp.BSvGuVoPuG/target/debug/deps --cap-lints warn`
warning: trait objects without an explicit `dyn` are deprecated
   --> /tmp/tmp.BSvGuVoPuG/registry/glob-0.3.0/src/lib.rs:294:32
    |
294 |     fn cause(&self) -> Option<&Error> {
    |                                ^^^^^ help: use `dyn`: `dyn Error`
    |
    = note: `#[warn(bare_trait_objects)]` on by default

     Running `CARGO_PKG_VERSION=0.3.0
CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/glob'
CARGO_PKG_VERSION_MINOR=3
LD_LIBRARY_PATH='/tmp/tmp.BSvGuVoPuG/target/debug/deps:/usr/lib'
CARGO=/usr/bin/cargo
CARGO_MANIFEST_DIR=/tmp/tmp.BSvGuVoPuG/registry/glob-0.3.0
CARGO_PKG_VERSION_PRE= CARGO_PKG_NAME=glob
CARGO_PKG_DESCRIPTION='Support for matching file paths against Unix
shell style patterns.
' CARGO_PKG_REPOSITORY='https://github.com/rust-lang/glob'
CARGO_PKG_AUTHORS='The Rust Project Developers'
CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_MAJOR=0 rustc --crate-name
glob /tmp/tmp.BSvGuVoPuG/registry/glob-0.3.0/src/lib.rs
--error-format=json --json=diagnostic-rendered-ansi,artifacts
--crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C
metadata=5c14e105fab74efb -C extra-filename=-5c14e105fab74efb --out-dir
/tmp/tmp.BSvGuVoPuG/target/x86_64-unknown-linux-gnu/debug/deps --target
x86_64-unknown-linux-gnu -L
dependency=/tmp/tmp.BSvGuVoPuG/target/x86_64-unknown-linux-gnu/debug/deps
-L dependency=/tmp/tmp.BSvGuVoPuG/target/debug/deps --cap-lints warn -C
debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C
link-arg=-Wl,-z,relro --remap-path-prefix
/usr/share/cargo/registry/clang-sys-0.28.1=/usr/share/cargo/registry/clang-sys-0.28.1`
warning: trait objects without an explicit `dyn` are deprecated
   --> /tmp/tmp.BSvGuVoPuG/registry/glob-0.3.0/src/lib.rs:294:32
    |
294 |     fn cause(&self) -> Option<&Error> {
    |                                ^^^^^ help: use `dyn`: `dyn Error`
    |
    = note: `#[warn(bare_trait_objects)]` on by default

     Running
`/tmp/tmp.BSvGuVoPuG/target/debug/build/libc-7f6a065a46d56068/build-script-build`
[libc 0.2.62] cargo:rustc-cfg=freebsd11
[libc 0.2.62] cargo:rustc-cfg=libc_priv_mod_use
[libc 0.2.62] cargo:rustc-cfg=libc_union
[libc 0.2.62] cargo:rustc-cfg=libc_const_size_of
[libc 0.2.62] cargo:rustc-cfg=libc_align
[libc 0.2.62] cargo:rustc-cfg=libc_core_cvoid
[libc 0.2.62] cargo:rustc-cfg=libc_packedN
   Compiling clang-sys v0.28.1 (/usr/share/cargo/registry/clang-sys-0.28.1)
     Running `CARGO_PKG_VERSION=0.28.1 CARGO_PKG_HOMEPAGE=
CARGO_PKG_VERSION_MINOR=28
LD_LIBRARY_PATH='/tmp/tmp.BSvGuVoPuG/target/debug/deps:/usr/lib'
CARGO=/usr/bin/cargo
CARGO_MANIFEST_DIR=/usr/share/cargo/registry/clang-sys-0.28.1
CARGO_PKG_VERSION_PRE= CARGO_PKG_NAME=clang-sys
CARGO_PKG_DESCRIPTION='Rust bindings for libclang.'
CARGO_PKG_REPOSITORY='https://github.com/KyleMayes/clang-sys'
CARGO_PKG_AUTHORS='Kyle Mayes <kyle at mayeses.com>'
CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_MAJOR=0 rustc --crate-name
build_script_build build.rs --color never --crate-type bin
--emit=dep-info,link -C debuginfo=2 --cfg 'feature="clang_3_5"' --cfg
'feature="clang_3_6"' --cfg 'feature="clang_3_7"' --cfg
'feature="clang_3_8"' --cfg 'feature="clang_3_9"' --cfg
'feature="clang_4_0"' --cfg 'feature="clang_5_0"' --cfg
'feature="clang_6_0"' --cfg 'feature="clang_7_0"' --cfg
'feature="clang_8_0"' --cfg 'feature="gte_clang_3_6"' --cfg
'feature="gte_clang_3_7"' --cfg 'feature="gte_clang_3_8"' --cfg
'feature="gte_clang_3_9"' --cfg 'feature="gte_clang_4_0"' --cfg
'feature="gte_clang_5_0"' --cfg 'feature="gte_clang_6_0"' --cfg
'feature="gte_clang_7_0"' --cfg 'feature="gte_clang_8_0"' --cfg
'feature="libloading"' --cfg 'feature="runtime"' --cfg
'feature="static"' -C metadata=352c73a957de7e1e -C
extra-filename=-352c73a957de7e1e --out-dir
/tmp/tmp.BSvGuVoPuG/target/debug/build/clang-sys-352c73a957de7e1e -C
incremental=/tmp/tmp.BSvGuVoPuG/target/debug/incremental -L
dependency=/tmp/tmp.BSvGuVoPuG/target/debug/deps --extern
glob=/tmp/tmp.BSvGuVoPuG/target/debug/deps/libglob-660f73cd021b27bc.rlib`
   Compiling libloading v0.5.0
     Running `CARGO_PKG_VERSION=0.5.0 CARGO_PKG_HOMEPAGE=
CARGO_PKG_VERSION_MINOR=5
LD_LIBRARY_PATH='/tmp/tmp.BSvGuVoPuG/target/debug/deps:/usr/lib'
CARGO=/usr/bin/cargo
CARGO_MANIFEST_DIR=/tmp/tmp.BSvGuVoPuG/registry/libloading-0.5.0
CARGO_PKG_VERSION_PRE= CARGO_PKG_NAME=libloading
CARGO_PKG_DESCRIPTION='A safer binding to platform’s dynamic library
loading utilities'
CARGO_PKG_REPOSITORY='https://github.com/nagisa/rust_libloading/'
CARGO_PKG_AUTHORS='Simonas Kazlauskas <libloading at kazlauskas.me>'
CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_MAJOR=0 rustc --crate-name
build_script_build
/tmp/tmp.BSvGuVoPuG/registry/libloading-0.5.0/build.rs --color never
--crate-type bin --emit=dep-info,link -C debuginfo=2 -C
metadata=2b5f9ae35d0b6dac -C extra-filename=-2b5f9ae35d0b6dac --out-dir
/tmp/tmp.BSvGuVoPuG/target/debug/build/libloading-2b5f9ae35d0b6dac -L
dependency=/tmp/tmp.BSvGuVoPuG/target/debug/deps --extern
cc=/tmp/tmp.BSvGuVoPuG/target/debug/deps/libcc-055b36e8d34bc9b1.rlib
--cap-lints warn`
     Running `CARGO_PKG_VERSION=0.2.62
CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/libc'
OUT_DIR=/tmp/tmp.BSvGuVoPuG/target/x86_64-unknown-linux-gnu/debug/build/libc-b4e6bf4b0cde607d/out
CARGO_PKG_VERSION_MINOR=2
LD_LIBRARY_PATH='/tmp/tmp.BSvGuVoPuG/target/debug/deps:/usr/lib'
CARGO=/usr/bin/cargo
CARGO_MANIFEST_DIR=/tmp/tmp.BSvGuVoPuG/registry/libc-0.2.62
CARGO_PKG_VERSION_PRE= CARGO_PKG_NAME=libc CARGO_PKG_DESCRIPTION='Raw
FFI bindings to platform libraries like libc.
' CARGO_PKG_REPOSITORY='https://github.com/rust-lang/libc'
CARGO_PKG_AUTHORS='The Rust Project Developers'
CARGO_PKG_VERSION_PATCH=62 CARGO_PKG_VERSION_MAJOR=0 rustc --crate-name
libc /tmp/tmp.BSvGuVoPuG/registry/libc-0.2.62/src/lib.rs
--error-format=json --json=diagnostic-rendered-ansi,artifacts
--crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C
metadata=392da24830d997dc -C extra-filename=-392da24830d997dc --out-dir
/tmp/tmp.BSvGuVoPuG/target/x86_64-unknown-linux-gnu/debug/deps --target
x86_64-unknown-linux-gnu -L
dependency=/tmp/tmp.BSvGuVoPuG/target/x86_64-unknown-linux-gnu/debug/deps
-L dependency=/tmp/tmp.BSvGuVoPuG/target/debug/deps --cap-lints warn -C
debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C
link-arg=-Wl,-z,relro --remap-path-prefix
/usr/share/cargo/registry/clang-sys-0.28.1=/usr/share/cargo/registry/clang-sys-0.28.1
--cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg
libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg
libc_packedN`
     Running
`/tmp/tmp.BSvGuVoPuG/target/debug/build/clang-sys-352c73a957de7e1e/build-script-build`
[clang-sys 0.28.1] thread 'main' panicked at '`runtime` and `static`
features can't be combined', build.rs:64:9
[clang-sys 0.28.1] stack backtrace:
[clang-sys 0.28.1]    0:
<std::sys_common::backtrace::_print::DisplayBacktrace as
core::fmt::Display>::fmt
[clang-sys 0.28.1]    1: core::fmt::write
[clang-sys 0.28.1]    2: std::io::Write::write_fmt
[clang-sys 0.28.1]    3: std::panicking::default_hook::{{closure}}
[clang-sys 0.28.1]    4: std::panicking::default_hook
[clang-sys 0.28.1]    5: std::panicking::rust_panic_with_hook
[clang-sys 0.28.1]    6: std::panicking::begin_panic
[clang-sys 0.28.1]              at
/usr/src/rustc-1.39.0/src/libstd/panicking.rs:407
[clang-sys 0.28.1]    7: build_script_build::main
[clang-sys 0.28.1]              at ./build.rs:64
[clang-sys 0.28.1]    8: std::rt::lang_start::{{closure}}
[clang-sys 0.28.1]              at /usr/src/rustc-1.39.0/src/libstd/rt.rs:64
[clang-sys 0.28.1]    9: std::panicking::try::do_call
[clang-sys 0.28.1]   10: __rust_maybe_catch_panic
[clang-sys 0.28.1]   11: std::rt::lang_start_internal
[clang-sys 0.28.1]   12: std::rt::lang_start
[clang-sys 0.28.1]              at /usr/src/rustc-1.39.0/src/libstd/rt.rs:64
[clang-sys 0.28.1]   13: main
[clang-sys 0.28.1]   14: __libc_start_main
[clang-sys 0.28.1]   15: _start
[clang-sys 0.28.1] note: Some details are omitted, run with
`RUST_BACKTRACE=full` for a verbose backtrace.
error: failed to run custom build command for `clang-sys v0.28.1
(/usr/share/cargo/registry/clang-sys-0.28.1)`

Caused by:
  process didn't exit successfully:
`/tmp/tmp.BSvGuVoPuG/target/debug/build/clang-sys-352c73a957de7e1e/build-script-build`
(exit code: 101)
--- stderr
thread 'main' panicked at '`runtime` and `static` features can't be
combined', build.rs:64:9
stack backtrace:
   0: <std::sys_common::backtrace::_print::DisplayBacktrace as
core::fmt::Display>::fmt
   1: core::fmt::write
   2: std::io::Write::write_fmt
   3: std::panicking::default_hook::{{closure}}
   4: std::panicking::default_hook
   5: std::panicking::rust_panic_with_hook
   6: std::panicking::begin_panic
             at /usr/src/rustc-1.39.0/src/libstd/panicking.rs:407
   7: build_script_build::main
             at ./build.rs:64
   8: std::rt::lang_start::{{closure}}
             at /usr/src/rustc-1.39.0/src/libstd/rt.rs:64
   9: std::panicking::try::do_call
  10: __rust_maybe_catch_panic
  11: std::rt::lang_start_internal
  12: std::rt::lang_start
             at /usr/src/rustc-1.39.0/src/libstd/rt.rs:64
  13: main
  14: __libc_start_main
  15: _start
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a
verbose backtrace.

warning: build failed, waiting for other jobs to finish...
warning: unnecessary trailing semicolon
   --> /tmp/tmp.BSvGuVoPuG/registry/libc-0.2.62/src/macros.rs:131:21
    |
131 |             $($body);*
    |                     ^ help: remove this semicolon
    |
note: lint level defined here
   --> /tmp/tmp.BSvGuVoPuG/registry/libc-0.2.62/src/lib.rs:17:53
    |
17  | #![cfg_attr(not(feature = "rustc-dep-of-std"), deny(warnings))]
    |                                                     ^^^^^^^^
    = note: `#[warn(redundant_semicolon)]` implied by `#[warn(warnings)]`

warning: unnecessary trailing semicolon
   --> /tmp/tmp.BSvGuVoPuG/registry/libc-0.2.62/src/macros.rs:131:21
    |
131 |             $($body);*
    |                     ^ help: remove this semicolon

error: build failed
autopkgtest [08:12:11]: test command1: -----------------------]


[...]

command1             FAIL non-zero exit status 101
command2             FAIL non-zero exit status 101
command3             FAIL non-zero exit status 101
command4             FAIL non-zero exit status 101
command5             FAIL non-zero exit status 101
command6             FAIL non-zero exit status 101
command7             FAIL non-zero exit status 101
command8             FAIL non-zero exit status 101
command9             FAIL non-zero exit status 101
command10            FAIL non-zero exit status 101
command11            FAIL non-zero exit status 101

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20191229/bb3ff1c3/attachment-0001.sig>


More information about the Pkg-rust-maintainers mailing list