DEBUG: Executing shell function do_compile
NOTE: VERBOSE=1 cmake --build TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build --target all --
Change Dir: 'TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build'
Run Build Command(s): ninja -v -j 16 all
[1/170] cd TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0 && scripts/mkversion -v v4.4.0 -o version.h lib
[2/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_diagnostic_trace.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_diagnostic_trace.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_diagnostic_trace.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_diagnostic_trace.cpp
[3/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib_softfloat.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib_softfloat.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib_softfloat.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_mathlib_softfloat.cpp
[4/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_mathlib.cpp
[5/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_integer_sequence.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_integer_sequence.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_integer_sequence.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_integer_sequence.cpp
[6/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_percentile_tables.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_percentile_tables.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_percentile_tables.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_percentile_tables.cpp
[7/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_find_best_partitioning.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_find_best_partitioning.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_find_best_partitioning.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_find_best_partitioning.cpp
[8/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_color_unquantize.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_color_unquantize.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_color_unquantize.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_color_unquantize.cpp
[9/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_partition_tables.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_partition_tables.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_partition_tables.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_partition_tables.cpp
[10/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_compute_variance.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_compute_variance.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_compute_variance.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_compute_variance.cpp
[11/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_image.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_image.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_image.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_image.cpp
[12/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_decompress_symbolic.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_decompress_symbolic.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_decompress_symbolic.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_decompress_symbolic.cpp
[13/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_averages_and_directions.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_averages_and_directions.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_averages_and_directions.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_averages_and_directions.cpp
[14/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_color_quantize.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_color_quantize.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_color_quantize.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_color_quantize.cpp
[15/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_block_sizes.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_block_sizes.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_block_sizes.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_block_sizes.cpp
[16/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/checkheader.c.o -MF CMakeFiles/ktx.dir/lib/checkheader.c.o.d -o CMakeFiles/ktx.dir/lib/checkheader.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/checkheader.c
[17/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/miniz_wrapper.cpp.o -MF CMakeFiles/ktx.dir/lib/miniz_wrapper.cpp.o.d -o CMakeFiles/ktx.dir/lib/miniz_wrapper.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/miniz_wrapper.cpp
[18/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/external/dfdutils/colourspaces.c.o -MF CMakeFiles/ktx.dir/external/dfdutils/colourspaces.c.o.d -o CMakeFiles/ktx.dir/external/dfdutils/colourspaces.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils/colourspaces.c
[19/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/external/dfdutils/queries.c.o -MF CMakeFiles/ktx.dir/external/dfdutils/queries.c.o.d -o CMakeFiles/ktx.dir/external/dfdutils/queries.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils/queries.c
[20/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/external/dfdutils/interpretdfd.c.o -MF CMakeFiles/ktx.dir/external/dfdutils/interpretdfd.c.o.d -o CMakeFiles/ktx.dir/external/dfdutils/interpretdfd.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils/interpretdfd.c
[21/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/external/dfdutils/vk2dfd.c.o -MF CMakeFiles/ktx.dir/external/dfdutils/vk2dfd.c.o.d -o CMakeFiles/ktx.dir/external/dfdutils/vk2dfd.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils/vk2dfd.c
[22/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/filestream.c.o -MF CMakeFiles/ktx.dir/lib/filestream.c.o.d -o CMakeFiles/ktx.dir/lib/filestream.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/filestream.c
[23/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/external/dfdutils/printdfd.c.o -MF CMakeFiles/ktx.dir/external/dfdutils/printdfd.c.o.d -o CMakeFiles/ktx.dir/external/dfdutils/printdfd.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils/printdfd.c
[24/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/external/dfdutils/createdfd.c.o -MF CMakeFiles/ktx.dir/external/dfdutils/createdfd.c.o.d -o CMakeFiles/ktx.dir/external/dfdutils/createdfd.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils/createdfd.c
[25/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/memstream.c.o -MF CMakeFiles/ktx.dir/lib/memstream.c.o.d -o CMakeFiles/ktx.dir/lib/memstream.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/memstream.c
[26/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/etcunpack.cxx.o -MF CMakeFiles/ktx.dir/lib/etcunpack.cxx.o.d -o CMakeFiles/ktx.dir/lib/etcunpack.cxx.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/etcunpack.cxx
[27/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_ideal_endpoints_and_weights.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_ideal_endpoints_and_weights.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_ideal_endpoints_and_weights.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_ideal_endpoints_and_weights.cpp
[28/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/strings.c.o -MF CMakeFiles/ktx.dir/lib/strings.c.o.d -o CMakeFiles/ktx.dir/lib/strings.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/strings.c
[29/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_compress_symbolic.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_compress_symbolic.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_compress_symbolic.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_compress_symbolic.cpp
[30/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_pick_best_endpoint_format.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_pick_best_endpoint_format.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_pick_best_endpoint_format.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_pick_best_endpoint_format.cpp
[31/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/vkformat_check.c.o -MF CMakeFiles/ktx.dir/lib/vkformat_check.c.o.d -o CMakeFiles/ktx.dir/lib/vkformat_check.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/vkformat_check.c
[32/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/swap.c.o -MF CMakeFiles/ktx.dir/lib/swap.c.o.d -o CMakeFiles/ktx.dir/lib/swap.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/swap.c
[33/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/vkformat_check_variant.c.o -MF CMakeFiles/ktx.dir/lib/vkformat_check_variant.c.o.d -o CMakeFiles/ktx.dir/lib/vkformat_check_variant.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/vkformat_check_variant.c
[34/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/hashlist.c.o -MF CMakeFiles/ktx.dir/lib/hashlist.c.o.d -o CMakeFiles/ktx.dir/lib/hashlist.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/hashlist.c
[35/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/vkformat_typesize.c.o -MF CMakeFiles/ktx.dir/lib/vkformat_typesize.c.o.d -o CMakeFiles/ktx.dir/lib/vkformat_typesize.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/vkformat_typesize.c
[36/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_quant_xfer_tables.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_quant_xfer_tables.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_quant_xfer_tables.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_weight_quant_xfer_tables.cpp
[37/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_entry.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_entry.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_entry.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_entry.cpp
[38/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_quantization.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_quantization.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_quantization.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_quantization.cpp
[39/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/gl_funcs.c.o -MF CMakeFiles/ktx.dir/lib/gl_funcs.c.o.d -o CMakeFiles/ktx.dir/lib/gl_funcs.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/gl_funcs.c
[40/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/vk_funcs.c.o -MF CMakeFiles/ktx.dir/lib/vk_funcs.c.o.d -o CMakeFiles/ktx.dir/lib/vk_funcs.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/vk_funcs.c
[41/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_symbolic_physical.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_symbolic_physical.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_symbolic_physical.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_symbolic_physical.cpp
[42/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/texture.c.o -MF CMakeFiles/ktx.dir/lib/texture.c.o.d -o CMakeFiles/ktx.dir/lib/texture.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/texture.c
[43/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/info.c.o -MF CMakeFiles/ktx.dir/lib/info.c.o.d -o CMakeFiles/ktx.dir/lib/info.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/info.c
[44/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/vkformat_str.c.o -MF CMakeFiles/ktx.dir/lib/vkformat_str.c.o.d -o CMakeFiles/ktx.dir/lib/vkformat_str.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/vkformat_str.c
[45/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 -DASTCENC_SVE=0 -DASTCENC_X86_GATHERS=1 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -Wall -Wextra -O3 -ffp-contract=off -pthread -Wpedantic -Werror -Wshadow -Wdouble-promotion -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-cast-align -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-identifier -Wno-cast-function-type -mavx2 -mpopcnt -mf16c -Wno-unused-command-line-argument -MD -MT external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_align.cpp.o -MF external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_align.cpp.o.d -o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_align.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/astcenc_weight_align.cpp
[46/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/glloader.c.o -MF CMakeFiles/ktx.dir/lib/glloader.c.o.d -o CMakeFiles/ktx.dir/lib/glloader.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/glloader.c
[47/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/texture2.c.o -MF CMakeFiles/ktx.dir/lib/texture2.c.o.d -o CMakeFiles/ktx.dir/lib/texture2.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/texture2.c
[48/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/vkloader.c.o -MF CMakeFiles/ktx.dir/lib/vkloader.c.o.d -o CMakeFiles/ktx.dir/lib/vkloader.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/vkloader.c
[49/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/texture1.c.o -MF CMakeFiles/ktx.dir/lib/texture1.c.o.d -o CMakeFiles/ktx.dir/lib/texture1.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/texture1.c
[50/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/basis_transcode.cpp.o -MF CMakeFiles/ktx.dir/lib/basis_transcode.cpp.o.d -o CMakeFiles/ktx.dir/lib/basis_transcode.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/basis_transcode.cpp
[51/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/astc_codec.cpp.o -MF CMakeFiles/ktx.dir/lib/astc_codec.cpp.o.d -o CMakeFiles/ktx.dir/lib/astc_codec.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/astc_codec.cpp
[52/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/external/etcdec/etcdec.cxx.o -MF CMakeFiles/ktx.dir/external/etcdec/etcdec.cxx.o.d -o CMakeFiles/ktx.dir/external/etcdec/etcdec.cxx.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/etcdec/etcdec.cxx
[53/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_basis_file.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_basis_file.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_basis_file.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_basis_file.cpp
[54/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_opencl.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_opencl.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_opencl.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_opencl.cpp
[55/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_resample_filters.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_resample_filters.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_resample_filters.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_resample_filters.cpp
[56/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/basis_encode.cpp.o -MF CMakeFiles/ktx.dir/lib/basis_encode.cpp.o.d -o CMakeFiles/ktx.dir/lib/basis_encode.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/basis_encode.cpp
[57/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/writer1.c.o -MF CMakeFiles/ktx.dir/lib/writer1.c.o.d -o CMakeFiles/ktx.dir/lib/writer1.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/writer1.c
[58/170] : && TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/cmake -E rm -f external/astc-encoder/Source/libastcenc-avx2-static.a && TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc-ar qc external/astc-encoder/Source/libastcenc-avx2-static.a external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_averages_and_directions.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_block_sizes.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_color_quantize.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_color_unquantize.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_compress_symbolic.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_compute_variance.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_decompress_symbolic.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_diagnostic_trace.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_entry.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_find_best_partitioning.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_ideal_endpoints_and_weights.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_image.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_integer_sequence.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib_softfloat.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_partition_tables.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_percentile_tables.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_pick_best_endpoint_format.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_quantization.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_symbolic_physical.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_align.cpp.o external/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_quant_xfer_tables.cpp.o && TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ranlib external/astc-encoder/Source/libastcenc-avx2-static.a && :
[59/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_resampler.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_resampler.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_resampler.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_resampler.cpp
[60/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/writer2.c.o -MF CMakeFiles/ktx.dir/lib/writer2.c.o.d -o CMakeFiles/ktx.dir/lib/writer2.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/writer2.c
[61/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_kernels_sse.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_kernels_sse.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_kernels_sse.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_kernels_sse.cpp
[62/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_etc.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_etc.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_etc.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_etc.cpp
[63/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT external/fmt/CMakeFiles/fmt.dir/src/os.cc.o -MF external/fmt/CMakeFiles/fmt.dir/src/os.cc.o.d -o external/fmt/CMakeFiles/fmt.dir/src/os.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/src/os.cc
[64/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_gpu_texture.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_gpu_texture.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_gpu_texture.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_gpu_texture.cpp
[65/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/checkheader.c.o -MF CMakeFiles/ktx_read.dir/lib/checkheader.c.o.d -o CMakeFiles/ktx_read.dir/lib/checkheader.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/checkheader.c
[66/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/basis_transcode.cpp.o -MF CMakeFiles/ktx_read.dir/lib/basis_transcode.cpp.o.d -o CMakeFiles/ktx_read.dir/lib/basis_transcode.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/basis_transcode.cpp
[67/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/external/dfdutils/colourspaces.c.o -MF CMakeFiles/ktx_read.dir/external/dfdutils/colourspaces.c.o.d -o CMakeFiles/ktx_read.dir/external/dfdutils/colourspaces.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils/colourspaces.c
[68/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_enc.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_enc.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_enc.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_enc.cpp
[69/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/external/dfdutils/interpretdfd.c.o -MF CMakeFiles/ktx_read.dir/external/dfdutils/interpretdfd.c.o.d -o CMakeFiles/ktx_read.dir/external/dfdutils/interpretdfd.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils/interpretdfd.c
[70/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_pvrtc1_4.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_pvrtc1_4.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_pvrtc1_4.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_pvrtc1_4.cpp
[71/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_ssim.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_ssim.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_ssim.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_ssim.cpp
[72/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/external/dfdutils/queries.c.o -MF CMakeFiles/ktx_read.dir/external/dfdutils/queries.c.o.d -o CMakeFiles/ktx_read.dir/external/dfdutils/queries.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils/queries.c
[73/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/external/dfdutils/createdfd.c.o -MF CMakeFiles/ktx_read.dir/external/dfdutils/createdfd.c.o.d -o CMakeFiles/ktx_read.dir/external/dfdutils/createdfd.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils/createdfd.c
[74/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/filestream.c.o -MF CMakeFiles/ktx_read.dir/lib/filestream.c.o.d -o CMakeFiles/ktx_read.dir/lib/filestream.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/filestream.c
[75/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/external/dfdutils/vk2dfd.c.o -MF CMakeFiles/ktx_read.dir/external/dfdutils/vk2dfd.c.o.d -o CMakeFiles/ktx_read.dir/external/dfdutils/vk2dfd.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils/vk2dfd.c
[76/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/external/dfdutils/printdfd.c.o -MF CMakeFiles/ktx_read.dir/external/dfdutils/printdfd.c.o.d -o CMakeFiles/ktx_read.dir/external/dfdutils/printdfd.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils/printdfd.c
[77/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/strings.c.o -MF CMakeFiles/ktx_read.dir/lib/strings.c.o.d -o CMakeFiles/ktx_read.dir/lib/strings.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/strings.c
[78/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/memstream.c.o -MF CMakeFiles/ktx_read.dir/lib/memstream.c.o.d -o CMakeFiles/ktx_read.dir/lib/memstream.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/memstream.c
[79/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/etcunpack.cxx.o -MF CMakeFiles/ktx_read.dir/lib/etcunpack.cxx.o.d -o CMakeFiles/ktx_read.dir/lib/etcunpack.cxx.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/etcunpack.cxx
[80/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/swap.c.o -MF CMakeFiles/ktx_read.dir/lib/swap.c.o.d -o CMakeFiles/ktx_read.dir/lib/swap.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/swap.c
[81/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_backend.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_backend.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_backend.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_backend.cpp
[82/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/vkformat_check.c.o -MF CMakeFiles/ktx_read.dir/lib/vkformat_check.c.o.d -o CMakeFiles/ktx_read.dir/lib/vkformat_check.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/vkformat_check.c
[83/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/vkformat_check_variant.c.o -MF CMakeFiles/ktx_read.dir/lib/vkformat_check_variant.c.o.d -o CMakeFiles/ktx_read.dir/lib/vkformat_check_variant.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/vkformat_check_variant.c
[84/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/hashlist.c.o -MF CMakeFiles/ktx_read.dir/lib/hashlist.c.o.d -o CMakeFiles/ktx_read.dir/lib/hashlist.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/hashlist.c
[85/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/vkformat_typesize.c.o -MF CMakeFiles/ktx_read.dir/lib/vkformat_typesize.c.o.d -o CMakeFiles/ktx_read.dir/lib/vkformat_typesize.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/vkformat_typesize.c
[86/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/texture.c.o -MF CMakeFiles/ktx_read.dir/lib/texture.c.o.d -o CMakeFiles/ktx_read.dir/lib/texture.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/texture.c
[87/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -Wno-stringop-overflow -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_bc7enc.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_bc7enc.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_bc7enc.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_bc7enc.cpp
[88/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/info.c.o -MF CMakeFiles/ktx_read.dir/lib/info.c.o.d -o CMakeFiles/ktx_read.dir/lib/info.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/info.c
[89/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/miniz_wrapper.cpp.o -MF CMakeFiles/ktx_read.dir/lib/miniz_wrapper.cpp.o.d -o CMakeFiles/ktx_read.dir/lib/miniz_wrapper.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/miniz_wrapper.cpp
[90/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/gl_funcs.c.o -MF CMakeFiles/ktx_read.dir/lib/gl_funcs.c.o.d -o CMakeFiles/ktx_read.dir/lib/gl_funcs.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/gl_funcs.c
[91/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/vk_funcs.c.o -MF CMakeFiles/ktx_read.dir/lib/vk_funcs.c.o.d -o CMakeFiles/ktx_read.dir/lib/vk_funcs.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/vk_funcs.c
[92/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/vkformat_str.c.o -MF CMakeFiles/ktx_read.dir/lib/vkformat_str.c.o.d -o CMakeFiles/ktx_read.dir/lib/vkformat_str.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/vkformat_str.c
[93/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/glloader.c.o -MF CMakeFiles/ktx_read.dir/lib/glloader.c.o.d -o CMakeFiles/ktx_read.dir/lib/glloader.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/glloader.c
[94/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/texture2.c.o -MF CMakeFiles/ktx_read.dir/lib/texture2.c.o.d -o CMakeFiles/ktx_read.dir/lib/texture2.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/texture2.c
[95/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/texture1.c.o -MF CMakeFiles/ktx_read.dir/lib/texture1.c.o.d -o CMakeFiles/ktx_read.dir/lib/texture1.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/texture1.c
[96/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/lib/vkloader.c.o -MF CMakeFiles/ktx_read.dir/lib/vkloader.c.o.d -o CMakeFiles/ktx_read.dir/lib/vkloader.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib/vkloader.c
[97/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/external/etcdec/etcdec.cxx.o -MF CMakeFiles/ktx_read.dir/external/etcdec/etcdec.cxx.o.d -o CMakeFiles/ktx_read.dir/external/etcdec/etcdec.cxx.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/etcdec/etcdec.cxx
[98/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_BASISU_C_BINDINGS -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/interface/basisu_c_binding/inc -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT interface/basisu_c_binding/CMakeFiles/obj_basisu_cbind.dir/src/basisu_c_binding.cpp.o -MF interface/basisu_c_binding/CMakeFiles/obj_basisu_cbind.dir/src/basisu_c_binding.cpp.o.d -o interface/basisu_c_binding/CMakeFiles/obj_basisu_cbind.dir/src/basisu_c_binding.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/interface/basisu_c_binding/src/basisu_c_binding.cpp
[99/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/imageio/CMakeFiles/imageio.dir/imageoutput.cc.o -MF tools/imageio/CMakeFiles/imageio.dir/imageoutput.cc.o.d -o tools/imageio/CMakeFiles/imageio.dir/imageoutput.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/imageoutput.cc
[100/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/imageio/CMakeFiles/imageio.dir/imageio.cc.o -MF tools/imageio/CMakeFiles/imageio.dir/imageio.cc.o.d -o tools/imageio/CMakeFiles/imageio.dir/imageio.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/imageio.cc
[101/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_comp.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_comp.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_comp.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_comp.cpp
[102/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-stringop-overflow -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_uastc_enc.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_uastc_enc.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_uastc_enc.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_uastc_enc.cpp
[103/170] cd TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0 && scripts/mkversion -v v4.4.0 -o version.h tools/ktx
[104/170] cd TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0 && scripts/mkversion -v v4.4.0 -o version.h tools/ktx2check
[105/170] cd TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0 && scripts/mkversion -v v4.4.0 -o version.h tools/ktx2ktx2
[106/170] cd TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0 && scripts/mkversion -v v4.4.0 -o version.h tools/ktxinfo
[107/170] cd TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0 && scripts/mkversion -v v4.4.0 -o version.h tools/ktxsc
[108/170] cd TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0 && scripts/mkversion -v v4.4.0 -o version.h tools/toktx
[109/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/imageio/CMakeFiles/imageio.dir/imageinput.cc.o -MF tools/imageio/CMakeFiles/imageio.dir/imageinput.cc.o.d -o tools/imageio/CMakeFiles/imageio.dir/imageinput.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/imageinput.cc
[110/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/imageio/CMakeFiles/imageio.dir/npbm.imageio/npbminput.cc.o -MF tools/imageio/CMakeFiles/imageio.dir/npbm.imageio/npbminput.cc.o.d -o tools/imageio/CMakeFiles/imageio.dir/npbm.imageio/npbminput.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/npbm.imageio/npbminput.cc
[111/170] : && TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/cmake -E rm -f interface/basisu_c_binding/libobj_basisu_cbind.a && TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc-ar qc interface/basisu_c_binding/libobj_basisu_cbind.a interface/basisu_c_binding/CMakeFiles/obj_basisu_cbind.dir/src/basisu_c_binding.cpp.o && TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ranlib interface/basisu_c_binding/libobj_basisu_cbind.a && :
[112/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/imageio/CMakeFiles/imageio.dir/__/__/external/basisu/encoder/jpgd.cpp.o -MF tools/imageio/CMakeFiles/imageio.dir/__/__/external/basisu/encoder/jpgd.cpp.o.d -o tools/imageio/CMakeFiles/imageio.dir/__/__/external/basisu/encoder/jpgd.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/jpgd.cpp
[113/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/imageio/CMakeFiles/imageio.dir/jpg.imageio/jpginput.cc.o -MF tools/imageio/CMakeFiles/imageio.dir/jpg.imageio/jpginput.cc.o.d -o tools/imageio/CMakeFiles/imageio.dir/jpg.imageio/jpginput.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/jpg.imageio/jpginput.cc
[114/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT external/fmt/CMakeFiles/fmt.dir/src/format.cc.o -MF external/fmt/CMakeFiles/fmt.dir/src/format.cc.o.d -o external/fmt/CMakeFiles/fmt.dir/src/format.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/src/format.cc
[115/170] : && TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/cmake -E rm -f external/fmt/libfmt.a && TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc-ar qc external/fmt/libfmt.a external/fmt/CMakeFiles/fmt.dir/src/format.cc.o external/fmt/CMakeFiles/fmt.dir/src/os.cc.o && TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ranlib external/fmt/libfmt.a && :
[116/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/imageio/CMakeFiles/imageio.dir/png.imageio/pngoutput.cc.o -MF tools/imageio/CMakeFiles/imageio.dir/png.imageio/pngoutput.cc.o.d -o tools/imageio/CMakeFiles/imageio.dir/png.imageio/pngoutput.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/png.imageio/pngoutput.cc
[117/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tests/gtest/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tests/gtest/. -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tests/gtest/CMakeFiles/gtest.dir/src/gtest_main.cc.o -MF tests/gtest/CMakeFiles/gtest.dir/src/gtest_main.cc.o.d -o tests/gtest/CMakeFiles/gtest.dir/src/gtest_main.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tests/gtest/src/gtest_main.cc
[118/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/imageio/CMakeFiles/imageio.dir/png.imageio/pnginput.cc.o -MF tools/imageio/CMakeFiles/imageio.dir/png.imageio/pnginput.cc.o.d -o tools/imageio/CMakeFiles/imageio.dir/png.imageio/pnginput.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/png.imageio/pnginput.cc
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/png.imageio/pnginput.cc:17:
In constructor 'ImageInput::imageInfo::imageInfo(ImageSpec&&, ImageInputFormatType, size_t)',
inlined from 'constexpr _Tp* std::construct_at(_Tp*, _Args&& ...) [with _Tp = ImageInput::imageInfo; _Args = {ImageSpec, ImageInputFormatType&}]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_construct.h:110:9,
inlined from 'static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = ImageInput::imageInfo; _Args = {ImageSpec, ImageInputFormatType&}; _Tp = ImageInput::imageInfo]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/alloc_traits.h:716:21,
inlined from 'constexpr void std::vector<_Tp, _Alloc>::_M_realloc_append(_Args&& ...) [with _Args = {ImageSpec, ImageInputFormatType&}; _Tp = ImageInput::imageInfo; _Alloc = std::allocator<ImageInput::imageInfo>]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/vector.tcc:594:26,
inlined from 'constexpr std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {ImageSpec, ImageInputFormatType&}; _Tp = ImageInput::imageInfo; _Alloc = std::allocator<ImageInput::imageInfo>]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/vector.tcc:127:21,
inlined from 'void PngInput::readHeader()' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/png.imageio/pnginput.cc:230:22:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/./imageio.h:292:25: warning: 'formatType' may be used uninitialized [-Wmaybe-uninitialized]
292 | : spec(is), formatType(formatType), filepos(pos) { }
| ^~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/png.imageio/pnginput.cc: In member function 'void PngInput::readHeader()':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/png.imageio/pnginput.cc:209:26: note: 'formatType' was declared here
209 | ImageInputFormatType formatType;
| ^~~~~~~~~~
[119/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT CMakeFiles/objUtil.dir/utils/argparser.cpp.o -MF CMakeFiles/objUtil.dir/utils/argparser.cpp.o.d -o CMakeFiles/objUtil.dir/utils/argparser.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils/argparser.cpp
[120/170] : && TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/cmake -E rm -f libobjUtil.a && TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc-ar qc libobjUtil.a CMakeFiles/objUtil.dir/utils/argparser.cpp.o && TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ranlib libobjUtil.a && :
[121/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -MD -MT CMakeFiles/ktx.dir/external/basisu/encoder/basisu_frontend.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/encoder/basisu_frontend.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/encoder/basisu_frontend.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/encoder/basisu_frontend.cpp
[122/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.cpp
FAILED: [code=1] tools/ktx/CMakeFiles/ktxtools.dir/command.cpp.o
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.cpp
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.cpp:6:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[26], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:233:31: required from here
233 | report.fatal_usage("Unsupported format: \"{}\".", formatStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/string:45,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:9:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[30]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:251:31: required from here
251 | report.fatal_usage("Too many filenames specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[70]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:254:31: required from here
254 | report.fatal_usage("Missing input file. Either <input-file> or --stdin must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[78]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:256:31: required from here
256 | report.fatal_usage("Conflicting options: Only one can be specified from <input-file> and --stdin.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[73]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:289:31: required from here
289 | report.fatal_usage("Missing output file. Either <output-file> or --stdout must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[80]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:291:31: required from here
291 | report.fatal_usage("Conflicting options: Only one can be specified from <output-file> and --stdout.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[42]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:330:31: required from here
330 | report.fatal_usage("Input and output files must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[27], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:332:31: required from here
332 | report.fatal_usage("{} file must be specified.", args.count("stdout") == 0 ? "Output" : "Input");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[59]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:339:31: required from here
339 | report.fatal_usage("'-' or --stdin as input file was specified more than once.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[4], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.cpp:40:20: required from here
40 | fatal_usage("{}.", ex.what());
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[4]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[4]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[36], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.cpp:114:25: required from here
114 | report.fatal(rc::IO_FAILURE, "Could not open input file \"{}\": {}.", filepath, errnoMessage());
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[36]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[36]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[37], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.cpp:141:25: required from here
141 | report.fatal(rc::IO_FAILURE, "Could not open output file \"{}\": {}.", filepath, errnoMessage());
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[37]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[37]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[38], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.cpp:172:21: required from here
172 | report.fatal(rc::IO_FAILURE, "Failed to write output file \"{}\": {}.", fmtOutFile(filepath), errnoMessage());
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[38]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[38]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[46], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.cpp:180:21: required from here
180 | report.fatal(rc::IO_FAILURE, "Failed to write KTX file \"{}\": KTX error: {}.", filepath, ktxErrorString(ret));
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>((* & std::forward<const char (&)[46]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>((* & std::forward<const char (&)[46]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
[123/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_deflate.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_deflate.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_deflate.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_deflate.cpp
FAILED: [code=1] tools/ktx/CMakeFiles/ktxtools.dir/command_deflate.cpp.o
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_deflate.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_deflate.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_deflate.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_deflate.cpp
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_deflate.cpp:5:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[26], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:233:31: required from here
233 | report.fatal_usage("Unsupported format: \"{}\".", formatStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/string:45,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:9:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[30]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:251:31: required from here
251 | report.fatal_usage("Too many filenames specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[70]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:254:31: required from here
254 | report.fatal_usage("Missing input file. Either <input-file> or --stdin must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[78]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:256:31: required from here
256 | report.fatal_usage("Conflicting options: Only one can be specified from <input-file> and --stdin.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[73]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:289:31: required from here
289 | report.fatal_usage("Missing output file. Either <output-file> or --stdout must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[80]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:291:31: required from here
291 | report.fatal_usage("Conflicting options: Only one can be specified from <output-file> and --stdout.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[42]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:330:31: required from here
330 | report.fatal_usage("Input and output files must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[27], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:332:31: required from here
332 | report.fatal_usage("{} file must be specified.", args.count("stdout") == 0 ? "Output" : "Input");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[59]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:339:31: required from here
339 | report.fatal_usage("'-' or --stdin as input file was specified more than once.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[68], unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/deflate_utils.h:69:35: required from here
69 | report.fatal_usage("Invalid zstd level: \"{}\". Value must be between 1 and 22 inclusive.", zstd.value());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[68]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[68]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int&>*)this)->fmt::v10::basic_format_string<char, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[67], unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/deflate_utils.h:74:35: required from here
74 | report.fatal_usage("Invalid zlib level: \"{}\". Value must be between 1 and 9 inclusive.", zlib.value());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[67]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[67]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int&>*)this)->fmt::v10::basic_format_string<char, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[68]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/deflate_utils.h:77:31: required from here
77 | report.fatal_usage("Conflicting options: zstd and zlib cannot be used at the same time.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[68]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[68]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[35], const char*&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_deflate.cpp:130:27: required from here
130 | report.fatal_usage("Cannot specify both --{} and --{}.",
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131 | this->kQuiet, this->kWarningsAsErrors);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[35]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[35]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[28], const char*&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_deflate.cpp:142:20: required from here
142 | fatal_usage("Must specify --{} or --{}.",
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
143 | OptionsDeflate::kZStd, OptionsDeflate::kZLib);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[28]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[28]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[34], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_deflate.cpp:155:14: required from here
155 | fatal(rc::INVALID_FILE, "Failed to create KTX2 texture: {}", ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[34]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[34]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[46], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_deflate.cpp:162:24: required from here
162 | warning("Modifying existing {} supercompression of {}.",
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 | toString(texture->supercompressionScheme),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164 | options.inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[46]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[46]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[60], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_deflate.cpp:168:18: required from here
168 | fatal(rc::INVALID_FILE,
| ~~~~~^~~~~~~~~~~~~~~~~~
169 | "Cannot further deflate a KTX2 file supercompressed with {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
170 | toString(texture->supercompressionScheme));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[60]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[60]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[37], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_deflate.cpp:177:18: required from here
177 | fatal(rc::IO_FAILURE, "Zstd deflation failed. KTX Error: {}", ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[37]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[37]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
[124/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_compare.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_compare.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_compare.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp
FAILED: [code=1] tools/ktx/CMakeFiles/ktxtools.dir/command_compare.cpp.o
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_compare.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_compare.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_compare.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp: In lambda function:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:734:34: warning: implicit capture of 'this' via '[=]' is deprecated in C++20 [-Wdeprecated]
734 | auto printDiff = [=](const char* textHeader, const std::string firstValue, const std::string secondValue) {
| ^
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:734:34: note: add explicit 'this' or '*this' capture
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp: In member function 'void ktx::PrintDiff::operator<<(const ktx::DiffImage&)':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:744:45: error: call to consteval function 'formatOptionalFileOffset.ktx::PrintDiff::operator<<(const ktx::DiffImage&)::<lambda(const std::optional<long unsigned int>&, std::size_t, bool)>(diff.ktx::DiffImage::fileOffsets[0], ((std::size_t)((long int)imageByteOffset)), false)' is not a constant expression
744 | formatOptionalFileOffset(diff.fileOffsets[0], imageByteOffset, false),
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:744:67: error: the value of 'imageByteOffset' is not usable in a constant expression
744 | formatOptionalFileOffset(diff.fileOffsets[0], imageByteOffset, false),
| ^~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:729:28: note: 'imageByteOffset' was not initialized with a constant expression
729 | const auto imageByteOffset = texelBlockPair.first.getTexelBlockByteOffset();
| ^~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:653:41: note: 'ktx::PrintDiff::operator<<(const ktx::DiffImage&)::<lambda(const std::optional<long unsigned int>&, std::size_t, bool)>' was promoted to an immediate function because its body contains an immediate-escalating expression 'fmt::v10::basic_format_string<char, long unsigned int>((json ? ((const char*)"{}") : ((const char*)"0x{:x}")))'
653 | return fmt::format(json ? "{}" : "0x{:x}", *fileOffset + imageOffset);
| ~~~~~^~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:745:45: error: call to consteval function 'formatOptionalFileOffset.ktx::PrintDiff::operator<<(const ktx::DiffImage&)::<lambda(const std::optional<long unsigned int>&, std::size_t, bool)>(diff.ktx::DiffImage::fileOffsets[1], ((std::size_t)((long int)imageByteOffset)), false)' is not a constant expression
745 | formatOptionalFileOffset(diff.fileOffsets[1], imageByteOffset, false));
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:745:67: error: the value of 'imageByteOffset' is not usable in a constant expression
745 | formatOptionalFileOffset(diff.fileOffsets[1], imageByteOffset, false));
| ^~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:729:28: note: 'imageByteOffset' was not initialized with a constant expression
729 | const auto imageByteOffset = texelBlockPair.first.getTexelBlockByteOffset();
| ^~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:653:41: note: 'ktx::PrintDiff::operator<<(const ktx::DiffImage&)::<lambda(const std::optional<long unsigned int>&, std::size_t, bool)>' was promoted to an immediate function because its body contains an immediate-escalating expression 'fmt::v10::basic_format_string<char, long unsigned int>((json ? ((const char*)"{}") : ((const char*)"0x{:x}")))'
653 | return fmt::format(json ? "{}" : "0x{:x}", *fileOffset + imageOffset);
| ~~~~~^~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:775:45: error: call to consteval function 'formatOptionalFileOffset.ktx::PrintDiff::operator<<(const ktx::DiffImage&)::<lambda(const std::optional<long unsigned int>&, std::size_t, bool)>(diff.ktx::DiffImage::fileOffsets[0], ((std::size_t)((long int)imageByteOffset)), true)' is not a constant expression
775 | formatOptionalFileOffset(diff.fileOffsets[0], imageByteOffset, true), space,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:775:67: error: the value of 'imageByteOffset' is not usable in a constant expression
775 | formatOptionalFileOffset(diff.fileOffsets[0], imageByteOffset, true), space,
| ^~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:768:28: note: 'imageByteOffset' was not initialized with a constant expression
768 | const auto imageByteOffset = texelBlockPair.first.getTexelBlockByteOffset();
| ^~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:653:41: note: 'ktx::PrintDiff::operator<<(const ktx::DiffImage&)::<lambda(const std::optional<long unsigned int>&, std::size_t, bool)>' was promoted to an immediate function because its body contains an immediate-escalating expression 'fmt::v10::basic_format_string<char, long unsigned int>((json ? ((const char*)"{}") : ((const char*)"0x{:x}")))'
653 | return fmt::format(json ? "{}" : "0x{:x}", *fileOffset + imageOffset);
| ~~~~~^~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:776:45: error: call to consteval function 'formatOptionalFileOffset.ktx::PrintDiff::operator<<(const ktx::DiffImage&)::<lambda(const std::optional<long unsigned int>&, std::size_t, bool)>(diff.ktx::DiffImage::fileOffsets[1], ((std::size_t)((long int)imageByteOffset)), true)' is not a constant expression
776 | formatOptionalFileOffset(diff.fileOffsets[1], imageByteOffset, true), space, nl);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:776:67: error: the value of 'imageByteOffset' is not usable in a constant expression
776 | formatOptionalFileOffset(diff.fileOffsets[1], imageByteOffset, true), space, nl);
| ^~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:768:28: note: 'imageByteOffset' was not initialized with a constant expression
768 | const auto imageByteOffset = texelBlockPair.first.getTexelBlockByteOffset();
| ^~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:653:41: note: 'ktx::PrintDiff::operator<<(const ktx::DiffImage&)::<lambda(const std::optional<long unsigned int>&, std::size_t, bool)>' was promoted to an immediate function because its body contains an immediate-escalating expression 'fmt::v10::basic_format_string<char, long unsigned int>((json ? ((const char*)"{}") : ((const char*)"0x{:x}")))'
653 | return fmt::format(json ? "{}" : "0x{:x}", *fileOffset + imageOffset);
| ~~~~~^~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:5:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[26], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:233:31: required from here
233 | report.fatal_usage("Unsupported format: \"{}\".", formatStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/string:45,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:9:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[30]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:251:31: required from here
251 | report.fatal_usage("Too many filenames specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[70]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:254:31: required from here
254 | report.fatal_usage("Missing input file. Either <input-file> or --stdin must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[78]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:256:31: required from here
256 | report.fatal_usage("Conflicting options: Only one can be specified from <input-file> and --stdin.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[73]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:289:31: required from here
289 | report.fatal_usage("Missing output file. Either <output-file> or --stdout must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[80]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:291:31: required from here
291 | report.fatal_usage("Conflicting options: Only one can be specified from <output-file> and --stdout.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[42]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:330:31: required from here
330 | report.fatal_usage("Input and output files must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[27], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:332:31: required from here
332 | report.fatal_usage("{} file must be specified.", args.count("stdout") == 0 ? "Output" : "Input");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[59]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:339:31: required from here
339 | report.fatal_usage("'-' or --stdin as input file was specified more than once.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[43], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/format_descriptor.h:60:21: required from here
60 | report.fatal(rc::DFD_FAILURE, "Failed to create format descriptor for: {}", toString(vkFormat));
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[43]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[43]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:12:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[2]; Args = {}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:500:28: required from here
500 | printIndent(0, "\n");
| ~~~~~~~~~~~^~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[2]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[2]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const std::__cxx11::basic_string<char>&; Args = {}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:502:28: required from here
502 | printIndent(0, ctx);
| ~~~~~~~~~~~^~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const __cxx11::basic_string<char>&>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/string:58:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const __cxx11::basic_string<char>&>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view<std::char_traits<char>, std::allocator<char> >((* & s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:434:21: in 'constexpr' expansion of '(& s)->std::__cxx11::basic_string<char>::data()'
434 | : data_(s.data()), size_(s.size()) {}
| ~~~~~~^~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/basic_string.h:2911:23: in 'constexpr' expansion of '((const std::__cxx11::basic_string<char>*)this)->std::__cxx11::basic_string<char>::_M_data()'
2911 | { return _M_data(); }
| ~~~~~~~^~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/basic_string.h:238:16: error: '*(const std::__cxx11::basic_string<char>*)this' is not a constant expression
238 | { return _M_dataplus._M_p; }
| ^~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[4]; Args = {const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:513:20: required from here
513 | printIndent(0, ",{}", nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[4]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[4]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[12]; Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:516:24: required from here
516 | printIndent(1, "\"{}\":{}{{{}", *jsonSection, space, nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char* const&, const char* const&>((* & std::forward<const char (&)[12]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char* const&, const char* const&>((* & std::forward<const char (&)[12]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[3]; Args = {const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:536:28: required from here
536 | printIndent(0, "{}", nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[3]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[3]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[3]; Args = {}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:537:28: required from here
537 | printIndent(1, "}}");
| ~~~~~~~~~~~^~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[3]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[3]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[5]; Args = {const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:627:24: required from here
627 | printIndent(0, "-{}\n", diff.text(0));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[5]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[5]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[5]; Args = {const std::basic_string_view<char, std::char_traits<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:638:24: required from here
638 | printIndent(0, "+{}\n", diff.textMsg);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&>((* & std::forward<const char (&)[5]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&>((* & std::forward<const char (&)[5]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[10]; Args = {const std::basic_string_view<char, std::char_traits<char> >&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:641:24: required from here
641 | printIndent(2, "\"{}\":{}[]", diff.jsonPath, space);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, const char* const&>((* & std::forward<const char (&)[10]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, const char* const&>((* & std::forward<const char (&)[10]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[27]; Args = {const unsigned int&, const unsigned int&, const unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:727:28: required from here
727 | printIndent(0, " Coordinates: {}, {}, {}\n", pixelCoords.x, pixelCoords.y, pixelCoords.z);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const unsigned int&, const unsigned int&, const unsigned int&>((* & std::forward<const char (&)[27]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const unsigned int&, const unsigned int&, const unsigned int&>((* & std::forward<const char (&)[27]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const unsigned int&, const unsigned int&, const unsigned int&>*)this)->fmt::v10::basic_format_string<char, const unsigned int&, const unsigned int&, const unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[31]; Args = {const long int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:732:28: required from here
732 | printIndent(0, " Image byte offset: 0x{:x}\n", imageByteOffset);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const long int&>((* & std::forward<const char (&)[31]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const long int&>((* & std::forward<const char (&)[31]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const long int&>*)this)->fmt::v10::basic_format_string<char, const long int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[12]; Args = {const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:736:36: required from here
736 | printIndent(0, " {}: {}\n", textHeader, firstValue);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[12]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[12]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[13]; Args = {const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:738:36: required from here
738 | printIndent(0, "- {}: {}\n", textHeader, firstValue);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[13]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[13]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[9]; Args = {const std::basic_string_view<char, std::char_traits<char> >&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:755:24: required from here
755 | printIndent(2, "\"{}\":{}[", diff.fragmentUri, space);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, const char* const&>((* & std::forward<const char (&)[9]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, const char* const&>((* & std::forward<const char (&)[9]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[5]; Args = {const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:759:28: required from here
759 | printIndent(0, "{}{}", comma, nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char* const&>((* & std::forward<const char (&)[5]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char* const&>((* & std::forward<const char (&)[5]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[5]; Args = {const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:760:28: required from here
760 | printIndent(3, "{{{}", nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[5]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[5]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[38]; Args = {const char* const&, const char* const&, const unsigned int&, const char* const&, const unsigned int&, const char* const&, const unsigned int&, const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:765:28: required from here
765 | printIndent(4, "\"coordinates\":{}[{}{},{}{},{}{}{}],{}", space, space,
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
766 | pixelCoords.x, space, pixelCoords.y, space, pixelCoords.z, space, nl);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, const char* const&, const unsigned int&, const char* const&, const unsigned int&, const char* const&, const unsigned int&, const char* const&, const char* const&>((* & std::forward<const char (&)[38]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, const char* const&, const unsigned int&, const char* const&, const unsigned int&, const char* const&, const unsigned int&, const char* const&, const char* const&>((* & std::forward<const char (&)[38]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, const char* const&, const unsigned int&, const char* const&, const unsigned int&, const char* const&, const unsigned int&, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, const char* const&, const unsigned int&, const char* const&, const unsigned int&, const char* const&, const unsigned int&, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[37]; Args = {const char* const&, const char* const&, const long int&, const char* const&, const long int&, const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:771:28: required from here
771 | printIndent(4, "\"imageByteOffset\":{}[{}{},{}{}{}],{}", space, space,
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
772 | imageByteOffset, space, imageByteOffset, space, nl);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, const char* const&, const long int&, const char* const&, const long int&, const char* const&, const char* const&>((* & std::forward<const char (&)[37]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, const char* const&, const long int&, const char* const&, const long int&, const char* const&, const char* const&>((* & std::forward<const char (&)[37]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, const char* const&, const long int&, const char* const&, const long int&, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, const char* const&, const long int&, const char* const&, const long int&, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[36]; Args = {const char* const&, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:774:28: required from here
774 | printIndent(4, "\"fileByteOffset\":{}[{}{},{}{}{}],{}", space, space,
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
775 | formatOptionalFileOffset(diff.fileOffsets[0], imageByteOffset, true), space,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
776 | formatOptionalFileOffset(diff.fileOffsets[1], imageByteOffset, true), space, nl);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&>((* & std::forward<const char (&)[36]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&>((* & std::forward<const char (&)[36]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[15]; Args = {const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:778:28: required from here
778 | printIndent(4, "\"packed\":{}[{}", space, nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, const char* const&>((* & std::forward<const char (&)[15]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, const char* const&>((* & std::forward<const char (&)[15]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[12]; Args = {const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:779:28: required from here
779 | printIndent(5, "[{}{}{}],{}", space, formatPacked(texelBlockPair.first, true), space, nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&>((* & std::forward<const char (&)[12]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&>((* & std::forward<const char (&)[12]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[11]; Args = {const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:780:28: required from here
780 | printIndent(5, "[{}{}{}]{}", space, formatPacked(texelBlockPair.second, true), space, nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&>((* & std::forward<const char (&)[11]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&>((* & std::forward<const char (&)[11]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[17]; Args = {const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:786:32: required from here
786 | printIndent(4, "\"channels\":{}[{}", space, nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, const char* const&>((* & std::forward<const char (&)[17]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, const char* const&>((* & std::forward<const char (&)[17]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[21]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1082:35: required from here
1082 | report.fatal_usage("Missing input files.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[21]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[21]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[27]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1084:35: required from here
1084 | report.fatal_usage("Missing second input file.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[27]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[27]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[34], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1098:39: required from here
1098 | report.fatal_usage("Invalid --content argument: \"{}\".", contentModeStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[34]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[34]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[43], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1116:43: required from here
1116 | report.fatal_usage("Invalid --per-pixel-output arugment: \"{}\".", perPixelOutputStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[43]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[43]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[39], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1134:39: required from here
1134 | report.fatal_usage("Invalid --ignore-index argument: \"{}\".", ignoreIndexStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[39]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[39]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[37], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1149:39: required from here
1149 | report.fatal_usage("Invalid --ignore-dfd argument: \"{}\".", ignoreDFDStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[37]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[37]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[36], std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1219:18: required from here
1219 | fatal(rc::IO_FAILURE, "Failed to seek file to {} \"{}\": {}.", what, stream.str(), errnoMessage());
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[36]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[36]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[50], std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1223:18: required from here
1223 | fatal(rc::IO_FAILURE, "Unexpected end of file reading {} from file \"{}\".", what, stream.str());
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[50]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[50]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[38], std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1225:18: required from here
1225 | fatal(rc::IO_FAILURE, "Failed to read {} from file \"{}\": {}.", what, stream.str(), errnoMessage());
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[38]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[38]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::basic_string_view<char, std::char_traits<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[64]; Args = {const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1353:12: required from here
1353 | out(1, "\"$schema\":{}\"https://schema.khronos.org/ktx/compare_v0.json\",{}", space, nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, const char* const&>((* & std::forward<const char (&)[64]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, const char* const&>((* & std::forward<const char (&)[64]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[6]; Args = {const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1363:23: required from here
1363 | pi(3, "}},{}", nl);
| ~~^~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[6]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[6]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[13]; Args = {const char* const&, const short unsigned int&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1366:19: required from here
1366 | pi(4, "\"id\":{}{},{}", space, issue.id, nl);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, const short unsigned int&, const char* const&>((* & std::forward<const char (&)[13]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, const short unsigned int&, const char* const&>((* & std::forward<const char (&)[13]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, const short unsigned int&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, const short unsigned int&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[17]; Args = {const char* const&, std::basic_string_view<char, std::char_traits<char> >, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1367:19: required from here
1367 | pi(4, "\"type\":{}\"{}\",{}", space, toString(issue.type), nl);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, std::basic_string_view<char, std::char_traits<char> >, const char* const&>((* & std::forward<const char (&)[17]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, std::basic_string_view<char, std::char_traits<char> >, const char* const&>((* & std::forward<const char (&)[17]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, std::basic_string_view<char, std::char_traits<char> >, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, std::basic_string_view<char, std::char_traits<char> >, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[20]; Args = {const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1368:19: required from here
1368 | pi(4, "\"message\":{}\"{}\",{}", space, escape_json_copy(issue.message), nl);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>((* & std::forward<const char (&)[20]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>((* & std::forward<const char (&)[20]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[19]; Args = {const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1369:19: required from here
1369 | pi(4, "\"details\":{}\"{}\"{}", space, escape_json_copy(issue.details), nl);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>((* & std::forward<const char (&)[19]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>((* & std::forward<const char (&)[19]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[14]; Args = {const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1375:12: required from here
1375 | out(1, "\"valid\":{}[{}", space, nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, const char* const&>((* & std::forward<const char (&)[14]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, const char* const&>((* & std::forward<const char (&)[14]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[7]; Args = {bool, const char*, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1378:16: required from here
1378 | out(2, "{}{}{}", validationResults[i] == 0, last ? "" : ",", nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, bool, const char*, const char* const&>((* & std::forward<const char (&)[7]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, bool, const char*, const char* const&>((* & std::forward<const char (&)[7]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, bool, const char*, const char* const&>*)this)->fmt::v10::basic_format_string<char, bool, const char*, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[6]; Args = {const char*, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1389:20: required from here
1389 | out(2, "]{}{}", last ? "" : ",", nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*, const char* const&>((* & std::forward<const char (&)[6]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*, const char* const&>((* & std::forward<const char (&)[6]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char*, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[7]; Args = {const char*, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1391:20: required from here
1391 | out(2, "[]{}{}", last ? "" : ",", nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*, const char* const&>((* & std::forward<const char (&)[7]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*, const char* const&>((* & std::forward<const char (&)[7]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char*, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[34], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1800:18: required from here
1800 | fatal(rc::KTX_FAILURE, "Failed to parse KVD in file \"{}\".", streams[i].str());
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[34]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[34]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[5]; Args = {unsigned int}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1915:24: required from here
1915 | out(0, " {}\n", extract<ktx_uint32_t>());
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int>((* & std::forward<const char (&)[5]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int>((* & std::forward<const char (&)[5]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int>*)this)->fmt::v10::basic_format_string<char, unsigned int>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[5]; Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1917:24: required from here
1917 | out(0, " {}\n", extractRawBytes(true));
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[5]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[5]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[3]; Args = {unsigned int}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1923:24: required from here
1923 | out(indent, "{}", extract<ktx_uint32_t>());
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int>((* & std::forward<const char (&)[3]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int>((* & std::forward<const char (&)[3]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int>*)this)->fmt::v10::basic_format_string<char, unsigned int>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[3]; Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1925:24: required from here
1925 | out(indent, "{}", extractRawBytes(false, space));
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[3]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[3]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[5]; Args = {char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1940:24: required from here
1940 | out(0, " {}\n", value);
| ~~~^~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, char* const&>((* & std::forward<const char (&)[5]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, char* const&>((* & std::forward<const char (&)[5]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, char* const&>*)this)->fmt::v10::basic_format_string<char, char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[34]; Args = {const char*&, unsigned int}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1966:24: required from here
1966 | out(0, "{} glInternalformat: 0x{:08X}\n", prefix, extract<ktx_uint32_t>(0));
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, unsigned int>((* & std::forward<const char (&)[34]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, unsigned int>((* & std::forward<const char (&)[34]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, unsigned int>*)this)->fmt::v10::basic_format_string<char, const char*&, unsigned int>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[26]; Args = {const char*&, unsigned int}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1967:24: required from here
1967 | out(0, "{} glFormat: 0x{:08X}\n", prefix, extract<ktx_uint32_t>(4));
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, unsigned int>((* & std::forward<const char (&)[26]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, unsigned int>((* & std::forward<const char (&)[26]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, unsigned int>*)this)->fmt::v10::basic_format_string<char, const char*&, unsigned int>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[24]; Args = {const char*&, unsigned int}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1968:24: required from here
1968 | out(0, "{} glType: 0x{:08X}\n", prefix, extract<ktx_uint32_t>(8));
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, unsigned int>((* & std::forward<const char (&)[24]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, unsigned int>((* & std::forward<const char (&)[24]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, unsigned int>*)this)->fmt::v10::basic_format_string<char, const char*&, unsigned int>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[5]; Args = {const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1976:24: required from here
1976 | out(indent, "{{{}", nl);
| ~~~^~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[5]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[5]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[27]; Args = {const char*&, unsigned int, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1977:24: required from here
1977 | out(indent + 1, "\"glInternalformat\":{}{},{}", space, extract<ktx_uint32_t>(0), nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>((* & std::forward<const char (&)[27]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>((* & std::forward<const char (&)[27]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[19]; Args = {const char*&, unsigned int, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1978:24: required from here
1978 | out(indent + 1, "\"glFormat\":{}{},{}", space, extract<ktx_uint32_t>(4), nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>((* & std::forward<const char (&)[19]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>((* & std::forward<const char (&)[19]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[16]; Args = {const char*&, unsigned int, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1979:24: required from here
1979 | out(indent + 1, "\"glType\":{}{}{}", space, extract<ktx_uint32_t>(8), nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>((* & std::forward<const char (&)[16]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>((* & std::forward<const char (&)[16]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[20]; Args = {const char*&, unsigned int}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1998:24: required from here
1998 | out(0, "{} duration: {}\n", prefix, extract<ktx_uint32_t>(0));
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, unsigned int>((* & std::forward<const char (&)[20]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, unsigned int>((* & std::forward<const char (&)[20]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, unsigned int>*)this)->fmt::v10::basic_format_string<char, const char*&, unsigned int>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[21]; Args = {const char*&, unsigned int}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1999:24: required from here
1999 | out(0, "{} timescale: {}\n", prefix, extract<ktx_uint32_t>(4));
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, unsigned int>((* & std::forward<const char (&)[21]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, unsigned int>((* & std::forward<const char (&)[21]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, unsigned int>*)this)->fmt::v10::basic_format_string<char, const char*&, unsigned int>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[20]; Args = {const char*&, unsigned int, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:2010:24: required from here
2010 | out(indent + 1, "\"timescale\":{}{},{}", space, extract<ktx_uint32_t>(4), nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>((* & std::forward<const char (&)[20]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>((* & std::forward<const char (&)[20]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, unsigned int, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[21]; Args = {const char*&, const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:2036:24: required from here
2036 | out(0, "{} positiveX: {}\n", prefix, bitValue(0));
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const char*>((* & std::forward<const char (&)[21]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const char*>((* & std::forward<const char (&)[21]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const char*>*)this)->fmt::v10::basic_format_string<char, const char*&, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[20]; Args = {const char*&, const char*, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:2050:24: required from here
2050 | out(indent + 1, "\"positiveX\":{}{},{}", space, bitValue(0), nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const char*, const char*&>((* & std::forward<const char (&)[20]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const char*, const char*&>((* & std::forward<const char (&)[20]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const char*, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, const char*, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[49], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:2354:18: required from here
2354 | fatal(rc::INVALID_FILE, "Failed to create KTX2 texture from file \"{}\": {}", streams[i].str(), ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>((* & std::forward<const char (&)[49]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>((* & std::forward<const char (&)[49]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[52], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:2363:22: required from here
2363 | fatal(rc::INVALID_FILE, "Failed to transcode KTX2 texture from file \"{}\": {}", streams[i].str(), ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>((* & std::forward<const char (&)[52]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>((* & std::forward<const char (&)[52]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[65]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:2381:14: required from here
2381 | fatal(rc::INVALID_ARGUMENTS, "Comparison requires matching texture and texel block dimensions.");
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[65]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[65]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[85]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:2385:14: required from here
2385 | fatal(rc::INVALID_ARGUMENTS, "Comparison requires matching texture formats (BasisLZ is treated as R8G8B8A8_UNORM).");
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[85]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[85]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[9]; Args = {const std::basic_string_view<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:568:28: required from 'void ktx::PrintDiff::operator<<(const ktx::DiffBase<T>&) [with T = std::array<unsigned char, 12>]'
568 | printIndent(0, "-{}: {}\n", diff.textHeader, diff.value(0, outputFormat));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1461:86: required from here
1461 | diff << DiffIdentifier("identifier", "/header/identifier", headers[0], headers[1]);
| ^
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[9]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[9]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[11]; Args = {const std::basic_string_view<char, std::char_traits<char> >&, const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:573:24: required from 'void ktx::PrintDiff::operator<<(const ktx::DiffBase<T>&) [with T = std::array<unsigned char, 12>]'
573 | printIndent(2, "\"{}\":{}[{}", diff.jsonPath, space, nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1461:86: required from here
1461 | diff << DiffIdentifier("identifier", "/header/identifier", headers[0], headers[1]);
| ^
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, const char* const&, const char* const&>((* & std::forward<const char (&)[11]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, const char* const&, const char* const&>((* & std::forward<const char (&)[11]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const std::basic_string_view<char, std::char_traits<char> >&, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[6]; Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:575:28: required from 'void ktx::PrintDiff::operator<<(const ktx::DiffBase<T>&) [with T = std::array<unsigned char, 12>]'
575 | printIndent(3, "{},{}", diff.value(0, outputFormat), nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1461:86: required from here
1461 | diff << DiffIdentifier("identifier", "/header/identifier", headers[0], headers[1]);
| ^
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>((* & std::forward<const char (&)[6]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>((* & std::forward<const char (&)[6]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[8]; Args = {const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:577:28: required from 'void ktx::PrintDiff::operator<<(const ktx::DiffBase<T>&) [with T = std::array<unsigned char, 12>]'
577 | printIndent(3, "null,{}", nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1461:86: required from here
1461 | diff << DiffIdentifier("identifier", "/header/identifier", headers[0], headers[1]);
| ^
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[8]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[8]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[5]; Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:579:28: required from 'void ktx::PrintDiff::operator<<(const ktx::DiffBase<T>&) [with T = std::array<unsigned char, 12>]'
579 | printIndent(3, "{}{}", diff.value(1, outputFormat), nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1461:86: required from here
1461 | diff << DiffIdentifier("identifier", "/header/identifier", headers[0], headers[1]);
| ^
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>((* & std::forward<const char (&)[5]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>((* & std::forward<const char (&)[5]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[7]; Args = {const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:581:28: required from 'void ktx::PrintDiff::operator<<(const ktx::DiffBase<T>&) [with T = std::array<unsigned char, 12>]'
581 | printIndent(3, "null{}", nl);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:1461:86: required from here
1461 | diff << DiffIdentifier("identifier", "/header/identifier", headers[0], headers[1]);
| ^
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[7]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[7]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp: In instantiation of 'std::string ktx::DiffHexFixedWidth<T>::value(std::size_t, ktx::OutputFormat) const [with T = unsigned int; std::string = std::__cxx11::basic_string<char>; std::size_t = long unsigned int]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:179:25: required from here
179 | virtual std::string value(std::size_t index, OutputFormat format) const override {
| ^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:181:43: error: call to consteval function 'fmt::v10::basic_format_string<char, const unsigned int&>(fmt::v10::format<long unsigned int>(fmt::v10::basic_format_string<char, long unsigned int>("0x{{:0{}x}}"), (4 << 1)))' is not a constant expression
181 | return fmt::format(fmt::format("0x{{:0{}x}}", sizeof(T) << 1), DiffBase<T>::rawValue(index));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_compare.cpp:181:43: error: call to non-'constexpr' function 'std::string fmt::v10::format(format_string<T ...>, T&& ...) [with T = {long unsigned int}; std::string = std::__cxx11::basic_string<char>; format_string<T ...> = basic_format_string<char, long unsigned int>]'
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/format.h:49,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/ostream.h:18,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:10:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2797:31: note: 'std::string fmt::v10::format(format_string<T ...>, T&& ...) [with T = {long unsigned int}; std::string = std::__cxx11::basic_string<char>; format_string<T ...> = basic_format_string<char, long unsigned int>]' declared here
2797 | FMT_NODISCARD FMT_INLINE auto format(format_string<T...> fmt, T&&... args)
| ^~~~~~
[125/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_help.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_help.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_help.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_help.cpp
FAILED: [code=1] tools/ktx/CMakeFiles/ktxtools.dir/command_help.cpp.o
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_help.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_help.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_help.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_help.cpp
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_help.cpp:5:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[26], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:233:31: required from here
233 | report.fatal_usage("Unsupported format: \"{}\".", formatStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/string:45,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:9:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[30]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:251:31: required from here
251 | report.fatal_usage("Too many filenames specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[70]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:254:31: required from here
254 | report.fatal_usage("Missing input file. Either <input-file> or --stdin must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[78]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:256:31: required from here
256 | report.fatal_usage("Conflicting options: Only one can be specified from <input-file> and --stdin.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[73]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:289:31: required from here
289 | report.fatal_usage("Missing output file. Either <output-file> or --stdout must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[80]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:291:31: required from here
291 | report.fatal_usage("Conflicting options: Only one can be specified from <output-file> and --stdout.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[42]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:330:31: required from here
330 | report.fatal_usage("Input and output files must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[27], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:332:31: required from here
332 | report.fatal_usage("{} file must be specified.", args.count("stdout") == 0 ? "Output" : "Input");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[59]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:339:31: required from here
339 | report.fatal_usage("'-' or --stdin as input file was specified more than once.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[33], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_help.cpp:57:35: required from here
57 | report.fatal_usage("Invalid command specified: \"{}\".", *command);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[33]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[33]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
[126/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_encode.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_encode.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_encode.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp
FAILED: [code=1] tools/ktx/CMakeFiles/ktxtools.dir/command_encode.cpp.o
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_encode.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_encode.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_encode.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:5:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[26], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:233:31: required from here
233 | report.fatal_usage("Unsupported format: \"{}\".", formatStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/string:45,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:9:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[30]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:251:31: required from here
251 | report.fatal_usage("Too many filenames specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[70]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:254:31: required from here
254 | report.fatal_usage("Missing input file. Either <input-file> or --stdin must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[78]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:256:31: required from here
256 | report.fatal_usage("Conflicting options: Only one can be specified from <input-file> and --stdin.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[73]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:289:31: required from here
289 | report.fatal_usage("Missing output file. Either <output-file> or --stdout must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[80]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:291:31: required from here
291 | report.fatal_usage("Conflicting options: Only one can be specified from <output-file> and --stdout.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[42]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:330:31: required from here
330 | report.fatal_usage("Input and output files must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[27], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:332:31: required from here
332 | report.fatal_usage("{} file must be specified.", args.count("stdout") == 0 ? "Output" : "Input");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[59]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:339:31: required from here
339 | report.fatal_usage("'-' or --stdin as input file was specified more than once.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[27], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_astc.h:122:35: required from here
122 | report.fatal_usage("Invalid astc-quality: \"{}\"", qualityLevelStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[27]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[27]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[64], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/metrics_utils.h:121:25: required from here
121 | report.fatal(rc::KTX_FAILURE, "Failed to transcode KTX2 texture to calculate error metrics: {}", ktxErrorString(ec));
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[64]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[64]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[68], unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/deflate_utils.h:69:35: required from here
69 | report.fatal_usage("Invalid zstd level: \"{}\". Value must be between 1 and 22 inclusive.", zstd.value());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[68]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[68]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int&>*)this)->fmt::v10::basic_format_string<char, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[67], unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/deflate_utils.h:74:35: required from here
74 | report.fatal_usage("Invalid zlib level: \"{}\". Value must be between 1 and 9 inclusive.", zlib.value());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[67]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[67]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int&>*)this)->fmt::v10::basic_format_string<char, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[68]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/deflate_utils.h:77:31: required from here
77 | report.fatal_usage("Conflicting options: zstd and zlib cannot be used at the same time.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[68]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[68]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[51]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:161:27: required from here
161 | report.fatal_usage("Format and codec can't be both specified together.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[51]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[51]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[54], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:167:31: required from here
167 | report.fatal_usage("The requested format is invalid or unsupported: \"{}\".", formatStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[54]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[54]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[48]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:172:31: required from here
172 | report.fatal_usage("Optional option 'format' is not an ASTC format.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[48]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[48]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[41]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:188:20: required from here
188 | fatal_usage("Either codec or format must be specified");
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[41]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[41]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[54]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:192:24: required from here
192 | fatal_usage("Cannot encode to BasisLZ and supercompress with Zstd.");
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[54]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[54]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[34], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:219:14: required from here
219 | fatal(rc::INVALID_FILE, "Failed to create KTX2 texture: {}", ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[34]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[34]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[50], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:222:14: required from here
222 | fatal(rc::INVALID_FILE, "Cannot encode KTX2 file with {} supercompression.",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
223 | toString(ktxSupercmpScheme(texture->supercompressionScheme)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[50]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[50]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[73], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:227:20: required from here
227 | fatal_usage("Encoding from ASTC format {} to another ASTC format {} is not supported.", toString(VkFormat(texture->vkFormat)), toString(options.vkFormat));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[73]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[73]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[86], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:241:20: required from here
241 | fatal_usage("Only R8, RG8, RGB8, or RGBA8 UNORM and SRGB formats can be encoded, "
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
242 | "but format is {}.", toString(VkFormat(texture->vkFormat)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[86]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[86]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[81], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:258:14: required from here
258 | fatal(rc::INVALID_FILE,
| ~~~~~^~~~~~~~~~~~~~~~~~
259 | "--normal-mode specified but the input file uses non-linear transfer function {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
260 | toString(tf));
| ~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[81]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[81]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[50], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:269:17: required from here
269 | fatal(rc::IO_FAILURE, "Failed to encode KTX2 file to ASTC. KTX Error: {}", ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[50]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[50]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[58], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:273:17: required from here
273 | fatal(rc::IO_FAILURE, "Failed to encode KTX2 file with codec \"{}\". KTX Error: {}", options.codecName, ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>((* & std::forward<const char (&)[58]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>((* & std::forward<const char (&)[58]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[37], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:281:18: required from here
281 | fatal(rc::IO_FAILURE, "Zstd deflation failed. KTX Error: {}", ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[37]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[37]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[28], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:371:31: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with bool ENCODE_CMD = true]'
371 | report.fatal_usage("Invalid encode codec: \"{}\".", args[codec_option].as<std::string>());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:353:38: required from 'void ktx::Combine<Args>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with Args = {ktx::CommandEncode::OptionsEncode, ktx::OptionsEncodeASTC, ktx::OptionsEncodeBasis<true>, ktx::OptionsEncodeCommon, ktx::OptionsMetrics, ktx::OptionsDeflate, ktx::OptionsSingleInSingleOut, ktx::OptionsGeneric}]'
353 | (dummy = ... = (Args::process(opts, args, report), 0));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:182:20: required from here
182 | options.process(opts, args, *this);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[28]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[28]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[79], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:321:25: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::validateBasisLZArg(ktx::Reporter&, const char*) [with bool ENCODE_CMD = true]'
321 | report.fatal(rc::INVALID_ARGUMENTS,
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
322 | "Invalid use of argument --{} that only applies when the used codec is BasisLZ.", name);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:382:13: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with bool ENCODE_CMD = true]'
382 | validateBasisLZArg(report, kCLevel);
| ^~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:353:38: required from 'void ktx::Combine<Args>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with Args = {ktx::CommandEncode::OptionsEncode, ktx::OptionsEncodeASTC, ktx::OptionsEncodeBasis<true>, ktx::OptionsEncodeCommon, ktx::OptionsMetrics, ktx::OptionsDeflate, ktx::OptionsSingleInSingleOut, ktx::OptionsGeneric}]'
353 | (dummy = ... = (Args::process(opts, args, report), 0));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:182:20: required from here
182 | options.process(opts, args, *this);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[79]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[79]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[60], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:328:25: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::validateBasisLZEndpointRDOArg(ktx::Reporter&, const char*) [with bool ENCODE_CMD = true]'
328 | report.fatal(rc::INVALID_ARGUMENTS,
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
329 | "Invalid use of argument --{} when endpoint RDO is disabled.", name);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:404:13: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with bool ENCODE_CMD = true]'
404 | validateBasisLZEndpointRDOArg(report, kMaxEndpoints);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:353:38: required from 'void ktx::Combine<Args>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with Args = {ktx::CommandEncode::OptionsEncode, ktx::OptionsEncodeASTC, ktx::OptionsEncodeBasis<true>, ktx::OptionsEncodeCommon, ktx::OptionsMetrics, ktx::OptionsDeflate, ktx::OptionsSingleInSingleOut, ktx::OptionsGeneric}]'
353 | (dummy = ... = (Args::process(opts, args, report), 0));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:182:20: required from here
182 | options.process(opts, args, *this);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[60]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[60]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[77], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:341:25: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::validateUASTCArg(ktx::Reporter&, const char*) [with bool ENCODE_CMD = true]'
341 | report.fatal(rc::INVALID_ARGUMENTS,
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
342 | "Invalid use of argument --{} that only applies when the used codec is UASTC.", name);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:424:13: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with bool ENCODE_CMD = true]'
424 | validateUASTCArg(report, kUastcQuality);
| ^~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:353:38: required from 'void ktx::Combine<Args>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with Args = {ktx::CommandEncode::OptionsEncode, ktx::OptionsEncodeASTC, ktx::OptionsEncodeBasis<true>, ktx::OptionsEncodeCommon, ktx::OptionsMetrics, ktx::OptionsDeflate, ktx::OptionsSingleInSingleOut, ktx::OptionsGeneric}]'
353 | (dummy = ... = (Args::process(opts, args, report), 0));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_encode.cpp:182:20: required from here
182 | options.process(opts, args, *this);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[77]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[77]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
[127/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_extract.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_extract.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_extract.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp
FAILED: [code=1] tools/ktx/CMakeFiles/ktxtools.dir/command_extract.cpp.o
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_extract.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_extract.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_extract.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:5:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[26], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:233:31: required from here
233 | report.fatal_usage("Unsupported format: \"{}\".", formatStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/string:45,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:9:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[30]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:251:31: required from here
251 | report.fatal_usage("Too many filenames specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[70]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:254:31: required from here
254 | report.fatal_usage("Missing input file. Either <input-file> or --stdin must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[78]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:256:31: required from here
256 | report.fatal_usage("Conflicting options: Only one can be specified from <input-file> and --stdin.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[73]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:289:31: required from here
289 | report.fatal_usage("Missing output file. Either <output-file> or --stdout must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[80]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:291:31: required from here
291 | report.fatal_usage("Conflicting options: Only one can be specified from <output-file> and --stdout.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[42]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:330:31: required from here
330 | report.fatal_usage("Input and output files must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[27], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:332:31: required from here
332 | report.fatal_usage("{} file must be specified.", args.count("stdout") == 0 ? "Output" : "Input");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[59]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:339:31: required from here
339 | report.fatal_usage("'-' or --stdin as input file was specified more than once.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[43], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/format_descriptor.h:60:21: required from here
60 | report.fatal(rc::DFD_FAILURE, "Failed to create format descriptor for: {}", toString(vkFormat));
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[43]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[43]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[39]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:220:27: required from here
220 | report.fatal_usage("Missing output file or directory path.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[39]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[39]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[69], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:230:31: required from here
230 | report.fatal_usage("Invalid {} value \"{}\". The value must be a either a number or \"all\".", name, str);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[69]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[69]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[32], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:232:31: required from here
232 | report.fatal_usage("Out of range {} value \"{}\": {}.", name, str, e.what());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>((* & std::forward<const char (&)[32]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>((* & std::forward<const char (&)[32]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[56]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:246:31: required from here
246 | report.fatal_usage("Conflicting options: --level cannot be used with --all.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[56]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[56]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[55]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:250:31: required from here
250 | report.fatal_usage("Conflicting options: --face cannot be used with --all.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[55]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[55]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[57]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:261:27: required from here
261 | report.fatal_usage("stdout cannot be used with multi-output '--all' extract.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[57]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[57]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[63]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:263:27: required from here
263 | report.fatal_usage("stdout cannot be used with multi-output '--level all' extract.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[63]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[63]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[62]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:267:27: required from here
267 | report.fatal_usage("stdout cannot be used with multi-output '--face all' extract.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[62]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[62]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[54]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:275:31: required from here
275 | report.fatal_usage("Conflicting options: --all cannot be used with --uri.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[54]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[54]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[33], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:286:31: required from here
286 | report.fatal_usage("Failed to parse Fragment URI: {}", e.what());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[33]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[33]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[119], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:317:24: required from here
317 | fatal_usage("Transcode to \"{}\" for non-raw extract is not supported. "
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
318 | "For PNG/EXR output only r8, rg8, rgb8 and rgba8 are supported.", options.transcodeTargetName);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[119]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[119]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[34], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:330:14: required from here
330 | fatal(rc::INVALID_FILE, "Failed to create KTX2 texture: {}", ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[34]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[34]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[74], ktx::SelectorRange&, unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:334:14: required from here
334 | fatal(rc::INVALID_FILE, "Requested level index {} is missing. The input file only has {} level(s).",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
335 | options.fragmentURI.mip, texture->numLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, ktx::SelectorRange&, unsigned int&>((* & std::forward<const char (&)[74]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, ktx::SelectorRange&, unsigned int&>((* & std::forward<const char (&)[74]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, ktx::SelectorRange&, unsigned int&>*)this)->fmt::v10::basic_format_string<char, ktx::SelectorRange&, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[47]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:339:18: required from here
339 | fatal(rc::INVALID_FILE, "Requested all layers from a non-array texture.");
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[47]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[47]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[51], ktx::SelectorRange&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:341:18: required from here
341 | fatal(rc::INVALID_FILE, "Requested layer index {} from a non-array texture.", options.fragmentURI.stratal);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, ktx::SelectorRange&>((* & std::forward<const char (&)[51]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, ktx::SelectorRange&>((* & std::forward<const char (&)[51]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, ktx::SelectorRange&>*)this)->fmt::v10::basic_format_string<char, ktx::SelectorRange&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[48]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:350:18: required from here
350 | fatal(rc::INVALID_FILE, "Requested all faces from a non-cubemap texture.");
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[48]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[48]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[52], ktx::SelectorRange&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:352:18: required from here
352 | fatal(rc::INVALID_FILE, "Requested face index {} from a non-cubemap texture.", options.fragmentURI.facial);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, ktx::SelectorRange&>((* & std::forward<const char (&)[52]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, ktx::SelectorRange&>((* & std::forward<const char (&)[52]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, ktx::SelectorRange&>*)this)->fmt::v10::basic_format_string<char, ktx::SelectorRange&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[72], ktx::SelectorRange&, unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:356:14: required from here
356 | fatal(rc::INVALID_FILE, "Requested face index {} is missing. The input file only has {} face(s).",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
357 | options.fragmentURI.facial, texture->numFaces);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, ktx::SelectorRange&, unsigned int&>((* & std::forward<const char (&)[72]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, ktx::SelectorRange&, unsigned int&>((* & std::forward<const char (&)[72]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, ktx::SelectorRange&, unsigned int&>*)this)->fmt::v10::basic_format_string<char, ktx::SelectorRange&, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[50]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:361:18: required from here
361 | fatal(rc::INVALID_FILE, "Requested all depth slices from a non-3D texture.");
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[50]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[50]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[54], ktx::SelectorRange&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:363:18: required from here
363 | fatal(rc::INVALID_FILE, "Requested depth slice index {} from a non-3D texture.", options.depth);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, ktx::SelectorRange&>((* & std::forward<const char (&)[54]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, ktx::SelectorRange&>((* & std::forward<const char (&)[54]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, ktx::SelectorRange&>*)this)->fmt::v10::basic_format_string<char, ktx::SelectorRange&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[63], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:371:14: required from here
371 | fatal(rc::INVALID_FILE, "Requested transcode \"{}\" but the KTX file is not transcodable.",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
372 | options.transcodeTargetName);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[63]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[63]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[98], ktx::SelectorRange&, const unsigned int&, const unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:381:14: required from here
381 | fatal(rc::INVALID_FILE, "Requested depth slice index {} is missing. The input file only has {} depth slice(s) in level {}.",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
382 | options.depth, lastExportedLevelDepthCount, lastExportedLevel);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, ktx::SelectorRange&, const unsigned int&, const unsigned int&>((* & std::forward<const char (&)[98]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, ktx::SelectorRange&, const unsigned int&, const unsigned int&>((* & std::forward<const char (&)[98]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, ktx::SelectorRange&, const unsigned int&, const unsigned int&>*)this)->fmt::v10::basic_format_string<char, ktx::SelectorRange&, const unsigned int&, const unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[74], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:394:28: required from here
394 | fatal_usage("Specified output path must be a directory for multi-output extract: \"{}\".", options.outputPath);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[74]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[74]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[48], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:401:14: required from here
401 | fatal(rc::IO_FAILURE, "Failed to create the output directory \"{}\": {}.", e.path1().generic_string(), e.what());
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*>((* & std::forward<const char (&)[48]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*>((* & std::forward<const char (&)[48]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[35], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:483:14: required from here
483 | fatal(rc::INVALID_FILE, "Failed to iterate KTX2 texture: {}", ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[35]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[35]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[36], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:513:14: required from here
513 | fatal(rc::RUNTIME_ERROR, "ASTC Codec context alloc failed: {}", astcenc_get_error_string(ec));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[36]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[36]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[33], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:527:14: required from here
527 | fatal(rc::RUNTIME_ERROR, "ASTC Codec decompress failed: {}", astcenc_get_error_string(ec));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[33]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[33]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[44], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:749:14: required from here
749 | fatal(rc::NOT_SUPPORTED, "PNG saving is not supported for {} with {}.", toString(format.model()), toString(vkFormat));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[44]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[44]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[72], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:774:18: required from here
774 | fatal(rc::NOT_SUPPORTED, "PNG saving encountered unexpected depth channel in non-depth format {}.", toString(vkFormat));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[72]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[72]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[26], unsigned int&, const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:854:14: required from here
854 | fatal(rc::INVALID_FILE, "PNG Encoder error {}: {}.", error, lodepng_error_text(error));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int&, const char*>((* & std::forward<const char (&)[26]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int&, const char*>((* & std::forward<const char (&)[26]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int&, const char*>*)this)->fmt::v10::basic_format_string<char, unsigned int&, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[42], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:909:14: required from here
909 | fatal(rc::NOT_SUPPORTED, "EXR saving is unsupported for {} with {}.", toString(format.model()), toString(vkFormat));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[42]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[42]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[23], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:1055:14: required from here
1055 | fatal(rc::IO_FAILURE, "EXR Encoder error: {}.", exr.err);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[23]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[23]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[54], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:1249:14: required from here
1249 | fatal(rc::INVALID_FILE, "Requested format conversion from {} is not supported.", toString(vkFormat));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[54]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[54]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[37], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/transcode_utils.h:92:21: required from 'ktx::KTXTexture2 ktx::transcode(KTXTexture2&&, OptionsTranscodeTarget<TRANSCODE_CMD>&, Reporter&) [with bool TRANSCODE_CMD = false]'
92 | report.fatal(rc::INVALID_FILE, "Failed to transcode KTX2 texture: {}", ktxErrorString(ret));
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:368:28: required from here
368 | texture = transcode(std::move(texture), options, *this);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[37]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[37]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[32], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/transcode_utils.h:65:35: required from 'void ktx::OptionsTranscodeTarget<TRANSCODE_CMD>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with bool TRANSCODE_CMD = false]'
65 | report.fatal_usage("Invalid transcode target: \"{}\".", argStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:353:38: required from 'void ktx::Combine<Args>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with Args = {ktx::CommandExtract::OptionsExtract, ktx::OptionsTranscodeTarget<false>, ktx::OptionsSingleIn, ktx::OptionsGeneric}]'
353 | (dummy = ... = (Args::process(opts, args, report), 0));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_extract.cpp:313:20: required from here
313 | options.process(opts, args, *this);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[32]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[32]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
[128/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_create.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_create.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_create.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp
FAILED: [code=1] tools/ktx/CMakeFiles/ktxtools.dir/command_create.cpp.o
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_create.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_create.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_create.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:5:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[26], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:233:31: required from here
233 | report.fatal_usage("Unsupported format: \"{}\".", formatStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/string:45,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:9:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[30]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:251:31: required from here
251 | report.fatal_usage("Too many filenames specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[70]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:254:31: required from here
254 | report.fatal_usage("Missing input file. Either <input-file> or --stdin must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[78]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:256:31: required from here
256 | report.fatal_usage("Conflicting options: Only one can be specified from <input-file> and --stdin.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[73]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:289:31: required from here
289 | report.fatal_usage("Missing output file. Either <output-file> or --stdout must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[80]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:291:31: required from here
291 | report.fatal_usage("Conflicting options: Only one can be specified from <output-file> and --stdout.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[42]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:330:31: required from here
330 | report.fatal_usage("Input and output files must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[27], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:332:31: required from here
332 | report.fatal_usage("{} file must be specified.", args.count("stdout") == 0 ? "Output" : "Input");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[59]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:339:31: required from here
339 | report.fatal_usage("'-' or --stdin as input file was specified more than once.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[64], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/metrics_utils.h:121:25: required from here
121 | report.fatal(rc::KTX_FAILURE, "Failed to transcode KTX2 texture to calculate error metrics: {}", ktxErrorString(ec));
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[64]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[64]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[68], unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/deflate_utils.h:69:35: required from here
69 | report.fatal_usage("Invalid zstd level: \"{}\". Value must be between 1 and 22 inclusive.", zstd.value());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[68]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[68]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int&>*)this)->fmt::v10::basic_format_string<char, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[67], unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/deflate_utils.h:74:35: required from here
74 | report.fatal_usage("Invalid zlib level: \"{}\". Value must be between 1 and 9 inclusive.", zlib.value());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[67]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[67]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int&>*)this)->fmt::v10::basic_format_string<char, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[68]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/deflate_utils.h:77:31: required from here
77 | report.fatal_usage("Conflicting options: zstd and zlib cannot be used at the same time.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[68]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[68]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[27], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_astc.h:122:35: required from here
122 | report.fatal_usage("Invalid astc-quality: \"{}\"", qualityLevelStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[27]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[27]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[43], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/format_descriptor.h:60:21: required from here
60 | report.fatal(rc::DFD_FAILURE, "Failed to create format descriptor for: {}", toString(vkFormat));
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[43]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[43]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[85], const char*&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:322:27: required from here
322 | report.warning("Option --{} is deprecated and will be removed in the next release. Use --{} instead.",
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
323 | deprArgName, argName);
| ~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[85]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[85]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[66], const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:338:35: required from here
338 | report.fatal_usage("Invalid or unsupported transfer specified as --{} argument: \"{}\".",
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
339 | argNameToUse, args[argNameToUse].as<std::string>());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[66]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[66]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[67], const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:376:35: required from here
376 | report.fatal_usage("Invalid or unsupported primaries specified as --{} argument: \"{}\".", argName,
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
377 | args[argName].as<std::string>());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[67]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[67]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[64], const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:409:35: required from here
409 | report.fatal_usage("Invalid or unsupported origin specified as --{} argument: \"{}\".", argName, originStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[64]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[64]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[62], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:412:35: required from here
412 | report.fatal_usage("Z origin must be specified in --{} argument for a 3D texture.", argName);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[62]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[62]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[46], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:423:39: required from here
423 | report.fatal_usage("--{} argument must be top-left for a cubemap.", argName);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[46]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[46]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[82], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:476:35: required from here
476 | report.fatal_usage("Invalid or unsupported mipmap filter specified as --mipmap-filter argument: \"{}\".", *mipmapFilter);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[82]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[82]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[83], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:492:35: required from here
492 | report.fatal_usage("Invalid or unsupported mipmap wrap mode specified as --mipmap-wrap argument: \"{}\".", wrapStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[83]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[83]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[38], const char*&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:499:35: required from here
499 | report.fatal_usage("Option --{} cannot be used with --{}.", kNormalize, kRaw);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[38]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[38]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:507:35: required from here
507 | report.fatal_usage(errorFmt, *swizzle);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char* const&>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/format.h:49,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/ostream.h:18,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:10,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:12:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char* const&>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: error: 's' is not a constant expression
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[54], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:536:35: required from here
536 | report.fatal_usage("The requested format is invalid or unsupported: \"{}\".", formatStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[54]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[54]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[37]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:540:31: required from here
540 | report.fatal_usage("Required option 'format' is missing.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[37]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[37]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[33], const char*&, const char*&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:545:35: required from here
545 | report.fatal_usage("{} cannot be used with {} or {}.", kScale, kWidth, kHeight);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const char*&, const char*&>((* & std::forward<const char (&)[33]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const char*&, const char*&>((* & std::forward<const char (&)[33]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const char*&, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, const char*&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[52], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:675:31: required from here
675 | report.fatal_usage("The requested {} format is prohibited in KTX files.", toString(vkFormat));
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[52]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[52]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[43], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:678:31: required from here
678 | report.fatal_usage("Unsupported format for non-raw create: {}.", toString(vkFormat));
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[43]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[43]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[71]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:684:35: required from here
684 | report.fatal_usage("Option --height is missing but is required for --raw texture creation.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[71]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[71]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[25]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:688:31: required from here
688 | report.fatal_usage("The --width cannot be 0.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[25]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[25]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[26]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:690:31: required from here
690 | report.fatal_usage("The --height cannot be 0.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[26]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[26]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[102], unsigned int, unsigned int, unsigned int, unsigned int, const unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:703:35: required from here
703 | report.fatal_usage("Requested {} levels is too many. With base size {}x{}x{} the texture can only have {} levels at most.",
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
704 | levels.value_or(1), width.value_or(1), height.value_or(1), depth.value_or(1), maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int, unsigned int, unsigned int, unsigned int, const unsigned int&>((* & std::forward<const char (&)[102]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int, unsigned int, unsigned int, unsigned int, const unsigned int&>((* & std::forward<const char (&)[102]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int, unsigned int, unsigned int, unsigned int, const unsigned int&>*)this)->fmt::v10::basic_format_string<char, unsigned int, unsigned int, unsigned int, unsigned int, const unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[76], unsigned int&, unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:711:31: required from here
711 | report.fatal_usage("3D array texture creation is unsupported. --layers is {} and --depth is {}.",
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
712 | *layers, *depth);
| ~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int&, unsigned int&>((* & std::forward<const char (&)[76]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int&, unsigned int&>((* & std::forward<const char (&)[76]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int&, unsigned int&>*)this)->fmt::v10::basic_format_string<char, unsigned int&, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[49], unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:715:31: required from here
715 | report.fatal_usage("Cubemaps cannot have 3D textures. --depth is {}.", *depth);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[49]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[49]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int&>*)this)->fmt::v10::basic_format_string<char, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[85]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:721:31: required from here
721 | report.fatal_usage("Conflicting options: --generate-mipmap and --runtime-mipmap cannot be used together.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[85]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[85]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[66]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:724:31: required from here
724 | report.fatal_usage("Conflicting options: --generate-mipmap cannot be used with --raw.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[66]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[66]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[99]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:727:31: required from here
727 | report.fatal_usage("Mipmap generation for 3D textures is not supported: --generate-mipmap cannot be used with --depth.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[99]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[99]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[43], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:740:39: required from here
740 | report.fatal_usage("Unsupported transfer function {} for --{}.",
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
741 | args[kConvertTf].as<std::string>(), kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>((* & std::forward<const char (&)[43]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>((* & std::forward<const char (&)[43]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[55], const char*&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:749:31: required from here
749 | report.fatal_usage("Option --{} cannot be used when --{} is set to 'none'.",
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
750 | kConvertPrimaries, kAssignPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[55]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[55]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[36], const char*&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:754:35: required from here
754 | report.fatal_usage("Option {} cannot be used with --{}.", kConvertTf, kRaw);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[36]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[36]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char* const&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:772:39: required from here
772 | report.fatal_usage(error_message, args[kAssignTf].count() ? args[kAssignTf].as<std::string>() : args[kAssignOetf].as<std::string>(),
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
773 | kAssignTf, args[kFormat].as<std::string>());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char* const&>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char* const&>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: error: 's' is not a constant expression
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[50], const char*&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:797:35: required from here
797 | report.fatal_usage("The options --{} and --{} are mutually exclusive.",
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
798 | kFailOnColorConversions, kWarnOnColorConversions);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[50]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&, const char*&>((* & std::forward<const char (&)[50]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[97], const char*, unsigned int&, const char*, unsigned int&, unsigned int&, unsigned int&, long unsigned int, unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1283:20: required from here
1283 | fatal_usage("Too {} input images for {} level{}, {} layer, {} face and {} depth. Provided {} but expected {}.",
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1284 | options.inputFilepaths.size() > expectedInputImages ? "many" : "few",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1285 | numLevels,
| ~~~~~~~~~~
1286 | options.mipmapGenerate ? " (mips generated)" : "",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1287 | numLayers,
| ~~~~~~~~~~
1288 | numFaces,
| ~~~~~~~~~
1289 | baseDepth,
| ~~~~~~~~~~
1290 | options.inputFilepaths.size(), expectedInputImages);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*, unsigned int&, const char*, unsigned int&, unsigned int&, unsigned int&, long unsigned int, unsigned int&>((* & std::forward<const char (&)[97]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*, unsigned int&, const char*, unsigned int&, unsigned int&, unsigned int&, long unsigned int, unsigned int&>((* & std::forward<const char (&)[97]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*, unsigned int&, const char*, unsigned int&, unsigned int&, unsigned int&, long unsigned int, unsigned int&>*)this)->fmt::v10::basic_format_string<char, const char*, unsigned int&, const char*, unsigned int&, unsigned int&, unsigned int&, long unsigned int, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[41], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1310:28: required from here
1310 | fatal_usage("--{} can only be used with ASTC formats.", astcOption);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[41]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[41]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[37], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1314:24: required from here
1314 | fatal_usage("--{} is not allowed with ASTC encode", OptionsEncodeCommon::kNoSse);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[37]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[37]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[54]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1319:24: required from here
1319 | fatal_usage("Cannot encode to BasisLZ and supercompress with Zstd.");
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[54]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[54]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[86], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1338:24: required from here
1338 | fatal_usage("Only R8, RG8, RGB8, or RGBA8 UNORM and SRGB formats can be encoded, "
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1339 | "but format is {}.", toString(VkFormat(options.vkFormat)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[86]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[86]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[37], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1431:18: required from here
1431 | fatal(rc::NOT_SUPPORTED, "{} is unsupported for ASTC encoding.", toString(options.vkFormat));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[37]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[37]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[78], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1437:20: required from here
1437 | fatal_usage("ASTC format {} cannot be used for 1 dimensional textures (indicated by --1d).",
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1438 | toString(options.vkFormat));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[78]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[78]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[30], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1471:14: required from here
1471 | fatal(rc::IO_FAILURE, "Failed to seek file \"{}\": {}.", filepath.generic_string(), errnoMessage());
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[30]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[30]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1487:72: required from here
1487 | const auto warningFn = [this](const std::string& w) { this->warning(w); };
| ~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const __cxx11::basic_string<char>&>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/string:58:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const __cxx11::basic_string<char>&>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view<std::char_traits<char>, std::allocator<char> >((* & s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:434:21: in 'constexpr' expansion of '(& s)->std::__cxx11::basic_string<char>::data()'
434 | : data_(s.data()), size_(s.size()) {}
| ~~~~~~^~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/basic_string.h:2911:23: in 'constexpr' expansion of '((const std::__cxx11::basic_string<char>*)this)->std::__cxx11::basic_string<char>::_M_data()'
2911 | { return _M_data(); }
| ~~~~~~~^~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/basic_string.h:238:16: error: '*(const std::__cxx11::basic_string<char>*)this' is not a constant expression
238 | { return _M_dataplus._M_p; }
| ^~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp: In instantiation of 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: error: call to consteval function '(& func)->ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>((*(const std::__cxx11::basic_string<char>*)(& inputFileIt.__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >::operator++(0).__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >::operator*())), levelIndex, layerIndex, faceIndex, depthSliceIndex)' is not a constant expression
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/string:51:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:38: in 'constexpr' expansion of 'inputFileIt.__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >::operator++(0)'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~^~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_iterator.h:1111:16: error: the value of 'inputFileIt' is not usable in a constant expression
1111 | { return __normal_iterator(_M_current++); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1449:10: note: 'inputFileIt' was not declared 'constexpr'
1449 | auto inputFileIt = options.inputFilepaths.begin();
| ^~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_iterator.h:1111:16: error: the value of 'inputFileIt' is not usable in a constant expression
1111 | { return __normal_iterator(_M_current++); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1449:10: note: 'inputFileIt' was not declared 'constexpr'
1449 | auto inputFileIt = options.inputFilepaths.begin();
| ^~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:42: error: the value of 'levelIndex' is not usable in a constant expression
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ^~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1451:19: note: 'uint32_t levelIndex' is not const
1451 | for (uint32_t levelIndex = 0; levelIndex < (options.mipmapGenerate ? 1 : numLevels); ++levelIndex) {
| ^~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:54: error: the value of 'layerIndex' is not usable in a constant expression
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ^~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1453:23: note: 'uint32_t layerIndex' is not const
1453 | for (uint32_t layerIndex = 0; layerIndex < numLayers; ++layerIndex) {
| ^~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:66: error: the value of 'faceIndex' is not usable in a constant expression
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ^~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1454:27: note: 'uint32_t faceIndex' is not const
1454 | for (uint32_t faceIndex = 0; faceIndex < numFaces; ++faceIndex) {
| ^~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:77: error: the value of 'depthSliceIndex' is not usable in a constant expression
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ^~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1455:31: note: 'uint32_t depthSliceIndex' is not const
1455 | for (uint32_t depthSliceIndex = 0; depthSliceIndex < numDepthSlices; ++depthSliceIndex) {
| ^~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[58], int, const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1860:14: required from here
1860 | fatal(rc::KTX_FAILURE, "Failed to encode KTX2 file with codec \"{}\". KTX Error: {}",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1861 | to_underlying(opts.codec), ktxErrorString(ret));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, int, const char*>((* & std::forward<const char (&)[58]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, int, const char*>((* & std::forward<const char (&)[58]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, int, const char*>*)this)->fmt::v10::basic_format_string<char, int, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[58], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1867:14: required from here
1867 | fatal(rc::KTX_FAILURE, "Failed to encode KTX2 file with codec ASTC. KTX Error: {}", ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[58]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[58]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[37], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1874:18: required from here
1874 | fatal(rc::KTX_FAILURE, "Zstd deflation failed. KTX Error: {}", ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[37]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[37]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[41], const unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1923:18: required from here
1923 | fatal(rc::INVALID_FILE, "Unsupported format with {}-bit channels.", requestBitLength);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const unsigned int&>((* & std::forward<const char (&)[41]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const unsigned int&>((* & std::forward<const char (&)[41]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const unsigned int&>*)this)->fmt::v10::basic_format_string<char, const unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[74], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const unsigned int&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2039:18: required from here
2039 | fatal(rc::INVALID_FILE, "{}: Not enough precision to convert {} bit input to {} bit output for {}.",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2040 | inputFile.filename(), inputBitDepth, bitDepth, toString(vkFormat));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const unsigned int&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[74]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const unsigned int&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[74]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const unsigned int&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const unsigned int&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[85], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const unsigned int&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2042:20: required from here
2042 | warning("{}: Possible loss of precision with converting {} bit input to {} bit output for {}.",
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2043 | inputFile.filename(), inputBitDepth, bitDepth, toString(vkFormat));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const unsigned int&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[85]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const unsigned int&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[85]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const unsigned int&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const unsigned int&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[97], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[6], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2056:18: required from here
2056 | fatal(rc::INVALID_FILE, "{}: Input file data type \"{}\" does not match the expected input data type of {} bit \"{}\" for {}.",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2057 | inputFile.filename(), toString(inputFile.formatType()), bitDepth, "UNORM", toString(vkFormat));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[6], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[97]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[6], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[97]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[6], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[6], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[97], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[7], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2072:18: required from here
2072 | fatal(rc::INVALID_FILE, "{}: Input file data type \"{}\" does not match the expected input data type of {} bit \"{}\" for {}.",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2073 | inputFile.filename(), toString(inputFile.formatType()), bitDepth, "SFLOAT", toString(vkFormat));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[7], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[97]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[7], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[97]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[7], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[7], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[97], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[5], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2088:18: required from here
2088 | fatal(rc::INVALID_FILE, "{}: Input file data type \"{}\" does not match the expected input data type of {} bit \"{}\" for {}.",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2089 | inputFile.filename(), toString(inputFile.formatType()), bitDepth, "UINT", toString(vkFormat));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[5], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[97]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[5], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[97]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[5], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*, unsigned int&, const char (&)[5], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[60], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2421:14: required from here
2421 | fatal(rc::INVALID_ARGUMENTS, "Requested format conversion is not yet implemented for: {}.", toString(options.vkFormat));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[60]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[60]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[46], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2460:14: required from here
2460 | fatal(rc::KTX_FAILURE, "Failed to create ktxTexture: libktx error: {}", ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[46]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[46]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[28], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2497:14: required from here
2497 | fatal(rc::RUNTIME_ERROR, "Image resampling failed: {}", e.what());
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[28]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[28]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[63], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2506:14: required from here
2506 | fatal(rc::NOT_SUPPORTED, "Mipmap generation for SINT or UINT format {} is not supported.",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2507 | toString(static_cast<VkFormat>(texture->vkFormat)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[63]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[63]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[29], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2522:18: required from here
2522 | fatal(rc::RUNTIME_ERROR, "Mipmap generation failed: {}", e.what());
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[29]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[29]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[90]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2549:20: required from here
2549 | warning("Input file is 16-bit but ASTC LDR option is specified. Expect quality loss in the output.");
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[90]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[90]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[54]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2552:20: required from here
2552 | warning("Input file is not 16-bit but HDR option is specified.");
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[54]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[54]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[65], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2615:20: required from here
2615 | warning("No color primaries in PNG input file \"{}\", defaulting to BT.709.", in.filename());
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[65]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[65]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[131], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2623:18: required from here
2623 | fatal(rc::INVALID_FILE, "Cannot convert primaries as no information about the color primaries "
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2624 | "is available in the input file \"{}\". Use --{} to specify one.", in.filename(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2625 | options.kAssignPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>((* & std::forward<const char (&)[131]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>((* & std::forward<const char (&)[131]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[92], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2658:22: required from here
2658 | fatal(rc::INVALID_FILE,
| ~~~~~^~~~~~~~~~~~~~~~~~
2659 | "Input file \"{}\" contains unsupported ICC profile \"{}\". Use --{} to specify a different one.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2660 | in.filename(), spec.format().iccProfileName(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2661 | options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>((* & std::forward<const char (&)[92]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>((* & std::forward<const char (&)[92]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[78], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2672:28: required from here
2672 | warning("Converting gamma 2.2f to sRGB. Use --{} srgb to force treating input as sRGB.",
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2673 | options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[78]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[78]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[79], unsigned int, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2689:32: required from here
2689 | warning("Ignoring reported gamma of 0.0f in {}-bit PNG input file \"{}\". Handling as {}.",
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2690 | spec.format().channelBitLength(), in.filename(), toString(srcColorSpaceInfo.usedTransferFunction));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[79]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[79]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, unsigned int, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[71], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2692:30: required from here
2692 | fatal(rc::INVALID_FILE,
| ~~~~~^~~~~~~~~~~~~~~~~~
2693 | "Input file \"{}\" has gamma 0.0f. Use --{} to specify transfer function.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2694 | options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[71]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[71]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[80], float, const char*&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2698:30: required from here
2698 | fatal(rc::INVALID_FILE, "Gamma {} not automatically supported by KTX. Specify handing with "
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2699 | "--{} or --{}.", spec.format().oeGamma(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2700 | options.kConvertTf, options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, float, const char*&, const char*&>((* & std::forward<const char (&)[80]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, float, const char*&, const char*&>((* & std::forward<const char (&)[80]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, float, const char*&, const char*&>*)this)->fmt::v10::basic_format_string<char, float, const char*&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[112], unsigned int, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2710:24: required from here
2710 | warning("No transfer function can be determined from {}-bit PNG input file \"{}\", defaulting to {}. Use --{} to override.",
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2711 | spec.format().channelBitLength(), in.filename(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2712 | toString(srcColorSpaceInfo.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2713 | options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&>((* & std::forward<const char (&)[112]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&>((* & std::forward<const char (&)[112]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&>*)this)->fmt::v10::basic_format_string<char, unsigned int, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[128], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2803:18: required from here
2803 | fatal(rc::INVALID_FILE, "Cannot convert texcoord origin as no information about the origin "
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2804 | "is available in the input file \"{}\". Use --{} to specify one.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2805 | in.filename(), OptionsCreate::kAssignTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>((* & std::forward<const char (&)[128]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>((* & std::forward<const char (&)[128]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[152], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2818:20: required from here
2818 | warning("Input image \"{}\" has different transfer function ({}) than the first image ({})"
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2819 | " but will be treated identically as specified by the --assign-tf option.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2820 | currentFile.filename(), toString(currentFormat.transfer()), toString(firstFormat.transfer()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[152]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[152]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[214], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2822:20: required from here
2822 | warning("Input image \"{}\" has different transfer function ({}) than the first image ({})"
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2823 | " and thus will go through different transfer function conversion to the target transfer"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2824 | " function specified by the --convert-tf option.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2825 | currentFile.filename(), toString(currentFormat.transfer()), toString(firstFormat.transfer()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[214]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[214]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[154], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2827:18: required from here
2827 | fatal(rc::INVALID_FILE, "Input image \"{}\" has different transfer function ({}) than the first image ({})."
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2828 | " Use --assign-tf or --convert-tf to specify handling and stop this error.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2829 | currentFile.filename(), toString(currentFormat.transfer()), toString(firstFormat.transfer()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[154]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[154]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[140], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2837:20: required from here
2837 | warning("Input image \"{}\" has different gamma ({}) than the first image ({})"
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2838 | " but will be treated identically as specified by the --assign-tf option.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2839 | currentFile.filename(), currentGamma, firstGamma);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[140]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[140]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[202], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2841:20: required from here
2841 | warning("Input image \"{}\" has different gamma ({}) than the first image ({})"
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2842 | " and thus will go through different transfer function conversion to the target transfer"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2843 | " function specified by the --convert-tf option.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2844 | currentFile.filename(), currentGamma, firstGamma);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[202]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[202]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[142], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2846:18: required from here
2846 | fatal(rc::INVALID_FILE, "Input image \"{}\" has different gamma ({}) than the first image ({})."
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2847 | " Use --assign-tf or --convert-tf to specify handling and stop this error.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2848 | currentFile.filename(), currentGamma, firstGamma);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[142]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[142]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[151], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2854:20: required from here
2854 | warning("Input image \"{}\" has different primaries ({}) than the first image ({})"
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2855 | " but will be treated identically as specified by the --assign-primaries option.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2856 | currentFile.filename(), toString(currentFormat.primaries()), toString(firstFormat.primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[151]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[151]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[197], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2858:20: required from here
2858 | warning("Input image \"{}\" has different primaries ({}) than the first image ({})"
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2859 | " and thus will go through different primaries conversion to the target primaries"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2860 | " specified by the --convert-primaries option.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2861 | currentFile.filename(), toString(currentFormat.primaries()), toString(firstFormat.primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[197]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[197]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[160], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2863:18: required from here
2863 | fatal(rc::INVALID_FILE, "Input image \"{}\" has different primaries ({}) than the first image ({})."
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2864 | " Use --assign-primaries or --convert-primaries to specify handling and stop this error.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2865 | currentFile.filename(), toString(currentFormat.primaries()), toString(firstFormat.primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[160]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[160]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[71], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2870:16: required from here
2870 | warning("Input image \"{}\" has a different component count than the first image.", currentFile.filename());
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[71]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[71]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[163], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2875:20: required from here
2875 | warning("Input image \"{}\" has different texcoord origin ({}) than the first image ({})"
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2876 | " but will be treated identically as specified by the --assign-texcoord-origin option.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2877 | currentFile.filename(), toString(currentFile.spec().origin()), toString(firstSpec.origin()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[163]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[163]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[203], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2879:20: required from here
2879 | warning("Input image \"{}\" has different texcoord origin ({}) than the first image ({})"
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2880 | " and thus will go through different origin conversion to the target origin"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2881 | " specified by the --convert-texcoord-origin option.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2882 | currentFile.filename(), toString(currentFile.spec().origin()), toString(firstSpec.origin()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[203]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[203]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[178], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:2884:18: required from here
2884 | fatal(rc::INVALID_FILE, "Input image \"{}\" has different texcoord origin ({}) than the first image ({})."
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2885 | " Use --assign-texcoord-origin or --convert-texcoord-origin to specify handling and stop this error.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2886 | currentFile.filename(), toString(currentFile.spec().origin()), toString(firstSpec.origin()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[178]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[178]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[76], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, unsigned int}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1515:26: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, unsigned int>((* & std::forward<const char (&)[76]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, unsigned int>((* & std::forward<const char (&)[76]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, unsigned int>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, unsigned int>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[93], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long unsigned int, unsigned int&, const long unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1534:22: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long unsigned int, unsigned int&, const long unsigned int&>((* & std::forward<const char (&)[93]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long unsigned int, unsigned int&, const long unsigned int&>((* & std::forward<const char (&)[93]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long unsigned int, unsigned int&, const long unsigned int&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long unsigned int, unsigned int&, const long unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[76], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1576:26: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int>((* & std::forward<const char (&)[76]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int>((* & std::forward<const char (&)[76]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char*&, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned int, unsigned int, unsigned int&, unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1595:32: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned int, unsigned int, unsigned int&, unsigned int&>((*(const char* const*)(& std::forward<const char*&>((* & args#0)))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned int, unsigned int, unsigned int&, unsigned int&>((*(const char* const*)(& std::forward<const char*&>((* & args#0)))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: error: 's' is not a constant expression
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, unsigned int, const unsigned int&, const unsigned int&, unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1625:22: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, unsigned int, const unsigned int&, const unsigned int&, unsigned int&>((* & std::forward<const char* const&>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, unsigned int, const unsigned int&, const unsigned int&, unsigned int&>((* & std::forward<const char* const&>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: error: 's' is not a constant expression
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1659:26: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((*(const std::__cxx11::basic_string<char>*)(& std::forward<__cxx11::basic_string<char>&>((* & args#0)))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((*(const std::__cxx11::basic_string<char>*)(& std::forward<__cxx11::basic_string<char>&>((* & args#0)))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view<std::char_traits<char>, std::allocator<char> >((* & s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:434:21: in 'constexpr' expansion of '(& s)->std::__cxx11::basic_string<char>::data()'
434 | : data_(s.data()), size_(s.size()) {}
| ~~~~~~^~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/basic_string.h:2911:23: in 'constexpr' expansion of '((const std::__cxx11::basic_string<char>*)this)->std::__cxx11::basic_string<char>::_M_data()'
2911 | { return _M_data(); }
| ~~~~~~~^~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/basic_string.h:238:16: error: '*(const std::__cxx11::basic_string<char>*)this' is not a constant expression
238 | { return _M_dataplus._M_p; }
| ^~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[156], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1698:38: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&>((* & std::forward<const char (&)[156]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&>((* & std::forward<const char (&)[156]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[184], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1714:30: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1714 | fatal(rc::INVALID_FILE,
| ~~~~~^~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[184]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[184]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[175], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1720:32: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[175]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[175]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[179], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1728:30: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1728 | fatal(rc::INVALID_FILE,
| ~~~~~^~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[179]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[179]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[170], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1734:32: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[170]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char (&)[170]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[153], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1751:30: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1751 | fatal(rc::INVALID_FILE,
| ~~~~~^~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&, const char*&>((* & std::forward<const char (&)[153]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&, const char*&>((* & std::forward<const char (&)[153]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&, const char*&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::warning(Args&& ...) [with Args = {const char (&)[139], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1758:32: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&, const char*&>((* & std::forward<const char (&)[139]>((* & args#0))))' is not a constant expression
100 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:100:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&, const char*&>((* & std::forward<const char (&)[139]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&, const char*&>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1777:30: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&>((* & std::forward<const char* const&>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*&>((* & std::forward<const char* const&>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: error: 's' is not a constant expression
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1782:30: required from 'ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)> [with auto:13 = std::__cxx11::basic_string<char>; uint32_t = unsigned int]'
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1457:25: required from 'void ktx::CommandCreate::foreachImage(const FormatDescriptor&, F&&) [with F = ktx::CommandCreate::executeCreate()::<lambda(const auto:13&, uint32_t, uint32_t, uint32_t, uint32_t)>]'
1457 | func(*inputFileIt++, levelIndex, layerIndex, faceIndex, depthSliceIndex);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1499:17: required from here
1499 | foreachImage(options.formatDesc, [&](
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
1500 | const auto& inputFilepath,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1501 | uint32_t levelIndex,
| ~~~~~~~~~~~~~~~~~~~~
1502 | uint32_t layerIndex,
| ~~~~~~~~~~~~~~~~~~~~
1503 | uint32_t faceIndex,
| ~~~~~~~~~~~~~~~~~~~
1504 | uint32_t depthSliceIndex) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1505 |
|
1506 | if (options.raw) {
| ~~~~~~~~~~~~~~~~~~
1507 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1508 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1509 | options.width.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1510 | options.height.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1511 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1512 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1513 |
|
1514 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1516 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1517 |
|
1518 | if (options.assignTF.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1519 | target.format().setTransfer(options.assignTF.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1520 |
|
1521 | if (options.assignPrimaries.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1522 | target.format().setPrimaries(options.assignPrimaries.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1523 |
|
1524 | if (options.assignTexcoordOrigin.has_value())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1525 | target.setOrigin(options.assignTexcoordOrigin.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1526 |
|
1527 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1528 | }
| ~
1529 |
|
1530 | const auto rawData = readRawFile(inputFilepath);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1531 |
|
1532 | const auto expectedFileSize = ktxTexture_GetImageSize(texture, levelIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1533 | if (rawData.size() != expectedFileSize)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1534 | fatal(rc::INVALID_FILE, "Raw input file \"{}\" with {} bytes for level {} does not match the expected size of {} bytes.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1535 | fmtInFile(inputFilepath), rawData.size(), levelIndex, expectedFileSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1536 |
|
1537 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1538 | texture,
| ~~~~~~~~
1539 | levelIndex,
| ~~~~~~~~~~~
1540 | layerIndex,
| ~~~~~~~~~~~
1541 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1542 | reinterpret_cast<const ktx_uint8_t*>(rawData.data()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1543 | rawData.size());
| ~~~~~~~~~~~~~~~~
1544 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1545 | } else {
| ~~~~~~~~
1546 | const auto inputImageFile = ImageInput::open(inputFilepath, nullptr, warningFn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1547 | inputImageFile->seekSubimage(0, 0); // Loading multiple subimage from the same input is not supported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1548 |
|
1549 | ImageSpec::Origin usedSourceOrigin;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1550 |
|
1551 | if (std::exchange(firstImage, false)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1552 | uint32_t targetWidth, targetHeight;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1553 | if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | targetWidth = static_cast<uint32_t>(inputImageFile->spec().width()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1555 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | targetHeight = static_cast<uint32_t>(inputImageFile->spec().height()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1557 | * options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1558 | // TODO: scale depth
| ~~~~~~~~~~~~~~~~~~~~
1559 | } else {
| ~~~~~~~~
1560 | targetWidth = options.width.value_or(inputImageFile->spec().width());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1561 | targetHeight = options.height.value_or(inputImageFile->spec().height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1562 | // TODO: handle resampling depth
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1563 | }
| ~
1564 |
|
1565 | target = ImageSpec{
| ~~~~~~~~~~~~~~~~~~~
1566 | targetWidth,
| ~~~~~~~~~~~~
1567 | targetHeight,
| ~~~~~~~~~~~~~
1568 | options.depth.value_or(1u),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1569 | options.formatDesc};
| ~~~~~~~~~~~~~~~~~~~~
1570 |
|
1571 | if (options.cubemap && target.width() != target.height())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1572 | fatal(rc::INVALID_FILE, "--cubemap specified but the input image \"{}\" with size {}x{} is not square.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1573 | fmtInFile(inputFilepath), target.width(), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1574 |
|
1575 | if (options._1d && target.height() != 1)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576 | fatal(rc::INVALID_FILE, "For --1d textures the input image height must be 1, but for \"{}\" it was {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1577 | fmtInFile(inputFilepath), target.height());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1578 |
|
1579 | const auto maxDimension = std::max(target.width(), std::max(target.height(), baseDepth));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1580 | maxLevels = log2(maxDimension) + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1581 | if (options.levels.value_or(1) > maxLevels) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1582 | auto errorFmt = "Requested {} levels is too many. With {} {}x{} and depth {} the texture can only have {} levels at most.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1583 | std::string baseExpl;
| ~~~~~~~~~~~~~~~~~~~~~
1584 | if (options.width.has_value() || options.height.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1585 | baseExpl = "a requested base image size of";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1586 | } else if (options.imageScale.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1587 | baseExpl = fmt::format(
| ~~~~~~~~~~~~~~~~~~~~~~~
1588 | "base input image \"{}\" sized {}x{} * scale {} being",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1589 | fmtInFile(inputFilepath), inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1590 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1591 | options.imageScale.value());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1592 | } else {
| ~~~~~~~~
1593 | baseExpl = fmt::format("base input image \"{}\" sized", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1594 | }
| ~
1595 | fatal_usage(errorFmt, options.levels.value_or(1),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1596 | baseExpl,
| ~~~~~~~~~
1597 | target.width(), target.height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1598 | baseDepth, maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~
1599 | }
| ~
1600 |
|
1601 | checkNumInputImages();
| ~~~~~~~~~~~~~~~~~~~~~~
1602 |
|
1603 | if (options.encodeASTC)
| ~~~~~~~~~~~~~~~~~~~~~~~
1604 | selectASTCMode(inputImageFile->spec().format().largestChannelBitLength());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1605 |
|
1606 | firstImageSpec = inputImageFile->spec();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1607 |
|
1608 | determineTargetColorSpace(*inputImageFile, target, colorSpaceInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1609 | determineTargetOrigin(*inputImageFile, target, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610 |
|
1611 | texture = createTexture(target);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1612 | } else {
| ~~~~~~~~
1613 | checkSpecsMatch(*inputImageFile, firstImageSpec);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1614 | determineSourceColorSpace(*inputImageFile, colorSpaceInfo.src);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1615 | determineSourceOrigin(*inputImageFile, usedSourceOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616 | }
| ~
1617 |
|
1618 | const uint32_t expectedImageWidth = std::max(firstImageSpec.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1619 | const uint32_t expectedImageHeight = std::max(firstImageSpec.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1620 | const uint32_t targetImageWidth = std::max(target.width() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1621 | const uint32_t targetImageHeight = std::max(target.height() >> levelIndex, 1u);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1622 |
|
1623 | if (inputImageFile->spec().width() != expectedImageWidth || inputImageFile->spec().height() != expectedImageHeight) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1624 | const auto errorFmt = "Input image \"{}\" with size {}x{} does not match expected size {}x{} for level {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1625 | fatal(rc::INVALID_FILE, errorFmt, fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626 | inputImageFile->spec().width(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1627 | inputImageFile->spec().height(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1628 | // When no scaling option is specified image* == targetImage*.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1629 | expectedImageWidth, expectedImageHeight,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1630 | levelIndex);
| ~~~~~~~~~~~~
1631 | }
| ~
1632 | auto image = loadInputImage(*inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1633 |
|
1634 | // Need to do color conversion if either the transfer functions or primaries don't
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1635 | // match. Primaries conversion requires decode to linear then reencode thus
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1636 | // transferFunctions are always required.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1637 | if (target.format().transfer() != colorSpaceInfo.src.usedTransferFunction ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1638 | target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1639 | assert((target.format().primaries() == colorSpaceInfo.src.usedPrimaries
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1640 | || colorSpaceInfo.src.usedPrimaries != KHR_DF_PRIMARIES_UNSPECIFIED)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1641 | && "determineSourceColorSpace failed to check for UNSPECIFIED.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1642 | const auto errorFmt = "Colorspace conversion requires unsupported {} {} {}.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1643 | if (colorSpaceInfo.src.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1644 | std::string source;
| ~~~~~~~~~~~~~~~~~~~
1645 | if (options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646 | source = fmt::format("specified with --{}", options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1647 | } else {
| ~~~~~~~~
1648 | source = fmt::format("used by input file \"{}\"", fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1649 | }
| ~
1650 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1651 | "decode from",
| ~~~~~~~~~~~~~~
1652 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1653 | source);
| ~~~~~~~~
1654 | if (!options.assignTF.has_value()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1655 | errorMsg += fmt::format(" Use an image processing tool to convert it or use"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1656 | " --{}, with or without --{}, to specify handling.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1657 | options.kAssignTf, options.kConvertTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1658 | }
| ~
1659 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1660 | }
| ~
1661 | if (colorSpaceInfo.dst.transferFunction == nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1662 | // If we get here it is because (a) a transfer supported for decode but not
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1663 | // encode has been set with --assign-tf and (b) a primary conversion was
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1664 | // requested with --convert-primaries. CLI checks prevent an unsupported
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1665 | // transfer being given to --convert-tf.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1666 | auto source = fmt::format("specified with --{}", options.convertTF.has_value()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1667 | ? options.kConvertTf : options.kAssignTf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668 | auto errorMsg = fmt::format(errorFmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1669 | "encode to",
| ~~~~~~~~~~~~
1670 | toString(target.format().transfer()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671 | source);
| ~~~~~~~~
1672 | // Transfer functions derived from --format values are supported.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1673 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1674 | errorMsg += fmt::format(" Decode and encode with transfer function is"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1675 | " required to convert primaries to {}.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1676 | toString(target.format().primaries()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1677 | }
| ~
1678 | fatal(rc::NOT_SUPPORTED, errorMsg);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1679 | }
| ~
1680 | if (!options.noWarnOnColorConversions) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1681 | if (target.format().model() == KHR_DF_MODEL_RGBSDA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1682 | && target.format().transfer() == KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1683 | uint32_t bitLength;
| ~~~~~~~~~~~~~~~~~~~
1684 | try {
| ~~~~~
1685 | bitLength = target.format().channelBitLength();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1686 | } catch(...) {
| ~~~~~~~~~~~~~~
1687 | // This happens if channels have different bit length. Check just R.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1688 | // If format is something like RGB565, any channel length would fail
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1689 | // the bitLength test so picking R doesn't matter.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1690 | bitLength = target.format().channelBitLength(KHR_DF_CHANNEL_RGBSDA_R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1691 | }
| ~
1692 |
|
1693 | if (bitLength < 14) {
| ~~~~~~~~~~~~~~~~~~~~~
1694 | // Per Poynton, >= 14 bits is enough to handle all transitions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1695 | // visible to a human
| ~~~~~~~~~~~~~~~~~~~~~
1696 | if (colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_SRGB
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1697 | || colorSpaceInfo.src.usedTransferFunction == KHR_DF_TRANSFER_ITU) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1698 | warning("Input file \"{}\" is undergoing a visual lossy color conversion from {} "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699 | "to KHR_DF_TRANSFER_LINEAR. Specify an _SRGB format with --{} to prevent "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1700 | "this warning.",
| ~~~~~~~~~~~~~~~~
1701 | fmtInFile(inputFilepath),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1702 | toString(colorSpaceInfo.src.usedTransferFunction),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1703 | options.kFormat);
| ~~~~~~~~~~~~~~~~~
1704 | }
| ~
1705 | }
| ~
1706 | }
| ~
1707 | }
| ~
1708 | if (target.format().primaries() != colorSpaceInfo.src.usedPrimaries) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1709 | //if (colorSpaceInfo.dst.colorPrimaries != nullptr) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1710 | //assert(colorSpaceInfo.src.colorPrimaries != nullptr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1711 | auto primaryTransform = colorSpaceInfo.src.colorPrimaries->transformTo(*colorSpaceInfo.dst.colorPrimaries);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1712 |
|
1713 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1714 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1715 | "Input file \"{}\" would need color conversion as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1716 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1718 |
|
1719 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1720 | warning("Input file \"{}\" is color converted as input and output primaries are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1721 | "Use --assign-primaries and do not use --convert-primaries to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1723 |
|
1724 | // Transform transfer function with primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1725 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction, &primaryTransform);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1726 | } else {
| ~~~~~~~~
1727 | if (options.failOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1728 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1729 | "Input file \"{}\" would need color conversion as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1730 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1731 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1732 |
|
1733 | if (options.warnOnColorConversions)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1734 | warning("Input file \"{}\" is color converted as input and output transfer functions are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1735 | "Use --assign-tf and do not use --convert-tf to avoid unwanted color conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1736 | fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1737 |
|
1738 | // Transform transfer function without primary transform
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1739 | image->transformColorSpace(*colorSpaceInfo.src.transferFunction, *colorSpaceInfo.dst.transferFunction);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1740 | }
| ~
1741 | }
| ~
1742 |
|
1743 | // TODO: Add auto conversion and warning? Not needed now
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1744 | // because all supported source formats provide top-left images.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1745 |
|
1746 | if (image->getWidth() != targetImageWidth || image->getHeight() != targetImageHeight)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1747 | image = scaleImage(std::move(image), targetImageWidth, targetImageHeight);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1748 |
|
1749 | if (target.origin() != usedSourceOrigin) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1750 | if (options.failOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1751 | fatal(rc::INVALID_FILE,
| ~~~~~~~~~~~~~~~~~~~~~~~
1752 | "Input file \"{}\" would need to be y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1753 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1754 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1755 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1756 |
|
1757 | if (options.warnOnOriginChanges)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1758 | warning("Input file \"{}\" is y-flipped as input and output origins are different. "
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1759 | "Use --{} and do not use --{} to avoid unwanted origin conversions.",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1760 | fmtInFile(inputFilepath), OptionsCreate::kAssignTexcoordOrigin,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761 | OptionsCreate::kConvertTexcoordOrigin);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1762 |
|
1763 | // Only difference allowed by CLI is y down or y up.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1764 | image->yflip();
| ~~~~~~~~~~~~~~~
1765 | }
| ~
1766 |
|
1767 | if (options.normalize) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1768 | if (target.format().transfer() != KHR_DF_TRANSFER_UNSPECIFIED && target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1769 | const auto input_error_message = "Input file \"{}\" The transfer function to be applied to the created texture is neither linear nor none. Normalize is only available for these transfer functions.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1770 | const auto assign_error_message = "Input file \"{}\" Use \"{}\" to assign the linear transfer function to the input image, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1771 | const auto convert_error_message = "Input file \"{}\" Modify \"{}\" settings to convert the input image to linear transfer function, if required.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1772 | const auto inputTransfer = inputImageFile->spec().format().transfer();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1773 | bool is_file_error = (inputTransfer != KHR_DF_TRANSFER_UNSPECIFIED && inputTransfer != KHR_DF_TRANSFER_LINEAR);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1774 | bool is_assign_error = !options.assignTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1775 | bool is_convert_error = !options.convertTF.has_value();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1776 | if (is_assign_error)
| ~~~~~~~~~~~~~~~~~~~~
1777 | fatal(rc::INVALID_FILE, assign_error_message, fmtInFile(inputFilepath), OptionsCreate::kAssignOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1778 | else if (is_convert_error)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1779 | fatal(rc::INVALID_FILE, convert_error_message, fmtInFile(inputFilepath), OptionsCreate::kConvertOetf);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1780 | else {
| ~~~~~~
1781 | assert(is_file_error && "In this branch it must be the input file that has the transfer function issue"); (void)is_file_error;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1782 | fatal(rc::INVALID_FILE, input_error_message, fmtInFile(inputFilepath));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1783 | }
| ~
1784 | }
| ~
1785 | image->normalize();
| ~~~~~~~~~~~~~~~~~~~
1786 | }
| ~
1787 |
|
1788 | if (options.swizzleInput)
| ~~~~~~~~~~~~~~~~~~~~~~~~~
1789 | image->swizzle(*options.swizzleInput);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1790 |
|
1791 | const auto imageData = convert(image, options.vkFormat, *inputImageFile);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1792 |
|
1793 | const auto ret = ktxTexture_SetImageFromMemory(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1794 | texture,
| ~~~~~~~~
1795 | levelIndex,
| ~~~~~~~~~~~
1796 | layerIndex,
| ~~~~~~~~~~~
1797 | faceIndex + depthSliceIndex, // Faces and Depths are mutually exclusive, Addition is acceptable
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1798 | imageData.data(),
| ~~~~~~~~~~~~~~~~~
1799 | imageData.size());
| ~~~~~~~~~~~~~~~~~~
1800 | assert(ret == KTX_SUCCESS && "Internal error"); (void) ret;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 |
|
1802 | if (options.mipmapGenerate) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1803 | uint32_t numMipLevels = options.levels.value_or(maxLevels);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1804 | generateMipLevels(texture, std::move(image), *inputImageFile, numMipLevels, layerIndex, faceIndex, depthSliceIndex);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1805 | }
| ~
1806 | }
| ~
1807 | });
| ~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char* const&>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >((* & std::forward<const char* const&>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: error: 's' is not a constant expression
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[28], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:371:31: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with bool ENCODE_CMD = false]'
371 | report.fatal_usage("Invalid encode codec: \"{}\".", args[codec_option].as<std::string>());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:353:38: required from 'void ktx::Combine<Args>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with Args = {ktx::OptionsCreate, ktx::OptionsEncodeASTC, ktx::OptionsEncodeBasis<false>, ktx::OptionsEncodeCommon, ktx::OptionsMetrics, ktx::OptionsDeflate, ktx::OptionsMultiInSingleOut, ktx::OptionsGeneric}]'
353 | (dummy = ... = (Args::process(opts, args, report), 0));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1295:20: required from here
1295 | options.process(opts, args, *this);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[28]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[28]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[79], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:321:25: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::validateBasisLZArg(ktx::Reporter&, const char*) [with bool ENCODE_CMD = false]'
321 | report.fatal(rc::INVALID_ARGUMENTS,
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
322 | "Invalid use of argument --{} that only applies when the used codec is BasisLZ.", name);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:382:13: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with bool ENCODE_CMD = false]'
382 | validateBasisLZArg(report, kCLevel);
| ^~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:353:38: required from 'void ktx::Combine<Args>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with Args = {ktx::OptionsCreate, ktx::OptionsEncodeASTC, ktx::OptionsEncodeBasis<false>, ktx::OptionsEncodeCommon, ktx::OptionsMetrics, ktx::OptionsDeflate, ktx::OptionsMultiInSingleOut, ktx::OptionsGeneric}]'
353 | (dummy = ... = (Args::process(opts, args, report), 0));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1295:20: required from here
1295 | options.process(opts, args, *this);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[79]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[79]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[60], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:328:25: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::validateBasisLZEndpointRDOArg(ktx::Reporter&, const char*) [with bool ENCODE_CMD = false]'
328 | report.fatal(rc::INVALID_ARGUMENTS,
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
329 | "Invalid use of argument --{} when endpoint RDO is disabled.", name);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:404:13: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with bool ENCODE_CMD = false]'
404 | validateBasisLZEndpointRDOArg(report, kMaxEndpoints);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:353:38: required from 'void ktx::Combine<Args>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with Args = {ktx::OptionsCreate, ktx::OptionsEncodeASTC, ktx::OptionsEncodeBasis<false>, ktx::OptionsEncodeCommon, ktx::OptionsMetrics, ktx::OptionsDeflate, ktx::OptionsMultiInSingleOut, ktx::OptionsGeneric}]'
353 | (dummy = ... = (Args::process(opts, args, report), 0));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1295:20: required from here
1295 | options.process(opts, args, *this);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[60]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[60]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[77], const char*&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:341:25: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::validateUASTCArg(ktx::Reporter&, const char*) [with bool ENCODE_CMD = false]'
341 | report.fatal(rc::INVALID_ARGUMENTS,
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
342 | "Invalid use of argument --{} that only applies when the used codec is UASTC.", name);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/encode_utils_basis.h:424:13: required from 'void ktx::OptionsEncodeBasis<ENCODE_CMD>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with bool ENCODE_CMD = false]'
424 | validateUASTCArg(report, kUastcQuality);
| ^~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:353:38: required from 'void ktx::Combine<Args>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with Args = {ktx::OptionsCreate, ktx::OptionsEncodeASTC, ktx::OptionsEncodeBasis<false>, ktx::OptionsEncodeCommon, ktx::OptionsMetrics, ktx::OptionsDeflate, ktx::OptionsMultiInSingleOut, ktx::OptionsGeneric}]'
353 | (dummy = ... = (Args::process(opts, args, report), 0));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_create.cpp:1295:20: required from here
1295 | options.process(opts, args, *this);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[77]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*&>((* & std::forward<const char (&)[77]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*&>*)this)->fmt::v10::basic_format_string<char, const char*&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
[129/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -Wno-stringop-overflow -MD -MT CMakeFiles/ktx.dir/external/basisu/transcoder/basisu_transcoder.cpp.o -MF CMakeFiles/ktx.dir/external/basisu/transcoder/basisu_transcoder.cpp.o.d -o CMakeFiles/ktx.dir/external/basisu/transcoder/basisu_transcoder.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder/basisu_transcoder.cpp
[130/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_info.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_info.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_info.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp
FAILED: [code=1] tools/ktx/CMakeFiles/ktxtools.dir/command_info.cpp.o
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_info.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_info.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_info.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:5:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[26], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:233:31: required from here
233 | report.fatal_usage("Unsupported format: \"{}\".", formatStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/string:45,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:9:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[30]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:251:31: required from here
251 | report.fatal_usage("Too many filenames specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[70]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:254:31: required from here
254 | report.fatal_usage("Missing input file. Either <input-file> or --stdin must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[78]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:256:31: required from here
256 | report.fatal_usage("Conflicting options: Only one can be specified from <input-file> and --stdin.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[73]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:289:31: required from here
289 | report.fatal_usage("Missing output file. Either <output-file> or --stdout must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[80]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:291:31: required from here
291 | report.fatal_usage("Conflicting options: Only one can be specified from <output-file> and --stdout.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[42]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:330:31: required from here
330 | report.fatal_usage("Input and output files must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[27], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:332:31: required from here
332 | report.fatal_usage("{} file must be specified.", args.count("stdout") == 0 ? "Output" : "Input");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[59]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:339:31: required from here
339 | report.fatal_usage("'-' or --stdin as input file was specified more than once.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[37], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:131:14: required from here
131 | fatal(rc::INVALID_FILE, "Failed to process KTX2 file \"{}\": {}", fmtInFile(options.inputFilepath), ktxErrorString(result));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*>((* & std::forward<const char (&)[37]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*>((* & std::forward<const char (&)[37]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*>*)this)->fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:12:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[6]; Args = {const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:172:15: required from here
172 | pi(2, "}},{}", nl);
| ~~^~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[6]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[6]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[5]; Args = {const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:174:11: required from here
174 | pi(2, "{{{}", nl);
| ~~^~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[5]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&>((* & std::forward<const char (&)[5]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[13]; Args = {const char* const&, const short unsigned int&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:175:11: required from here
175 | pi(3, "\"id\":{}{},{}", space, issue.id, nl);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, const short unsigned int&, const char* const&>((* & std::forward<const char (&)[13]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, const short unsigned int&, const char* const&>((* & std::forward<const char (&)[13]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, const short unsigned int&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, const short unsigned int&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[17]; Args = {const char* const&, std::basic_string_view<char, std::char_traits<char> >, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:176:11: required from here
176 | pi(3, "\"type\":{}\"{}\",{}", space, toString(issue.type), nl);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, std::basic_string_view<char, std::char_traits<char> >, const char* const&>((* & std::forward<const char (&)[17]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, std::basic_string_view<char, std::char_traits<char> >, const char* const&>((* & std::forward<const char (&)[17]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, std::basic_string_view<char, std::char_traits<char> >, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, std::basic_string_view<char, std::char_traits<char> >, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[20]; Args = {const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:177:11: required from here
177 | pi(3, "\"message\":{}\"{}\",{}", space, escape_json_copy(issue.message), nl);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>((* & std::forward<const char (&)[20]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>((* & std::forward<const char (&)[20]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[19]; Args = {const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:178:11: required from here
178 | pi(3, "\"details\":{}\"{}\"{}", space, escape_json_copy(issue.details), nl);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>((* & std::forward<const char (&)[19]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>((* & std::forward<const char (&)[19]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[61]; Args = {const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:199:8: required from here
199 | out(1, "\"$schema\":{}\"https://schema.khronos.org/ktx/info_v0.json\",{}", space, nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, const char* const&>((* & std::forward<const char (&)[61]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, const char* const&>((* & std::forward<const char (&)[61]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[16]; Args = {const char* const&, bool, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:200:8: required from here
200 | out(1, "\"valid\":{}{},{}", space, validationResult == 0, nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, bool, const char* const&>((* & std::forward<const char (&)[16]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, bool, const char* const&>((* & std::forward<const char (&)[16]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, bool, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, bool, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[17]; Args = {const char* const&, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:202:12: required from here
202 | out(1, "\"messages\":{}[{}", space, nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, const char* const&>((* & std::forward<const char (&)[17]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, const char* const&>((* & std::forward<const char (&)[17]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[6]; Args = {const char*, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:205:12: required from here
205 | out(1, "]{}{}", ktxWillPrintOutput ? "," : "", nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*, const char* const&>((* & std::forward<const char (&)[6]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*, const char* const&>((* & std::forward<const char (&)[6]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char*, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h: In instantiation of 'void ktx::PrintIndent::operator()(int, Fmt&&, Args&& ...) [with Fmt = const char (&)[20]; Args = {const char* const&, const char*, const char* const&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_info.cpp:207:12: required from here
207 | out(1, "\"messages\":{}[]{}{}", space, ktxWillPrintOutput ? "," : "", nl);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char* const&, const char*, const char* const&>((* & std::forward<const char (&)[20]>((* & fmt))))' is not a constant expression
317 | fmt::print(os, std::forward<Fmt>(fmt), std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/utility.h:317:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char* const&, const char*, const char* const&>((* & std::forward<const char (&)[20]>((* & fmt))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char* const&, const char*, const char* const&>*)this)->fmt::v10::basic_format_string<char, const char* const&, const char*, const char* const&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'fmt' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
[131/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/imageio/CMakeFiles/imageio.dir/png.imageio/lodepng.cc.o -MF tools/imageio/CMakeFiles/imageio.dir/png.imageio/lodepng.cc.o.d -o tools/imageio/CMakeFiles/imageio.dir/png.imageio/lodepng.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/png.imageio/lodepng.cc
[132/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_transcode.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_transcode.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_transcode.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_transcode.cpp
FAILED: [code=1] tools/ktx/CMakeFiles/ktxtools.dir/command_transcode.cpp.o
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/cxxopts/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/lib -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/ktx/CMakeFiles/ktxtools.dir/command_transcode.cpp.o -MF tools/ktx/CMakeFiles/ktxtools.dir/command_transcode.cpp.o.d -o tools/ktx/CMakeFiles/ktxtools.dir/command_transcode.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_transcode.cpp
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_transcode.cpp:5:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[26], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:233:31: required from here
233 | report.fatal_usage("Unsupported format: \"{}\".", formatStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/string:45,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:9:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[26]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[30]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:251:31: required from here
251 | report.fatal_usage("Too many filenames specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[70]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:254:31: required from here
254 | report.fatal_usage("Missing input file. Either <input-file> or --stdin must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[70]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[78]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:256:31: required from here
256 | report.fatal_usage("Conflicting options: Only one can be specified from <input-file> and --stdin.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[78]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[73]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:289:31: required from here
289 | report.fatal_usage("Missing output file. Either <output-file> or --stdout must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[73]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[80]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:291:31: required from here
291 | report.fatal_usage("Conflicting options: Only one can be specified from <output-file> and --stdout.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[80]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[42]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:330:31: required from here
330 | report.fatal_usage("Input and output files must be specified.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[42]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[27], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:332:31: required from here
332 | report.fatal_usage("{} file must be specified.", args.count("stdout") == 0 ? "Output" : "Input");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[27]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[59]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:339:31: required from here
339 | report.fatal_usage("'-' or --stdin as input file was specified more than once.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[59]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[68], unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/deflate_utils.h:69:35: required from here
69 | report.fatal_usage("Invalid zstd level: \"{}\". Value must be between 1 and 22 inclusive.", zstd.value());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[68]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[68]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int&>*)this)->fmt::v10::basic_format_string<char, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[67], unsigned int&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/deflate_utils.h:74:35: required from here
74 | report.fatal_usage("Invalid zlib level: \"{}\". Value must be between 1 and 9 inclusive.", zlib.value());
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[67]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, unsigned int&>((* & std::forward<const char (&)[67]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, unsigned int&>*)this)->fmt::v10::basic_format_string<char, unsigned int&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[68]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/deflate_utils.h:77:31: required from here
77 | report.fatal_usage("Conflicting options: zstd and zlib cannot be used at the same time.");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[68]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[68]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[34], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_transcode.cpp:149:14: required from here
149 | fatal(rc::INVALID_FILE, "Failed to create KTX2 texture: {}", ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[34]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[34]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[30]}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_transcode.cpp:152:14: required from here
152 | fatal(rc::INVALID_FILE, "KTX file is not transcodable.");
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char>((* & std::forward<const char (&)[30]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char>*)this)->fmt::v10::basic_format_string<char>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[37], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_transcode.cpp:159:18: required from here
159 | fatal(rc::KTX_FAILURE, "Zstd deflation failed. KTX Error: {}", ktxErrorString(ret));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[37]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[37]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal(ktx::ReturnCode, Args&& ...) [with Args = {const char (&)[36], const char*}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/transcode_utils.h:141:25: required from 'ktx::KTXTexture2 ktx::transcode(KTXTexture2&&, OptionsTranscodeTarget<TRANSCODE_CMD>&, Reporter&) [with bool TRANSCODE_CMD = true]'
141 | report.fatal(rc::IO_FAILURE, "Failed to create output texture: {}", ktxErrorString(ret));
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_transcode.cpp:154:24: required from here
154 | texture = transcode(std::move(texture), options, *this);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[36]>((* & args#0))))' is not a constant expression
114 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:114:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const char*>((* & std::forward<const char (&)[36]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const char*>*)this)->fmt::v10::basic_format_string<char, const char*>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h: In instantiation of 'void ktx::Reporter::fatal_usage(Args&& ...) [with Args = {const char (&)[32], const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/transcode_utils.h:65:35: required from 'void ktx::OptionsTranscodeTarget<TRANSCODE_CMD>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with bool TRANSCODE_CMD = true]'
65 | report.fatal_usage("Invalid transcode target: \"{}\".", argStr);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:353:38: required from 'void ktx::Combine<Args>::process(cxxopts::Options&, cxxopts::ParseResult&, ktx::Reporter&) [with Args = {ktx::CommandTranscode::OptionsTranscode, ktx::OptionsTranscodeTarget<true>, ktx::OptionsDeflate, ktx::OptionsSingleInSingleOut, ktx::OptionsGeneric}]'
353 | (dummy = ... = (Args::process(opts, args, report), 0));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command_transcode.cpp:138:20: required from here
138 | options.process(opts, args, *this);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: error: call to consteval function 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[32]>((* & args#0))))' is not a constant expression
122 | fmt::print(std::cerr, std::forward<Args>(args)...);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/ktx/command.h:122:19: in 'constexpr' expansion of 'fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>((* & std::forward<const char (&)[32]>((* & args#0))))'
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:2740:62: in 'constexpr' expansion of '((fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>*)this)->fmt::v10::basic_format_string<char, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::str_.fmt::v10::basic_string_view<char>::basic_string_view(((const char*)s))'
2740 | FMT_CONSTEVAL FMT_INLINE basic_format_string(const S& s) : str_(s) {
| ^~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include/fmt/core.h:428:51: in 'constexpr' expansion of 'std::char_traits<char>::length(s)'
428 | : std::char_traits<Char>::length(s)) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:394:52: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::length(__s)'
394 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:205:17: in 'constexpr' expansion of '__gnu_cxx::char_traits<char>::eq((*(__p + ((sizetype)__i))), 0)'
205 | while (!eq(__p[__i], char_type()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/char_traits.h:139:21: error: 'args#0' is not a constant expression
139 | { return __c1 == __c2; }
| ~~~~~^~~~~~~
[133/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/. -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/fmt/include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -O3 -ffp-contract=off -MD -MT tools/imageio/CMakeFiles/imageio.dir/exr.imageio/exrinput.cc.o -MF tools/imageio/CMakeFiles/imageio.dir/exr.imageio/exrinput.cc.o.d -o tools/imageio/CMakeFiles/imageio.dir/exr.imageio/exrinput.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/exr.imageio/exrinput.cc
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/algorithm:62,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/./imageio.h:30,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/exr.imageio/exrinput.cc:7:
In function 'constexpr typename __gnu_cxx::__enable_if<(std::__is_byte<_Tp>::__value && (std::__are_same< <template-parameter-1-1>, <template-parameter-1-2> >::__value || std::__memcpyable_integer<_Up>::__width)), void>::__type std::__fill_a1(_Up*, _Up*, const _Tp&) [with _Up = unsigned char; _Tp = unsigned char]',
inlined from 'constexpr void std::__fill_a(_FIte, _FIte, const _Tp&) [with _FIte = unsigned char*; _Tp = unsigned char]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_algobase.h:977:21,
inlined from 'constexpr _OutputIterator std::__fill_n_a(_OutputIterator, _Size, const _Tp&, random_access_iterator_tag) [with _OutputIterator = unsigned char*; _Size = long unsigned int; _Tp = unsigned char]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_algobase.h:1154:20,
inlined from 'constexpr _OI std::fill_n(_OI, _Size, const _Tp&) [with _OI = unsigned char*; _Size = long unsigned int; _Tp = unsigned char]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_algobase.h:1184:29,
inlined from 'static constexpr _ForwardIterator std::__uninitialized_default_n_1<true>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = unsigned char*; _Size = long unsigned int]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_uninitialized.h:947:29,
inlined from 'static constexpr _ForwardIterator std::__uninitialized_default_n_1<true>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = unsigned char*; _Size = long unsigned int]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_uninitialized.h:939:9,
inlined from 'constexpr _ForwardIterator std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator = unsigned char*; _Size = long unsigned int]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_uninitialized.h:998:20,
inlined from 'constexpr _ForwardIterator std::__uninitialized_default_n_a(_ForwardIterator, _Size, allocator<_Tp>&) [with _ForwardIterator = unsigned char*; _Size = long unsigned int; _Tp = unsigned char]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_uninitialized.h:1053:44,
inlined from 'constexpr void std::vector<_Tp, _Alloc>::_M_default_append(size_type) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/vector.tcc:862:35,
inlined from 'constexpr void std::vector<_Tp, _Alloc>::resize(size_type) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_vector.h:1136:21,
inlined from 'bool tinyexr::ReadAttribute.constprop(std::string*, std::string*, std::vector<unsigned char>*, size_t*, const char*, size_t)' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source/ThirdParty/tinyexr.h:7332:19:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_algobase.h:949:25: warning: 'void* __builtin_memset(void*, int, long unsigned int)' offset 1 is out of the bounds [0, 1] [-Warray-bounds=]
949 | __builtin_memset(__first, static_cast<unsigned char>(__val), __len);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In constructor 'ImageInput::imageInfo::imageInfo(ImageSpec&&, ImageInputFormatType, size_t)',
inlined from 'constexpr _Tp* std::construct_at(_Tp*, _Args&& ...) [with _Tp = ImageInput::imageInfo; _Args = {ImageSpec, ImageInputFormatType&}]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/stl_construct.h:110:9,
inlined from 'static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = ImageInput::imageInfo; _Args = {ImageSpec, ImageInputFormatType&}; _Tp = ImageInput::imageInfo]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/alloc_traits.h:716:21,
inlined from 'constexpr void std::vector<_Tp, _Alloc>::_M_realloc_append(_Args&& ...) [with _Args = {ImageSpec, ImageInputFormatType&}; _Tp = ImageInput::imageInfo; _Alloc = std::allocator<ImageInput::imageInfo>]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/vector.tcc:594:26,
inlined from 'constexpr std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {ImageSpec, ImageInputFormatType&}; _Tp = ImageInput::imageInfo; _Alloc = std::allocator<ImageInput::imageInfo>]' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot/usr/include/c++/16.1.0/bits/vector.tcc:127:21,
inlined from 'virtual void ExrInput::open(ImageSpec&)' at TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/exr.imageio/exrinput.cc:166:24:
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/./imageio.h:292:25: warning: 'formatType' may be used uninitialized [-Wmaybe-uninitialized]
292 | : spec(is), formatType(formatType), filepos(pos) { }
| ^~~~~~~~~~~~~~~~~~~~~~
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/exr.imageio/exrinput.cc: In member function 'virtual void ExrInput::open(ImageSpec&)':
TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tools/imageio/exr.imageio/exrinput.cc:113:26: note: 'formatType' was declared here
113 | ImageInputFormatType formatType;
| ^~~~~~~~~~
[134/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -Wno-sign-compare -Wno-unused-variable -Wno-class-memaccess -Wno-misleading-indentation -Wno-extra -Wno-deprecated-copy -Wno-parentheses -Wno-strict-aliasing -Wno-stringop-overflow -MD -MT CMakeFiles/ktx_read.dir/external/basisu/transcoder/basisu_transcoder.cpp.o -MF CMakeFiles/ktx_read.dir/external/basisu/transcoder/basisu_transcoder.cpp.o.d -o CMakeFiles/ktx_read.dir/external/basisu/transcoder/basisu_transcoder.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder/basisu_transcoder.cpp
[135/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tests/gtest/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tests/gtest/. -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wall -Wextra -O3 -ffp-contract=off -Wno-missing-field-initializers -MD -MT tests/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o -MF tests/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o.d -o tests/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/tests/gtest/src/gtest-all.cc
[136/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/astc-encoder/Source -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/external/basisu/zstd/zstd.c.o -MF CMakeFiles/ktx.dir/external/basisu/zstd/zstd.c.o.d -o CMakeFiles/ktx.dir/external/basisu/zstd/zstd.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd/zstd.c
[137/170] TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=0 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DLIBKTX -DSUPPORT_SOFTWARE_ETC_UNPACK=1 -Dktx_read_EXPORTS -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/transcoder -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/utils -ITOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/dfdutils -isystem TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/other_include -m64 -march=x86-64-v3 -mno-avx -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/build=/usr/src/debug/ktx-software/4.4.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/recipe-sysroot-native= -pipe -fPIC -Wall -Wextra -O3 -ffp-contract=off -Wno-cast-function-type -Wno-pedantic -MD -MT CMakeFiles/ktx_read.dir/external/basisu/zstd/zstd.c.o -MF CMakeFiles/ktx_read.dir/external/basisu/zstd/zstd.c.o.d -o CMakeFiles/ktx_read.dir/external/basisu/zstd/zstd.c.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/ktx-software/4.4.0/sources/ktx-software-4.4.0/external/basisu/zstd/zstd.c
ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.