Skip to content

Instantly share code, notes, and snippets.

@currymj
Created September 11, 2019 16:54
Show Gist options
  • Save currymj/5dced9ad4b3b0a674ab0cf17c658af2c to your computer and use it in GitHub Desktop.
Save currymj/5dced9ad4b3b0a674ab0cf17c658af2c to your computer and use it in GitHub Desktop.
saved output of build errors from pytorch code
In file included from ../caffe2/operators/batch_matmul_op.h:11:0,
from ../caffe2/operators/batch_matmul_op_test.cc:6:
../caffe2/core/operator.h: In member function 'std::vector<_RealType> caffe2::OperatorBase::GetVectorFromIValueList(const c10::IValue&) const':
../caffe2/core/operator.h:129:47: error: parse error in template argument list
return c10::impl::toVector(value.template to<List<T>>());
^
../caffe2/core/operator.h: In instantiation of 'std::vector<_RealType> caffe2::OperatorBase::GetVectorFromIValueList(const c10::IValue&) const [with T = long int]':
../caffe2/core/operator.h:818:52: required from here
../caffe2/core/operator.h:129:31: error: no matching function for call to 'c10::IValue::to() const'
return c10::impl::toVector(value.template to<List<T>>());
^
In file included from ../caffe2/core/operator.h:33:0,
from ../caffe2/operators/batch_matmul_op.h:11,
from ../caffe2/operators/batch_matmul_op_test.cc:6:
../aten/src/ATen/core/ivalue.h:389:5: note: candidate: template<class T> T c10::IValue::to() &&
T to() &&;
^
../aten/src/ATen/core/ivalue.h:389:5: note: template argument deduction/substitution failed:
../aten/src/ATen/core/ivalue.h:391:5: note: candidate: template<class T> T c10::IValue::to() const &
T to() const &;
^
../aten/src/ATen/core/ivalue.h:391:5: note: template argument deduction/substitution failed:
[476/1713] Building CXX object caffe2/...d11_state.dir/python/pybind_state.cc.o
FAILED: caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state.cc.o
/home/gridsan/groups/llgrid_beta/gcc/5.2.0/bin/c++ -DAT_PARALLEL_OPENMP=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTH_BLAS_MKL -D_FILE_OFFSET_BITS=64 -D_THP_CORE -Dcaffe2_pybind11_state_EXPORTS -I../aten/src -I. -I../ -I../cmake/../third_party/benchmark/include -Icaffe2/contrib/aten -I../third_party/onnx -Ithird_party/onnx -I../third_party/foxi -Ithird_party/foxi -Icaffe2/aten/src/TH -I../aten/src/TH -Icaffe2/aten/src -Iaten/src -I../aten/../third_party/catch/single_include -I../aten/src/ATen/.. -Icaffe2/aten/src/ATen -I../third_party/miniz-2.0.8 -I../caffe2/core/nomnigraph/include -I../caffe2/../torch/csrc/api -I../caffe2/../torch/csrc/api/include -I../c10/.. -Ithird_party/ideep/mkl-dnn/include -I../third_party/ideep/mkl-dnn/src/../include -isystem third_party/gloo -isystem ../cmake/../third_party/gloo -isystem ../cmake/../third_party/googletest/googlemock/include -isystem ../cmake/../third_party/googletest/googletest/include -isystem ../third_party/protobuf/src -isystem /home/gridsan/mcurry/.conda/envs/pbg/include -isystem ../third_party/gemmlowp -isystem ../third_party/neon2sse -isystem ../third_party -isystem ../cmake/../third_party/eigen -isystem /home/gridsan/mcurry/.conda/envs/pbg/include/python3.6m -isystem /home/gridsan/mcurry/.conda/envs/pbg/lib/python3.6/site-packages/numpy/core/include -isystem /usr/include/mpich-x86_64 -isystem ../third_party/ideep/mkl-dnn/include -isystem ../third_party/ideep/include -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -DUSE_FBGEMM -DUSE_QNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION -O3 -fPIC -fvisibility=hidden -DCAFFE2_USE_GLOO -DHAVE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-write-strings -Wno-unknown-pragmas -Wno-missing-braces -fopenmp -pthread -std=gnu++11 -MD -MT caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state.cc.o -MF caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state.cc.o.d -o caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state.cc.o -c ../caffe2/python/pybind_state.cc
../caffe2/python/pybind_state.cc: In function 'bool caffe2::python::python_detail::feedBlob(caffe2::Blob*, const pybind11::object&, pybind11::object)':
../caffe2/python/pybind_state.cc:228:22: error: 'const class pybind11::object' has no member named 'is'
if (!device_option.is(py::none())) {
^
../caffe2/python/pybind_state.cc: In function 'void caffe2::python::addObjectMethods(pybind11::module&)':
../caffe2/python/pybind_state.cc:750:8: error: no matching function for call to 'init(caffe2::python::addObjectMethods(pybind11::module&)::<lambda(const std::vector<pybind11::bytes>&, const std::vector<pybind11::bytes>&, const std::vector<std::__cxx11::basic_string<char> >&)>)'
}));
^
In file included from ../caffe2/python/pybind_state_dlpack.h:9:0,
from ../caffe2/python/pybind_state.h:16,
from ../caffe2/python/pybind_state.cc:1:
/usr/include/pybind11/pybind11.h:1418:51: note: candidate: template<class ... Args> pybind11::detail::init<Args ...> pybind11::init()
template <typename... Args> detail::init<Args...> init() { return detail::init<Args...>(); }
^
/usr/include/pybind11/pybind11.h:1418:51: note: template argument deduction/substitution failed:
../caffe2/python/pybind_state.cc:750:8: note: candidate expects 0 arguments, 1 provided
}));
^
../caffe2/python/pybind_state.cc: In lambda function:
../caffe2/python/pybind_state.cc:757:22: error: 'const class pybind11::object' has no member named 'is'
if (args.is(py::none())) {
^
../caffe2/python/pybind_state.cc: In function 'void caffe2::python::addObjectMethods(pybind11::module&)':
../caffe2/python/pybind_state.cc:951:8: error: no matching function for call to 'init(caffe2::python::addObjectMethods(pybind11::module&)::<lambda(pybind11::bytes, pybind11::bytes)>)'
}))
^
In file included from ../caffe2/python/pybind_state_dlpack.h:9:0,
from ../caffe2/python/pybind_state.h:16,
from ../caffe2/python/pybind_state.cc:1:
/usr/include/pybind11/pybind11.h:1418:51: note: candidate: template<class ... Args> pybind11::detail::init<Args ...> pybind11::init()
template <typename... Args> detail::init<Args...> init() { return detail::init<Args...>(); }
^
/usr/include/pybind11/pybind11.h:1418:51: note: template argument deduction/substitution failed:
../caffe2/python/pybind_state.cc:951:8: note: candidate expects 0 arguments, 1 provided
}))
^
../caffe2/python/pybind_state.cc: In lambda function:
../caffe2/python/pybind_state.cc:1108:31: error: 'const class pybind11::object' has no member named 'is'
if (create_if_missing.is(py::none())) {
^
../caffe2/python/pybind_state.cc: In lambda function:
../caffe2/python/pybind_state.cc:1120:25: error: 'const class pybind11::object' has no member named 'is'
if (root_folder.is(py::none())) {
^
In file included from ../c10/core/DeviceType.h:8:0,
from ../c10/core/Device.h:3,
from ../c10/core/Allocator.h:6,
from ../c10/core/CPUAllocator.h:6,
from ../caffe2/core/allocator.h:3,
from ../caffe2/core/context.h:9,
from ../caffe2/python/pybind_state.h:5,
from ../caffe2/python/pybind_state.cc:1:
../caffe2/python/pybind_state.cc: In lambda function:
../caffe2/python/pybind_state.cc:1565:29: error: 'class pybind11::object' has no member named 'is'
CAFFE_ENFORCE(!func.is(py::none()));
^
../c10/macros/Macros.h:140:65: note: in definition of macro 'C10_UNLIKELY'
#define C10_UNLIKELY(expr) (__builtin_expect(static_cast<bool>(expr), 0))
^
../caffe2/python/pybind_state.cc:1565:9: note: in expansion of macro 'CAFFE_ENFORCE'
CAFFE_ENFORCE(!func.is(py::none()));
^
../caffe2/python/pybind_state.cc: In lambda function:
../caffe2/python/pybind_state.cc:1581:29: error: 'class pybind11::object' has no member named 'is'
CAFFE_ENFORCE(!func.is(py::none()));
^
../c10/macros/Macros.h:140:65: note: in definition of macro 'C10_UNLIKELY'
#define C10_UNLIKELY(expr) (__builtin_expect(static_cast<bool>(expr), 0))
^
../caffe2/python/pybind_state.cc:1581:9: note: in expansion of macro 'CAFFE_ENFORCE'
CAFFE_ENFORCE(!func.is(py::none()));
^
../caffe2/python/pybind_state.cc: At global scope:
../caffe2/python/pybind_state.cc:1836:16: error: expected constructor, destructor, or type conversion before '(' token
PYBIND11_MODULE(caffe2_pybind11_state, m) {
^
../caffe2/python/pybind_state.cc:1849:1: error: expected '}' at end of input
} // namespace caffe2
^
../caffe2/python/pybind_state.cc:1849:1: error: expected '}' at end of input
[477/1713] Building CXX object third_p...vx2.dir/src/FbgemmI8DepthwiseAvx2.cc.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "setup.py", line 756, in <module>
build_deps()
File "setup.py", line 325, in build_deps
cmake=cmake)
File "/home/gridsan/mcurry/pytorch/tools/build_pytorch_libs.py", line 64, in build_caffe2
cmake.build(my_env)
File "/home/gridsan/mcurry/pytorch/tools/setup_helpers/cmake.py", line 321, in build
self.run(build_args, my_env)
File "/home/gridsan/mcurry/pytorch/tools/setup_helpers/cmake.py", line 133, in run
check_call(command, cwd=self.build_dir, env=env)
File "/home/gridsan/mcurry/.conda/envs/pbg/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '56']' returned non-zero exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment