Diff of the two buildlogs: -- --- b1/build.log 2024-10-29 19:10:51.513327611 +0000 +++ b2/build.log 2024-10-29 19:11:35.871750646 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Oct 29 07:10:09 -12 2024 -I: pbuilder-time-stamp: 1730229009 +I: Current time: Wed Oct 30 09:10:54 +14 2024 +I: pbuilder-time-stamp: 1730229054 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -28,52 +28,84 @@ dpkg-source: info: applying relax-deps.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1222331/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1969320/tmp/hooks/D01_modify_environment starting +debug: Running on codethink02-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Oct 29 19:11 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/1969320/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1969320/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='90d7d7c61f31497b9c4432ffd4126b1c' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='1222331' - PS1='# ' - PS2='> ' + INVOCATION_ID=9b4b57ed073249f69d3b65bf74696463 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1969320 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.o91MGYj0/pbuilderrc_Wzig --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.o91MGYj0/b1 --logfile b1/build.log rust-dlib_0.5.2-2.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.o91MGYj0/pbuilderrc_f0Rz --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.o91MGYj0/b2 --logfile b2/build.log rust-dlib_0.5.2-2.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink04-arm64 6.1.0-26-cloud-arm64 #1 SMP Debian 6.1.112-1 (2024-09-30) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-26-cloud-arm64 #1 SMP Debian 6.1.112-1 (2024-09-30) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1222331/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/1969320/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -192,7 +224,7 @@ Get: 73 http://deb.debian.org/debian unstable/main arm64 dh-cargo all 31 [10.3 kB] Get: 74 http://deb.debian.org/debian unstable/main arm64 librust-cfg-if-dev arm64 1.0.0-1+b1 [10.7 kB] Get: 75 http://deb.debian.org/debian unstable/main arm64 librust-libloading-dev arm64 0.8.5-1 [28.5 kB] -Fetched 123 MB in 1s (155 MB/s) +Fetched 123 MB in 1s (245 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-minimal:arm64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20060 files and directories currently installed.) @@ -457,8 +489,8 @@ Setting up tzdata (2024b-3) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Oct 29 19:10:35 UTC 2024. -Universal Time is now: Tue Oct 29 19:10:35 UTC 2024. +Local time is now: Tue Oct 29 19:11:20 UTC 2024. +Universal Time is now: Tue Oct 29 19:11:20 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -521,7 +553,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/rust-dlib-0.5.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../rust-dlib_0.5.2-2_source.changes +I: user script /srv/workspace/pbuilder/1969320/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/1969320/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/rust-dlib-0.5.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../rust-dlib_0.5.2-2_source.changes dpkg-buildpackage: info: source package rust-dlib dpkg-buildpackage: info: source version 0.5.2-2 dpkg-buildpackage: info: source distribution unstable @@ -761,7 +797,7 @@ Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=dlib CARGO_MANIFEST_DIR=/build/reproducible-path/rust-dlib-0.5.2 CARGO_PKG_AUTHORS='Elinor Berger ' CARGO_PKG_DESCRIPTION='Helper macros for handling manually loading optional system libraries.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=dlib CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/elinorbgr/dlib' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.5.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=5 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/build/reproducible-path/rust-dlib-0.5.2 LD_LIBRARY_PATH=/build/reproducible-path/rust-dlib-0.5.2/target/debug/deps rustc --crate-name dlib --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=73fb12c38c0af2c7 -C extra-filename=-73fb12c38c0af2c7 --out-dir /build/reproducible-path/rust-dlib-0.5.2/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C incremental=/build/reproducible-path/rust-dlib-0.5.2/target/aarch64-unknown-linux-gnu/debug/incremental -L dependency=/build/reproducible-path/rust-dlib-0.5.2/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/build/reproducible-path/rust-dlib-0.5.2/target/debug/deps --extern libloading=/build/reproducible-path/rust-dlib-0.5.2/target/aarch64-unknown-linux-gnu/debug/deps/liblibloading-1094f51cb535b04b.rmeta -C debuginfo=2 -C strip=none --cap-lints warn -C linker=aarch64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /build/reproducible-path/rust-dlib-0.5.2=/usr/share/cargo/registry/dlib-0.5.2 --remap-path-prefix /build/reproducible-path/rust-dlib-0.5.2/debian/cargo_registry=/usr/share/cargo/registry` warning: `libloading` (lib) generated 15 warnings Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=dlib CARGO_MANIFEST_DIR=/build/reproducible-path/rust-dlib-0.5.2 CARGO_PKG_AUTHORS='Elinor Berger ' CARGO_PKG_DESCRIPTION='Helper macros for handling manually loading optional system libraries.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=dlib CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/elinorbgr/dlib' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.5.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=5 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/build/reproducible-path/rust-dlib-0.5.2 LD_LIBRARY_PATH=/build/reproducible-path/rust-dlib-0.5.2/target/debug/deps rustc --crate-name dlib --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=cc6f940a3f93fb1b -C extra-filename=-cc6f940a3f93fb1b --out-dir /build/reproducible-path/rust-dlib-0.5.2/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C incremental=/build/reproducible-path/rust-dlib-0.5.2/target/aarch64-unknown-linux-gnu/debug/incremental -L dependency=/build/reproducible-path/rust-dlib-0.5.2/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/build/reproducible-path/rust-dlib-0.5.2/target/debug/deps --extern libloading=/build/reproducible-path/rust-dlib-0.5.2/target/aarch64-unknown-linux-gnu/debug/deps/liblibloading-1094f51cb535b04b.rlib -C debuginfo=2 -C strip=none --cap-lints warn -C linker=aarch64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /build/reproducible-path/rust-dlib-0.5.2=/usr/share/cargo/registry/dlib-0.5.2 --remap-path-prefix /build/reproducible-path/rust-dlib-0.5.2/debian/cargo_registry=/usr/share/cargo/registry` - Finished `test` profile [unoptimized + debuginfo] target(s) in 1.33s + Finished `test` profile [unoptimized + debuginfo] target(s) in 1.32s Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/build/reproducible-path/rust-dlib-0.5.2 CARGO_PKG_AUTHORS='Elinor Berger ' CARGO_PKG_DESCRIPTION='Helper macros for handling manually loading optional system libraries.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=dlib CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/elinorbgr/dlib' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.5.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=5 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/build/reproducible-path/rust-dlib-0.5.2/target/aarch64-unknown-linux-gnu/debug/deps:/build/reproducible-path/rust-dlib-0.5.2/target/aarch64-unknown-linux-gnu/debug:/usr/lib/rustlib/aarch64-unknown-linux-gnu/lib' /build/reproducible-path/rust-dlib-0.5.2/target/aarch64-unknown-linux-gnu/debug/deps/dlib-cc6f940a3f93fb1b` running 0 tests @@ -775,10 +811,10 @@ test src/lib.rs - ffi_dispatch (line 154) ... ignored test src/lib.rs - ffi_dispatch_static (line 188) ... ignored test src/lib.rs - (line 124) ... FAILED -test src/lib.rs - (line 31) ... FAILED -test src/lib.rs - (line 102) ... FAILED test src/lib.rs - (line 49) ... FAILED +test src/lib.rs - (line 31) ... FAILED test src/lib.rs - (line 93) ... FAILED +test src/lib.rs - (line 102) ... FAILED test src/lib.rs - (line 8) ... FAILED test src/lib.rs - (line 114) ... ok @@ -819,12 +855,12 @@ For more information about this error, try `rustc --explain E0432`. Couldn't compile the test. ----- src/lib.rs - (line 31) stdout ---- +---- src/lib.rs - (line 49) stdout ---- error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:34:20 + --> src/lib.rs:51:22 | -5 | pub static me: c_int; - | ^^^^^ not found in this scope +4 | pub me: &'static c_int, + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -834,10 +870,10 @@ | error[E0412]: cannot find type `c_float` in this scope - --> src/lib.rs:35:21 + --> src/lib.rs:52:23 | -6 | pub static you: c_float; - | ^^^^^^^ not found in this scope +5 | pub you: &'static c_float, + | ^^^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -847,10 +883,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:36:21 + --> src/lib.rs:53:40 | -7 | pub fn foo() -> c_int; - | ^^^^^ not found in this scope +6 | pub foo: unsafe extern "C" fn() -> c_int, + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -860,10 +896,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:37:19 + --> src/lib.rs:54:35 | -8 | pub fn bar(_: c_int, _: c_float) -> (); - | ^^^^^ not found in this scope +7 | pub bar: unsafe extern "C" fn(c_int, c_float) -> (), + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -873,10 +909,10 @@ | error[E0412]: cannot find type `c_float` in this scope - --> src/lib.rs:37:29 + --> src/lib.rs:54:42 | -8 | pub fn bar(_: c_int, _: c_float) -> (); - | ^^^^^^^ not found in this scope +7 | pub bar: unsafe extern "C" fn(c_int, c_float) -> (), + | ^^^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -886,10 +922,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:38:26 + --> src/lib.rs:55:42 | -9 | pub fn baz(_: *const c_int) -> c_int; - | ^^^^^ not found in this scope +8 | pub baz: unsafe extern "C" fn(*const c_int) -> c_int, + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -899,10 +935,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:38:36 + --> src/lib.rs:55:52 | -9 | pub fn baz(_: *const c_int) -> c_int; - | ^^^^^ not found in this scope +8 | pub baz: unsafe extern "C" fn(*const c_int) -> c_int, + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -912,49 +948,49 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:39:20 - | -10 | pub fn blah(_: c_int, _: c_int, ...) -> *const c_void; - | ^^^^^ not found in this scope - | + --> src/lib.rs:56:36 + | +9 | pub blah: unsafe extern "C" fn(c_int, c_int, ...) -> *const c_void, + | ^^^^^ not found in this scope + | help: consider importing one of these type aliases - | -2 + use std::ffi::c_int; - | -2 + use std::os::raw::c_int; - | + | +2 + use std::ffi::c_int; + | +2 + use std::os::raw::c_int; + | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:39:30 - | -10 | pub fn blah(_: c_int, _: c_int, ...) -> *const c_void; - | ^^^^^ not found in this scope - | + --> src/lib.rs:56:43 + | +9 | pub blah: unsafe extern "C" fn(c_int, c_int, ...) -> *const c_void, + | ^^^^^ not found in this scope + | help: consider importing one of these type aliases - | -2 + use std::ffi::c_int; - | -2 + use std::os::raw::c_int; - | + | +2 + use std::ffi::c_int; + | +2 + use std::os::raw::c_int; + | error[E0412]: cannot find type `c_void` in this scope - --> src/lib.rs:39:52 - | -10 | pub fn blah(_: c_int, _: c_int, ...) -> *const c_void; - | ^^^^^^ not found in this scope - | + --> src/lib.rs:56:65 + | +9 | pub blah: unsafe extern "C" fn(c_int, c_int, ...) -> *const c_void, + | ^^^^^^ not found in this scope + | help: consider importing one of these items - | -2 + use std::ffi::c_void; - | -2 + use std::os::raw::c_void; - | + | +2 + use std::ffi::c_void; + | +2 + use std::os::raw::c_void; + | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:40:20 + --> src/lib.rs:57:36 | -11 | pub fn bleh(_: c_int, ...) -> (); - | ^^^^^ not found in this scope +10 | pub bleh: unsafe extern "C" fn(c_int, ...) -> (), + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -963,32 +999,27 @@ 2 + use std::os::raw::c_int; | -error: aborting due to 11 previous errors - -For more information about this error, try `rustc --explain E0412`. -Couldn't compile the test. ----- src/lib.rs - (line 102) stdout ---- -error: cannot find macro `ffi_dispatch_static` in this scope - --> src/lib.rs:104:1 - | -4 | ffi_dispatch_static!(feature="dlopen-foo", Foo, my_static_var); - | ^^^^^^^^^^^^^^^^^^^ - -error: cannot find macro `ffi_dispatch` in this scope - --> src/lib.rs:103:1 - | -3 | ffi_dispatch!(feature="dlopen-foo", Foo, function, arg1, arg2); - | ^^^^^^^^^^^^ +error[E0412]: cannot find type `DlError` in this scope + --> src/lib.rs:62:51 + | +15 | pub unsafe fn open(name: &str) -> Result { /* ... */ } + | ^^^^^^^ not found in this scope + | +help: you might be missing a type parameter + | +14 | impl Foo { + | +++++++++ -error: aborting due to 2 previous errors +error: aborting due to 12 previous errors +For more information about this error, try `rustc --explain E0412`. Couldn't compile the test. ----- src/lib.rs - (line 49) stdout ---- +---- src/lib.rs - (line 31) stdout ---- error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:51:22 + --> src/lib.rs:34:20 | -4 | pub me: &'static c_int, - | ^^^^^ not found in this scope +5 | pub static me: c_int; + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -998,10 +1029,10 @@ | error[E0412]: cannot find type `c_float` in this scope - --> src/lib.rs:52:23 + --> src/lib.rs:35:21 | -5 | pub you: &'static c_float, - | ^^^^^^^ not found in this scope +6 | pub static you: c_float; + | ^^^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1011,10 +1042,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:53:40 + --> src/lib.rs:36:21 | -6 | pub foo: unsafe extern "C" fn() -> c_int, - | ^^^^^ not found in this scope +7 | pub fn foo() -> c_int; + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1024,10 +1055,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:54:35 + --> src/lib.rs:37:19 | -7 | pub bar: unsafe extern "C" fn(c_int, c_float) -> (), - | ^^^^^ not found in this scope +8 | pub fn bar(_: c_int, _: c_float) -> (); + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1037,10 +1068,10 @@ | error[E0412]: cannot find type `c_float` in this scope - --> src/lib.rs:54:42 + --> src/lib.rs:37:29 | -7 | pub bar: unsafe extern "C" fn(c_int, c_float) -> (), - | ^^^^^^^ not found in this scope +8 | pub fn bar(_: c_int, _: c_float) -> (); + | ^^^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1050,10 +1081,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:55:42 + --> src/lib.rs:38:26 | -8 | pub baz: unsafe extern "C" fn(*const c_int) -> c_int, - | ^^^^^ not found in this scope +9 | pub fn baz(_: *const c_int) -> c_int; + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1063,10 +1094,10 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:55:52 + --> src/lib.rs:38:36 | -8 | pub baz: unsafe extern "C" fn(*const c_int) -> c_int, - | ^^^^^ not found in this scope +9 | pub fn baz(_: *const c_int) -> c_int; + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1076,49 +1107,49 @@ | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:56:36 - | -9 | pub blah: unsafe extern "C" fn(c_int, c_int, ...) -> *const c_void, - | ^^^^^ not found in this scope - | + --> src/lib.rs:39:20 + | +10 | pub fn blah(_: c_int, _: c_int, ...) -> *const c_void; + | ^^^^^ not found in this scope + | help: consider importing one of these type aliases - | -2 + use std::ffi::c_int; - | -2 + use std::os::raw::c_int; - | + | +2 + use std::ffi::c_int; + | +2 + use std::os::raw::c_int; + | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:56:43 - | -9 | pub blah: unsafe extern "C" fn(c_int, c_int, ...) -> *const c_void, - | ^^^^^ not found in this scope - | + --> src/lib.rs:39:30 + | +10 | pub fn blah(_: c_int, _: c_int, ...) -> *const c_void; + | ^^^^^ not found in this scope + | help: consider importing one of these type aliases - | -2 + use std::ffi::c_int; - | -2 + use std::os::raw::c_int; - | + | +2 + use std::ffi::c_int; + | +2 + use std::os::raw::c_int; + | error[E0412]: cannot find type `c_void` in this scope - --> src/lib.rs:56:65 - | -9 | pub blah: unsafe extern "C" fn(c_int, c_int, ...) -> *const c_void, - | ^^^^^^ not found in this scope - | + --> src/lib.rs:39:52 + | +10 | pub fn blah(_: c_int, _: c_int, ...) -> *const c_void; + | ^^^^^^ not found in this scope + | help: consider importing one of these items - | -2 + use std::ffi::c_void; - | -2 + use std::os::raw::c_void; - | + | +2 + use std::ffi::c_void; + | +2 + use std::os::raw::c_void; + | error[E0412]: cannot find type `c_int` in this scope - --> src/lib.rs:57:36 + --> src/lib.rs:40:20 | -10 | pub bleh: unsafe extern "C" fn(c_int, ...) -> (), - | ^^^^^ not found in this scope +11 | pub fn bleh(_: c_int, ...) -> (); + | ^^^^^ not found in this scope | help: consider importing one of these type aliases | @@ -1127,18 +1158,7 @@ 2 + use std::os::raw::c_int; | -error[E0412]: cannot find type `DlError` in this scope - --> src/lib.rs:62:51 - | -15 | pub unsafe fn open(name: &str) -> Result { /* ... */ } - | ^^^^^^^ not found in this scope - | -help: you might be missing a type parameter - | -14 | impl Foo { - | +++++++++ - -error: aborting due to 12 previous errors +error: aborting due to 11 previous errors For more information about this error, try `rustc --explain E0412`. Couldn't compile the test. @@ -1152,6 +1172,22 @@ error: aborting due to 1 previous error Couldn't compile the test. +---- src/lib.rs - (line 102) stdout ---- +error: cannot find macro `ffi_dispatch_static` in this scope + --> src/lib.rs:104:1 + | +4 | ffi_dispatch_static!(feature="dlopen-foo", Foo, my_static_var); + | ^^^^^^^^^^^^^^^^^^^ + +error: cannot find macro `ffi_dispatch` in this scope + --> src/lib.rs:103:1 + | +3 | ffi_dispatch!(feature="dlopen-foo", Foo, function, arg1, arg2); + | ^^^^^^^^^^^^ + +error: aborting due to 2 previous errors + +Couldn't compile the test. ---- src/lib.rs - (line 8) stdout ---- error: cannot find macro `external_library` in this scope --> src/lib.rs:9:1 @@ -1171,7 +1207,7 @@ src/lib.rs - (line 8) src/lib.rs - (line 93) -test result: FAILED. 1 passed; 6 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.34s +test result: FAILED. 1 passed; 6 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.29s error: doctest failed, to rerun pass `--doc` dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101 @@ -1206,12 +1242,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1969320/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1969320/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/1222331 and its subdirectories -I: Current time: Tue Oct 29 07:10:50 -12 2024 -I: pbuilder-time-stamp: 1730229050 +I: removing directory /srv/workspace/pbuilder/1969320 and its subdirectories +I: Current time: Wed Oct 30 09:11:34 +14 2024 +I: pbuilder-time-stamp: 1730229094