mstorsjo / llvm-mingw

An LLVM/Clang/LLD based mingw-w64 toolchain
Other
1.93k stars 186 forks source link

error: use of typeid requires -frtti #312

Closed FuXiii closed 1 year ago

FuXiii commented 1 year ago

I try to use clang++ in LLVM and mingw32-make in llvm-mingw to compile glslang on Windows system

CMake version:

$ cmake --version
cmake version 3.25.0

clang++ version:

$ F:/LLVM/bin/clang++ --version
clang version 15.0.3
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: F:\LLVM\bin

mingw32-make version:

$ F:/llvm-mingw-20220906-msvcrt-x86_64/bin/mingw32-make --version
GNU Make 4.2.1
Built for x86_64-w64-mingw32
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

then I try to compile glslang

  1. CMake Configure

    $ cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=F:/LLVM/bin/clang++.exe ..
    -- The CXX compiler identification is Clang 15.0.3 with GNU-like command-line
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: F:/LLVM/bin/clang++.exe - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found PythonInterp: F:/Python/Python311/python.exe (found suitable version "3.11", minimum required is "3")
    -- Google Mock was not found - tests based on that will not build
    -- spirv-tools not linked - illegal SPIRV may be generated for HLSL
    -- Configuring done
    -- Generating done
    -- Build files have been written to: E:/glslang/build
  2. call mingw32-make to make project:

    $ F:/llvm-mingw-20220906-msvcrt-x86_64/bin/mingw32-make
    [  1%] Building CXX object glslang/CMakeFiles/GenericCodeGen.dir/GenericCodeGen/CodeGen.cpp.obj
    [  2%] Building CXX object glslang/CMakeFiles/GenericCodeGen.dir/GenericCodeGen/Link.cpp.obj
    [  4%] Linking CXX static library GenericCodeGen.lib
    [  4%] Built target GenericCodeGen
    [  5%] Building CXX object OGLCompilersDLL/CMakeFiles/OGLCompiler.dir/InitializeDll.cpp.obj
    [  7%] Linking CXX static library OGLCompiler.lib
    [  7%] Built target OGLCompiler
    [  8%] Building CXX object glslang/OSDependent/Windows/CMakeFiles/OSDependent.dir/ossource.cpp.obj
    [ 10%] Linking CXX static library OSDependent.lib
    [ 10%] Built target OSDependent
    [ 11%] Building CXX object glslang/CMakeFiles/MachineIndependent.dir/cmake_pch.hxx.pch
    [ 13%] Building CXX object glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/glslang_tab.cpp.obj
    MachineIndependent/glslang_tab.cpp:4951:9: warning: variable 'yynerrs' set but not used [-Wunused-but-set-variable]
    int yynerrs = 0;
        ^
    1 warning generated.
    [ 14%] Building CXX object glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/attribute.cpp.obj
    [ 15%] Building CXX object glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/Constant.cpp.obj
    [ 17%] Building CXX object glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/iomapper.cpp.obj
    [ 18%] Building CXX object glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/InfoSink.cpp.obj
    [ 20%] Building CXX object glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/Initialize.cpp.obj
    [ 21%] Building CXX object glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/IntermTraverse.cpp.obj
    [ 23%] Building CXX object glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/Intermediate.cpp.obj
    [ 24%] Building CXX object glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/ParseContextBase.cpp.obj
    [ 26%] Building CXX object glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/ParseHelper.cpp.obj
    In file included from <built-in>:405:
    In file included from E:\glslang\build\glslang\CMakeFiles\MachineIndependent.dir\cmake_pch.hxx:5:
    In file included from E:\glslang\glslang\MachineIndependent\pch.h:45:
    In file included from E:\glslang\glslang\MachineIndependent/preprocessor/../ParseHelper.h:49:
    F:\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\functional:1229:11: error: use of typeid requires -frtti
                return (typeid(void));
                        ^
    F:\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\functional:1334:28: note: in instantiation of function template specialization 'std::_Func_impl_no_alloc<(lambda at E:\glslang\glslang\MachineIndependent\ParseHelper.cpp:6916:30), bool, const glslang::TType &, const glslang::TType &, glslang::TOperator, int>::_Func_impl_no_alloc<(lambda at E:\glslang\glslang\MachineIndependent\ParseHelper.cpp:6916:30), void>' requested here
                _Set(::new (_Getspace()) _Myimpl(_STD forward<_Fx>(_Val)));
                                         ^
    F:\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\functional:1320:3: note: in instantiation of function template specialization 'std::_Func_class<bool, const glslang::TType &, const glslang::TType &, glslang::TOperator, int>::_Reset_impl<std::_Func_impl_no_alloc<(lambda at E:\glslang\glslang\MachineIndependent\ParseHelper.cpp:6916:30), bool, const glslang::TType &, const glslang::TType &, glslang::TOperator, int>, (lambda at E:\glslang\glslang\MachineIndependent\ParseHelper.cpp:6916:30)>' requested here
                _Reset_impl<_Impl>(_STD forward<_Fx>(_Val), _Is_large<_Impl>());
                ^
    F:\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\functional:1502:9: note: in instantiation of function template specialization 'std::_Func_class<bool, const glslang::TType &, const glslang::TType &, glslang::TOperator, int>::_Reset<(lambda at E:\glslang\glslang\MachineIndependent\ParseHelper.cpp:6916:30)>' requested here
                this->_Reset(_STD move(_Func));
                      ^
    E:\glslang\glslang\MachineIndependent\ParseHelper.cpp:6959:70: note: in instantiation of function template specialization 'std::function<bool (const glslang::TType &, const glslang::TType &, glslang::TOperator, int)>::function<(lambda at E:\glslang\glslang\MachineIndependent\ParseHelper.cpp:6916:30), void>' requested here
    const TFunction* bestMatch = selectFunction(candidateList, call, convertible, better, tie);
                                                                     ^
    1 error generated.
    mingw32-make[2]: *** [glslang\CMakeFiles\MachineIndependent.dir\build.make:247: glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/ParseHelper.cpp.obj] Error 1
    mingw32-make[1]: *** [CMakeFiles\Makefile2:1016: glslang/CMakeFiles/MachineIndependent.dir/all] Error 2
    mingw32-make: *** [Makefile:145: all] Error 2

    an error error: use of typeid requires -frtti came out

