compilation failed with mingw toolchain
- gcc version 11.3.0
- cmake version 3.23.1
- ninja version 1.11.0
- cmake configure command
cmake.exe \
-Wno-dev \
-G "Ninja" \
-DCMAKE_INSTALL_PREFIX=/mingw64 \
-DCMAKE_BUILD_TYPE=Release \
-DTILEDB_STATIC=ON \
-DTILEDB_S3=ON \
../
- 1st build error:
CMake Error: CMake can not determine linker language for target: range
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
ninja: build stopped: subcommand failed.
- 2nd build error:
TileDB-2.9.1/tiledb/sm/misc/mgc_dict.cc:41:10: fatal error: magic_mgc_gzipped.
bin: No such file or directory
41 | #include "magic_mgc_gzipped.bin"
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
I can provide further information if required.
Hi @Biswa96, thank you for opening the issue. We don't actively test/support ninja, and I believe that's the cause of the first error (it's something I want but have not gotten to yet - patches welcome if this is important for your use-case). Without ninja, it looks like we have some build issues in GCC 11 and 12 due to new unused variable warnings in sub-projects which un-conditionally enable -Werror (aws-sdk-cpp). I was not able to avoid this even with exporting CXXFLAGS=-Wno-werror but we will take a look and see what else is possible to get the subproject to build.
The build errors should all be fixed here. I've put a fix for the ninja build in #3997. Please comment if needed and we will be happy to reopen.