[INFO] fetching crate libharu-sys 0.0.1... [INFO] testing libharu-sys-0.0.1 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate libharu-sys 0.0.1 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate libharu-sys 0.0.1 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a05ef9fb89bbdd1a2c9ff6571ad1385ae55501fcac967e633b45e875670d840c [INFO] running `Command { std: "docker" "start" "-a" "a05ef9fb89bbdd1a2c9ff6571ad1385ae55501fcac967e633b45e875670d840c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a05ef9fb89bbdd1a2c9ff6571ad1385ae55501fcac967e633b45e875670d840c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a05ef9fb89bbdd1a2c9ff6571ad1385ae55501fcac967e633b45e875670d840c", kill_on_drop: false }` [INFO] [stdout] a05ef9fb89bbdd1a2c9ff6571ad1385ae55501fcac967e633b45e875670d840c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5b1eeb80c39537f46bd74fbca61422d92ba58af1d65691988b5b6c1bc589b99 [INFO] running `Command { std: "docker" "start" "-a" "c5b1eeb80c39537f46bd74fbca61422d92ba58af1d65691988b5b6c1bc589b99", kill_on_drop: false }` [INFO] [stderr] Compiling gcc v0.3.55 [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/src/hpdf_annotation.c: In function 'HPDF_LinkAnnot_SetJavaScript': [INFO] [stderr] warning: libharu/src/hpdf_annotation.c:318:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] [INFO] [stderr] warning: 318 | if (ret != HPDF_OK) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: libharu/src/hpdf_annotation.c:321:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' [INFO] [stderr] warning: 321 | ret += HPDF_Dict_Add (action, "JS", javascript); [INFO] [stderr] warning: | ^~~ [INFO] [stderr] warning: libharu/src/hpdf_encoder_utf.c: In function 'UTF8_Encoder_ToUnicode_Func': [INFO] [stderr] warning: libharu/src/hpdf_encoder_utf.c:133:46: warning: unused parameter 'code' [-Wunused-parameter] [INFO] [stderr] warning: 133 | HPDF_UINT16 code) [INFO] [stderr] warning: | ~~~~~~~~~~~~~~~^~~~ [INFO] [stderr] warning: libharu/src/hpdf_font_cid.c: In function 'MeasureText': [INFO] [stderr] warning: libharu/src/hpdf_font_cid.c:679:19: warning: variable 'last_btype' set but not used [-Wunused-but-set-variable] [INFO] [stderr] warning: 679 | HPDF_ByteType last_btype = HPDF_BYTE_TYPE_TRIAL; [INFO] [stderr] warning: | ^~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_fontdef_jp.c:1042:29: warning: 'MS_PMincho_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 1042 | static const HPDF_CID_Width MS_PMincho_W_ARRAY[] = { [INFO] [stderr] warning: | ^~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_fontdef_jp.c:783:29: warning: 'MS_Mincho_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 783 | static const HPDF_CID_Width MS_Mincho_W_ARRAY[] = { [INFO] [stderr] warning: | ^~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_fontdef_kr.c:818:29: warning: 'Batang_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 818 | static const HPDF_CID_Width Batang_W_ARRAY[] = { [INFO] [stderr] warning: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_fontdef_kr.c:622:29: warning: 'BatangChe_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 622 | static const HPDF_CID_Width BatangChe_W_ARRAY[] = { [INFO] [stderr] warning: | ^~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_pages.c:52:29: warning: 'DEF_CMYK_COLOR' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 52 | static const HPDF_CMYKColor DEF_CMYK_COLOR = {0, 0, 0, 0}; [INFO] [stderr] warning: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_pages.c:50:28: warning: 'DEF_RGB_COLOR' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 50 | static const HPDF_RGBColor DEF_RGB_COLOR = {0, 0, 0}; [INFO] [stderr] warning: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_pdfa.c: In function 'HPDF_PDFA_SetPDFAConformance': [INFO] [stderr] warning: libharu/src/hpdf_pdfa.c:154:17: warning: unused variable 'info' [-Wunused-variable] [INFO] [stderr] warning: 154 | const char *info = NULL; [INFO] [stderr] warning: | ^~~~ [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 [unoptimized + debuginfo] target(s) in 8.31s [INFO] running `Command { std: "docker" "inspect" "c5b1eeb80c39537f46bd74fbca61422d92ba58af1d65691988b5b6c1bc589b99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5b1eeb80c39537f46bd74fbca61422d92ba58af1d65691988b5b6c1bc589b99", kill_on_drop: false }` [INFO] [stdout] c5b1eeb80c39537f46bd74fbca61422d92ba58af1d65691988b5b6c1bc589b99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d1b48d1f2ae82b97b0dcfd8337f11b2f6e7210aca4dd7d5125828b9488651231 [INFO] running `Command { std: "docker" "start" "-a" "d1b48d1f2ae82b97b0dcfd8337f11b2f6e7210aca4dd7d5125828b9488651231", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.1 [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] [stderr] Compiling num-iter v0.1.42 [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] [stderr] warning: libharu/src/hpdf_annotation.c: In function 'HPDF_LinkAnnot_SetJavaScript': [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: libharu/src/hpdf_annotation.c:318:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] [INFO] [stderr] warning: 318 | if (ret != HPDF_OK) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: libharu/src/hpdf_annotation.c:321:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' [INFO] [stderr] warning: 321 | ret += HPDF_Dict_Add (action, "JS", javascript); [INFO] [stderr] warning: | ^~~ [INFO] [stderr] warning: libharu/src/hpdf_encoder_utf.c: In function 'UTF8_Encoder_ToUnicode_Func': [INFO] [stderr] warning: libharu/src/hpdf_encoder_utf.c:133:46: warning: unused parameter 'code' [-Wunused-parameter] [INFO] [stderr] warning: 133 | HPDF_UINT16 code) [INFO] [stderr] warning: | ~~~~~~~~~~~~~~~^~~~ [INFO] [stderr] warning: libharu/src/hpdf_font_cid.c: In function 'MeasureText': [INFO] [stderr] warning: libharu/src/hpdf_font_cid.c:679:19: warning: variable 'last_btype' set but not used [-Wunused-but-set-variable] [INFO] [stderr] warning: 679 | HPDF_ByteType last_btype = HPDF_BYTE_TYPE_TRIAL; [INFO] [stderr] warning: | ^~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_fontdef_jp.c:1042:29: warning: 'MS_PMincho_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 1042 | static const HPDF_CID_Width MS_PMincho_W_ARRAY[] = { [INFO] [stderr] warning: | ^~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_fontdef_jp.c:783:29: warning: 'MS_Mincho_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 783 | static const HPDF_CID_Width MS_Mincho_W_ARRAY[] = { [INFO] [stderr] warning: | ^~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_fontdef_kr.c:818:29: warning: 'Batang_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 818 | static const HPDF_CID_Width Batang_W_ARRAY[] = { [INFO] [stderr] warning: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_fontdef_kr.c:622:29: warning: 'BatangChe_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 622 | static const HPDF_CID_Width BatangChe_W_ARRAY[] = { [INFO] [stderr] warning: | ^~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_pages.c:52:29: warning: 'DEF_CMYK_COLOR' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 52 | static const HPDF_CMYKColor DEF_CMYK_COLOR = {0, 0, 0, 0}; [INFO] [stderr] warning: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_pages.c:50:28: warning: 'DEF_RGB_COLOR' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 50 | static const HPDF_RGBColor DEF_RGB_COLOR = {0, 0, 0}; [INFO] [stderr] warning: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_pdfa.c: In function 'HPDF_PDFA_SetPDFAConformance': [INFO] [stderr] warning: libharu/src/hpdf_pdfa.c:154:17: warning: unused variable 'info' [-Wunused-variable] [INFO] [stderr] warning: 154 | const char *info = NULL; [INFO] [stderr] warning: | ^~~~ [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 inflate v0.4.5 [INFO] [stderr] Compiling gif v0.10.3 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling crossbeam-channel v0.5.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling png v0.12.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: "cc" "-m64" "/opt/rustwide/target/debug/deps/libharu_sys-b5fb523b8509da5b.libharu_sys.e4735fd1-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/libharu_sys-b5fb523b8509da5b.libharu_sys.e4735fd1-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/libharu_sys-b5fb523b8509da5b.libharu_sys.e4735fd1-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/libharu_sys-b5fb523b8509da5b.libharu_sys.e4735fd1-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/libharu_sys-b5fb523b8509da5b.libharu_sys.e4735fd1-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/libharu_sys-b5fb523b8509da5b.libharu_sys.e4735fd1-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/libharu_sys-b5fb523b8509da5b.libharu_sys.e4735fd1-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/libharu_sys-b5fb523b8509da5b.4gear26bbmk2u8ih.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug/build/libharu-sys-2e62deec5bae2d13/out" "-L" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-lharu" "-Wl,--no-whole-archive" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-d9ecd5377b7dfa2f.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-e95f8ccbb889cb3a.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-bc3d259c8a5de0c3.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-2b85ee1dcf40ad05.rlib" "/opt/rustwide/target/debug/deps/liblibc-44afddf82674132d.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ff9290e971253a38.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-5534b29ea7b2d8f5.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-8bfbb13072fc2761.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-d6d1fa92fa620f17.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-7cfd201521727d95.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-0e8010e8fce8e5a7.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-19093fec3c6dd913.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-89c4cbe9256c1890.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-73e4507673363945.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-3fe98c0f46f27964.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-a76787f08d45e37d.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-8cea480e62c5b261.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-1fb939608cd05a1c.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-842e67e3ab562f66.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-0c1c8fec3b1a54cc.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-689faa634b72af17.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-6c2c561a8181be5e.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-88c4d85fe493b0a6.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-f5394bdb1df5df01.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/libharu_sys-b5fb523b8509da5b" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/debug/build/libharu-sys-2e62deec5bae2d13/out/libharu.a(hpdf_string.o): in function `HPDF_String_New': [INFO] [stdout] /opt/rustwide/workdir/libharu/src/hpdf_string.c:32: multiple definition of `HPDF_String_New'; /opt/rustwide/target/debug/build/libharu-sys-2e62deec5bae2d13/out/libharu.a(hpdf_string.o):/opt/rustwide/workdir/libharu/src/hpdf_string.c:32: first defined here [INFO] [stdout] /usr/bin/ld: /opt/rustwide/target/debug/build/libharu-sys-2e62deec5bae2d13/out/libharu.a(hpdf_string.o): in function `HPDF_String_SetValue': [INFO] [stdout] /opt/rustwide/workdir/libharu/src/hpdf_string.c:61: multiple definition of `HPDF_String_SetValue'; /opt/rustwide/target/debug/build/libharu-sys-2e62deec5bae2d13/out/libharu.a(hpdf_string.o):/opt/rustwide/workdir/libharu/src/hpdf_string.c:61: first defined here [INFO] [stdout] /usr/bin/ld: /opt/rustwide/target/debug/build/libharu-sys-2e62deec5bae2d13/out/libharu.a(hpdf_string.o): in function `HPDF_String_Free': [INFO] [stdout] /opt/rustwide/workdir/libharu/src/hpdf_string.c:89: multiple definition of `HPDF_String_Free'; /opt/rustwide/target/debug/build/libharu-sys-2e62deec5bae2d13/out/libharu.a(hpdf_string.o):/opt/rustwide/workdir/libharu/src/hpdf_string.c:89: first defined here [INFO] [stdout] /usr/bin/ld: /opt/rustwide/target/debug/build/libharu-sys-2e62deec5bae2d13/out/libharu.a(hpdf_string.o): in function `HPDF_String_Write': [INFO] [stdout] /opt/rustwide/workdir/libharu/src/hpdf_string.c:104: multiple definition of `HPDF_String_Write'; /opt/rustwide/target/debug/build/libharu-sys-2e62deec5bae2d13/out/libharu.a(hpdf_string.o):/opt/rustwide/workdir/libharu/src/hpdf_string.c:104: first defined here [INFO] [stdout] /usr/bin/ld: /opt/rustwide/target/debug/build/libharu-sys-2e62deec5bae2d13/out/libharu.a(hpdf_string.o): in function `HPDF_String_Cmp': [INFO] [stdout] /opt/rustwide/workdir/libharu/src/hpdf_string.c:198: multiple definition of `HPDF_String_Cmp'; /opt/rustwide/target/debug/build/libharu-sys-2e62deec5bae2d13/out/libharu.a(hpdf_string.o):/opt/rustwide/workdir/libharu/src/hpdf_string.c:198: first defined here [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: libharu/src/hpdf_annotation.c: In function 'HPDF_LinkAnnot_SetJavaScript': [INFO] [stderr] warning: libharu/src/hpdf_annotation.c:318:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] [INFO] [stderr] warning: 318 | if (ret != HPDF_OK) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: libharu/src/hpdf_annotation.c:321:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' [INFO] [stderr] warning: 321 | ret += HPDF_Dict_Add (action, "JS", javascript); [INFO] [stderr] warning: | ^~~ [INFO] [stderr] warning: libharu/src/hpdf_encoder_utf.c: In function 'UTF8_Encoder_ToUnicode_Func': [INFO] [stderr] warning: libharu/src/hpdf_encoder_utf.c:133:46: warning: unused parameter 'code' [-Wunused-parameter] [INFO] [stderr] warning: 133 | HPDF_UINT16 code) [INFO] [stderr] warning: | ~~~~~~~~~~~~~~~^~~~ [INFO] [stderr] warning: libharu/src/hpdf_font_cid.c: In function 'MeasureText': [INFO] [stderr] warning: libharu/src/hpdf_font_cid.c:679:19: warning: variable 'last_btype' set but not used [-Wunused-but-set-variable] [INFO] [stderr] warning: 679 | HPDF_ByteType last_btype = HPDF_BYTE_TYPE_TRIAL; [INFO] [stderr] warning: | ^~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_fontdef_jp.c:1042:29: warning: 'MS_PMincho_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 1042 | static const HPDF_CID_Width MS_PMincho_W_ARRAY[] = { [INFO] [stderr] warning: | ^~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_fontdef_jp.c:783:29: warning: 'MS_Mincho_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 783 | static const HPDF_CID_Width MS_Mincho_W_ARRAY[] = { [INFO] [stderr] warning: | ^~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_fontdef_kr.c:818:29: warning: 'Batang_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 818 | static const HPDF_CID_Width Batang_W_ARRAY[] = { [INFO] [stderr] warning: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_fontdef_kr.c:622:29: warning: 'BatangChe_W_ARRAY' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 622 | static const HPDF_CID_Width BatangChe_W_ARRAY[] = { [INFO] [stderr] warning: | ^~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_pages.c:52:29: warning: 'DEF_CMYK_COLOR' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 52 | static const HPDF_CMYKColor DEF_CMYK_COLOR = {0, 0, 0, 0}; [INFO] [stderr] warning: | ^~~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_pages.c:50:28: warning: 'DEF_RGB_COLOR' defined but not used [-Wunused-const-variable=] [INFO] [stderr] warning: 50 | static const HPDF_RGBColor DEF_RGB_COLOR = {0, 0, 0}; [INFO] [stderr] warning: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: libharu/src/hpdf_pdfa.c: In function 'HPDF_PDFA_SetPDFAConformance': [INFO] [stderr] warning: libharu/src/hpdf_pdfa.c:154:17: warning: unused variable 'info' [-Wunused-variable] [INFO] [stderr] warning: 154 | const char *info = NULL; [INFO] [stderr] warning: | ^~~~ [INFO] [stderr] [INFO] [stderr] error: could not compile `libharu-sys` due to 2 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d1b48d1f2ae82b97b0dcfd8337f11b2f6e7210aca4dd7d5125828b9488651231", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1b48d1f2ae82b97b0dcfd8337f11b2f6e7210aca4dd7d5125828b9488651231", kill_on_drop: false }` [INFO] [stdout] d1b48d1f2ae82b97b0dcfd8337f11b2f6e7210aca4dd7d5125828b9488651231