cbindgen icon indicating copy to clipboard operation
cbindgen copied to clipboard

test failures for lib_default_uses_debug_build, lib_explicit_debug_build and lib_explicit_release_build

Open psumbera opened this issue 9 months ago • 1 comments

This is Solaris 11.4:

     Running tests/profile.rs (target/debug/deps/profile-19dde6da1f7bfb5d)

running 7 tests
test bin_ignore_cargo_build_target_in_tests ... ok
test lib_explicit_debug_build ... FAILED
test bin_explicit_debug_build ... ok
test lib_explicit_release_build ... FAILED
test lib_default_uses_debug_build ... FAILED
test bin_explicit_release_build ... ok
test bin_default_uses_debug_build ... ok

failures:

---- lib_explicit_debug_build stdout ----

thread 'lib_explicit_debug_build' panicked at tests/profile.rs:31:24:
build should succeed: CargoExpand("expand-dep", Compile("    Checking dep v0.1.0 (/builds/psumbera/userland-cbindgen-0.29.0/components/rust/cbindgen/TMP/cbindgen/tests/rust/expand_dep/dep)\n     Running `rustc --crate-name dep --edition=2018 dep/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=1d0d73d368f1349a -C extra-filename=-0d7e944a4a7d0826 --out-dir /tmp/cbindgen-test-output-Huoels/debug/deps -C incremental=/tmp/cbindgen-test-output-Huoels/debug/incremental -L dependency=/tmp/cbindgen-test-output-Huoels/debug/deps`\n    Checking expand-dep v0.1.0 (/builds/psumbera/userland-cbindgen-0.29.0/components/rust/cbindgen/TMP/cbindgen/tests/rust/expand_dep)\n     Running `rustc --crate-name expand_dep --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata
=5bb15ea43621b46f -C extra-filename=-89cb86f23c2cdd1f --out-dir /tmp/cbindgen-test-output-Huoels/debug/deps -C incremental=/tmp/cbindgen-test-output-Huoels/debug/incremental -L dependency=/tmp/cbindgen-test-output-Huoels/debug/deps --extern dep=/tmp/cbindgen-test-output-Huoels/debug/deps/libdep-0d7e944a4a7d0826.rmeta -Zunpretty=expanded`\nerror: the option `Z` is only accepted on the nightly compiler\n\nhelp: consider switching to a nightly toolchain: `rustup default nightly`\n\nnote: selecting a toolchain with `+toolchain` arguments require a rustup proxy; see <https://rust-lang.github.io/rustup/concepts/index.html>\n\nnote: for more information about Rust's stability policy, see <https://doc.rust-lang.org/book/appendix-07-nightly-rust.html#unstable-features>\n\nerror: 1 nightly option were parsed\n\nerror: could not compile `expand-dep` (lib)\n\nCaused by:\n  process didn't exit successfully: `rustc --crate-name expand_dep --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=5bb15ea43621b46f -C extra-filename=-89cb86f23c2cdd1f --out-dir /tmp/cbindgen-test-output-Huoels/debug/deps -C incremental=/tmp/cbindgen-test-output-Huoels/debug/incremental -L dependency=/tmp/cbindgen-test-output-Huoels/debug/deps --extern dep=/tmp/cbindgen-test-output-Huoels/debug/deps/libdep-0d7e944a4a7d0826.rmeta -Zunpretty=expanded` (exit status: 1)\n"))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- lib_explicit_release_build stdout ----
thread 'lib_explicit_release_build' panicked at tests/profile.rs:31:24:
build should succeed: CargoExpand("expand-dep", Compile("   Compiling dep v0.1.0 (/builds/psumbera/userland-cbindgen-0.29.0/components/rust/cbindgen/TMP/cbindgen/tests/rust/expand_dep/dep)\n     Running `rustc --crate-name dep --edition=2018 dep/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=e0b4cfeefdb417e0 -C extra-filename=-08f5f5929cb7fe09 --out-dir /tmp/cbindgen-test-output-Se7XcX/release/deps -C strip=debuginfo -L dependency=/tmp/cbindgen-test-output-Se7XcX/release/deps`\n   Compiling expand-dep v0.1.0 (/builds/psumbera/userland-cbindgen-0.29.0/components/rust/cbindgen/TMP/cbindgen/tests/rust/expand_dep)\n     Running `rustc --crate-name expand_dep --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=601b59db27dae216 -C extra-filename=-c3f4f6866a1c6a31 --out-dir /tmp/cbindgen-test-output-Se7XcX/release/deps -C strip=debuginfo -L dependency=/tmp/cbindgen-test-output-Se7XcX/release/deps --extern dep=/tmp/cbindgen-test-output-Se7XcX/release/deps/libdep-08f5f5929cb7fe09.rmeta -Zunpretty=expanded`\nerror: the option `Z` is only accepted on the nightly compiler\n\nhelp: consider switching to a nightly toolchain: `rustup default nightly`\n\nnote: selecting a toolchain with `+toolchain` arguments require a rustup proxy; see <https://rust-lang.github.io/rustup/concepts/index.html>\n\nnote: for more information about Rust's stability policy, see <https://doc.rust-lang.org/book/appendix-07-nightly-rust.html#unstable-features>\n\nerror: 1 nightly option were parsed\n\nerror: could not compile `expand-dep` (lib)\n\nCaused by:\n  process didn't exit successfully: `rustc --crate-name expand_dep --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=601b59db27dae216 -C extra-filename=-c3f4f6866a1c6a31 --out-dir /tmp/cbindgen-test-output-Se7XcX/release/deps -C strip=debuginfo -L dependency=/tmp/cbindgen-test-output-Se7XcX/release/deps --extern dep=/tmp/cbindgen-test-output-Se7XcX/release/deps/libdep-08f5f5929cb7fe09.rmeta -Zunpretty=expanded` (exit status: 1)\n"))

---- lib_default_uses_debug_build stdout ----

thread 'lib_default_uses_debug_build' panicked at tests/profile.rs:31:24:
build should succeed: CargoExpand("expand-dep", Compile("    Checking dep v0.1.0 (/builds/psumbera/userland-cbindgen-0.29.0/components/rust/cbindgen/TMP/cbindgen/tests/rust/expand_dep/dep)\n     Running `rustc --crate-name dep --edition=2018 dep/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=1d0d73d368f1349a -C extra-filename=-0d7e944a4a7d0826 --out-dir /tmp/cbindgen-test-output-NnD4ty/debug/deps -C incremental=/tmp/cbindgen-test-output-NnD4ty/debug/incremental -L dependency=/tmp/cbindgen-test-output-NnD4ty/debug/deps`\n    Checking expand-dep v0.1.0 (/builds/psumbera/userland-cbindgen-0.29.0/components/rust/cbindgen/TMP/cbindgen/tests/rust/expand_dep)\n     Running `rustc --crate-name expand_dep --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=5bb15ea43621b46f -C extra-filename=-89cb86f23c2cdd1f --out-dir /tmp/cbindgen-test-output-NnD4ty/debug/deps -C incremental=/tmp/cbindgen-test-output-NnD4ty/debug/incremental -L dependency=/tmp/cbindgen-test-output-NnD4ty/debug/deps --extern dep=/tmp/cbindgen-test-output-NnD4ty/debug/deps/libdep-0d7e944a4a7d0826.rmeta -Zunpretty=expanded`\nerror: the option `Z` is only accepted on the nightly compiler\n\nhelp: consider switching to a nightly toolchain: `rustup default nightly`\n\nnote: selecting a toolchain with `+toolchain` arguments require a rustup proxy; see <https://rust-lang.github.io/rustup/concepts/index.html>\n\nnote: for more information about Rust's stability policy, see <https://doc.rust-lang.org/book/appendix-07-nightly-rust.html#unstable-features>\n\nerror: 1 nightly option were parsed\n\nerror: could not compile `expand-dep` (lib)\n\nCaused by:\n  process didn't exit successfully: `rustc --crate-name expand_dep --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=5bb15ea43621b46f -C extra-filename=-89cb86f23c2cdd1f --out-dir /tmp/cbindgen-test-output-NnD4ty/debug/deps -C incremental=/tmp/cbindgen-test-output-NnD4ty/debug/incremental -L dependency=/tmp/cbindgen-test-output-NnD4ty/debug/deps --extern dep=/tmp/cbindgen-test-output-NnD4ty/debug/deps/libdep-0d7e944a4a7d0826.rmeta -Zunpretty=expanded` (exit status: 1)\n"))


failures:
    lib_default_uses_debug_build
    lib_explicit_debug_build
    lib_explicit_release_build

test result: FAILED. 4 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.74s

error: test failed, to rerun pass `--test profile`

psumbera avatar Jul 03 '25 08:07 psumbera