[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 1.60.0 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 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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" "+1.60.0" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded time v0.3.0 [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" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7370f0a9ca028b0d10e567754b970fccdfa29722245f44e3fb99f14fbd8e6cc0 [INFO] running `Command { std: "docker" "start" "-a" "7370f0a9ca028b0d10e567754b970fccdfa29722245f44e3fb99f14fbd8e6cc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7370f0a9ca028b0d10e567754b970fccdfa29722245f44e3fb99f14fbd8e6cc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7370f0a9ca028b0d10e567754b970fccdfa29722245f44e3fb99f14fbd8e6cc0", kill_on_drop: false }` [INFO] [stdout] 7370f0a9ca028b0d10e567754b970fccdfa29722245f44e3fb99f14fbd8e6cc0 [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" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5b2133f086701ef6e8ed39dfa4fb74512b9b2ee8002a605210bb996a9ff2abc [INFO] running `Command { std: "docker" "start" "-a" "c5b2133f086701ef6e8ed39dfa4fb74512b9b2ee8002a605210bb996a9ff2abc", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [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 version_check v0.9.3 [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 bindgen v0.53.3 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling bytemuck v1.7.0 [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-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.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 miniz_oxide v0.3.7 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling clang-sys v0.29.3 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling gif v0.11.2 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling png v0.16.8 [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 cc v1.0.69 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling openjph_ffi v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling image v0.23.14 [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_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] 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] [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-4a45ac0de6e07519.openjph_ffi.75e52702-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519.openjph_ffi.75e52702-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519.openjph_ffi.75e52702-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519.openjph_ffi.75e52702-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519.openjph_ffi.75e52702-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519.openjph_ffi.75e52702-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519.openjph_ffi.75e52702-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519.openjph_ffi.75e52702-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519.openjph_ffi.75e52702-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519.openjph_ffi.75e52702-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519.openjph_ffi.75e52702-cgu.9.rcgu.o" "/opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519.1493wpc642jyrw9e.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug/build/openjph_ffi-25aa553cd064f1e8/out" "-L" "/opt/rustwide/target/debug/build/libloading-867b7a01e166da90/out" "-L" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-lopenjph" "-Wl,--no-whole-archive" "-Wl,-Bdynamic" "-lstdc++" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libimage-6edb3ec9f24bfb02.rlib" "/opt/rustwide/target/debug/deps/libbytemuck-4a748d77c592b1be.rlib" "/opt/rustwide/target/debug/deps/libpng-7c079fa9df1de87a.rlib" "/opt/rustwide/target/debug/deps/libminiz_oxide-d6377f5c1c04dcd7.rlib" "/opt/rustwide/target/debug/deps/libcrc32fast-66aff8fc04e18c28.rlib" "/opt/rustwide/target/debug/deps/libdeflate-df4770a758915bce.rlib" "/opt/rustwide/target/debug/deps/libadler32-db47bf74eb7ba81c.rlib" "/opt/rustwide/target/debug/deps/libbitflags-80e93151c602d4a3.rlib" "/opt/rustwide/target/debug/deps/libnum_iter-fd696cad7fcf8286.rlib" "/opt/rustwide/target/debug/deps/libscoped_threadpool-9774cbb4ea0c3a6f.rlib" "/opt/rustwide/target/debug/deps/libnum_rational-4dfa25aa4ebc745f.rlib" "/opt/rustwide/target/debug/deps/libnum_integer-a50be04e3cefea8b.rlib" "/opt/rustwide/target/debug/deps/libgif-71bf1bd8df36357e.rlib" "/opt/rustwide/target/debug/deps/libcolor_quant-54de0e524114032d.rlib" "/opt/rustwide/target/debug/deps/libbyteorder-0a75c9c26dc9dc2c.rlib" "/opt/rustwide/target/debug/deps/libnum_traits-dd17a3fc81329d25.rlib" "/opt/rustwide/target/debug/deps/libtiff-4ea5e5e9507a7ec6.rlib" "/opt/rustwide/target/debug/deps/libweezl-4ca977ed785f82a4.rlib" "/opt/rustwide/target/debug/deps/libminiz_oxide-f4cef92de307bde9.rlib" "/opt/rustwide/target/debug/deps/libadler-d2cadc408605b257.rlib" "/opt/rustwide/target/debug/deps/libjpeg_decoder-2ca03c561d97617b.rlib" "/opt/rustwide/target/debug/deps/librayon-9ef70c008a45279a.rlib" "/opt/rustwide/target/debug/deps/librayon_core-98be880310243776.rlib" "/opt/rustwide/target/debug/deps/libnum_cpus-99ce5a798cda8762.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_deque-b63ed9578b323871.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_epoch-13dfa97175c15482.rlib" "/opt/rustwide/target/debug/deps/libmemoffset-6af399bcdc7e94f3.rlib" "/opt/rustwide/target/debug/deps/libscopeguard-93870536328d7ed1.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_channel-f98715c03ccfa2d5.rlib" "/opt/rustwide/target/debug/deps/libcrossbeam_utils-7aeb67df1f4f62aa.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-b341606102c7008f.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-56df745b5175507b.rlib" "/opt/rustwide/target/debug/deps/libeither-8b1f227343d1093b.rlib" "/opt/rustwide/target/debug/deps/liblibc-28b2a231a060c987.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8d61b92a0a02f53a.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-fc45202bb435016b.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-f2400674c7513725.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-605c3a7d1a5d300d.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-3d4fb4efa907e4e8.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-65207f030ab23308.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-76ca199cb0186109.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-1e3e01ed4f561dc1.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd8dddcba7c13fee.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-00b13d31c3420656.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-e4c8460b81557bd5.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-600d46e5f0005455.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e4a08a2585b62d37.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-fbc21ec567cb9dc7.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-10b3fa8e49bd978f.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-64625b73694ffce7.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-fb6b78ac543a58ee.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-1d1f2d1bec6f51b8.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-acf5ff6e9595d982.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/debug/deps/openjph_ffi-4a45ac0de6e07519.openjph_ffi.75e52702-cgu.7.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_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] 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] [INFO] [stderr] error: could not compile `openjph_ffi` due to 2 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c5b2133f086701ef6e8ed39dfa4fb74512b9b2ee8002a605210bb996a9ff2abc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5b2133f086701ef6e8ed39dfa4fb74512b9b2ee8002a605210bb996a9ff2abc", kill_on_drop: false }` [INFO] [stdout] c5b2133f086701ef6e8ed39dfa4fb74512b9b2ee8002a605210bb996a9ff2abc