Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel - Tensorflow build failed #67554

Closed
AceAbhi147 opened this issue May 14, 2024 · 4 comments
Closed

Bazel - Tensorflow build failed #67554

AceAbhi147 opened this issue May 14, 2024 · 4 comments
Assignees
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

Comments

@AceAbhi147
Copy link

AceAbhi147 commented May 14, 2024

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.

@sushreebarsa sushreebarsa added subtype:bazel Bazel related Build_Installation issues type:build/install Build and install issues labels May 15, 2024
@sushreebarsa
Copy link
Contributor

@AceAbhi147 Could you please confirm that you have followed the steps properly and also referred the tested build configurations? Please let us know!
72Wi6T878zwwfuW

Thank you!

@sushreebarsa sushreebarsa added the stat:awaiting response Status - Awaiting response from author label May 15, 2024
Copy link

This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label May 23, 2024
Copy link

This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.

Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants