You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Target //tensorflow/tools/pip_package:build_pip_package failed to build on OSX #72
ERROR: /Users/delip/Softwares/tensorflow/tensorflow/tensorflow.bzl:224:3: C++ compilation of rule '//tensorflow/python:tf_session_helper' failed: osx_gcc_wrapper.sh failed: error executing command tools/cpp/osx_gcc_wrapper.sh '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections ... (remaining 52 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
I recently checked out the repo
$ git log | head -5
commit 41930f0b81b52a34fb56d921c9bad65c36168323
Author: Vijay Vasudevan <[email protected]>
Date: Mon Nov 9 18:42:53 2015 -0800
TensorFlow: Upstream a batch of changes to git.
I am having the same issue today, however I was able to build it yesterday without any problem. I think the problem is that the copts are pointing to /usr/include/python2.7, which does not exist on OS X (correct path for Homebrew Python is to be found by using the command python-config --includes).
I tried updating the Bazel target for tf_session_helper in tensorflow/python/build to use the Homebrew include path instead of /usr/include/python2.7, but then I get the following:
± % bazel build --verbose_failures -c opt //tensorflow/tools/pip_package:build_pip_package
ERROR: /Users/jfsantos/Projects/tensorflow/tensorflow/python/BUILD:666:1: in cc_library rule //tensorflow/python:tf_session_helper: The include path '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Headers' references a path outside of the execution root..
ERROR: /Users/jfsantos/Projects/tensorflow/tensorflow/python/BUILD:666:1: in cc_library rule //tensorflow/python:tf_session_helper: The include path '/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Headers' references a path outside of the execution root..
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted.
INFO: Elapsed time: 0.409s
@jfsantos that did the trick. For some reason, even using anaconda's Python headers gave me the same error, but using the OSX python path (like the one you provided) worked. Thanks!
Activity
mrry commentedon Nov 10, 2015
Can you try again with
--verbose_failuresand paste in any more information that displays about the failure? Thanks!jfsantos commentedon Nov 10, 2015
I am having the same issue today, however I was able to build it yesterday without any problem. I think the problem is that the copts are pointing to
/usr/include/python2.7, which does not exist on OS X (correct path for Homebrew Python is to be found by using the commandpython-config --includes).Here is the log when using
--verbose_failures:I tried updating the Bazel target for
tf_session_helperintensorflow/python/buildto use the Homebrew include path instead of/usr/include/python2.7, but then I get the following:jfsantos commentedon Nov 10, 2015
I managed to run by changing the
numpy_macosx_include_dirto the following:Using the Homebrew path did not work as stated in the comment above.
delip commentedon Nov 17, 2015
@jfsantos that did the trick. For some reason, even using anaconda's Python headers gave me the same error, but using the OSX python path (like the one you provided) worked. Thanks!
vrv commentedon Nov 24, 2015
De-duping with #187
Ref tensorflow#72: Update histograms for X and y only if they are floats
Merge pull request tensorflow#72 from lissyx/master-arm64
NFC: Add a note to 'applyPatternsGreedily' that it also performs fold…
NFC: Add a note to 'applyPatternsGreedily' that it also performs fold…
Merge pull request tensorflow#72 from ROCmSoftwarePlatform/refactor-a…
Add security advisory for vuln #72 in 2022
PR #74506: Adds missing datatype support for various tflite operations
PR #74506: Adds missing datatype support for various tflite operations
PR #74506: Adds missing datatype support for various tflite operations
PR #74506: Adds missing datatype support for various tflite operations
PR #74506: Adds missing datatype support for various tflite operations
Tflite min max missing datatypes support (#38) (#72)