Opened 3 years ago

Last modified 3 years ago

#63257 assigned defect

py39-tensorflow (with +native, or without) fails to build

Reported by: mouse07410 (Mouse) Owned by: emcrisostomo (Enrico Maria Crisostomo)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cjones051073 (Chris Jones)
Port: py-tensorflow

Description

Big Sur 11.4, Xcode-12.5.1.

$ sudo port install py39-tensorflow +native
--->  Computing dependencies for py39-tensorflow
--->  Fetching distfiles for py39-tensorflow
--->  Verifying checksums for py39-tensorflow
--->  Extracting py39-tensorflow
--->  Configuring py39-tensorflow
--->  Building py39-tensorflow                           
Error: Failed to build py39-tensorflow: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port py39-tensorflow failed

Log attached.

Attachments (1)

py39-tensorflow.log.txt (4.6 MB) - added by mouse07410 (Mouse) 3 years ago.
Current/latest build main.log

Change History (4)

comment:1 Changed 3 years ago by mouse07410 (Mouse)

Summary: py39-tensorflow +native fails to buildpy39-tensorflow (with +native, or without) fails to build

Here's what happens without the +native flag:

$ sudo port -v upgrade py39-tensorflow
--->  Computing dependencies for py39-tensorflow.
--->  Fetching archive for py39-tensorflow
--->  py39-tensorflow-2.6.0_0.darwin_20.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch py39-tensorflow-2.6.0_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/py39-tensorflow
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch py39-tensorflow-2.6.0_0.darwin_20.x86_64.tbz2 from https://nue.de.packages.macports.org/py39-tensorflow
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch py39-tensorflow-2.6.0_0.darwin_20.x86_64.tbz2 from http://atl.us.packages.macports.org/py39-tensorflow
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Building py39-tensorflow
Starting local Bazel server and connecting to it...
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: Repository tf_runtime instantiated at:
  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/tensorflow-tensorflow-919f693/WORKSPACE:11:14: in <toplevel>
  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/tensorflow-tensorflow-919f693/tensorflow/workspace3.bzl:27:15: in workspace
  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/tensorflow-tensorflow-919f693/third_party/tf_runtime/workspace.bzl:12:20: in repo
  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/tensorflow-tensorflow-919f693/third_party/repo.bzl:113:21: in tf_http_archive
Repository rule _tf_http_archive defined at:
  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/tensorflow-tensorflow-919f693/third_party/repo.bzl:66:35: in <toplevel>
WARNING: Download from http://mirror.tensorflow.org/github.com/tensorflow/runtime/archive/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz failed: class java.io.IOException Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL
WARNING: Download from https://github.com/tensorflow/runtime/archive/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz failed: class java.io.IOException Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL
ERROR: An error occurred during the fetch of repository 'tf_runtime':
   Traceback (most recent call last):
	File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/tensorflow-tensorflow-919f693/third_party/repo.bzl", line 53, column 33, in _tf_http_archive_impl
		ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [http://mirror.tensorflow.org/github.com/tensorflow/runtime/archive/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz, https://github.com/tensorflow/runtime/archive/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz] to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/e9e69db706faba1d7be5d215555390d9/external/tf_runtime/temp12118001230446872774/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz: Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL
INFO: Repository io_bazel_rules_closure instantiated at:
  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/tensorflow-tensorflow-919f693/WORKSPACE:11:14: in <toplevel>
  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/tensorflow-tensorflow-919f693/tensorflow/workspace3.bzl:7:17: in workspace
Repository rule http_archive defined at:
  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/e9e69db706faba1d7be5d215555390d9/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: Repository tf_toolchains instantiated at:
  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/tensorflow-tensorflow-919f693/WORKSPACE:11:14: in <toplevel>
  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/tensorflow-tensorflow-919f693/tensorflow/workspace3.bzl:17:17: in workspace
Repository rule http_archive defined at:
  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/e9e69db706faba1d7be5d215555390d9/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
ERROR: no such package '@tf_runtime//': java.io.IOException: Error downloading [http://mirror.tensorflow.org/github.com/tensorflow/runtime/archive/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz, https://github.com/tensorflow/runtime/archive/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz] to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/e9e69db706faba1d7be5d215555390d9/external/tf_runtime/temp12118001230446872774/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz: Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL
Loading: 0 packages loaded
Loading: 0 packages loaded
Command failed: PATH=/opt/local/libexec/bazel-3.7/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin BAZEL_SH=/bin/bash CC_OPT_FLAGS=-march=x86-64 /opt/local/libexec/bazel-3.7/bin/bazel --max_idle_secs=10 --output_user_root=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build  fetch //tensorflow/tools/pip_package:build_pip_package
Exit code: 2
Error: Failed to build py39-tensorflow: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

It looks like it ignores the proxy settings, and hits the firewall head-first...

comment:2 Changed 3 years ago by mouse07410 (Mouse)

Again, there's a problem with port trying to retrieve some components over https, and hitting the corporate firewall - because that component fails to understand the proxy host.

:info:build WARNING: Download from http://mirror.tensorflow.org/github.com/tensorflow/runtime/archive/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
:info:build WARNING: Download from https://github.com/tensorflow/runtime/archive/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz failed: class java.io.IOException Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL
:info:build ERROR: An error occurred during the fetch of repository 'tf_runtime':
:info:build    Traceback (most recent call last):
:info:build 	File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/tensorflow-tensorflow-919f693/third_party/repo.bzl", line 53, column 33, in _tf_http_archive_impl
:info:build 		ctx.download_and_extract(
:info:build Error in download_and_extract: java.io.IOException: Error downloading [http://mirror.tensorflow.org/github.com/tensorflow/runtime/archive/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz, https://github.com/tensorflow/runtime/archive/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz] to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/e9e69db706faba1d7be5d215555390d9/external/tf_runtime/temp16812998780147780964/b570a1921c9e55ac53c8972bd2bfd37cd0eb510d.tar.gz: Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL

Full log attached.

Changed 3 years ago by mouse07410 (Mouse)

Attachment: py39-tensorflow.log.txt added

Current/latest build main.log

comment:3 Changed 3 years ago by mf2k (Frank Schima)

Cc: emcrisostomo removed
Owner: set to emcrisostomo
Port: py-tensorflow added; py39-tensorflow removed
Status: newassigned
Note: See TracTickets for help on using tickets.