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 can not compile Tensorflow with GCC 6.2.1 #4348

Closed
MaeThird opened this issue Sep 13, 2016 · 3 comments
Closed

bazel can not compile Tensorflow with GCC 6.2.1 #4348

MaeThird opened this issue Sep 13, 2016 · 3 comments
Assignees
Labels
type:build/install Build and install issues

Comments

@MaeThird
Copy link

When I launch
"bazel build -c opt --jobs=10 tensorflow/tools/pip_package:build_pip_package"
to compile tensorflow from source ,it crashed at:
"external/com_googlesource_code_re2/BUILD:11:1: C++ compilation of rule '@com_googlesource_code_re2//:re2' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-canonical-system-headers ... (remaining 32 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
external/com_googlesource_code_re2/re2/dfa.cc: In constructor 're2::DFA::State::State()':
external/com_googlesource_code_re2/re2/dfa.cc:95:10: error: unknown array size in delete...
"
Here are some relative infos:
1)bazel label: 0.3.1- (@non-git)
2)gcc (GCC) 6.2.1 20160830
3)tensorflow is the latest master branch
Can you tell me how to configure bazel with clang(not cross compile) ? Thanks.

@MaeThird
Copy link
Author

@andydavis1
Copy link
Contributor

Looks related to a gcc bug. Assigning an owner from our side to track this until the gcc bug is fixed.

@andydavis1 andydavis1 added the stat:awaiting tensorflower Status - Awaiting response from tensorflower label Sep 16, 2016
@jart jart added type:build/install Build and install issues and removed stat:awaiting tensorflower Status - Awaiting response from tensorflower labels Jan 14, 2017
@jart
Copy link
Contributor

jart commented Jan 14, 2017

This was fixed in 7ea4e2f

@jart jart closed this as completed Jan 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

3 participants