Skip to content

Better error messages thanks to compile time type names #30712

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

Closed
wants to merge 24 commits into from

Conversation

smessmer
Copy link
Contributor

@smessmer smessmer commented Dec 4, 2019

Stack from ghstack:

Differential Revision: D18805082

smessmer added a commit that referenced this pull request Dec 4, 2019
Differential Revision: [D18805082](https://our.internmc.facebook.com/intern/diff/D18805082/)

ghstack-source-id: 94904001
Pull Request resolved: #30712
smessmer added a commit that referenced this pull request Dec 5, 2019
Pull Request resolved: #30712


ghstack-source-id: 94981527

Differential Revision: [D18805082](https://our.internmc.facebook.com/intern/diff/D18805082/)
smessmer added a commit that referenced this pull request Dec 5, 2019
Pull Request resolved: #30712


ghstack-source-id: 95027404

Differential Revision: [D18805082](https://our.internmc.facebook.com/intern/diff/D18805082/)
smessmer added a commit that referenced this pull request Dec 5, 2019
Pull Request resolved: #30712


ghstack-source-id: 95048454

Differential Revision: [D18805082](https://our.internmc.facebook.com/intern/diff/D18805082/)
smessmer added a commit that referenced this pull request Dec 7, 2019
Pull Request resolved: #30712


ghstack-source-id: 95145672

Differential Revision: [D18805082](https://our.internmc.facebook.com/intern/diff/D18805082/)
smessmer added a commit that referenced this pull request Dec 8, 2019
Pull Request resolved: #30712


ghstack-source-id: 95174844

Differential Revision: [D18805082](https://our.internmc.facebook.com/intern/diff/D18805082/)
smessmer added a commit that referenced this pull request Dec 9, 2019
Pull Request resolved: #30712


ghstack-source-id: 95213510

Differential Revision: [D18805082](https://our.internmc.facebook.com/intern/diff/D18805082/)
smessmer added a commit that referenced this pull request Dec 11, 2019
Pull Request resolved: #30712


ghstack-source-id: 95339666

Differential Revision: [D18805082](https://our.internmc.facebook.com/intern/diff/D18805082/)
@smessmer smessmer changed the title [wip] Better error messages thanks to compile time type names Better error messages thanks to compile time type names Dec 11, 2019
@@ -1246,7 +1246,10 @@ template <typename T>
struct getTypePtr_ final {
static TypePtr call() {
if (!isCustomClassRegistered<T>()) {
throw c10::Error("Type could not be converted to any of the known types.", "");
throw c10::Error(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why aren't you using TORCH_CHECK(0, msg...) here?

@kostmo
Copy link
Member

kostmo commented Dec 12, 2019

💊 CircleCI build failures summary and remediations

As of commit a868662:

  • 13/14 failures introduced in this PR
  • 1/14 recognized as flaky ❄️
    • Re-run these jobs?

Detailed failure analysis

One may explore the probable reasons each build failed interactively on the Dr. CI website.

🕵️ 12 new failures recognized by patterns

The following build failures do not appear to be due to upstream breakage:

See CircleCI build pytorch_linux_xenial_py2_7_9_build (1/12)

Step: "Build" (full log | pattern match details)

Jan 11 02:37:36 /var/lib/jenkins/workspace/c10/util/typeid.h:285:31: error: constexpr call flows off the end of the function
Jan 11 02:37:36 /var/lib/jenkins/workspace/c10/util/typeid.h:427:45:   required from 'static caffe2::TypeMeta caffe2::TypeMeta::Make() [with T = c10::BFloat16]' 
Jan 11 02:37:36 /var/lib/jenkins/workspace/c10/core/ScalarType.h:179:5:   required from here 
Jan 11 02:37:36 /var/lib/jenkins/workspace/c10/util/typeid.h:75:22: note:   initializing argument 1 of 'constexpr caffe2::TypeIdentifier::TypeIdentifier(c10::util::type_index)' 
Jan 11 02:37:36    constexpr explicit TypeIdentifier(c10::util::type_index id) : IdWrapper(id) {} 
Jan 11 02:37:36                       ^~~~~~~~~~~~~~ 
Jan 11 02:37:36 /var/lib/jenkins/workspace/c10/util/typeid.h: In instantiation of 'caffe2::detail::TypeMetaData caffe2::detail::_makeTypeMetaDataInstance() [with T = c10::BFloat16]': 
Jan 11 02:37:36 /var/lib/jenkins/workspace/c10/util/typeid.h:427:45:   required from 'static caffe2::TypeMeta caffe2::TypeMeta::Make() [with T = c10::BFloat16]' 
Jan 11 02:37:36 /var/lib/jenkins/workspace/c10/core/ScalarType.h:179:5:   required from here 
Jan 11 02:37:36 /var/lib/jenkins/workspace/c10/util/typeid.h:285:62:   in constexpr expansion of 'caffe2::TypeIdentifier::Get<c10::BFloat16>()' 
Jan 11 02:37:36 /var/lib/jenkins/workspace/c10/util/typeid.h:67:55:   in constexpr expansion of 'c10::util::get_type_index<c10::BFloat16>()' 
Jan 11 02:37:36 /var/lib/jenkins/workspace/c10/util/typeid.h:285:31: error: constexpr call flows off the end of the function 
Jan 11 02:37:36    C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>(); 
Jan 11 02:37:36                                ^~~~~~ 
Jan 11 02:37:36 c10/CMakeFiles/c10.dir/build.make:86: recipe for target 'c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o' failed 
Jan 11 02:37:36 make[2]: *** [c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o] Error 1 
Jan 11 02:37:36 CMakeFiles/Makefile2:2012: recipe for target 'c10/CMakeFiles/c10.dir/all' failed 
Jan 11 02:37:36 make[1]: *** [c10/CMakeFiles/c10.dir/all] Error 2 
Jan 11 02:37:36 make[1]: *** Waiting for unfinished jobs.... 
Jan 11 02:37:36 [  7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_reorder.cpp.o 
Jan 11 02:37:36 [  7%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/address.cc.o 
Jan 11 02:37:36 [  7%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/buffer.cc.o 

See CircleCI build caffe2_onnx_py2_gcc5_ubuntu16_04_build (2/12)

Step: "Build" (full log | pattern match details)

Jan 11 02:38:17 /var/lib/jenkins/workspace/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function
Jan 11 02:38:17 /var/lib/jenkins/workspace/c10/util/TypeIndex.h:25:8: note: candidate: constexpr c10::util::type_index::type_index(c10::util::type_index&&) 
Jan 11 02:38:17 /var/lib/jenkins/workspace/c10/util/TypeIndex.h:25:8: note:   conversion of argument 1 would be ill-formed: 
Jan 11 02:38:17 In file included from /var/lib/jenkins/workspace/c10/core/ScalarType.h:6:0, 
Jan 11 02:38:17                  from /var/lib/jenkins/workspace/c10/core/StorageImpl.h:4, 
Jan 11 02:38:17                  from /var/lib/jenkins/workspace/c10/core/StorageImpl.cpp:1: 
Jan 11 02:38:17 /var/lib/jenkins/workspace/c10/util/typeid.h: In instantiation of 'caffe2::detail::TypeMetaData caffe2::detail::_makeTypeMetaDataInstance() [with T = c10::BFloat16]': 
Jan 11 02:38:17 /var/lib/jenkins/workspace/c10/util/typeid.h:427:45:   required from 'static caffe2::TypeMeta caffe2::TypeMeta::Make() [with T = c10::BFloat16]' 
Jan 11 02:38:17 /var/lib/jenkins/workspace/c10/core/ScalarType.h:179:5:   required from here 
Jan 11 02:38:17 /var/lib/jenkins/workspace/c10/util/typeid.h:285:62:   in constexpr expansion of 'caffe2::TypeIdentifier::Get<c10::BFloat16>()' 
Jan 11 02:38:17 /var/lib/jenkins/workspace/c10/util/typeid.h:67:55:   in constexpr expansion of 'c10::util::get_type_index<c10::BFloat16>()' 
Jan 11 02:38:17 /var/lib/jenkins/workspace/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function 
Jan 11 02:38:17    C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>(); 
Jan 11 02:38:17                                                                ^ 
Jan 11 02:38:17 c10/CMakeFiles/c10.dir/build.make:86: recipe for target 'c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o' failed 
Jan 11 02:38:17 make[2]: *** [c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o] Error 1 
Jan 11 02:38:17 CMakeFiles/Makefile2:2211: recipe for target 'c10/CMakeFiles/c10.dir/all' failed 
Jan 11 02:38:17 make[1]: *** [c10/CMakeFiles/c10.dir/all] Error 2 
Jan 11 02:38:17 make[1]: *** Waiting for unfinished jobs.... 
Jan 11 02:38:17 [  9%] Generating python/operator_test/find_op_test.py 
Jan 11 02:38:17 [  9%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/proto_writer.cc.o 
Jan 11 02:38:17 [  9%] Generating python/operator_test/map_ops_test.py 

See CircleCI build binary_linux_libtorch_2_7m_cpu_devtoolset7_shared-with-deps_build (3/12)

Step: "Build" (full log | pattern match details)

Jan 11 02:36:11 /pytorch/c10/util/typeid.h:285:31: error: constexpr call flows off the end of the function
Jan 11 02:36:11 /pytorch/c10/util/typeid.h:427:45:   required from ‘static caffe2::TypeMeta caffe2::TypeMeta::Make() [with T = float]’ 
Jan 11 02:36:11 /pytorch/c10/core/DefaultDtype.cpp:5:59:   required from here 
Jan 11 02:36:11 /pytorch/c10/util/typeid.h:75:22: note:   initializing argument 1 of ‘constexpr caffe2::TypeIdentifier::TypeIdentifier(c10::util::type_index)’ 
Jan 11 02:36:11    constexpr explicit TypeIdentifier(c10::util::type_index id) : IdWrapper(id) {} 
Jan 11 02:36:11                       ^~~~~~~~~~~~~~ 
Jan 11 02:36:11 /pytorch/c10/util/typeid.h: In instantiation of ‘caffe2::detail::TypeMetaData caffe2::detail::_makeTypeMetaDataInstance() [with T = float]’: 
Jan 11 02:36:11 /pytorch/c10/util/typeid.h:427:45:   required from ‘static caffe2::TypeMeta caffe2::TypeMeta::Make() [with T = float]’ 
Jan 11 02:36:11 /pytorch/c10/core/DefaultDtype.cpp:5:59:   required from here 
Jan 11 02:36:11 /pytorch/c10/util/typeid.h:285:62:   in constexpr expansion of ‘caffe2::TypeIdentifier::Get<float>()’ 
Jan 11 02:36:11 /pytorch/c10/util/typeid.h:67:55:   in constexpr expansion of ‘c10::util::get_type_index<float>()’ 
Jan 11 02:36:11 /pytorch/c10/util/typeid.h:285:31: error: constexpr call flows off the end of the function 
Jan 11 02:36:11    C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>(); 
Jan 11 02:36:11                                ^~~~~~ 
Jan 11 02:36:11 gmake[2]: *** [c10/CMakeFiles/c10.dir/core/DefaultDtype.cpp.o] Error 1 
Jan 11 02:36:11 gmake[1]: *** [c10/CMakeFiles/c10.dir/all] Error 2 
Jan 11 02:36:11 gmake[1]: *** Waiting for unfinished jobs.... 
Jan 11 02:36:11 [  5%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/zonevector.cpp.o 
Jan 11 02:36:11 [  5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/repeated_field.cc.o 
Jan 11 02:36:11 [  5%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/rnn.cpp.o 
Jan 11 02:36:11 [  5%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/scratchpad.cpp.o 
Jan 11 02:36:11 [  5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o 

See CircleCI build pytorch_linux_xenial_py3_6_gcc5_4_build (4/12)

Step: "Build" (full log | pattern match details)

Jan 11 02:38:57 /var/lib/jenkins/workspace/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function
Jan 11 02:38:57 /var/lib/jenkins/workspace/c10/util/TypeIndex.h:25:8: note: candidate: constexpr c10::util::type_index::type_index(c10::util::type_index&&) 
Jan 11 02:38:57 /var/lib/jenkins/workspace/c10/util/TypeIndex.h:25:8: note:   conversion of argument 1 would be ill-formed: 
Jan 11 02:38:57 In file included from /var/lib/jenkins/workspace/c10/core/ScalarType.h:6:0, 
Jan 11 02:38:57                  from /var/lib/jenkins/workspace/c10/core/StorageImpl.h:4, 
Jan 11 02:38:57                  from /var/lib/jenkins/workspace/c10/core/StorageImpl.cpp:1: 
Jan 11 02:38:57 /var/lib/jenkins/workspace/c10/util/typeid.h: In instantiation of 'caffe2::detail::TypeMetaData caffe2::detail::_makeTypeMetaDataInstance() [with T = c10::BFloat16]': 
Jan 11 02:38:57 /var/lib/jenkins/workspace/c10/util/typeid.h:427:45:   required from 'static caffe2::TypeMeta caffe2::TypeMeta::Make() [with T = c10::BFloat16]' 
Jan 11 02:38:57 /var/lib/jenkins/workspace/c10/core/ScalarType.h:179:5:   required from here 
Jan 11 02:38:57 /var/lib/jenkins/workspace/c10/util/typeid.h:285:62:   in constexpr expansion of 'caffe2::TypeIdentifier::Get<c10::BFloat16>()' 
Jan 11 02:38:57 /var/lib/jenkins/workspace/c10/util/typeid.h:67:55:   in constexpr expansion of 'c10::util::get_type_index<c10::BFloat16>()' 
Jan 11 02:38:57 /var/lib/jenkins/workspace/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function 
Jan 11 02:38:57    C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>(); 
Jan 11 02:38:57                                                                ^ 
Jan 11 02:38:57 make[2]: *** [c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o] Error 1 
Jan 11 02:38:57 c10/CMakeFiles/c10.dir/build.make:86: recipe for target 'c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o' failed 
Jan 11 02:38:57 CMakeFiles/Makefile2:2012: recipe for target 'c10/CMakeFiles/c10.dir/all' failed 
Jan 11 02:38:57 make[1]: *** [c10/CMakeFiles/c10.dir/all] Error 2 
Jan 11 02:38:57 make[1]: *** Waiting for unfinished jobs.... 
Jan 11 02:38:57 [  7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_lrn.cpp.o 
Jan 11 02:38:57 [  7%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/prefix_store.cc.o 
Jan 11 02:38:57 [  7%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/store.cc.o 

See CircleCI build pytorch_linux_xenial_py3_clang5_mobile_build (5/12)

Step: "Build" (full log | pattern match details)

Jan 11 02:39:14 /var/lib/jenkins/workspace/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function
Jan 11 02:39:14 /var/lib/jenkins/workspace/c10/util/TypeIndex.h:25:8: note: candidate: constexpr c10::util::type_index::type_index(c10::util::type_index&&) 
Jan 11 02:39:14 /var/lib/jenkins/workspace/c10/util/TypeIndex.h:25:8: note:   conversion of argument 1 would be ill-formed: 
Jan 11 02:39:14 In file included from /var/lib/jenkins/workspace/c10/core/ScalarType.h:6:0, 
Jan 11 02:39:14                  from /var/lib/jenkins/workspace/c10/core/StorageImpl.h:4, 
Jan 11 02:39:14                  from /var/lib/jenkins/workspace/c10/core/StorageImpl.cpp:1: 
Jan 11 02:39:14 /var/lib/jenkins/workspace/c10/util/typeid.h: In instantiation of 'caffe2::detail::TypeMetaData caffe2::detail::_makeTypeMetaDataInstance() [with T = c10::BFloat16]': 
Jan 11 02:39:14 /var/lib/jenkins/workspace/c10/util/typeid.h:427:45:   required from 'static caffe2::TypeMeta caffe2::TypeMeta::Make() [with T = c10::BFloat16]' 
Jan 11 02:39:14 /var/lib/jenkins/workspace/c10/core/ScalarType.h:179:5:   required from here 
Jan 11 02:39:14 /var/lib/jenkins/workspace/c10/util/typeid.h:285:62:   in constexpr expansion of 'caffe2::TypeIdentifier::Get<c10::BFloat16>()' 
Jan 11 02:39:14 /var/lib/jenkins/workspace/c10/util/typeid.h:67:55:   in constexpr expansion of 'c10::util::get_type_index<c10::BFloat16>()' 
Jan 11 02:39:14 /var/lib/jenkins/workspace/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function 
Jan 11 02:39:14    C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>(); 
Jan 11 02:39:14                                                                ^ 
Jan 11 02:39:14 c10/CMakeFiles/c10.dir/build.make:86: recipe for target 'c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o' failed 
Jan 11 02:39:14 make[2]: *** [c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o] Error 1 
Jan 11 02:39:14 CMakeFiles/Makefile2:750: recipe for target 'c10/CMakeFiles/c10.dir/all' failed 
Jan 11 02:39:14 make[1]: *** [c10/CMakeFiles/c10.dir/all] Error 2 
Jan 11 02:39:14 make[1]: *** Waiting for unfinished jobs.... 
Jan 11 02:39:14 [  4%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/common/logging.cc.o 
Jan 11 02:39:14 [  4%] Building C object CMakeFiles/eigen_blas.dir/third_party/eigen/blas/f2c/lsame.c.o 
Jan 11 02:39:14 [  4%] Building C object CMakeFiles/eigen_blas.dir/third_party/eigen/blas/f2c/dspmv.c.o 

See CircleCI build binary_linux_manywheel_2_7mu_cpu_devtoolset7_build (6/12)

Step: "Build" (full log | pattern match details)

Jan 11 02:36:51 /pytorch/c10/util/typeid.h:285:31: error: constexpr call flows off the end of the function
Jan 11 02:36:51 /pytorch/c10/util/typeid.h:427:45:   required from ‘static caffe2::TypeMeta caffe2::TypeMeta::Make() [with T = float]’ 
Jan 11 02:36:51 /pytorch/c10/core/DefaultDtype.cpp:5:59:   required from here 
Jan 11 02:36:51 /pytorch/c10/util/typeid.h:75:22: note:   initializing argument 1 of ‘constexpr caffe2::TypeIdentifier::TypeIdentifier(c10::util::type_index)’ 
Jan 11 02:36:51    constexpr explicit TypeIdentifier(c10::util::type_index id) : IdWrapper(id) {} 
Jan 11 02:36:51                       ^~~~~~~~~~~~~~ 
Jan 11 02:36:51 /pytorch/c10/util/typeid.h: In instantiation of ‘caffe2::detail::TypeMetaData caffe2::detail::_makeTypeMetaDataInstance() [with T = float]’: 
Jan 11 02:36:51 /pytorch/c10/util/typeid.h:427:45:   required from ‘static caffe2::TypeMeta caffe2::TypeMeta::Make() [with T = float]’ 
Jan 11 02:36:51 /pytorch/c10/core/DefaultDtype.cpp:5:59:   required from here 
Jan 11 02:36:51 /pytorch/c10/util/typeid.h:285:62:   in constexpr expansion of ‘caffe2::TypeIdentifier::Get<float>()’ 
Jan 11 02:36:51 /pytorch/c10/util/typeid.h:67:55:   in constexpr expansion of ‘c10::util::get_type_index<float>()’ 
Jan 11 02:36:51 /pytorch/c10/util/typeid.h:285:31: error: constexpr call flows off the end of the function 
Jan 11 02:36:51    C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>(); 
Jan 11 02:36:51                                ^~~~~~ 
Jan 11 02:36:51 gmake[2]: *** [c10/CMakeFiles/c10.dir/core/DefaultDtype.cpp.o] Error 1 
Jan 11 02:36:51 gmake[2]: *** Waiting for unfinished jobs.... 
Jan 11 02:36:51 [  6%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmI64.cc.o 
Jan 11 02:36:51 gmake[1]: *** [c10/CMakeFiles/c10.dir/all] Error 2 
Jan 11 02:36:51 gmake[1]: *** Waiting for unfinished jobs.... 
Jan 11 02:36:51 [  6%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmI8DepthwisePerChannelQuantAvx2.cc.o 
Jan 11 02:36:51 [  6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/compiler/parser.cc.o 
Jan 11 02:36:51 [  6%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/OptimizedKernelsAvx2.cc.o 

See CircleCI build binary_linux_libtorch_2_7m_cpu_gcc5_4_cxx11-abi_shared-with-deps_build (7/12)

Step: "Build" (full log | pattern match details)

Jan 11 02:39:05 FAILED: c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o
Jan 11 02:39:04                  from ../c10/core/Scalar.cpp:1: 
Jan 11 02:39:04 ../c10/util/typeid.h: In instantiation of ‘caffe2::detail::TypeMetaData caffe2::detail::_makeTypeMetaDataInstance() [with T = c10::BFloat16]’: 
Jan 11 02:39:04 ../c10/util/typeid.h:427:45:   required from ‘static caffe2::TypeMeta caffe2::TypeMeta::Make() [with T = c10::BFloat16]’ 
Jan 11 02:39:04 ../c10/core/ScalarType.h:179:5:   required from here 
Jan 11 02:39:04 ../c10/util/typeid.h:285:62:   in constexpr expansion of ‘caffe2::TypeIdentifier::Get<c10::BFloat16>()’ 
Jan 11 02:39:04 ../c10/util/typeid.h:67:55:   in constexpr expansion of ‘c10::util::get_type_index<c10::BFloat16>()’ 
Jan 11 02:39:04 ../c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function 
Jan 11 02:39:04    C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>(); 
Jan 11 02:39:04                                                                ^ 
Jan 11 02:39:05 [705/3013] Building CXX object c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o 
Jan 11 02:39:05 FAILED: c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o  
 -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 -O3  -fPIC   -DCAFFE2_USE_GLOO -DHAVE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD -DC10_BUILD_MAIN_LIB -fvisibility=hidden -std=gnu++14 -MD -MT c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o -MF c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o.d -o c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o -c ../c10/core/StorageImpl.cpp 
Jan 11 02:39:05 In file included from ../c10/util/typeid.h:28:0, 
Jan 11 02:39:05                  from ../c10/core/ScalarType.h:6, 
Jan 11 02:39:05                  from ../c10/core/StorageImpl.h:4, 
Jan 11 02:39:05                  from ../c10/core/StorageImpl.cpp:1: 
Jan 11 02:39:05 ../c10/util/TypeIndex.h: In instantiation of ‘constexpr c10::util::type_index c10::util::get_type_index() [with T = unsigned char]’: 
Jan 11 02:39:05 ../c10/util/typeid.h:67:55:   required from ‘static constexpr caffe2::TypeIdentifier caffe2::TypeIdentifier::Get() [with T = unsigned char]’ 
Jan 11 02:39:05 ../c10/util/typeid.h:285:62:   required from ‘caffe2::detail::TypeMetaData caffe2::detail::_makeTypeMetaDataInstance() [with T = unsigned char]’ 
Jan 11 02:39:05 ../c10/util/typeid.h:427:45:   required from ‘static caffe2::TypeMeta caffe2::TypeMeta::Make() [with T = unsigned char]’ 
Jan 11 02:39:05 ../c10/core/ScalarType.h:179:5:   required from here 

See CircleCI build pytorch_libtorch_linux_xenial_cuda9_cudnn7_py3_build (8/12)

Step: "Build" (full log | pattern match details)

/c10/../c10/util/typeid.h:285:62: in constexpr expansion of \'caffe2::TypeIdentifier::Get()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:67:55: in constexpr expansion of \'c10::util::get_type_index()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get();\n ^\n" }
c10/../c10/util/typeid.h:285:62:   in constexpr expansion of \'caffe2::TypeIdentifier::Get<c10::BFloat16>()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:67:55:   in constexpr expansion of \'c10::util::get_type_index<c10::BFloat16>()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n   C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>();\n                                                               ^\n" } 
Jan 11 02:40:38  
c10/../c10/util/typeid.h:285:62:   in constexpr expansion of \'caffe2::TypeIdentifier::Get<c10::BFloat16>()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:67:55:   in constexpr expansion of \'c10::util::get_type_index<c10::BFloat16>()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n   C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>();\n                                                               ^\n" } 
Jan 11 02:40:38  
c10/../c10/util/typeid.h:285:62:   in constexpr expansion of \'caffe2::TypeIdentifier::Get<c10::BFloat16>()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:67:55:   in constexpr expansion of \'c10::util::get_type_index<c10::BFloat16>()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n   C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>();\n                                                               ^\n" } 
Jan 11 02:40:38  
c10/../c10/util/typeid.h:285:62:   in constexpr expansion of \'caffe2::TypeIdentifier::Get<c10::BFloat16>()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:67:55:   in constexpr expansion of \'c10::util::get_type_index<c10::BFloat16>()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n   C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>();\n                                                               ^\n" } 
Jan 11 02:40:38  
c10/../c10/util/typeid.h:285:62:   in constexpr expansion of \'caffe2::TypeIdentifier::Get<c10::BFloat16>()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:67:55:   in constexpr expansion of \'c10::util::get_type_index<c10::BFloat16>()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n   C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>();\n                                                               ^\n" } 
Jan 11 02:40:38  
c10/../c10/util/typeid.h:285:62:   in constexpr expansion of \'caffe2::TypeIdentifier::Get<c10::BFloat16>()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:67:55:   in constexpr expansion of \'c10::util::get_type_index<c10::BFloat16>()\'\n/var/lib/jenkins/workspace/c10/../c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n   C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>();\n                                                               ^\n" } 
Jan 11 02:40:38  
Jan 11 02:40:38 =========== If your build fails, please take a look at the log above for possible reasons =========== 
Jan 11 02:40:38 Compile requests                51 
Jan 11 02:40:38 Compile requests executed       44 
Jan 11 02:40:38 Cache hits                      37 
Jan 11 02:40:38 Cache misses                     0 
Jan 11 02:40:38 Cache timeouts                   0 
Jan 11 02:40:38 Cache read errors                0 
Jan 11 02:40:38 Forced recaches                  0 
Jan 11 02:40:38 Cache write errors               0 

See CircleCI build pytorch_linux_xenial_cuda9_cudnn7_py3_build (9/12)

Step: "Build" (full log | pattern match details)

Jan 11 02:41:44 /var/lib/jenkins/workspace/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function
Jan 11 02:41:44         ^ 
Jan 11 02:41:44 /var/lib/jenkins/workspace/c10/util/TypeIndex.h:25:8: note:   conversion of argument 1 would be ill-formed: 
Jan 11 02:41:44 /var/lib/jenkins/workspace/c10/util/TypeIndex.h:25:8: note: candidate: constexpr c10::util::type_index::type_index(c10::util::type_index&&) 
Jan 11 02:41:44 /var/lib/jenkins/workspace/c10/util/TypeIndex.h:25:8: note:   conversion of argument 1 would be ill-formed: 
Jan 11 02:41:44 In file included from /var/lib/jenkins/workspace/c10/core/DefaultDtype.cpp:1:0: 
Jan 11 02:41:44 /var/lib/jenkins/workspace/c10/util/typeid.h: In instantiation of 'caffe2::detail::TypeMetaData caffe2::detail::_makeTypeMetaDataInstance() [with T = float]': 
Jan 11 02:41:44 /var/lib/jenkins/workspace/c10/util/typeid.h:427:45:   required from 'static caffe2::TypeMeta caffe2::TypeMeta::Make() [with T = float]' 
Jan 11 02:41:44 /var/lib/jenkins/workspace/c10/core/DefaultDtype.cpp:5:59:   required from here 
Jan 11 02:41:44 /var/lib/jenkins/workspace/c10/util/typeid.h:285:62:   in constexpr expansion of 'caffe2::TypeIdentifier::Get<float>()' 
Jan 11 02:41:44 /var/lib/jenkins/workspace/c10/util/typeid.h:67:55:   in constexpr expansion of 'c10::util::get_type_index<float>()' 
Jan 11 02:41:44 /var/lib/jenkins/workspace/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function 
Jan 11 02:41:44    C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>(); 
Jan 11 02:41:44                                                                ^ 
Jan 11 02:41:44 make[2]: *** [c10/CMakeFiles/c10.dir/core/DefaultDtype.cpp.o] Error 1 
Jan 11 02:41:44 make[1]: *** [c10/CMakeFiles/c10.dir/all] Error 2 
Jan 11 02:41:44 c10/CMakeFiles/c10.dir/build.make:101: recipe for target 'c10/CMakeFiles/c10.dir/core/DefaultDtype.cpp.o' failed 
Jan 11 02:41:44 CMakeFiles/Makefile2:2112: recipe for target 'c10/CMakeFiles/c10.dir/all' failed 
Jan 11 02:41:44 make[1]: *** Waiting for unfinished jobs.... 
Jan 11 02:41:44 [  7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_barrier.cpp.o 
Jan 11 02:41:45 [  7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_batch_normalization_utils.cpp.o 
Jan 11 02:41:45 [  7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_concat.cpp.o 

See CircleCI build pytorch_xla_linux_xenial_py3_6_clang7_build (10/12)

Step: "Build" (full log | pattern match details)

Jan 11 04:07:41 Failed to generate ATEN bindings: ['/var/lib/jenkins/workspace/xla/scripts/generate_code.sh']
Jan 11 04:07:41 Generated 877 wrappers for /var/lib/jenkins/workspace/xla/scripts/../../torch/csrc/autograd/generated/RegistrationDeclarations.h 
Jan 11 04:07:41 AtenXlaType function missed override: Tensor& bitwise_or_out(Tensor& out, const Tensor& self, const Tensor& other); // bitwise_or_out(Tensor,Tensor,Tensor)->Tensor 
Jan 11 04:07:41 AtenXlaType function missed override: Tensor& bitwise_or_out(Tensor& out, const Tensor& self, Scalar other); // bitwise_or_out(Tensor,Tensor,Scalar)->Tensor 
Jan 11 04:07:41 Traceback (most recent call last): 
Jan 11 04:07:41   File "/var/lib/jenkins/workspace/xla/scripts/gen.py", line 1052, in <module> 
Jan 11 04:07:41     generate(args) 
Jan 11 04:07:41   File "/var/lib/jenkins/workspace/xla/scripts/gen.py", line 1022, in generate 
Jan 11 04:07:41     assert check_overrides(overrides, overridden) 
Jan 11 04:07:41 AssertionError 
Jan 11 04:07:41 Building torch_xla version: 0.8 
Jan 11 04:07:41 Failed to generate ATEN bindings: ['/var/lib/jenkins/workspace/xla/scripts/generate_code.sh'] 
Jan 11 04:07:41 + cleanup 
Jan 11 04:07:41 + retcode=1 
Jan 11 04:07:41 + set +x 
Jan 11 04:07:41 =================== sccache compilation log =================== 
Jan 11 04:07:41 =========== If your build fails, please take a look at the log above for possible reasons =========== 
Jan 11 04:07:41 Compile requests               2526 
Jan 11 04:07:41 Compile requests executed      2269 
Jan 11 04:07:41 Cache hits                     1190 
Jan 11 04:07:41 Cache misses                   1067 
Jan 11 04:07:41 Cache timeouts                    0 

See CircleCI build pytorch_linux_xenial_py3_clang5_asan_test (11/12)

Step: "Test" (full log | pattern match details)

constexpr expansion of \'caffe2::TypeIdentifier::Get()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:67:55: in constexpr expansion of \'c10::util::get_type_index()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get();\n ^\n" }
constexpr expansion of \'caffe2::TypeIdentifier::Get<c10::BFloat16>()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:67:55:   in constexpr expansion of \'c10::util::get_type_index<c10::BFloat16>()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n   C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>();\n                                                               ^\n" } 
Jan 11 04:59:54  
constexpr expansion of \'caffe2::TypeIdentifier::Get<c10::BFloat16>()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:67:55:   in constexpr expansion of \'c10::util::get_type_index<c10::BFloat16>()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n   C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>();\n                                                               ^\n" } 
Jan 11 04:59:54  
constexpr expansion of \'caffe2::TypeIdentifier::Get<c10::BFloat16>()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:67:55:   in constexpr expansion of \'c10::util::get_type_index<c10::BFloat16>()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n   C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>();\n                                                               ^\n" } 
Jan 11 04:59:54  
constexpr expansion of \'caffe2::TypeIdentifier::Get<c10::BFloat16>()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:67:55:   in constexpr expansion of \'c10::util::get_type_index<c10::BFloat16>()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n   C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>();\n                                                               ^\n" } 
Jan 11 04:59:55  
constexpr expansion of \'caffe2::TypeIdentifier::Get<c10::BFloat16>()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:67:55:   in constexpr expansion of \'c10::util::get_type_index<c10::BFloat16>()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n   C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>();\n                                                               ^\n" } 
Jan 11 04:59:55  
constexpr expansion of \'caffe2::TypeIdentifier::Get<c10::BFloat16>()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:67:55:   in constexpr expansion of \'c10::util::get_type_index<c10::BFloat16>()\'\n/opt/conda/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:285:63: error: constexpr call flows off the end of the function\n   C10_HOST_CONSTEXPR_VAR auto typeId = TypeIdentifier::Get<T>();\n                                                               ^\n" } 
Jan 11 04:59:55  
Jan 11 04:59:55 =========== If your build fails, please take a look at the log above for possible reasons =========== 
Jan 11 04:59:55 Compile requests                12 
Jan 11 04:59:55 Compile requests executed       12 
Jan 11 04:59:55 Cache hits                       0 
Jan 11 04:59:55 Cache misses                     0 
Jan 11 04:59:55 Cache timeouts                   0 
Jan 11 04:59:55 Cache read errors                0 
Jan 11 04:59:55 Forced recaches                  0 
Jan 11 04:59:55 Cache write errors               0 

See CircleCI build pytorch_macos_10_13_py3_test (12/12)

Step: "Test" (full log | pattern match details)

Jan 10 21:09:13 RuntimeError: test_quantized failed!
Jan 10 21:09:13 Running test_quantized ... [2020-01-10 21:09:13.035339] 
Jan 10 21:09:13 Traceback (most recent call last): 
Jan 10 21:09:13   File "test_quantized.py", line 2, in <module> 
Jan 10 21:09:13     from future.builtins import round 
Jan 10 21:09:13 ModuleNotFoundError: No module named 'future' 
Jan 10 21:09:13 Traceback (most recent call last): 
Jan 10 21:09:13   File "test/run_test.py", line 456, in <module> 
Jan 10 21:09:13     main() 
Jan 10 21:09:13   File "test/run_test.py", line 449, in main 
Jan 10 21:09:13     raise RuntimeError(message) 
Jan 10 21:09:13 RuntimeError: test_quantized failed! 
Jan 10 21:09:13 + cleanup 
Jan 10 21:09:13 + retcode=1 
Jan 10 21:09:13 + set +x 

❄️ 1 failure recognized as flaky

The following build failures have been detected as flaky and may not be your fault:

See CircleCI build pytorch_windows_build (1/1)

Step: "Build" (full log | pattern match details) ❄️

Error generating file
            instantiation of "caffe2::detail::TypeMetaData caffe2::detail::_makeTypeMetaDataInstance<T>() [with T=c10::BFloat16]" 
C:/Users/circleci/project\c10/util/typeid.h(427): here
            instantiation of "caffe2::TypeMeta caffe2::TypeMeta::Make<T>() [with T=c10::BFloat16]" 
C:/Users/circleci/project\c10/core/ScalarType.h(179): here

16 errors detected in the compilation of "C:/Users/circleci/AppData/Local/Temp/tmpxft_00000e74_00000000-10_BCECriterion.cpp1.ii".
BCECriterion.cu
-- Removing C:/Users/circleci/project/build/caffe2/CMakeFiles/torch_cuda.dir/__/aten/src/THCUNN/./torch_cuda_generated_BCECriterion.cu.obj
C:/Jenkins/Miniconda3/Library/bin/cmake.exe -E remove C:/Users/circleci/project/build/caffe2/CMakeFiles/torch_cuda.dir/__/aten/src/THCUNN/./torch_cuda_generated_BCECriterion.cu.obj
CMake Error at torch_cuda_generated_BCECriterion.cu.obj.Release.cmake:281 (message):
  Error generating file
  C:/Users/circleci/project/build/caffe2/CMakeFiles/torch_cuda.dir/__/aten/src/THCUNN/./torch_cuda_generated_BCECriterion.cu.obj


ninja: build stopped: subcommand failed. 
-- Building version 1.5.0a0+a868662 
cleci\project\build\win_tmp\bin\nvcc -DCUDNN_LIBRARY=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64 -DJAVA_HOME=C:\Program Files\OpenJDK\jdk-12.0.2 -DNUMPY_INCLUDE_DIR=C:\Jenkins\Miniconda3\lib\site-packages\numpy\core\include -DPYTHON_EXECUTABLE=C:\Jenkins\Miniconda3\python.exe -DPYTHON_INCLUDE_DIR=C:\Jenkins\Miniconda3\include -DPYTHON_LIBRARY=C:\Jenkins\Miniconda3/libs/python36.lib -DTORCH_BUILD_VERSION=1.5.0a0+a868662 -DUSE_CUDA=1 -DUSE_NUMPY=True C:\Users\circleci\project 
cmake --build . --target install --config Release -- -j 15 
Traceback (most recent call last): 
  File "setup.py", line 737, in <module> 
    build_deps() 

1 failure not recognized by patterns:

Job Step Status
CircleCI caffe2_onnx_py3_6_clang7_ubuntu16_04_test Test New in PR

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

This comment has been revised 90 times.

This was referenced Dec 16, 2019
xxtEchjovs44 pushed a commit to xxtEchjovs44/pytorch that referenced this pull request Jan 29, 2020
Pull Request resolved: pytorch/pytorch#30712


ghstack-source-id: 96548701

Differential Revision: [D18805082](https://our.internmc.facebook.com/intern/diff/D18805082/)
@pytorchbot
Copy link
Collaborator

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
Stale pull requests will automatically be closed 30 days after being marked Stale

@github-actions github-actions bot closed this May 12, 2022
@facebook-github-bot facebook-github-bot deleted the gh/smessmer/131/head branch June 11, 2022 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants