C++ compilation of rule '//tensorflow/core:platform_base' failed (Exit 1): computecpp failed: error executing command


#1

Failed to build tensorflow with a successfully built bazel command.

ERROR: /home/shunya/Downloads/AI/tensorflow/tensorflow/tensorflow/core/BUILD:318:1: C++ compilation of rule ‘//tensorflow/core:platform_base’ failed (Exit 1): computecpp failed: error executing command
(cd /home/shunya/.cache/bazel/bazel_shunya/d3df9f07e7334e1b4e30a27bca01d842/execroot/org_tensorflow &&
exec env -
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/lib/aarch64-linux-gnu:/usr/local/computecpp/lib
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/computecpp/bin:/usr/local/games:/usr/games
PWD=/proc/self/cwd
external/local_config_sycl/crosstool/computecpp -Wall -g0 -O2 -DNDEBUG ‘-std=c++11’ -MD -MF bazel-out/host/bin/tensorflow/core/objs/platform_base/0/env_time.d '-frandom-seed=bazel-out/host/bin/tensorflow/core/objs/platform_base/0/env_time.o’ -iquote . -iquote bazel-out/host/genfiles -iquote bazel-out/host/bin -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -iquote bazel-out/host/bin/external/bazel_tools -g0 ‘-march=native’ -g0 -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare -fno-exceptions ‘-ftemplate-depth=900’ -pthread -Wno-builtin-macro-redefined '-D__DATE=“redacted”’ '-D__TIMESTAMP
_=“redacted”’ ‘-D__TIME__=“redacted”’ -c tensorflow/core/platform/posix/env_time.cc -o bazel-out/host/bin/tensorflow/core/_objs/platform_base/0/env_time.o)
Traceback (most recent call last):
File “external/local_config_sycl/crosstool/computecpp”, line 94, in
sys.exit(main())
File “external/local_config_sycl/crosstool/computecpp”, line 63, in main
if not ‘.parallel_for’ in preprocessed_file_str:
TypeError: a bytes-like object is required, not ‘str’
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 95.140s, Critical Path: 7.93s
INFO: 37 processes: 37 local.
FAILED: Build did NOT complete successfully


#2

It looks like you are using an old repository. Please see the instructions here and use the repository listed there