Opened 4 years ago
Closed 18 months ago
#62131 closed defect (wontfix)
py38-tensorflow does not build on big sur
Reported by: | tiperiu | Owned by: | emcrisostomo (Enrico Maria Crisostomo) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | Cc: | cjones051073 (Chris Jones), smeingast (Stefan Meingast), mascguy (Christopher Nielsen) | |
Port: | py-tensorflow |
Description
The port py38-tensorflow fails in the build stage. I tried several times, I attach the log. use Big Sur, macport v 2.6.4.
xcode and everything seem to be installed properly, I installed many other ports successfully. xcode version 12.3
Attachments (1)
Change History (13)
comment:1 Changed 4 years ago by jmroot (Joshua Root)
Cc: | cjones051073 added |
---|---|
Owner: | set to emcrisostomo |
Port: | py-tensorflow added; py38-tensorflow removed |
Status: | new → assigned |
comment:2 follow-up: 5 Changed 4 years ago by tiperiu
comment:4 Changed 4 years ago by tiperiu
These are the last few lines of the main.log:
:info:build /var/folders/zc/zt8vz8zs37s1p7gvpbqx78r40000gp/T/tmp.XXXXXXXXXX.QpFjuOjL/tensorflow/include /opt/local/var/macports/build/_Users_stpopa_SDK_macports_python_py-tensorflow/py38-tensorflow/work/tensorflow-tensorflow-fcc4b96 :info:build /opt/local/var/macports/build/_Users_stpopa_SDK_macports_python_py-tensorflow/py38-tensorflow/work/tensorflow-tensorflow-fcc4b96 :info:build sed: /var/folders/zc/zt8vz8zs37s1p7gvpbqx78r40000gp/T/tmp.XXXXXXXXXX.QpFjuOjL/tensorflow/__init__.py: in-place editing only works for regular files :info:build Command failed: ./bazel-bin/tensorflow/tools/pip_package/build_pip_package /opt/local/var/macports/build/_Users_stpopa_SDK_macports_python_py-tensorflow/py38-tensorflow/work :info:build Exit code: 1 :error:build Failed to build py38-tensorflow: command execution failed :debug:build Error code: NONE :debug:build Backtrace: command execution failed :debug:build while executing :debug:build "$procedure $targetname" :error:build See /opt/local/var/macports/logs/_Users_stpopa_SDK_macports_python_py-tensorflow/py38-tensorflow/main.log for details.
comment:5 Changed 4 years ago by jmroot (Joshua Root)
Replying to tiperiu:
I tried to upload the log but it is 59Mb. I tried again to install the package but it still did not work and also it is 59Mb so I cannot upload it. .Anyone has a suggestion? Should I just upload the last N lines?
The last n lines are usually not helpful. First make sure the log only contains a single build attempt by running sudo port clean --logs --work py38-tensorflow
to clean the old log, followed by sudo port install py38-tensorflow
once to generate a new log. Then compress the log with xz or bzip2 and attach the compressed file.
comment:6 Changed 4 years ago by tiperiu
Thank you for the explanation. I followed the instructions and I attach the new log file.
Changed 4 years ago by tiperiu
comment:7 Changed 4 years ago by tiperiu
In the meantime I ugraded to xcode 12.4 but with the same results. Anyone else has this problem?
comment:8 Changed 4 years ago by mf2k (Frank Schima)
Yes. Here is the apparent error I'm seeing. I'm on the latest Xcode 12.4 too.
:info:build ERROR: no such package '@io_bazel_rules_closure//closure': java.io.IOException: Error downloading [https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz, https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz] to /opt/local/var/macports/build/_opt_mports_macports-ports_python_py-tensorflow/py38-tensorflow/work/f521f9257532c89ba3a8c591b6845ac6/external/io_bazel_rules_closure/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz: connect timed out
comment:9 Changed 4 years ago by smeingast (Stefan Meingast)
Cc: | smeingast added |
---|
comment:10 Changed 4 years ago by hmeine (Hans Meine)
I am having the same problem as tiperu. Not sure if the error of mf2k is the same. IOException
does not appear in my log.
The build failure I see is also not identical to tiperus, when looking very closely, but it also refers to build_pip_package
, so I hope it's better to post into this issue:
:info:build exec env - \ :info:build APPLE_SDK_PLATFORM=MacOSX \ :info:build APPLE_SDK_VERSION_OVERRIDE=11.1 \ :info:build PATH=/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin \ :info:build PYTHON_BIN_PATH=/opt/local/bin/python3.8 \ :info:build PYTHON_LIB_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages \ :info:build TF2_BEHAVIOR=1 \ :info:build TF_CONFIGURE_IOS=0 \ :info:build XCODE_VERSION_OVERRIDE=12.4.0.12D4e \ :info:build external/local_config_cc/cc_wrapper.sh -lc++ -fobjc-link-runtime -shared -o bazel-out/darwin-opt/bin/tensorflow/python/autograph/impl/testing/pybind_for_testing.so -Wl,-force_load,bazel-out/darwin-opt/bin/tensorflow/python/autograph/impl/testing/_objs/pybind_for_testing.so/pybind_for_testing.o -headerpad_max_install_names -Wl,-rpath,@loader_path/,-rpath,@loader_path/..,-rpath,@loader_path/../..,-rpath,@loader_path/../../..,-rpath,@loader_path/../../../.. -Wl,-exported_symbols_list,bazel-out/darwin-opt/bin/tensorflow/python/autograph/impl/testing/pybind_for_testing-exported-symbols.lds -L/opt/local/lib -Wl,-headerpad_max_install_names -no-canonical-prefixes -undefined dynamic_lookup '-mmacosx-version-min=11.1') :info:build Target //tensorflow/tools/pip_package:build_pip_package up-to-date: :info:build bazel-bin/tensorflow/tools/pip_package/build_pip_package :info:build INFO: Elapsed time: 89186,348s, Critical Path: 1399,97s :info:build INFO: 19332 processes: 1088 internal, 18244 local. :info:build INFO: Build completed successfully, 19332 total actions :info:build INFO: Build completed successfully, 19332 total actions :debug:build system -W /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py38-tensorflow/work/tensorflow-2.4.1: {./bazel-bin/tensorflow/tools/pip_package/build_pip_package /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py38-tensorflow/work} :info:build sh: {./bazel-bin/tensorflow/tools/pip_package/build_pip_package: No such file or directory :info:build Command failed: {./bazel-bin/tensorflow/tools/pip_package/build_pip_package /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py38-tensorflow/work} :info:build Exit code: 127 :error:build Failed to build py38-tensorflow: command execution failed :debug:build Error code: NONE :debug:build Backtrace: command execution failed :debug:build while executing :debug:build "$procedure $targetname"
In my case, it looks as if build_pip_package
is missing, but the lines above read that it is "up-to-date".
comment:11 Changed 18 months ago by mascguy (Christopher Nielsen)
Cc: | mascguy added |
---|
comment:12 Changed 18 months ago by mascguy (Christopher Nielsen)
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Python 3.9/3.10 are currently the only supported versions for py-tensorflow
, so this ticket is no longer relevant. Closing.
I tried to upload the log but it is 59Mb. I tried again to install the package but it still did not work and also it is 59Mb so I cannot upload it. .Anyone has a suggestion? Should I just upload the last N lines?
thanks