Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yurivict opened this issue Aug 27, 2019 · 0 comments

Comments

@yurivict
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant