编译错误: error: cannot deduce "auto" type
Created by: NHZlX
cmake 命令如下:
cmake .. \
-DWITH_CONTRIB=OFF \
-DWITH_MKL=ON \
-DWITH_MKLDNN=OFF \
-DWITH_TESTING=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_INFERENCE_API_TEST=OFF \
-DON_INFER=ON \
-DWITH_PYTHON=ON \
错误如下:
/paddle/paddle_anakin_many_linux2/paddle/fluid/framework/details/op_registry.h(174): error: function "std::function<_Res (_ArgTypes...)>::operator() [with _Res=paddle::framework::OperatorBase *, _ArgTypes=<const std::string &, const paddle::framework::VariableNameMap &, const paddle::framework::VariableNameMap &, const paddle::framework::AttributeMap &>]" cannot be called with the given argument list
argument types are: (const char [1], {...}, {...}, {...})
object type is: paddle::framework::OpCreator
/paddle/paddle_anakin_many_linux2/paddle/fluid/framework/details/op_registry.h(173): error: cannot deduce "auto" type
2 errors detected in the compilation of "/tmp/tmpxft_000075f1_00000000-4_roi_perspective_transform_op.cpp4.ii".
CMake Error at roi_perspective_transform_op_generated_roi_perspective_transform_op.cu.o.cmake:262 (message):
Error generating file
/paddle/paddle_anakin_many_linux2/build/paddle/fluid/operators/detection/CMakeFiles/roi_perspective_transform_op.dir//./roi_perspective_transform_op_generated_roi_perspective_transform_op.cu.o
paddle/fluid/operators/detection/CMakeFiles/roi_perspective_transform_op.dir/build.make:63: recipe for target 'paddle/fluid/operators/detection/CMakeFiles/roi_perspective_transform_op.dir/roi_perspective_transform_op_generated_roi_perspective_transform_op.cu.o' failed
make[2]: *** [paddle/fluid/operators/detection/CMakeFiles/roi_perspective_transform_op.dir/roi_perspective_transform_op_generated_roi_perspective_transform_op.cu.o] Error 1
CMakeFiles/Makefile2:53796: recipe for target 'paddle/fluid/operators/detection/CMakeFiles/roi_perspective_transform_op.dir/all' failed
make[1]: *** [paddle/fluid/operators/detection/CMakeFiles/roi_perspective_transform_op.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/paddle/paddle_anakin_many_linux2/paddle/fluid/framework/details/op_registry.h(174): error: function "std::function<_Res (_ArgTypes...)>::operator() [with _Res=paddle::framework::OperatorBase *, _ArgTypes=<const std::string &, const paddle::framework::VariableNameMap &, const paddle::framework::VariableNameMap &, const paddle::framework::AttributeMap &>]" cannot be called with the given argument list
argument types are: (const char [1], {...}, {...}, {...})
object type is: paddle::framework::OpCreator
/paddle/paddle_anakin_many_linux2/paddle/fluid/framework/details/op_registry.h(173): error: cannot deduce "auto" type
2 errors detected in the compilation of "/tmp/tmpxft_00007613_00000000-4_anchor_generator_op.cpp4.ii".
CMake Error at anchor_generator_op_generated_anchor_generator_op.cu.o.cmake:262 (message):
Error generating file
/paddle/paddle_anakin_many_linux2/build/paddle/fluid/operators/detection/CMakeFiles/anchor_generator_op.dir//./anchor_generator_op_generated_anchor_generator_op.cu.o
paddle/fluid/operators/detection/CMakeFiles/anchor_generator_op.dir/build.make:63: recipe for target 'paddle/fluid/operators/detection/CMakeFiles/anchor_generator_op.dir/anchor_generator_op_generated_anchor_generator_op.cu.o' failed
make[2]: *** [paddle/fluid/operators/detection/CMakeFiles/anchor_generator_op.dir/anchor_generator_op_generated_anchor_generator_op.cu.o] Error 1
CMakeFiles/Makefile2:54030: recipe for target 'paddle/fluid/operators/detection/CMakeFiles/anchor_generator_op.dir/all' failed
make[1]: *** [paddle/fluid/operators/detection/CMakeFiles/anchor_generator_op.dir/all] Error 2
[ 17%] Linking CXX static library librpn_target_assign_op.a
[ 17%] Built target rpn_target_assign_op
/paddle/paddle_anakin_many_linux2/paddle/fluid/framework/details/op_registry.h(174): error: function "std::function<_Res (_ArgTypes...)>::operator() [with _Res=paddle::framework::OperatorBase *, _ArgTypes=<const std::string &, const paddle::framework::VariableNameMap &, const paddle::framework::VariableNameMap &, const paddle::framework::AttributeMap &>]" cannot be called with the given argument list
argument types are: (const char [1], {...}, {...}, {...})
object type is: paddle::framework::OpCreator
/paddle/paddle_anakin_many_linux2/paddle/fluid/framework/details/op_registry.h(173): error: cannot deduce "auto" type
/paddle/paddle_anakin_many_linux2/paddle/fluid/framework/details/op_registry.h(174): error: function "std::function<_Res (_ArgTypes...)>::operator() [with _Res=paddle::framework::OperatorBase *, _ArgTypes=<const std::string &, const paddle::framework::VariableNameMap &, const paddle::framework::VariableNameMap &, const paddle::framework::AttributeMap &>]" cannot be called with the given argument list
argument types are: (const char [1], {...}, {...}, {...})
object type is: paddle::framework::OpCreator
/paddle/paddle_anakin_many_linux2/paddle/fluid/framework/details/op_registry.h(173): error: cannot deduce "auto" type
2 errors detected in the compilation of "/tmp/tmpxft_00007646_00000000-4_density_prior_box_op.cpp4.ii".
2 errors detected in the compilation of "/tmp/tmpxft_000075e8_00000000-4_sync_batch_norm_op.cpp4.ii".
CMake Error at density_prior_box_op_generated_density_prior_box_op.cu.o.cmake:262 (message):
Error generating file
/paddle/paddle_anakin_many_linux2/build/paddle/fluid/operators/detection/CMakeFiles/density_prior_box_op.dir//./density_prior_box_op_generated_density_prior_box_op.cu.o
paddle/fluid/operators/detection/CMakeFiles/density_prior_box_op.dir/build.make:63: recipe for target 'paddle/fluid/operators/detection/CMakeFiles/density_prior_box_op.dir/density_prior_box_op_generated_density_prior_box_op.cu.o' failed
make[2]: *** [paddle/fluid/operators/detection/CMakeFiles/density_prior_box_op.dir/density_prior_box_op_generated_density_prior_box_op.cu.o] Error 1
CMakeFiles/Makefile2:54147: recipe for target 'paddle/fluid/operators/detection/CMakeFiles/density_prior_box_op.dir/all' failed
make[1]: *** [paddle/fluid/operators/detection/CMakeFiles/density_prior_box_op.dir/all] Error 2
CMake Error at sync_batch_norm_op_generated_sync_batch_norm_op.cu.o.cmake:262 (message):
Error generating file
/paddle/paddle_anakin_many_linux2/build/paddle/fluid/operators/CMakeFiles/sync_batch_norm_op.dir//./sync_batch_norm_op_generated_sync_batch_norm_op.cu.o
paddle/fluid/operators/CMakeFiles/sync_batch_norm_op.dir/build.make:63: recipe for target 'paddle/fluid/operators/CMakeFiles/sync_batch_norm_op.dir/sync_batch_norm_op_generated_sync_batch_norm_op.cu.o' failed
make[2]: *** [paddle/fluid/operators/CMakeFiles/sync_batch_norm_op.dir/sync_batch_norm_op_generated_sync_batch_norm_op.cu.o] Error 1
CMakeFiles/Makefile2:49310: recipe for target 'paddle/fluid/operators/CMakeFiles/sync_batch_norm_op.dir/all' failed
make[1]: *** [paddle/fluid/operators/CMakeFiles/sync_batch_norm_op.dir/all] Error 2
[ 17%] Linking CXX static library libyolov3_loss_op.a
[ 17%] Built target yolov3_loss_op
/paddle/paddle_anakin_many_linux2/paddle/fluid/framework/details/op_registry.h(174): error: function "std::function<_Res (_ArgTypes...)>::operator() [with _Res=paddle::framework::OperatorBase *, _ArgTypes=<const std::string &, const paddle::framework::VariableNameMap &, const paddle::framework::VariableNameMap &, const paddle::framework::AttributeMap &>]" cannot be called with the given argument list
argument types are: (const char [1], {...}, {...}, {...})
object type is: paddle::framework::OpCreator
/paddle/paddle_anakin_many_linux2/paddle/fluid/framework/details/op_registry.h(173): error: cannot deduce "auto" type
2 errors detected in the compilation of "/tmp/tmpxft_00007661_00000000-4_polygon_box_transform_op.cpp4.ii".
CMake Error at polygon_box_transform_op_generated_polygon_box_transform_op.cu.o.cmake:262 (message):
Error generating file
/paddle/paddle_anakin_many_linux2/build/paddle/fluid/operators/detection/CMakeFiles/polygon_box_transform_op.dir//./polygon_box_transform_op_generated_polygon_box_transform_op.cu.o
paddle/fluid/operators/detection/CMakeFiles/polygon_box_transform_op.dir/build.make:63: recipe for target 'paddle/fluid/operators/detection/CMakeFiles/polygon_box_transform_op.dir/polygon_box_transform_op_generated_polygon_box_transform_op.cu.o' failed
make[2]: *** [paddle/fluid/operators/detection/CMakeFiles/polygon_box_transform_op.dir/polygon_box_transform_op_generated_polygon_box_transform_op.cu.o] Error 1
CMakeFiles/Makefile2:54264: recipe for target 'paddle/fluid/operators/detection/CMakeFiles/polygon_box_transform_op.dir/all' failed
make[1]: *** [paddle/fluid/operators/detection/CMakeFiles/polygon_box_transform_op.dir/all] Error 2