alvinhochun commented 1 year ago

You're using the official release of LLVM with MSVC as the default target, installed at F:/LLVM/clang++.exe. Are you sure that's what you want to do, instead of using the llvm-mingw one that you probably have downloaded at F:/llvm-mingw-20220906-msvcrt-x86_64/bin/clang++.exe?

FuXiii commented 1 year ago

Yes, use F:/llvm-mingw-20220906-msvcrt-x86_64/bin/clang++.exe not use F:/LLVM/clang++.exe will successful compile, but can not compile KTX-Software

PS E:\KTX-Software>cmake -G "MinGW Makefiles" -B build -DCMAKE_CXX_COMPILER=F:/llvm-mingw-20220906-msvcrt-x86_64/bin/clang++.exe -DKTX_FEATURE_LOADTEST_APPS=OFF -DKTX_FEATURE_DOC=OFF -DKTX_FEATURE_STATIC_LIBRARY=ON

and then make it:

PS E:\KTX-Software\build> F:/llvm-mingw-20220906-msvcrt-x86_64/bin/mingw32-make.exe

the error output:

...
1 warning generated.
[ 74%] Linking CXX executable ..\..\Debug\ktx2check.exe
clang-15: error: invalid linker name in argument '-fuse-ld=lld-link'
mingw32-make[2]: *** [tools\ktx2check\CMakeFiles\ktx2check.dir\build.make:106: Debug/ktx2check.exe] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:1238: tools/ktx2check/CMakeFiles/ktx2check.dir/all] Error 2
mingw32-make: *** [Makefile:165: all] Error 2

(◞‸◟ )

alvinhochun commented 1 year ago

I think it makes more sense to try to work out how to fix the build with llvm-mingw instead of figuring out the issue in your original post (given that this is the llvm-mingw repository and not LLVM upstream). That said, I can't exactly tell why -fuse-ld=lld-link would get added there...

Perhaps CMake erroneously think the compiler is targeting MSVC ABI? Can you post the full CMake log, and the output of mingw32-make VERBOSE=1 that shows the link command?

Or we could just jump into trying to fix it instead. Try putting F:/llvm-mingw-20220906-msvcrt-x86_64/bin/ to the front of your PATH environment variable instead of setting CMAKE_CXX_COMPILER.

FuXiii commented 1 year ago

I try move F:/llvm-mingw-20220906-msvcrt-x86_64/bin/ on the top of all PATH environment variable.

image

and clang++ --version:

PS E:\KTX-Software> clang++ --version
clang version 15.0.0 (https://github.com/llvm/llvm-project.git 4ba6a9c9f65bbc8bd06e3652cb20fd4dfc846137)
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: F:/llvm-mingw-20220906-msvcrt-x86_64/bin

and mingw32-make --version:

PS E:\KTX-Software> mingw32-make --version
GNU Make 4.2.1
Built for x86_64-w64-mingw32
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

cmake:

PS E:\KTX-Software> cmake -G "MinGW Makefiles" -B build -DCMAKE_CXX_COMPILER=clang++ -DKTX_FEATURE_LOADTEST_APPS=OFF -DKTX_FEATURE_DOC=OFF -DKTX_FEATURE_STATIC_LIBRARY=ON                        
-- Found Bash: F:/Git/bin/bash.exe  
CMake Warning at cmake/version.cmake:151 (message):
  Error retrieving version from GIT tag.  Falling back to 0.0.0-noversion
Call Stack (most recent call first):
  CMakeLists.txt:10 (include)       

-- The C compiler identification is Clang 15.0.0
-- The CXX compiler identification is Clang 15.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: F:/llvm-mingw-20220906-msvcrt-x86_64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: F:/llvm-mingw-20220906-msvcrt-x86_64/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for CL_VERSION_3_0
-- Looking for CL_VERSION_3_0 - not found
-- Looking for CL_VERSION_2_2
-- Looking for CL_VERSION_2_2 - not found
-- Looking for CL_VERSION_2_1
-- Looking for CL_VERSION_2_0 - not found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - not found
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - not found
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - not found
-- Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR)
-- Found Vulkan: F:/VulkanSDK/1.3.231.1/Lib/vulkan-1.lib (found version "1.3.231") found components: glslc glslangValidator
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- Perl not found -> skipping mkvk target (this is harmless; only needed when re-generating of vulkan headers and dfdutils is required)
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
--   AVX2 backend     - ON
--   SSE4.1 backend   - OFF
--   SSE2 backend     - OFF
--   NEON backend     - OFF
--   NONE backend     - OFF
--   NATIVE backend   - OFF
--   Decompressor     - OFF
--   No invariance    - OFF
--   Diagnostics      - OFF
--   ASAN             - OFF
--   Unit tests       - OFF
-- Configuring done
-- Generating done
-- Build files have been written to: E:/KTX-Software/build  

into build folder and use mingw32-make VERBOSE=1:

