Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

what is the error means? i use c++11 , when i run "make" in the hdrnet folder, get follows errors, "third_party/array/array.h" come from this repo:https://github.com/dsharlet/array/ #9

Open
zhangpengk opened this issue Dec 31, 2020 · 1 comment

Comments

@zhangpengk
Copy link

make
nvcc -std c++11 -c ops/bilateral_slice.cu.cc -o build/bilateral_slice.cu.o -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -I/home/zhangp/anaconda3/envs/tf22/lib/python3.7/site-packages/tensorflow/include -expt-relaxed-constexpr -Wno-deprecated-gpu-targets -ftz=true
ops/third_party/array/array.h(114): error: namespace "std" has no member "enable_if_t"

ops/third_party/array/array.h(114): error: expected a ";"

ops/third_party/array/array.h(567): error: namespace "std" has no member "index_sequence"

ops/third_party/array/array.h(568): error: namespace "std" has no member "make_index_sequence"

ops/third_party/array/array.h(573): error: index_sequence is not a template

ops/third_party/array/array.h(579): error: identifier "make_index_sequence" is undefined

ops/third_party/array/array.h(579): error: expected an expression

ops/third_party/array/array.h(619): error: index_sequence is not a template

ops/third_party/array/array.h(636): error: index_sequence is not a template

ops/third_party/array/array.h(642): error: index_sequence is not a template

ops/third_party/array/array.h(648): error: index_sequence is not a template

ops/third_party/array/array.h(656): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(660): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(666): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(671): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(677): error: index_sequence is not a template

ops/third_party/array/array.h(676): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(698): error: index_sequence is not a template

ops/third_party/array/array.h(697): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(705): error: index_sequence is not a template

ops/third_party/array/array.h(729): error: index_sequence is not a template

ops/third_party/array/array.h(728): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(734): error: index_sequence is not a template

ops/third_party/array/array.h(734): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(733): warning: constant "Is" cannot be used because it follows a parameter pack and cannot be deduced from the parameters of function template "nda::internal::mins"

ops/third_party/array/array.h(739): error: index_sequence is not a template

ops/third_party/array/array.h(739): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(738): warning: constant "Is" cannot be used because it follows a parameter pack and cannot be deduced from the parameters of function template "nda::internal::extents"

ops/third_party/array/array.h(744): error: index_sequence is not a template

ops/third_party/array/array.h(744): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(743): warning: constant "Is" cannot be used because it follows a parameter pack and cannot be deduced from the parameters of function template "nda::internal::strides"

ops/third_party/array/array.h(749): error: index_sequence is not a template

ops/third_party/array/array.h(749): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(748): warning: constant "Is" cannot be used because it follows a parameter pack and cannot be deduced from the parameters of function template "nda::internal::maxs"

ops/third_party/array/array.h(801): error: index_sequence is not a template

ops/third_party/array/array.h(819): error: index_sequence is not a template

ops/third_party/array/array.h(824): error: index_sequence is not a template

ops/third_party/array/array.h(831): error: index_sequence is not a template

ops/third_party/array/array.h(841): error: index_sequence is not a template

ops/third_party/array/array.h(841): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(845): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(869): error: namespace "std" has no member "enable_if_t"

ops/third_party/array/array.h(869): error: expected a "," or ">"

ops/third_party/array/array.h(869): error: expected a declaration

ops/third_party/array/array.h(869): error: expected a ";"

ops/third_party/array/array.h(890): warning: parsing restarts here after previous syntax error

ops/third_party/array/array.h(899): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(940): error: namespace "nda::internal" has no member "make_index_sequence"

ops/third_party/array/array.h(940): error: expected an expression

ops/third_party/array/array.h(948): error: namespace "std" has no member "enable_if_t"

ops/third_party/array/array.h(948): error: expected a ";"

ops/third_party/array/array.h(951): error: namespace "std" has no member "enable_if_t"

ops/third_party/array/array.h(951): error: expected a ";"

ops/third_party/array/array.h(954): error: namespace "std" has no member "enable_if_t"

ops/third_party/array/array.h(954): error: expected a ";"

ops/third_party/array/array.h(958): error: namespace "std" has no member "enable_if_t"

ops/third_party/array/array.h(958): error: expected a ";"

ops/third_party/array/array.h(962): error: namespace "std" has no member "enable_if_t"

ops/third_party/array/array.h(962): error: expected a ";"

ops/third_party/array/array.h(968): error: mismatched delimiters in default argument expression

ops/third_party/array/array.h(970): error: expected a "," or ">"

ops/third_party/array/array.h(968): error: namespace "std" has no member "enable_if_t"

ops/third_party/array/array.h(968): error: expected a "," or ">"

ops/third_party/array/array.h(970): error: expected a declaration

ops/third_party/array/array.h(1036): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1042): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1046): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1052): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1056): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1121): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1122): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1123): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1124): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1125): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1126): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1130): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1131): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1132): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1133): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1134): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1135): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1136): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1137): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1138): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1139): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1176): error: constant "DimIndices" is not a type name

ops/third_party/array/array.h(1176): error: expected a "," or ">"

ops/third_party/array/array.h(1176): error: namespace "nda::internal" has no member "enable_if_permutation"

ops/third_party/array/array.h(1176): error: expected a "," or ">"

ops/third_party/array/array.h(1177): error: expected a declaration

ops/third_party/array/array.h(1177): error: expected a ";"

ops/third_party/array/array.h(1209): warning: parsing restarts here after previous syntax error

ops/third_party/array/array.h(1210): error: expected a declaration

ops/third_party/array/array.h(1423): warning: parsing restarts here after previous syntax error

ops/third_party/array/array.h(1427): error: namespace "std" has no member "enable_if_t"

ops/third_party/array/array.h(1427): error: expected a ";"

ops/third_party/array/array.h(1430): error: namespace "std" has no member "enable_if_t"

ops/third_party/array/array.h(1430): error: expected a ";"

ops/third_party/array/array.h(1433): error: name followed by "::" must be a class or namespace name

ops/third_party/array/array.h(1433): error: expected an expression

ops/third_party/array/array.h(1435): error: expected a declaration

ops/third_party/array/array.h(1440): warning: parsing restarts here after previous syntax error

ops/third_party/array/array.h(1445): error: name followed by "::" must be a class or namespace name

ops/third_party/array/array.h(1445): error: expected an expression

ops/third_party/array/array.h(1459): error: "auto" function requires a trailing return type

ops/third_party/array/array.h(1469): error: expected a "," or ">"

ops/third_party/array/array.h(1469): error: identifier "internal" is undefined

ops/third_party/array/array.h(1469): error: enable_if_shapes_compatible is not a template

Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_00003b90_00000000-6_bilateral_slice.cu.cpp1.ii".
Compilation terminated.
Makefile:31: recipe for target 'build/bilateral_slice.cu.o' failed
make: *** [build/bilateral_slice.cu.o] Error 1

@zackgd1024
Copy link

I think you can try the initial commit version, which does not use the array.h. Hope this helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants