Opened 5 weeks ago

Last modified 2 weeks ago

#62131 assigned defect

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)
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)

main.log (2.5 MB) - added by tiperiu 5 weeks ago.

Change History (10)

comment:1 Changed 5 weeks ago by jmroot (Joshua Root)

Cc: cjones051073 added
Owner: set to emcrisostomo
Port: py-tensorflow added; py38-tensorflow removed
Status: newassigned

comment:2 Changed 5 weeks ago by 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?

thanks

comment:3 Changed 5 weeks ago by tiperiu

Last edited 5 weeks ago by tiperiu (previous) (diff)

comment:4 Changed 5 weeks 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.
Last edited 5 weeks ago by jmroot (Joshua Root) (previous) (diff)

comment:5 in reply to:  2 Changed 5 weeks 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 5 weeks ago by tiperiu

Thank you for the explanation. I followed the instructions and I attach the new log file.

Changed 5 weeks ago by tiperiu

Attachment: main.log added

comment:7 Changed 5 weeks 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 5 weeks 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 2 weeks ago by smeingast (Stefan Meingast)

Cc: smeingast added
Note: See TracTickets for help on using tickets.