PS E:\KTX-Software\build> mingw32-make VERBOSE=1
F:\CMake\bin\cmake.exe -SE:\KTX-Software -BE:\KTX-Software\build --check-build-system CMakeFiles\Makefile.cmake 0
F:\CMake\bin\cmake.exe -E cmake_progress_start E:\KTX-Software\build\CMakeFiles E:\KTX-Software\build\\CMakeFiles\progress.marks
F:/llvm-mingw-20220906-msvcrt-x86_64/bin/mingw32-make  -f CMakeFiles\Makefile2 all
mingw32-make[1]: Entering directory 'E:/KTX-Software/build'
F:/llvm-mingw-20220906-msvcrt-x86_64/bin/mingw32-make  -f lib\astc-encoder\Source\CMakeFiles\astcenc-avx2-static.dir\build.make lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/depend 
mingw32-make[2]: Entering directory 'E:/KTX-Software/build'
F:\CMake\bin\cmake.exe -E cmake_depends "MinGW Makefiles" E:\KTX-Software E:\KTX-Software\lib\astc-encoder\Source E:\KTX-Software\build E:\KTX-Software\build\lib\astc-encoder\Source E:\KTX-Software\build\lib\astc-encoder\Source\CMakeFiles\astcenc-avx2-static.dir\DependInfo.cmake --color=
mingw32-make[2]: Leaving directory 'E:/KTX-Software/build'
F:/llvm-mingw-20220906-msvcrt-x86_64/bin/mingw32-make  -f lib\astc-encoder\Source\CMakeFiles\astcenc-avx2-static.dir\build.make lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/build  
mingw32-make[2]: Entering directory 'E:/KTX-Software/build'
[  0%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_averages_and_directions.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_averages_and_directions.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_averages_and_directions.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_averages_and_directions.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_averages_and_directions.cpp
[  1%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_block_sizes.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_block_sizes.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_block_sizes.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_block_sizes.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_block_sizes.cpp
[  2%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_color_quantize.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_color_quantize.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_color_quantize.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_color_quantize.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_color_quantize.cpp
[  2%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_color_unquantize.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_color_unquantize.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_color_unquantize.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_color_unquantize.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_color_unquantize.cpp
[  3%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_compress_symbolic.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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-nol 
iteral -Wno-reserved-identifier -Wno-cast-function-type -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_compress_symbolic.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_compress_symbolic.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_compress_symbolic.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_compress_symbolic.cpp
[  4%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_compute_variance.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_compute_variance.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_compute_variance.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_compute_variance.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_compute_variance.cpp
[  4%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_decompress_symbolic.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_decompress_symbolic.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_decompress_symbolic.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_decompress_symbolic.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_decompress_symbolic.cpp
[  5%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_diagnostic_trace.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_diagnostic_trace.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_diagnostic_trace.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_diagnostic_trace.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_diagnostic_trace.cpp
[  6%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_entry.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_entry.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_entry.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_entry.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_entry.cpp
[  6%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_find_best_partitioning.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_find_best_partitioning.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_find_best_partitioning.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_find_best_partitioning.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_find_best_partitioning.cpp
[  7%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_ideal_endpoints_and_weights.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_ideal_endpoints_and_weights.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_ideal_endpoints_and_weights.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_ideal_endpoints_and_weights.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_ideal_endpoints_and_weights.cpp
[  8%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_image.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_image.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_image.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_image.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_image.cpp
[  8%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_integer_sequence.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_integer_sequence.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_integer_sequence.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_integer_sequence.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_integer_sequence.cpp
[  9%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_mathlib.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_mathlib.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_mathlib.cpp  
[ 10%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib_softfloat.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib_softfloat.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_mathlib_softfloat.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_mathlib_softfloat.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_mathlib_softfloat.cpp
[ 11%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_partition_tables.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_partition_tables.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_partition_tables.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_partition_tables.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_partition_tables.cpp
[ 11%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_percentile_tables.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_percentile_tables.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_percentile_tables.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_percentile_tables.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_percentile_tables.cpp
[ 12%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_pick_best_endpoint_format.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_pick_best_endpoint_format.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_pick_best_endpoint_format.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_pick_best_endpoint_format.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_pick_best_endpoint_format.cpp
[ 13%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_platform_isa_detection.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_platform_isa_detection.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_platform_isa_detection.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_platform_isa_detection.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_platform_isa_detection.cpp
[ 13%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_quantization.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_quantization.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_quantization.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_quantization.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_quantization.cpp
[ 14%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_symbolic_physical.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_symbolic_physical.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_symbolic_physical.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_symbolic_physical.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_symbolic_physical.cpp
[ 15%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_align.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_align.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_weight_align.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_weight_align.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_weight_align.cpp
[ 15%] Building CXX object lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_quant_xfer_tables.cpp.obj
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DASTCENC_AVX=2 -DASTCENC_F16C=1 -DASTCENC_NEON=0 -DASTCENC_POPCNT=1 -DASTCENC_SSE=41 
@CMakeFiles/astcenc-avx2-static.dir/includes_CXX.rsp -Wall -Wextra -O3 -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 -Wdocumentation -mavx2 -mpopcnt -mf16c -std=c++14 -MD -MT lib/astc-encoder/Source/CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_quant_xfer_tables.cpp.obj -MF CMakeFiles\astcenc-avx2-static.dir\astcenc_weight_quant_xfer_tables.cpp.obj.d -o CMakeFiles\astcenc-avx2-static.dir\astcenc_weight_quant_xfer_tables.cpp.obj -c E:\KTX-Software\lib\astc-encoder\Source\astcenc_weight_quant_xfer_tables.cpp
[ 16%] Linking CXX static library libastcenc-avx2-static.a
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\CMake\bin\cmake.exe -P CMakeFiles\astcenc-avx2-static.dir\cmake_clean_target.cmake
cd /d E:\KTX-Software\build\lib\astc-encoder\Source && F:\CMake\bin\cmake.exe -E cmake_link_script CMakeFiles\astcenc-avx2-static.dir\link.txt --verbose=1
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\llvm-ar.exe qc libastcenc-avx2-static.a "CMakeFiles/astcenc-avx2-static.dir/astcenc_averages_and_directions.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_block_sizes.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_color_quantize.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_color_unquantize.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_compress_symbolic.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_compute_variance.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_decompress_symbolic.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_diagnostic_trace.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_entry.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_find_best_partitioning.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_ideal_endpoints_and_weights.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_image.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_integer_sequence.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_mathlib_softfloat.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_partition_tables.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_percentile_tables.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_pick_best_endpoint_format.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_platform_isa_detection.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_quantization.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_symbolic_physical.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_align.cpp.obj" "CMakeFiles/astcenc-avx2-static.dir/astcenc_weight_quant_xfer_tables.cpp.obj"
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\llvm-ranlib.exe libastcenc-avx2-static.a
mingw32-make[2]: Leaving directory 'E:/KTX-Software/build'
[ 16%] Built target astcenc-avx2-static
F:/llvm-mingw-20220906-msvcrt-x86_64/bin/mingw32-make  -f CMakeFiles\ktx_version.dir\build.make CMakeFiles/ktx_version.dir/depend
mingw32-make[2]: Entering directory 'E:/KTX-Software/build'
F:\CMake\bin\cmake.exe -E cmake_depends "MinGW Makefiles" E:\KTX-Software E:\KTX-Software E:\KTX-Software\build E:\KTX-Software\build E:\KTX-Software\build\CMakeFiles\ktx_version.dir\DependInfo.cmake --color=
mingw32-make[2]: Leaving directory 'E:/KTX-Software/build'
F:/llvm-mingw-20220906-msvcrt-x86_64/bin/mingw32-make  -f CMakeFiles\ktx_version.dir\build.make CMakeFiles/ktx_version.dir/build
mingw32-make[2]: Entering directory 'E:/KTX-Software/build'
mingw32-make[2]: Nothing to be done for 'CMakeFiles/ktx_version.dir/build'.
mingw32-make[2]: Leaving directory 'E:/KTX-Software/build'
[ 17%] Built target ktx_version
F:/llvm-mingw-20220906-msvcrt-x86_64/bin/mingw32-make  -f CMakeFiles\ktx.dir\build.make CMakeFiles/ktx.dir/depend
mingw32-make[2]: Entering directory 'E:/KTX-Software/build'
F:\CMake\bin\cmake.exe -E cmake_depends "MinGW Makefiles" E:\KTX-Software E:\KTX-Software E:\KTX-Software\build E:\KTX-Software\build E:\KTX-Software\build\CMakeFiles\ktx.dir\DependInfo.cmake --color=
mingw32-make[2]: Leaving directory 'E:/KTX-Software/build'
F:/llvm-mingw-20220906-msvcrt-x86_64/bin/mingw32-make  -f CMakeFiles\ktx.dir\build.make CMakeFiles/ktx.dir/build
mingw32-make[2]: Entering directory 'E:/KTX-Software/build'
[ 18%] Building CXX object CMakeFiles/ktx.dir/lib/basis_transcode.cpp.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_CXX.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/basis_transcode.cpp.obj -MF CMakeFiles\ktx.dir\lib\basis_transcode.cpp.obj.d -o CMakeFiles\ktx.dir\lib\basis_transcode.cpp.obj -c E:\KTX-Software\lib\basis_transcode.cpp
In file included from E:\KTX-Software\lib\basis_transcode.cpp:26:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 18%] Building CXX object CMakeFiles/ktx.dir/lib/basisu/transcoder/basisu_transcoder.cpp.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_CXX.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -MD -MT CMakeFiles/ktx.dir/lib/basisu/transcoder/basisu_transcoder.cpp.obj -MF CMakeFiles\ktx.dir\lib\basisu\transcoder\basisu_transcoder.cpp.obj.d -o CMakeFiles\ktx.dir\lib\basisu\transcoder\basisu_transcoder.cpp.obj -c E:\KTX-Software\lib\basisu\transcoder\basisu_transcoder.cpp
[ 19%] Building C object CMakeFiles/ktx.dir/lib/basisu/zstd/zstd.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -Wno-unused-but-set-variable -Wno-bitwise-instead-of-logical -MD -MT CMakeFiles/ktx.dir/lib/basisu/zstd/zstd.c.obj -MF CMakeFiles\ktx.dir\lib\basisu\zstd\zstd.c.obj.d -o CMakeFiles\ktx.dir\lib\basisu\zstd\zstd.c.obj -c E:\KTX-Software\lib\basisu\zstd\zstd.c
[ 20%] Building C object CMakeFiles/ktx.dir/lib/checkheader.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/checkheader.c.obj -MF CMakeFiles\ktx.dir\lib\checkheader.c.obj.d -o CMakeFiles\ktx.dir\lib\checkheader.c.obj -c E:\KTX-Software\lib\checkheader.c
In file included from E:\KTX-Software\lib\checkheader.c:28:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 20%] Building C object CMakeFiles/ktx.dir/lib/dfdutils/createdfd.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/dfdutils/createdfd.c.obj -MF CMakeFiles\ktx.dir\lib\dfdutils\createdfd.c.obj.d -o 
CMakeFiles\ktx.dir\lib\dfdutils\createdfd.c.obj -c E:\KTX-Software\lib\dfdutils\createdfd.c
[ 21%] Building C object CMakeFiles/ktx.dir/lib/dfdutils/colourspaces.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/dfdutils/colourspaces.c.obj -MF CMakeFiles\ktx.dir\lib\dfdutils\colourspaces.c.obj.d -o CMakeFiles\ktx.dir\lib\dfdutils\colourspaces.c.obj -c E:\KTX-Software\lib\dfdutils\colourspaces.c
[ 22%] Building C object CMakeFiles/ktx.dir/lib/dfdutils/interpretdfd.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/dfdutils/interpretdfd.c.obj -MF CMakeFiles\ktx.dir\lib\dfdutils\interpretdfd.c.obj.d -o CMakeFiles\ktx.dir\lib\dfdutils\interpretdfd.c.obj -c E:\KTX-Software\lib\dfdutils\interpretdfd.c
[ 22%] Building C object CMakeFiles/ktx.dir/lib/dfdutils/printdfd.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/dfdutils/printdfd.c.obj -MF CMakeFiles\ktx.dir\lib\dfdutils\printdfd.c.obj.d -o CMakeFiles\ktx.dir\lib\dfdutils\printdfd.c.obj -c E:\KTX-Software\lib\dfdutils\printdfd.c
[ 23%] Building C object CMakeFiles/ktx.dir/lib/dfdutils/queries.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/dfdutils/queries.c.obj -MF CMakeFiles\ktx.dir\lib\dfdutils\queries.c.obj.d -o CMakeFiles\ktx.dir\lib\dfdutils\queries.c.obj -c E:\KTX-Software\lib\dfdutils\queries.c
[ 24%] Building C object CMakeFiles/ktx.dir/lib/dfdutils/vk2dfd.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/dfdutils/vk2dfd.c.obj -MF CMakeFiles\ktx.dir\lib\dfdutils\vk2dfd.c.obj.d -o CMakeFiles\ktx.dir\lib\dfdutils\vk2dfd.c.obj -c E:\KTX-Software\lib\dfdutils\vk2dfd.c
[ 24%] Building CXX object CMakeFiles/ktx.dir/lib/etcdec.cxx.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_CXX.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/etcdec.cxx.obj -MF CMakeFiles\ktx.dir\lib\etcdec.cxx.obj.d -o CMakeFiles\ktx.dir\lib\etcdec.cxx.obj -c E:\KTX-Software\lib\etcdec.cxx
[ 25%] Building CXX object CMakeFiles/ktx.dir/lib/etcunpack.cxx.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_CXX.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/etcunpack.cxx.obj -MF CMakeFiles\ktx.dir\lib\etcunpack.cxx.obj.d -o CMakeFiles\ktx.dir\lib\etcunpack.cxx.obj -c E:\KTX-Software\lib\etcunpack.cxx
In file included from E:\KTX-Software\lib\etcunpack.cxx:26:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 26%] Building C object CMakeFiles/ktx.dir/lib/filestream.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/filestream.c.obj -MF CMakeFiles\ktx.dir\lib\filestream.c.obj.d -o CMakeFiles\ktx.dir\lib\filestream.c.obj -c E:\KTX-Software\lib\filestream.c
In file included from E:\KTX-Software\lib\filestream.c:34:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
E:\KTX-Software\lib\filestream.c:319:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
    statret = fstat(fileno(str->data.file), &statbuf);
    ^
E:\KTX-Software\lib\filestream.c:316:3: note: previous statement is here
  if (str->data.file->_flag & _IOWRT)
  ^
2 warnings generated.
[ 26%] Building C object CMakeFiles/ktx.dir/lib/hashlist.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/hashlist.c.obj -MF CMakeFiles\ktx.dir\lib\hashlist.c.obj.d -o CMakeFiles\ktx.dir\lib\hashlist.c.obj -c E:\KTX-Software\lib\hashlist.c
In file included from E:\KTX-Software\lib\hashlist.c:35:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 27%] Building C object CMakeFiles/ktx.dir/lib/info.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/info.c.obj -MF CMakeFiles\ktx.dir\lib\info.c.obj.d -o CMakeFiles\ktx.dir\lib\info.c.obj -c E:\KTX-Software\lib\info.c
In file included from E:\KTX-Software\lib\info.c:31:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 28%] Building C object CMakeFiles/ktx.dir/lib/memstream.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/memstream.c.obj -MF CMakeFiles\ktx.dir\lib\memstream.c.obj.d -o CMakeFiles\ktx.dir\lib\memstream.c.obj -c E:\KTX-Software\lib\memstream.c
In file included from E:\KTX-Software\lib\memstream.c:24:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 29%] Building C object CMakeFiles/ktx.dir/lib/strings.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/strings.c.obj -MF CMakeFiles\ktx.dir\lib\strings.c.obj.d -o CMakeFiles\ktx.dir\lib\strings.c.obj -c E:\KTX-Software\lib\strings.c
In file included from E:\KTX-Software\lib\strings.c:18:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 29%] Building C object CMakeFiles/ktx.dir/lib/swap.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/swap.c.obj -MF CMakeFiles\ktx.dir\lib\swap.c.obj.d -o CMakeFiles\ktx.dir\lib\swap.c.obj -c E:\KTX-Software\lib\swap.c
In file included from E:\KTX-Software\lib\swap.c:12:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 30%] Building C object CMakeFiles/ktx.dir/lib/texture.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/texture.c.obj -MF CMakeFiles\ktx.dir\lib\texture.c.obj.d -o CMakeFiles\ktx.dir\lib\texture.c.obj -c E:\KTX-Software\lib\texture.c
In file included from E:\KTX-Software\lib\texture.c:32:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 31%] Building C object CMakeFiles/ktx.dir/lib/texture2.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/texture2.c.obj -MF CMakeFiles\ktx.dir\lib\texture2.c.obj.d -o CMakeFiles\ktx.dir\lib\texture2.c.obj -c E:\KTX-Software\lib\texture2.c
In file included from E:\KTX-Software\lib\texture2.c:30:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 31%] Building C object CMakeFiles/ktx.dir/lib/vkformat_check.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/vkformat_check.c.obj -MF CMakeFiles\ktx.dir\lib\vkformat_check.c.obj.d -o CMakeFiles\ktx.dir\lib\vkformat_check.c.obj -c E:\KTX-Software\lib\vkformat_check.c
[ 32%] Building C object CMakeFiles/ktx.dir/lib/vkformat_str.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/vkformat_str.c.obj -MF CMakeFiles\ktx.dir\lib\vkformat_str.c.obj.d -o CMakeFiles\ktx.dir\lib\vkformat_str.c.obj -c E:\KTX-Software\lib\vkformat_str.c
[ 33%] Building C object CMakeFiles/ktx.dir/lib/gl_funcs.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/gl_funcs.c.obj -MF CMakeFiles\ktx.dir\lib\gl_funcs.c.obj.d -o CMakeFiles\ktx.dir\lib\gl_funcs.c.obj -c E:\KTX-Software\lib\gl_funcs.c
In file included from E:\KTX-Software\lib\gl_funcs.c:58:
In file included from E:\KTX-Software\lib/gl_funcs.h:25:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 33%] Building C object CMakeFiles/ktx.dir/lib/glloader.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/glloader.c.obj -MF CMakeFiles\ktx.dir\lib\glloader.c.obj.d -o CMakeFiles\ktx.dir\lib\glloader.c.obj -c E:\KTX-Software\lib\glloader.c
In file included from E:\KTX-Software\lib\glloader.c:29:
In file included from E:\KTX-Software\lib/gl_funcs.h:25:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 34%] Building C object CMakeFiles/ktx.dir/lib/texture1.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/texture1.c.obj -MF CMakeFiles\ktx.dir\lib\texture1.c.obj.d -o CMakeFiles\ktx.dir\lib\texture1.c.obj -c E:\KTX-Software\lib\texture1.c
In file included from E:\KTX-Software\lib\texture1.c:27:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 35%] Building C object CMakeFiles/ktx.dir/lib/vk_funcs.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/vk_funcs.c.obj -MF CMakeFiles\ktx.dir\lib\vk_funcs.c.obj.d -o CMakeFiles\ktx.dir\lib\vk_funcs.c.obj -c E:\KTX-Software\lib\vk_funcs.c
In file included from E:\KTX-Software\lib\vk_funcs.c:46:
In file included from E:\KTX-Software\lib/vk_funcs.h:28:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 35%] Building C object CMakeFiles/ktx.dir/lib/vkloader.c.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\cc.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_C.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/vkloader.c.obj -MF CMakeFiles\ktx.dir\lib\vkloader.c.obj.d -o CMakeFiles\ktx.dir\lib\vkloader.c.obj -c E:\KTX-Software\lib\vkloader.c
In file included from E:\KTX-Software\lib\vkloader.c:29:
In file included from E:\KTX-Software\lib/vk_funcs.h:28:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 36%] Building CXX object CMakeFiles/ktx.dir/lib/basis_encode.cpp.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_CXX.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -MD -MT CMakeFiles/ktx.dir/lib/basis_encode.cpp.obj -MF CMakeFiles\ktx.dir\lib\basis_encode.cpp.obj.d -o CMakeFiles\ktx.dir\lib\basis_encode.cpp.obj -c E:\KTX-Software\lib\basis_encode.cpp
In file included from E:\KTX-Software\lib\basis_encode.cpp:26:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
1 warning generated.
[ 37%] Building CXX object CMakeFiles/ktx.dir/lib/astc_encode.cpp.obj
F:\llvm-mingw-20220906-msvcrt-x86_64\bin\clang++.exe -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_KTX2=1 -DBASISD_SUPPORT_KTX2_ZSTD=0 -DBASISU_NO_ITERATOR_DEBUG_LEVEL -DBASISU_SUPPORT_OPENCL=0 -DBASISU_SUPPORT_SSE=1 -DKHRONOS_STATIC -DKTX_API=__declspec(dllexport) -DKTX_FEATURE_KTX1 -DKTX_FEATURE_KTX2 -DKTX_FEATURE_WRITE -DLIBKTX -DWIN32_HAS_PTHREADS @CMakeFiles/ktx.dir/includes_CXX.rsp -Wall -Wextra -O3 -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-pedantic -msse4.1 -fvisibility=hidden -MD -MT CMakeFiles/ktx.dir/lib/astc_encode.cpp.obj -MF CMakeFiles\ktx.dir\lib\astc_encode.cpp.obj.d -o CMakeFiles\ktx.dir\lib\astc_encode.cpp.obj -c E:\KTX-Software\lib\astc_encode.cpp
In file included from E:\KTX-Software\lib\astc_encode.cpp:29:
E:/KTX-Software/include/ktx.h:37:11: warning: 'KTX_API' macro redefined [-Wmacro-redefined]
  #define KTX_API
          ^
<command line>:8:9: note: previous definition is here
#define KTX_API __declspec(dllexport)
        ^
E:\KTX-Software\lib\astc_encode.cpp:437:5: error: unknown type name 'pthread_t'
    pthread_t threadHandle;
    ^
1 warning and 1 error generated.
mingw32-make[2]: *** [CMakeFiles\ktx.dir\build.make:500: CMakeFiles/ktx.dir/lib/astc_encode.cpp.obj] Error 1
mingw32-make[2]: Leaving directory 'E:/KTX-Software/build'
mingw32-make[1]: *** [CMakeFiles\Makefile2:1079: CMakeFiles/ktx.dir/all] Error 2
mingw32-make[1]: Leaving directory 'E:/KTX-Software/build'
mingw32-make: *** [Makefile:165: all] Error 2

a new error come out.

error: unknown type name 'pthread_t'

and this issue I had discussed in https://github.com/KhronosGroup/KTX-Software/pull/574#issuecomment-1133837312 and https://github.com/KhronosGroup/KTX-Software/pull/579 but it hasn't been solved

alvinhochun commented 1 year ago

Probably astc_encode.cpp is missing #include <pthread.h>.

FuXiii commented 1 year ago

This issue had been fixed. https://github.com/KhronosGroup/KTX-Software/issues/651 https://github.com/KhronosGroup/KTX-Software/pull/653 @alvinhochun Thank you very much~