Closed YongseopKim closed 2 years ago
tar xfz
#include <limits>
setenv
dirent.h
$ find /c/git-sdk-64/ -name "dirent.h"
...
/c/git-sdk-64/mingw64/x86_64-w64-mingw32/include/dirent.h
/c/git-sdk-64/usr/include/dirent.h
...
echo | gcc -v -x c++ -E -
...
#include <...> search starts here:
C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../include/c++/11.2.0
C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../include/c++/11.2.0/x86_64-w64-mingw32
C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../include/c++/11.2.0/backward
C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/include
C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../include
C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed
C:/git-sdk-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/include
End of search list.
...
// setenv() cannot be used by mingw
// So, use putenv() instead of setenv()
// (ref: https://sourceforge.net/p/mingw/mailman/message/35495004/)
// Or, use setx.exe
[ 31%] Building CXX object compiler/luci/pass/CMakeFiles/luci_pass.dir/src/FoldSparseToDensePass.cpp.obj
C:/GitHub/ONE/compiler/luci/pass/src/FoldSparseToDensePass.cpp: In function 'bool {anonymous}::fold_sparse_to_dense(luci::CircleSparseToDense*)':
C:/GitHub/ONE/compiler/luci/pass/src/FoldSparseToDensePass.cpp:60:35: error: 'numeric_limits' is not a member of 'std'
60 | if (!(dim >= 0 && dim <= std::numeric_limits<uint32_t>::max()))
| ^~~~~~~~~~~~~~
C:/GitHub/ONE/compiler/luci/pass/src/FoldSparseToDensePass.cpp:60:58: error: expected primary-expression before '>' token
60 | if (!(dim >= 0 && dim <= std::numeric_limits<uint32_t>::max()))
| ^
C:/GitHub/ONE/compiler/luci/pass/src/FoldSparseToDensePass.cpp:60:61: error: '::max' has not been declared; did you mean 'std::max'?
60 | if (!(dim >= 0 && dim <= std::numeric_limits<uint32_t>::max()))
| ^~~
| std::max
-- Extract FLATBUFFERS
CMake Error at C:/GitHub/ONE/infra/cmake/modules/ExternalSourceTools.cmake:109 (message):
EXTRACTION_ERROR: cmake -E tar: warning: skipping symbolic link
"flatbuffers-1.10.0/docs/source/CONTRIBUTING.md" ->
"../../CONTRIBUTING.md".
Call Stack (most recent call first):
C:/GitHub/ONE/infra/cmake/packages/FlatBuffersSource-1.10/FlatBuffersSourceConfig.cmake:11 (ExternalSource_Download)
C:/GitHub/ONE/infra/cmake/packages/FlatBuffersSource-1.10/FlatBuffersSourceConfig.cmake:21 (_FlatBuffersSource_import)
C:/GitHub/ONE/infra/nncc/CMakeLists.txt:43 (find_package)
C:/GitHub/ONE/infra/cmake/packages/FlatBuffers-1.10/FlatBuffersConfig.cmake:12 (nnas_find_package)
C:/GitHub/ONE/infra/cmake/packages/FlatBuffers-1.10/FlatBuffersConfig.cmake:37 (_FlatBuffers_build)
C:/GitHub/ONE/infra/nncc/CMakeLists.txt:43 (find_package)
C:/GitHub/ONE/compiler/mio-circle/CMakeLists.txt:1 (nnas_find_package)
CMake Warning (dev) at C:/GitHub/ONE/infra/cmake/packages/ProtobufSourceConfig.cmake:12 (ExternalSource_Download):
A logical block opening on the line
C:/GitHub/ONE/infra/cmake/modules/ExternalSourceTools.cmake:112 (if)
closes on the line
C:/GitHub/ONE/infra/cmake/modules/ExternalSourceTools.cmake:114 (endif)
with mis-matching arguments.
Call Stack (most recent call first):
C:/GitHub/ONE/infra/cmake/packages/ProtobufSourceConfig.cmake:18 (_ProtobufSource_import)
C:/GitHub/ONE/infra/nncc/CMakeLists.txt:43 (find_package)
C:/GitHub/ONE/infra/cmake/packages/ProtobufConfig.cmake:47 (nnas_find_package)
C:/GitHub/ONE/infra/cmake/packages/ProtobufConfig.cmake:65 (_Protobuf_build)
C:/GitHub/ONE/infra/nncc/CMakeLists.txt:43 (find_package)
C:/GitHub/ONE/compiler/souschef/CMakeLists.txt:1 (nnas_find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
Install git sdk on Windows https://github.com/git-for-windows/build-extra/releases Install cmake on Windows v3.16.3 works: https://github.com/Kitware/CMake/releases?page=7 v3.22 doesn't work: https://cmake.org/download/