[INFO] fetching crate libharu-sys 0.0.1... [INFO] testing libharu-sys-0.0.1 against master#1ddedbaa5919b7b3e70d984660e21e844c615c97 for pr-128400 [INFO] extracting crate libharu-sys 0.0.1 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate libharu-sys 0.0.1 on toolchain 1ddedbaa5919b7b3e70d984660e21e844c615c97 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate libharu-sys 0.0.1 [INFO] finished tweaking crates.io crate libharu-sys 0.0.1 [INFO] tweaked toml for crates.io crate libharu-sys 0.0.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 32 packages to latest compatible versions [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.6.0) [INFO] [stderr] Adding deflate v0.7.20 (latest: v1.0.0) [INFO] [stderr] Adding gif v0.10.3 (latest: v0.13.1) [INFO] [stderr] Adding image v0.19.0 (latest: v0.25.2) [INFO] [stderr] Adding jpeg-decoder v0.1.22 (latest: v0.3.1) [INFO] [stderr] Adding num-derive v0.2.5 (latest: v0.4.2) [INFO] [stderr] Adding num-rational v0.1.42 (latest: v0.4.2) [INFO] [stderr] Adding png v0.12.0 (latest: v0.17.13) [INFO] [stderr] Adding proc-macro2 v0.4.30 (latest: v1.0.86) [INFO] [stderr] Adding quote v0.6.13 (latest: v1.0.36) [INFO] [stderr] Adding syn v0.15.44 (latest: v2.0.72) [INFO] [stderr] Adding unicode-xid v0.1.0 (latest: v0.2.4) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded image v0.19.0 [INFO] [stderr] Downloaded png v0.12.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] edefeadf66dda21ec4784456a90a4280ddffc648478fa3dca47ffb6bd068cca9 [INFO] running `Command { std: "docker" "start" "-a" "edefeadf66dda21ec4784456a90a4280ddffc648478fa3dca47ffb6bd068cca9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "edefeadf66dda21ec4784456a90a4280ddffc648478fa3dca47ffb6bd068cca9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edefeadf66dda21ec4784456a90a4280ddffc648478fa3dca47ffb6bd068cca9", kill_on_drop: false }` [INFO] [stdout] edefeadf66dda21ec4784456a90a4280ddffc648478fa3dca47ffb6bd068cca9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 830781c378dbf4c070a366d55ee2ff146035093cf1ebd8a101548357ee9e1cf5 [INFO] running `Command { std: "docker" "start" "-a" "830781c378dbf4c070a366d55ee2ff146035093cf1ebd8a101548357ee9e1cf5", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling libharu-sys v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated struct `gcc::Build`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> libharu/build.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | gcc::Build::new() [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `gcc::Build::new`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> libharu/build.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | gcc::Build::new() [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_annotation.c: In function 'HPDF_LinkAnnot_SetJavaScript': [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_annotation.c:318:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] [INFO] [stderr] warning: libharu-sys@0.0.1: 318 | if (ret != HPDF_OK) [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_annotation.c:321:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' [INFO] [stderr] warning: libharu-sys@0.0.1: 321 | ret += HPDF_Dict_Add (action, "JS", javascript); [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_encoder_utf.c: In function 'UTF8_Encoder_ToUnicode_Func': [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_encoder_utf.c:133:46: warning: unused parameter 'code' [-Wunused-parameter] [INFO] [stderr] warning: libharu-sys@0.0.1: 133 | HPDF_UINT16 code) [INFO] [stderr] warning: libharu-sys@0.0.1: | ~~~~~~~~~~~~~~~^~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_font_cid.c: In function 'MeasureText': [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_font_cid.c:679:19: warning: variable 'last_btype' set but not used [-Wunused-but-set-variable] [INFO] [stderr] warning: libharu-sys@0.0.1: 679 | HPDF_ByteType last_btype = HPDF_BYTE_TYPE_TRIAL; [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_fontdef_jp.c:1042:29: warning: 'MS_PMincho_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 1042 | static const HPDF_CID_Width MS_PMincho_W_ARRAY[] = { [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_fontdef_jp.c:783:29: warning: 'MS_Mincho_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 783 | static const HPDF_CID_Width MS_Mincho_W_ARRAY[] = { [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_fontdef_kr.c:818:29: warning: 'Batang_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 818 | static const HPDF_CID_Width Batang_W_ARRAY[] = { [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_fontdef_kr.c:622:29: warning: 'BatangChe_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 622 | static const HPDF_CID_Width BatangChe_W_ARRAY[] = { [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_pages.c:52:29: warning: 'DEF_CMYK_COLOR' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 52 | static const HPDF_CMYKColor DEF_CMYK_COLOR = {0, 0, 0, 0}; [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_pages.c:50:28: warning: 'DEF_RGB_COLOR' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 50 | static const HPDF_RGBColor DEF_RGB_COLOR = {0, 0, 0}; [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_pdfa.c: In function 'HPDF_PDFA_SetPDFAConformance': [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_pdfa.c:154:17: warning: unused variable 'info' [-Wunused-variable] [INFO] [stderr] warning: libharu-sys@0.0.1: 154 | const char *info = NULL; [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~ [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:11:31 [INFO] [stdout] | [INFO] [stdout] 11 | pub type HPDF_INT32 = libc::int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/lib.rs:12:32 [INFO] [stdout] | [INFO] [stdout] 12 | pub type HPDF_UINT32 = libc::uint32_t; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int16_t`: Use i16 instead. [INFO] [stdout] --> src/lib.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | pub type HPDF_INT16 = libc::int16_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint16_t`: Use u16 instead. [INFO] [stdout] --> src/lib.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | pub type HPDF_UINT16 = libc::uint16_t; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/lib.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | pub type HPDF_STATUS = libc::uint32_t; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.63s [INFO] running `Command { std: "docker" "inspect" "830781c378dbf4c070a366d55ee2ff146035093cf1ebd8a101548357ee9e1cf5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "830781c378dbf4c070a366d55ee2ff146035093cf1ebd8a101548357ee9e1cf5", kill_on_drop: false }` [INFO] [stdout] 830781c378dbf4c070a366d55ee2ff146035093cf1ebd8a101548357ee9e1cf5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1780f6856ebc729da4786c36e115e726da4f6d0f1f3c1ce22102fcdf521bd494 [INFO] running `Command { std: "docker" "start" "-a" "1780f6856ebc729da4786c36e115e726da4f6d0f1f3c1ce22102fcdf521bd494", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stdout] warning: use of deprecated struct `gcc::Build`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> libharu/build.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | gcc::Build::new() [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `gcc::Build::new`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> libharu/build.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | gcc::Build::new() [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_annotation.c: In function 'HPDF_LinkAnnot_SetJavaScript': [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_annotation.c:318:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] [INFO] [stderr] warning: libharu-sys@0.0.1: 318 | if (ret != HPDF_OK) [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_annotation.c:321:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' [INFO] [stderr] warning: libharu-sys@0.0.1: 321 | ret += HPDF_Dict_Add (action, "JS", javascript); [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_encoder_utf.c: In function 'UTF8_Encoder_ToUnicode_Func': [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_encoder_utf.c:133:46: warning: unused parameter 'code' [-Wunused-parameter] [INFO] [stderr] warning: libharu-sys@0.0.1: 133 | HPDF_UINT16 code) [INFO] [stderr] warning: libharu-sys@0.0.1: | ~~~~~~~~~~~~~~~^~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_font_cid.c: In function 'MeasureText': [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_font_cid.c:679:19: warning: variable 'last_btype' set but not used [-Wunused-but-set-variable] [INFO] [stderr] warning: libharu-sys@0.0.1: 679 | HPDF_ByteType last_btype = HPDF_BYTE_TYPE_TRIAL; [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_fontdef_jp.c:1042:29: warning: 'MS_PMincho_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 1042 | static const HPDF_CID_Width MS_PMincho_W_ARRAY[] = { [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_fontdef_jp.c:783:29: warning: 'MS_Mincho_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 783 | static const HPDF_CID_Width MS_Mincho_W_ARRAY[] = { [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_fontdef_kr.c:818:29: warning: 'Batang_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 818 | static const HPDF_CID_Width Batang_W_ARRAY[] = { [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_fontdef_kr.c:622:29: warning: 'BatangChe_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 622 | static const HPDF_CID_Width BatangChe_W_ARRAY[] = { [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_pages.c:52:29: warning: 'DEF_CMYK_COLOR' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 52 | static const HPDF_CMYKColor DEF_CMYK_COLOR = {0, 0, 0, 0}; [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_pages.c:50:28: warning: 'DEF_RGB_COLOR' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 50 | static const HPDF_RGBColor DEF_RGB_COLOR = {0, 0, 0}; [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_pdfa.c: In function 'HPDF_PDFA_SetPDFAConformance': [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_pdfa.c:154:17: warning: unused variable 'info' [-Wunused-variable] [INFO] [stderr] warning: libharu-sys@0.0.1: 154 | const char *info = NULL; [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~ [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:11:31 [INFO] [stdout] | [INFO] [stdout] 11 | pub type HPDF_INT32 = libc::int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/lib.rs:12:32 [INFO] [stdout] | [INFO] [stdout] 12 | pub type HPDF_UINT32 = libc::uint32_t; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int16_t`: Use i16 instead. [INFO] [stdout] --> src/lib.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | pub type HPDF_INT16 = libc::int16_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint16_t`: Use u16 instead. [INFO] [stdout] --> src/lib.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | pub type HPDF_UINT16 = libc::uint16_t; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/lib.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | pub type HPDF_STATUS = libc::uint32_t; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling gif v0.10.3 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling png v0.12.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling image v0.19.0 [INFO] [stderr] Compiling libharu-sys v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated type alias `libc::int32_t`: Use i32 instead. [INFO] [stdout] --> src/lib.rs:11:31 [INFO] [stdout] | [INFO] [stdout] 11 | pub type HPDF_INT32 = libc::int32_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/lib.rs:12:32 [INFO] [stdout] | [INFO] [stdout] 12 | pub type HPDF_UINT32 = libc::uint32_t; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::int16_t`: Use i16 instead. [INFO] [stdout] --> src/lib.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | pub type HPDF_INT16 = libc::int16_t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint16_t`: Use u16 instead. [INFO] [stdout] --> src/lib.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | pub type HPDF_UINT16 = libc::uint16_t; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint32_t`: Use u32 instead. [INFO] [stdout] --> src/lib.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | pub type HPDF_STATUS = libc::uint32_t; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: LC_ALL="C" PATH="/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/cargo-home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustc0Dlzp3/symbols.o" "/opt/rustwide/target/debug/deps/libharu_sys-f509b9b272473fcd.libharu_sys.4c197fc87a252025-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/libharu_sys-f509b9b272473fcd.a3zei9yiz8rgdfh67c1tllkyh.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug/build/libharu-sys-bcf75d66849cd29a/out" "-L" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-lharu" "-Wl,--no-whole-archive" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-d2aabef62695c36a.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-85ffb1adee1b6de7.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-47c1d1c97d43fb9c.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-767d58143f86b11a.rlib" "/opt/rustwide/target/debug/deps/liblibc-b8a48bb4434428bd.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9506e3738f23e7c7.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-0e87bdc388165b9b.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-28d2ee21ffecbcd0.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-4cd64c3d9fc2560b.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-a1fedeceba4cc892.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-0b8915cbc76cd410.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-fec2ce82fc5b17fa.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-fdb02324b55b2840.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-db981ef273c68b12.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-2c4968ed4cb29e9c.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-661cdd70a5b83118.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-9cbb3bfdc8e63ca5.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-a4c5ad4392a26401.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-9409cd7d030362b9.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-7b90a2705bcf265b.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-80d2f129fb536a6f.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-f72b956e24d1de70.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-632ae0f28c5e55ff.rlib" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-7586cb84705120bb.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-B/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-B/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/1ddedbaa5919b7b3e70d984660e21e844c615c97/lib/rustlib/x86_64-unknown-linux-gnu/lib/self-contained" "-o" "/opt/rustwide/target/debug/deps/libharu_sys-f509b9b272473fcd" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: rust-lld: error: duplicate symbol: HPDF_String_New [INFO] [stdout] >>> defined at hpdf_string.c:32 (libharu/src/hpdf_string.c:32) [INFO] [stdout] >>> hpdf_string.o:(HPDF_String_New) in archive /opt/rustwide/target/debug/build/libharu-sys-bcf75d66849cd29a/out/libharu.a [INFO] [stdout] >>> defined at hpdf_string.c:32 (libharu/src/hpdf_string.c:32) [INFO] [stdout] >>> hpdf_string.o:(.text.HPDF_String_New+0x0) in archive /opt/rustwide/target/debug/build/libharu-sys-bcf75d66849cd29a/out/libharu.a [INFO] [stdout] [INFO] [stdout] rust-lld: error: duplicate symbol: HPDF_String_SetValue [INFO] [stdout] >>> defined at hpdf_string.c:61 (libharu/src/hpdf_string.c:61) [INFO] [stdout] >>> hpdf_string.o:(HPDF_String_SetValue) in archive /opt/rustwide/target/debug/build/libharu-sys-bcf75d66849cd29a/out/libharu.a [INFO] [stdout] >>> defined at hpdf_string.c:61 (libharu/src/hpdf_string.c:61) [INFO] [stdout] >>> hpdf_string.o:(.text.HPDF_String_SetValue+0x0) in archive /opt/rustwide/target/debug/build/libharu-sys-bcf75d66849cd29a/out/libharu.a [INFO] [stdout] [INFO] [stdout] rust-lld: error: duplicate symbol: HPDF_String_Free [INFO] [stdout] >>> defined at hpdf_string.c:89 (libharu/src/hpdf_string.c:89) [INFO] [stdout] >>> hpdf_string.o:(HPDF_String_Free) in archive /opt/rustwide/target/debug/build/libharu-sys-bcf75d66849cd29a/out/libharu.a [INFO] [stdout] >>> defined at hpdf_string.c:89 (libharu/src/hpdf_string.c:89) [INFO] [stdout] >>> hpdf_string.o:(.text.HPDF_String_Free+0x0) in archive /opt/rustwide/target/debug/build/libharu-sys-bcf75d66849cd29a/out/libharu.a [INFO] [stdout] [INFO] [stdout] rust-lld: error: duplicate symbol: HPDF_String_Write [INFO] [stdout] >>> defined at hpdf_string.c:104 (libharu/src/hpdf_string.c:104) [INFO] [stdout] >>> hpdf_string.o:(HPDF_String_Write) in archive /opt/rustwide/target/debug/build/libharu-sys-bcf75d66849cd29a/out/libharu.a [INFO] [stdout] >>> defined at hpdf_string.c:104 (libharu/src/hpdf_string.c:104) [INFO] [stdout] >>> hpdf_string.o:(.text.HPDF_String_Write+0x0) in archive /opt/rustwide/target/debug/build/libharu-sys-bcf75d66849cd29a/out/libharu.a [INFO] [stdout] [INFO] [stdout] rust-lld: error: duplicate symbol: HPDF_String_Cmp [INFO] [stdout] >>> defined at hpdf_string.c:198 (libharu/src/hpdf_string.c:198) [INFO] [stdout] >>> hpdf_string.o:(HPDF_String_Cmp) in archive /opt/rustwide/target/debug/build/libharu-sys-bcf75d66849cd29a/out/libharu.a [INFO] [stdout] >>> defined at hpdf_string.c:198 (libharu/src/hpdf_string.c:198) [INFO] [stdout] >>> hpdf_string.o:(.text.HPDF_String_Cmp+0x0) in archive /opt/rustwide/target/debug/build/libharu-sys-bcf75d66849cd29a/out/libharu.a [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_annotation.c: In function 'HPDF_LinkAnnot_SetJavaScript': [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_annotation.c:318:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] [INFO] [stderr] warning: libharu-sys@0.0.1: 318 | if (ret != HPDF_OK) [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_annotation.c:321:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' [INFO] [stderr] warning: libharu-sys@0.0.1: 321 | ret += HPDF_Dict_Add (action, "JS", javascript); [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_encoder_utf.c: In function 'UTF8_Encoder_ToUnicode_Func': [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_encoder_utf.c:133:46: warning: unused parameter 'code' [-Wunused-parameter] [INFO] [stderr] warning: libharu-sys@0.0.1: 133 | HPDF_UINT16 code) [INFO] [stderr] warning: libharu-sys@0.0.1: | ~~~~~~~~~~~~~~~^~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_font_cid.c: In function 'MeasureText': [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_font_cid.c:679:19: warning: variable 'last_btype' set but not used [-Wunused-but-set-variable] [INFO] [stderr] warning: libharu-sys@0.0.1: 679 | HPDF_ByteType last_btype = HPDF_BYTE_TYPE_TRIAL; [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_fontdef_jp.c:1042:29: warning: 'MS_PMincho_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 1042 | static const HPDF_CID_Width MS_PMincho_W_ARRAY[] = { [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_fontdef_jp.c:783:29: warning: 'MS_Mincho_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 783 | static const HPDF_CID_Width MS_Mincho_W_ARRAY[] = { [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_fontdef_kr.c:818:29: warning: 'Batang_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 818 | static const HPDF_CID_Width Batang_W_ARRAY[] = { [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_fontdef_kr.c:622:29: warning: 'BatangChe_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 622 | static const HPDF_CID_Width BatangChe_W_ARRAY[] = { [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_pages.c:52:29: warning: 'DEF_CMYK_COLOR' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 52 | static const HPDF_CMYKColor DEF_CMYK_COLOR = {0, 0, 0, 0}; [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_pages.c:50:28: warning: 'DEF_RGB_COLOR' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: libharu-sys@0.0.1: 50 | static const HPDF_RGBColor DEF_RGB_COLOR = {0, 0, 0}; [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_pdfa.c: In function 'HPDF_PDFA_SetPDFAConformance': [INFO] [stderr] warning: libharu-sys@0.0.1: libharu/src/hpdf_pdfa.c:154:17: warning: unused variable 'info' [-Wunused-variable] [INFO] [stderr] warning: libharu-sys@0.0.1: 154 | const char *info = NULL; [INFO] [stderr] warning: libharu-sys@0.0.1: | ^~~~ [INFO] [stderr] [INFO] [stderr] error: could not compile `libharu-sys` (lib test) due to 2 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1780f6856ebc729da4786c36e115e726da4f6d0f1f3c1ce22102fcdf521bd494", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1780f6856ebc729da4786c36e115e726da4f6d0f1f3c1ce22102fcdf521bd494", kill_on_drop: false }` [INFO] [stdout] 1780f6856ebc729da4786c36e115e726da4f6d0f1f3c1ce22102fcdf521bd494