[INFO] cloning repository https://github.com/ngoclinh93qt/openjph-ffi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ngoclinh93qt/openjph-ffi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fngoclinh93qt%2Fopenjph-ffi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fngoclinh93qt%2Fopenjph-ffi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c2227d0c39aa2245f4ebe95d857b1af65bd33a63 [INFO] testing ngoclinh93qt/openjph-ffi against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fngoclinh93qt%2Fopenjph-ffi" "/workspace/builds/worker-112/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-112/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ngoclinh93qt/openjph-ffi 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 git repo https://github.com/ngoclinh93qt/openjph-ffi [INFO] finished tweaking git repo https://github.com/ngoclinh93qt/openjph-ffi [INFO] tweaked toml for git repo https://github.com/ngoclinh93qt/openjph-ffi written to /workspace/builds/worker-112/source/Cargo.toml [INFO] crate git repo https://github.com/ngoclinh93qt/openjph-ffi already has a lockfile, it will not be regenerated [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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/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] 04cf9f421494506c1bb18f169c8309f7542edc01f6960e48fb6559e86638364f [INFO] running `Command { std: "docker" "start" "-a" "04cf9f421494506c1bb18f169c8309f7542edc01f6960e48fb6559e86638364f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "04cf9f421494506c1bb18f169c8309f7542edc01f6960e48fb6559e86638364f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04cf9f421494506c1bb18f169c8309f7542edc01f6960e48fb6559e86638364f", kill_on_drop: false }` [INFO] [stdout] 04cf9f421494506c1bb18f169c8309f7542edc01f6960e48fb6559e86638364f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/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] 6c2c3ba24b99264331ba652a210edacc183bd5e2875af12266cc656900596c57 [INFO] running `Command { std: "docker" "start" "-a" "6c2c3ba24b99264331ba652a210edacc183bd5e2875af12266cc656900596c57", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling bindgen v0.53.3 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling bytemuck v1.7.0 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling time v0.3.0 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling gif v0.11.2 [INFO] [stderr] Compiling clang-sys v0.29.3 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling jobserver v0.1.22 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling openjph_ffi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> build.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | if (env::consts::OS == "macos") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - if (env::consts::OS == "macos") { [INFO] [stdout] 26 + if env::consts::OS == "macos" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_codestream.cpp: In member function 'void ojph::local::resolution::finalize_alloc(ojph::local::codestream*, const ojph::rect&, const ojph::rect&, int, int, ojph::point, ojph::local::tile_comp*, ojph::local::resolution*)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_codestream.cpp:2242:67: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct ojph::local::precinct'; use assignment or value-initialization instead [-Wclass-memaccess] [INFO] [stderr] warning: 2242 | memset(precincts, 0, sizeof(precinct) * num_precincts.area()); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: In file included from vendor/openjph/src/core/codestream/ojph_codestream.cpp:46: [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_codestream_local.h:297:12: note: 'struct ojph::local::precinct' declared here [INFO] [stderr] warning: 297 | struct precinct [INFO] [stderr] warning: | ^~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_codestream.cpp: At global scope: [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_codestream.cpp:75:21: warning: 'ojph::codestream ojph::dao()' defined but not used [-Wunused-function] [INFO] [stderr] warning: 75 | static codestream dao() { [INFO] [stderr] warning: | ^~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kdecompress.cpp: In function 'int ojph::write(const ojph::line_buf*, ojph::mem_outfile*, ojph::ui8*, int, int)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kdecompress.cpp:38:29: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 38 | int s = outfile->write(buffer, 3 * width); [INFO] [stderr] warning: | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kdecompress.cpp:38:11: warning: unused variable 's' [-Wunused-variable] [INFO] [stderr] warning: 38 | int s = outfile->write(buffer, 3 * width); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kdecompress.cpp: In member function 'ojph::output_data ojph::htj2kdecompress::decode(const uint8_t*, size_t)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kdecompress.cpp:70:23: warning: comparison of integer expressions of different signedness: 'int' and 'ojph::ui32' {aka 'unsigned int'} [-Wsign-compare] [INFO] [stderr] warning: 70 | for (int i = 0; i < height; ++i) [INFO] [stderr] warning: | ~~^~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kdecompress.cpp:80:13: warning: unused variable 'd' [-Wunused-variable] [INFO] [stderr] warning: 80 | int d = write(line, &mem_outfile, buffer, width, comp_num); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp: In member function 'ojph::output_data ojph::htj2kcompress::encodefullquality(const uint8_t*, size_t, size_t)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:33:38: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 33 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:33:45: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 33 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:65:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'ojph::si32' {aka 'int'} [-Wsign-compare] [INFO] [stderr] warning: 65 | for (size_t c = 0; c < siz.get_num_components(); c++) [INFO] [stderr] warning: | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: In file included from /usr/include/c++/9/cassert:44, [INFO] [stderr] warning: from vendor/openjph/src/core/common/ojph_mem.h:43, [INFO] [stderr] warning: from vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:3: [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:68:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] [INFO] [stderr] warning: 68 | assert(c == next_comp); [INFO] [stderr] warning: | ~~^~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:71:30: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 71 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:71:37: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 71 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:58:18: warning: unused variable 'bytesPerPixel' [-Wunused-variable] [INFO] [stderr] warning: 58 | const size_t bytesPerPixel = 3; [INFO] [stderr] warning: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp: In member function 'ojph::output_data ojph::htj2kcompress::encodewithqualityrate(const uint8_t*, size_t, size_t, float_t)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:103:38: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 103 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:103:45: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 103 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:135:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'ojph::si32' {aka 'int'} [-Wsign-compare] [INFO] [stderr] warning: 135 | for (size_t c = 0; c < siz.get_num_components(); c++) [INFO] [stderr] warning: | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: In file included from /usr/include/c++/9/cassert:44, [INFO] [stderr] warning: from vendor/openjph/src/core/common/ojph_mem.h:43, [INFO] [stderr] warning: from vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:3: [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:138:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] [INFO] [stderr] warning: 138 | assert(c == next_comp); [INFO] [stderr] warning: | ~~^~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:141:30: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 141 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:141:37: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 141 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:128:18: warning: unused variable 'bytesPerPixel' [-Wunused-variable] [INFO] [stderr] warning: 128 | const size_t bytesPerPixel = 3; [INFO] [stderr] warning: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp: In member function 'const ui8* ojph::htj2kcompress::encodedao(const uint8_t*, size_t, size_t, bool)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:175:38: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 175 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:175:45: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 175 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:207:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'ojph::si32' {aka 'int'} [-Wsign-compare] [INFO] [stderr] warning: 207 | for (size_t c = 0; c < siz.get_num_components(); c++) [INFO] [stderr] warning: | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: In file included from /usr/include/c++/9/cassert:44, [INFO] [stderr] warning: from vendor/openjph/src/core/common/ojph_mem.h:43, [INFO] [stderr] warning: from vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:3: [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:210:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] [INFO] [stderr] warning: 210 | assert(c == next_comp); [INFO] [stderr] warning: | ~~^~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:213:30: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 213 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:213:37: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 213 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:200:18: warning: unused variable 'bytesPerPixel' [-Wunused-variable] [INFO] [stderr] warning: 200 | const size_t bytesPerPixel = 3; [INFO] [stderr] warning: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:171:94: warning: unused parameter 'isSigned' [-Wunused-parameter] [INFO] [stderr] warning: 171 | const ui8* htj2kcompress::encodedao(const uint8_t* data, size_t width, size_t height, bool isSigned) { [INFO] [stderr] warning: | ~~~~~^~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp: In member function 'ojph::mem_outfile ojph::htj2kcompress::encode(const uint8_t*, size_t, size_t, bool)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:240:38: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 240 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:240:45: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 240 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:272:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'ojph::si32' {aka 'int'} [-Wsign-compare] [INFO] [stderr] warning: 272 | for (size_t c = 0; c < siz.get_num_components(); c++) [INFO] [stderr] warning: | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: In file included from /usr/include/c++/9/cassert:44, [INFO] [stderr] warning: from vendor/openjph/src/core/common/ojph_mem.h:43, [INFO] [stderr] warning: from vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:3: [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:275:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] [INFO] [stderr] warning: 275 | assert(c == next_comp); [INFO] [stderr] warning: | ~~^~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:278:30: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 278 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:278:37: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 278 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:265:18: warning: unused variable 'bytesPerPixel' [-Wunused-variable] [INFO] [stderr] warning: 265 | const size_t bytesPerPixel = 3; [INFO] [stderr] warning: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:235:92: warning: unused parameter 'isSigned' [-Wunused-parameter] [INFO] [stderr] warning: 235 | mem_outfile htj2kcompress::encode(const uint8_t* data, size_t width, size_t height, bool isSigned) [INFO] [stderr] warning: | ~~~~~^~~~~~~~ [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/main.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | let width = img.width(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | let out = d.encodedao(data.as_mut_ptr(), dimentsion.0 as usize, dimentsion.1 as usize, false); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [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/openjph_ffi-92f98a628ae7c5c7.openjph_ffi.586038a8-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-92f98a628ae7c5c7.openjph_ffi.586038a8-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-92f98a628ae7c5c7.openjph_ffi.586038a8-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-92f98a628ae7c5c7.openjph_ffi.586038a8-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-92f98a628ae7c5c7.openjph_ffi.586038a8-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-92f98a628ae7c5c7.openjph_ffi.586038a8-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-92f98a628ae7c5c7.openjph_ffi.586038a8-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-92f98a628ae7c5c7.openjph_ffi.586038a8-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-92f98a628ae7c5c7.openjph_ffi.586038a8-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-92f98a628ae7c5c7.openjph_ffi.586038a8-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-92f98a628ae7c5c7.openjph_ffi.586038a8-cgu.9.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-92f98a628ae7c5c7.54n3j7lnv548e5ji.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug/build/openjph_ffi-6e96ebb74e66f2f3/out" "-L" "/opt/rustwide/target/debug/build/libloading-1a317f954e7359fc/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" "-lopenjph" "-Wl,-Bdynamic" "-lstdc++" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libimage-a32f3cd05cc1ff0f.rlib" "/opt/rustwide/target/debug/deps/libbytemuck-673938733fb001d6.rlib" "/opt/rustwide/target/debug/deps/libpng-13ab5c039b0c2491.rlib" "/opt/rustwide/target/debug/deps/libminiz_oxide-210ea0057e6857f3.rlib" "/opt/rustwide/target/debug/deps/libcrc32fast-667de4e810607513.rlib" "/opt/rustwide/target/debug/deps/libdeflate-cb4d95640e47c57e.rlib" "/opt/rustwide/target/debug/deps/libadler32-4ad3039ef892af0b.rlib" "/opt/rustwide/target/debug/deps/libbitflags-c6d9dc90f7379932.rlib" "/opt/rustwide/target/debug/deps/libnum_iter-4477133c7b326206.rlib" "/opt/rustwide/target/debug/deps/libscoped_threadpool-0a9edc57bfe4f517.rlib" "/opt/rustwide/target/debug/deps/libnum_rational-6ad8d9d719a2fafb.rlib" "/opt/rustwide/target/debug/deps/libnum_integer-7fa1605ead94bf14.rlib" "/opt/rustwide/target/debug/deps/libgif-41e9db4830efc6a7.rlib" "/opt/rustwide/target/debug/deps/libcolor_quant-76ea6da9e2ca7302.rlib" "/opt/rustwide/target/debug/deps/libbyteorder-614d7e4e7f7903e2.rlib" "/opt/rustwide/target/debug/deps/libnum_traits-ecf9ce88dc3126a2.rlib" "/opt/rustwide/target/debug/deps/libtiff-67ee84bf032df605.rlib" "/opt/rustwide/target/debug/deps/libweezl-55d032a32b789a6f.rlib" "/opt/rustwide/target/debug/deps/libminiz_oxide-e49231c28250f5f1.rlib" "/opt/rustwide/target/debug/deps/libadler-92f8db84032ff960.rlib" "/opt/rustwide/target/debug/deps/libjpeg_decoder-0c1673b0df39a390.rlib" "/opt/rustwide/target/debug/deps/librayon-10676237cfc887aa.rlib" "/opt/rustwide/target/debug/deps/librayon_core-0b9ca0d3d7959309.rlib" "/opt/rustwide/target/debug/deps/libnum_cpus-85e93647f7250ab6.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_deque-d50d6a564e00e02c.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_epoch-7a3d6a822e3414bd.rlib" "/opt/rustwide/target/debug/deps/libmemoffset-57ac68445a84688d.rlib" "/opt/rustwide/target/debug/deps/libscopeguard-54ff2283d814f48f.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_channel-c93230d2c8eb1bc7.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_utils-c079f7c57dd512a6.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-86422d76b8bd90ed.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-97437e183f3ae6e4.rlib" "/opt/rustwide/target/debug/deps/libeither-1fa9e7dc99f602fc.rlib" "/opt/rustwide/target/debug/deps/liblibc-b952dd8c2798e05b.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/openjph_ffi-92f98a628ae7c5c7" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/debug/deps/openjph_ffi-92f98a628ae7c5c7.openjph_ffi.586038a8-cgu.1.rcgu.o: in function `openjph_ffi::ffi::ojph_htj2kcompress::encodedao': [INFO] [stdout] /opt/rustwide/workdir/src/ffi.rs:1092: undefined reference to `__ZN4ojph13htj2kcompress9encodedaoEPKhmmb' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_codestream.cpp: In member function 'void ojph::local::resolution::finalize_alloc(ojph::local::codestream*, const ojph::rect&, const ojph::rect&, int, int, ojph::point, ojph::local::tile_comp*, ojph::local::resolution*)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_codestream.cpp:2242:67: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct ojph::local::precinct'; use assignment or value-initialization instead [-Wclass-memaccess] [INFO] [stderr] warning: 2242 | memset(precincts, 0, sizeof(precinct) * num_precincts.area()); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: In file included from vendor/openjph/src/core/codestream/ojph_codestream.cpp:46: [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_codestream_local.h:297:12: note: 'struct ojph::local::precinct' declared here [INFO] [stderr] warning: 297 | struct precinct [INFO] [stderr] warning: | ^~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_codestream.cpp: At global scope: [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_codestream.cpp:75:21: warning: 'ojph::codestream ojph::dao()' defined but not used [-Wunused-function] [INFO] [stderr] warning: 75 | static codestream dao() { [INFO] [stderr] warning: | ^~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kdecompress.cpp: In function 'int ojph::write(const ojph::line_buf*, ojph::mem_outfile*, ojph::ui8*, int, int)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kdecompress.cpp:38:29: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 38 | int s = outfile->write(buffer, 3 * width); [INFO] [stderr] warning: | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kdecompress.cpp:38:11: warning: unused variable 's' [-Wunused-variable] [INFO] [stderr] warning: 38 | int s = outfile->write(buffer, 3 * width); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kdecompress.cpp: In member function 'ojph::output_data ojph::htj2kdecompress::decode(const uint8_t*, size_t)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kdecompress.cpp:70:23: warning: comparison of integer expressions of different signedness: 'int' and 'ojph::ui32' {aka 'unsigned int'} [-Wsign-compare] [INFO] [stderr] warning: 70 | for (int i = 0; i < height; ++i) [INFO] [stderr] warning: | ~~^~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kdecompress.cpp:80:13: warning: unused variable 'd' [-Wunused-variable] [INFO] [stderr] warning: 80 | int d = write(line, &mem_outfile, buffer, width, comp_num); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp: In member function 'ojph::output_data ojph::htj2kcompress::encodefullquality(const uint8_t*, size_t, size_t)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:33:38: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 33 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:33:45: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 33 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:65:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'ojph::si32' {aka 'int'} [-Wsign-compare] [INFO] [stderr] warning: 65 | for (size_t c = 0; c < siz.get_num_components(); c++) [INFO] [stderr] warning: | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: In file included from /usr/include/c++/9/cassert:44, [INFO] [stderr] warning: from vendor/openjph/src/core/common/ojph_mem.h:43, [INFO] [stderr] warning: from vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:3: [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:68:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] [INFO] [stderr] warning: 68 | assert(c == next_comp); [INFO] [stderr] warning: | ~~^~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:71:30: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 71 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:71:37: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 71 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:58:18: warning: unused variable 'bytesPerPixel' [-Wunused-variable] [INFO] [stderr] warning: 58 | const size_t bytesPerPixel = 3; [INFO] [stderr] warning: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp: In member function 'ojph::output_data ojph::htj2kcompress::encodewithqualityrate(const uint8_t*, size_t, size_t, float_t)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:103:38: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 103 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:103:45: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 103 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:135:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'ojph::si32' {aka 'int'} [-Wsign-compare] [INFO] [stderr] warning: 135 | for (size_t c = 0; c < siz.get_num_components(); c++) [INFO] [stderr] warning: | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: In file included from /usr/include/c++/9/cassert:44, [INFO] [stderr] warning: from vendor/openjph/src/core/common/ojph_mem.h:43, [INFO] [stderr] warning: from vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:3: [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:138:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] [INFO] [stderr] warning: 138 | assert(c == next_comp); [INFO] [stderr] warning: | ~~^~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:141:30: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 141 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:141:37: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 141 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:128:18: warning: unused variable 'bytesPerPixel' [-Wunused-variable] [INFO] [stderr] warning: 128 | const size_t bytesPerPixel = 3; [INFO] [stderr] warning: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp: In member function 'const ui8* ojph::htj2kcompress::encodedao(const uint8_t*, size_t, size_t, bool)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:175:38: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 175 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:175:45: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 175 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:207:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'ojph::si32' {aka 'int'} [-Wsign-compare] [INFO] [stderr] warning: 207 | for (size_t c = 0; c < siz.get_num_components(); c++) [INFO] [stderr] warning: | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: In file included from /usr/include/c++/9/cassert:44, [INFO] [stderr] warning: from vendor/openjph/src/core/common/ojph_mem.h:43, [INFO] [stderr] warning: from vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:3: [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:210:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] [INFO] [stderr] warning: 210 | assert(c == next_comp); [INFO] [stderr] warning: | ~~^~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:213:30: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 213 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:213:37: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 213 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:200:18: warning: unused variable 'bytesPerPixel' [-Wunused-variable] [INFO] [stderr] warning: 200 | const size_t bytesPerPixel = 3; [INFO] [stderr] warning: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:171:94: warning: unused parameter 'isSigned' [-Wunused-parameter] [INFO] [stderr] warning: 171 | const ui8* htj2kcompress::encodedao(const uint8_t* data, size_t width, size_t height, bool isSigned) { [INFO] [stderr] warning: | ~~~~~^~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp: In member function 'ojph::mem_outfile ojph::htj2kcompress::encode(const uint8_t*, size_t, size_t, bool)': [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:240:38: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 240 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:240:45: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 240 | siz.set_image_extent(ojph::point(width, height)); [INFO] [stderr] warning: | ^~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:272:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'ojph::si32' {aka 'int'} [-Wsign-compare] [INFO] [stderr] warning: 272 | for (size_t c = 0; c < siz.get_num_components(); c++) [INFO] [stderr] warning: | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: In file included from /usr/include/c++/9/cassert:44, [INFO] [stderr] warning: from vendor/openjph/src/core/common/ojph_mem.h:43, [INFO] [stderr] warning: from vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:3: [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:275:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] [INFO] [stderr] warning: 275 | assert(c == next_comp); [INFO] [stderr] warning: | ~~^~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:278:30: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 278 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:278:37: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] [INFO] [stderr] warning: 278 | read(cur_line, data, width, y, next_comp); [INFO] [stderr] warning: | ^ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:265:18: warning: unused variable 'bytesPerPixel' [-Wunused-variable] [INFO] [stderr] warning: 265 | const size_t bytesPerPixel = 3; [INFO] [stderr] warning: | ^~~~~~~~~~~~~ [INFO] [stderr] warning: vendor/openjph/src/core/codestream/ojph_htj2kcompress.cpp:235:92: warning: unused parameter 'isSigned' [-Wunused-parameter] [INFO] [stderr] warning: 235 | mem_outfile htj2kcompress::encode(const uint8_t* data, size_t width, size_t height, bool isSigned) [INFO] [stderr] warning: | ~~~~~^~~~~~~~ [INFO] [stderr] [INFO] [stderr] error: could not compile `openjph_ffi` due to 2 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6c2c3ba24b99264331ba652a210edacc183bd5e2875af12266cc656900596c57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c2c3ba24b99264331ba652a210edacc183bd5e2875af12266cc656900596c57", kill_on_drop: false }` [INFO] [stdout] 6c2c3ba24b99264331ba652a210edacc183bd5e2875af12266cc656900596c57