Bazel - Tensorflow build failed #67554
Labels
stale
This label marks the issue/pr stale - to be closed automatically if no activity
stat:awaiting response
Status - Awaiting response from author
subtype:bazel
Bazel related Build_Installation issues
type:build/install
Build and install issues
I have a ubuntu 22.0.4 LTS machine running on virtual box. I am trying to build tensorflow by cloning the repo and following the steps defined here: [build from source].(https://www.tensorflow.org/install/source) I have checkout the master branch. And I have installed llvm-14 clang-14
rather than 17 as I was getting some not found error.
This is the command I am using to build tensorflow:
bazel build //tensorflow/tools/pip_package:wheel --repo_env=WHEEL_NAME=tensorflow_cpu
But after waiting for what seems like hours, I am getting this error:
[12,514 / 15,964] 3 actions running Compiling tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc; 720s local Compiling tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc; 681s local ERROR: /home/ace-ventura/tensorflow/tensorflow/compiler/mlir/tensorflow/BUILD:424:11: Compiling tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc failed: (Exit 1): gcc failed: error executing command (from target //tensorflow/compiler/mlir/tensorflow:tensorflow_ops) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 187 arguments skipped) gcc: fatal error: Killed signal terminated program cc1plus compilation terminated. Target //tensorflow/tools/pip_package:wheel failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 1144.307s, Critical Path: 724.97s INFO: 176 processes: 4 internal, 172 local. FAILED: Build did NOT complete successfully
If someone can take a look at this, it will great.
The text was updated successfully, but these errors were encountered: