ONNC/onnc

error: variable 'xcheck_model' with type 'const auto &' has incompatible initializer of type '<overloaded function type>'

Opened this issue · 0 comments

clang8 fails to build 1.0.0-preview-2:

In file included from /usr/ports/math/onnc/work/onnc-1.0.0-preview-2-g10c3530d/include/onnc/IR/ComputeOperator.h:13:
include/onnc/Config/ONNX.h:56:20: error: variable 'xcheck_model' with type 'const auto &' has incompatible initializer of type '<overloaded function type>'
const static auto& xcheck_model = ::onnx::checker::check_model;
                   ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/onnc/Config/ONNX.h:57:20: error: variable 'xInferShapes' with type 'const auto &' has incompatible initializer of type '<overloaded function type>'
const static auto& xInferShapes =
                   ^
2 errors generated.
[11/615] /usr/bin/c++  -DONNX_NAMESPACE=onnx -I/usr/local/llvm60/include -I/usr/ports/math/onnc/work/onnc-1.0.0-preview-2-g10c3530d/include -Iinclude -Ilib -Ilib/include -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -DONNX_ML -isystem /usr/local/include -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -DONNX_ML -isystem /usr/local/include   -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=c++14 -MD -MT lib/IR/CMakeFiles/libonnc_IR.dir/Compute/Max.cpp.o -MF lib/IR/CMakeFiles/libonnc_IR.dir/Compute/Max.cpp.o.d -o lib/IR/CMakeFiles/libonnc_IR.dir/Compute/Max.cpp.o -c /usr/ports/math/onnc/work/onnc-1.0.0-preview-2-g10c3530d/lib/IR/Compute/Max.cpp
FAILED: lib/IR/CMakeFiles/libonnc_IR.dir/Compute/Max.cpp.o 
/usr/bin/c++  -DONNX_NAMESPACE=onnx -I/usr/local/llvm60/include -I/usr/ports/math/onnc/work/onnc-1.0.0-preview-2-g10c3530d/include -Iinclude -Ilib -Ilib/include -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -DONNX_ML -isystem /usr/local/include -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -DONNX_ML -isystem /usr/local/include   -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=c++14 -MD -MT lib/IR/CMakeFiles/libonnc_IR.dir/Compute/Max.cpp.o -MF lib/IR/CMakeFiles/libonnc_IR.dir/Compute/Max.cpp.o.d -o lib/IR/CMakeFiles/libonnc_IR.dir/Compute/Max.cpp.o -c /usr/ports/math/onnc/work/onnc-1.0.0-preview-2-g10c3530d/lib/IR/Compute/Max.cpp
In file included from /usr/ports/math/onnc/work/onnc-1.0.0-preview-2-g10c3530d/lib/IR/Compute/Max.cpp:8:
In file included from /usr/ports/math/onnc/work/onnc-1.0.0-preview-2-g10c3530d/include/onnc/IR/Compute/Max.h:10:
In file included from /usr/ports/math/onnc/work/onnc-1.0.0-preview-2-g10c3530d/include/onnc/IR/ComputeOperator.h:13:
include/onnc/Config/ONNX.h:56:20: error: variable 'xcheck_model' with type 'const auto &' has incompatible initializer of type '<overloaded function type>'
const static auto& xcheck_model = ::onnx::checker::check_model;
                   ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/onnc/Config/ONNX.h:57:20: error: variable 'xInferShapes' with type 'const auto &' has incompatible initializer of type '<overloaded function type>'
const static auto& xInferShapes =
                   ^
2 errors generated.