Lin Jiaxin
|
1d6142becf
|
fix compile problem
Modify points:
1. add --host_copt=-Wno-stringop-truncation
why: Workaround for gcc 10+ warnings related to upb.
See https://github.com/tensorflow/tensorflow/issues/39467
2. add fix_compile.patch
error message:
Execution platform: @local_execution_config_platform//:platform
tensorflow/core/kernels/sparse_tensors_map_ops.cc:358:18: error: expected constructor, destructor, or type conversion before '(' token
358 | TF_CALL_ALL_TYPES(REGISTER_KERNELS);
| ^
tensorflow/core/kernels/sparse_tensors_map_ops.cc:516:18: error: expected constructor, destructor, or type conversion before '(' token
516 | TF_CALL_ALL_TYPES(REGISTER_KERNELS);
| ^
Target //tensorflow/tools/pip_package:build_pip_package failed to build
ERROR: /home/abuild/rpmbuild/BUILD/tensorflow-2.3.1/tensorflow/python/tools/BUILD:143:10 C++ compilation of rule '//tensorflow/core/kernels:sparse_tensors_map_ops' failed (Exit 1): gcc failed: error executing command
|
2021-08-06 10:54:43 +08:00 |
|