Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#62685 closed defect (fixed)

py39-tensorflow +native : dependencies are broken

Reported by: mouse07410 (Mouse) Owned by: Chris Jones <jonesc@…>
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: emcrisostomo (Enrico Maria Crisostomo), cjones051073 (Chris Jones)
Port: py39-tensorflow

Description

Big Sur 11.2.3, Xcode-12.4. Attempt to install py39-tensorflow +native, installation fails because of conflicting dependencies: it seems to require both bazel-3.1 and bazel-3.7.

$ port installed | grep bazel
  bazel-3.1 @3.1.0_0 (active)
$ sudo port install py39-tensorflow +native
Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not build correctly.
Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.
--->  Computing dependencies for py39-tensorflow
Error: Can't install bazel-3.7 because conflicting ports are active: bazel-3.1
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port py39-tensorflow failed
$ port info py39-tensorflow
py39-tensorflow @2.4.1_1 (python)
Variants:             mkl, native

Description:          TensorFlow helps the tensors flow
Homepage:             https://www.tensorflow.org/

Build Dependencies:   py39-future, py39-pip, py39-mock, cctools, bazel-3.1
Library Dependencies: python39, py39-absl, py39-astor, py39-astunparse, py39-flatbuffers, py39-gast,
                      py39-google-pasta, py39-grpcio, py39-keras, py39-numpy, py39-opt_einsum, py39-protobuf3,
                      py39-six, py39-tensorboard, py39-tensorflow_estimator, py39-termcolor, py39-wheel,
                      py39-wrapt
Runtime Dependencies: py39-tensorflow-addons
Conflicts with:       py39-tensorflow1
Platforms:            darwin
License:              Apache-2
Maintainers:          Email: emcrisostomo@macports.org, GitHub: emcrisostomo
                      Email: jonesc@macports.org, GitHub: cjones051073
                      Policy: openmaintainer

There is no log.

Attachments (2)

tf-addons-log.txt (593.1 KB) - added by mouse07410 (Mouse) 4 years ago.
main log
tf-main2-log.txt (2.8 MB) - added by mouse07410 (Mouse) 4 years ago.
ANother main.log for py39-tensorflow build

Change History (16)

comment:1 Changed 4 years ago by cjones051073 (Chris Jones)

OK, the issue is py-tensorflow requires bazel-3.1 to build, but tensorflow-addons which it now requires uses bazel-3.7. A the main tensor flow port has to use 3.1, it rejects 3.7, I think the fix is to change the adding package to use the same.

comment:2 Changed 4 years ago by Chris Jones <jonesc@…>

Owner: set to Chris Jones <jonesc@…>
Resolution: fixed
Status: newclosed

In fb91bc5fdf64141b6aeeb0f1e7121cca20a1e5a9/macports-ports (master):

py-tensorflow-addons: Use bazel 3.1 to build to match py-tensorflow
Closes: #62685

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

With the fix applied - py39-tensorflow-addons fails to configure:

$ sudo port install py39-tensorflow-addons +native
Enter PIN for 'Certificate For PIV Authentication : 
Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not build correctly.
Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.
--->  Computing dependencies for py39-tensorflow-addons
--->  Configuring py39-tensorflow-addons
Error: Failed to configure py39-tensorflow-addons: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow-addons/py39-tensorflow-addons/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port py39-tensorflow-addons failed

Does not matter whether +native is added or not.

From the log:

:debug:configure SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow-addons/py39-tensorflow-addons/work/addons-0.12.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9  configure.py 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow-addons/py39-tensorflow-addons/work/addons-0.12.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9  configure.py 
:info:configure Traceback (most recent call last):
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow-addons/py39-tensorflow-addons/work/tensorflow-addons-1e05eb9/configure.py", line 24, in <module>
:info:configure     import tensorflow as tf
:info:configure ModuleNotFoundError: No module named 'tensorflow'
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow-addons/py39-tensorflow-addons/work/addons-0.12.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9  configure.py 
:info:configure Exit code: 1
:error:configure Failed to configure py39-tensorflow-addons: configure failure: command execution failed

Complete log attached.

Changed 4 years ago by mouse07410 (Mouse)

Attachment: tf-addons-log.txt added

main log

comment:4 Changed 4 years ago by cjones051073 (Chris Jones)

yeah, a bit of a issue with the dependencies. should be fixed now I hope ?

comment:5 Changed 4 years ago by mouse07410 (Mouse)

Well, that part was fixed, but it still fails the build.

:info:build WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/30
8b05b2419edb5c8ee0471b67a40403df940149.tar.gz failed: class java.io.IOException Proxy address llproxy.llan.ll.mit.edu:8080 is not a va
lid URL
:info:build WARNING: Download from https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.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 'io_bazel_rules_closure':
:info:build    java.io.IOException: Error downloading [https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rule
s_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz, https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5
c8ee0471b67a40403df940149.tar.gz] to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs
_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/6da232b4e45addff3b712271afe8847b/external/io_bazel_rules_closure/308b05b2
419edb5c8ee0471b67a40403df940149.tar.gz: Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL
:info:build ERROR: no such package '@io_bazel_rules_closure//closure': java.io.IOException: Error downloading [https://storage.googlea
pis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz, https://git
hub.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz] to /opt/local/var/macports/build/_opt_local_
var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/6da232b4e45addff3
b712271afe8847b/external/io_bazel_rules_closure/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz: Proxy address llproxy.llan.ll.mit.edu
:8080 is not a valid URL
:info:build INFO: Elapsed time: 27.595s
:info:build INFO: 0 processes.
:info:build FAILED: Build did NOT complete successfully (0 packages loaded)
:info:build FAILED: Build did NOT complete successfully (0 packages loaded)
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_por
ts_python_py-tensorflow/py39-tensorflow/work/tensorflow-2.4.1" && BAZEL_SH=/bin/bash CC_OPT_FLAGS=-march=native  bazel-3.1 --max_idle_
secs=30 --output_user_root=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_pyt
hon_py-tensorflow/py39-tensorflow/work/bazel_build  build --subcommands --compilation_mode=opt --verbose_failures --nouse_action_cache
 --discard_analysis_cache --notrack_incremental_state --nokeep_state_after_build  --config=opt --jobs 10 --local_ram_resources=HOST_RA
M*0.5 --local_cpu_resources=HOST_CPUS*0.5 --conlyopt "-Os" --cxxopt "-Os" --cxxopt "-stdlib=libc++" --linkopt "-L/opt/local/lib" --lin
kopt "-Wl,-headerpad_max_install_names" --copt=-march=native //tensorflow/tools/pip_package:build_pip_package 
:info:build Exit code: 1
:error:build Failed to build py39-tensorflow: command execution failed

Changed 4 years ago by mouse07410 (Mouse)

Attachment: tf-main2-log.txt added

ANother main.log for py39-tensorflow build

comment:6 Changed 4 years ago by cjones051073 (Chris Jones)

Sorry, works just fine here, same OS.

What you should see is

<snip>
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
DEBUG: Rule 'io_bazel_rules_go' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1557349968 -0400"
DEBUG: Repository io_bazel_rules_go instantiated at:
  no stack (--record_rule_instantiation_callstack not enabled)
Repository rule git_repository defined at:
  /opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/7dcfb3f10e0f07ee16a8329d3da8dcaa/external/bazel_tools/tools/build_defs/repo/git.bzl:195:18: in <toplevel>
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: tensorflow/tools/pip_package
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (1 packages loaded, 0 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (85 packages loaded, 119 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (183 packages loaded, 3864 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (198 packages loaded, 3929 targets configured)
DEBUG: Rule 'io_bazel_rules_docker' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1556410077 -0400"
DEBUG: Repository io_bazel_rules_docker instantiated at:
  no stack (--record_rule_instantiation_callstack not enabled)
Repository rule git_repository defined at:
  /opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/7dcfb3f10e0f07ee16a8329d3da8dcaa/external/bazel_tools/tools/build_defs/repo/git.bzl:195:18: in <toplevel>
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (208 packages loaded, 3929 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (211 packages loaded, 3929 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (214 packages loaded, 3929 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (252 packages loaded, 4173 targets configured)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (320 packages loaded, 6159 targets configured)
<snip>

From your log it appears you have issues downloading targets. You should check your network settings etc...

Also, although I don't see why it would cause this, you have in your log

:warn:main The macOS 11.2 SDK does not appear to be installed. Ports may not build correctly.
:warn:main You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.

please also try resolving the above issue and try again.

Last edited 4 years ago by cjones051073 (Chris Jones) (previous) (diff)

comment:7 Changed 4 years ago by cjones051073 (Chris Jones)

Something else. You are using a non-MacPorts provided Java JDK 11

:debug:build JAVA_HOME='/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home'

and it looks like that is the cause of the problems, i.e.

:info:build WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz failed: class java.io.IOException Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL

Please try removing that, and then allow the port to install the fallback from Macports, i.e.

JAVA_HOME='/Library/Java/JavaVirtualMachines/openjdk11/Contents/Home'

comment:8 Changed 4 years ago by mouse07410 (Mouse)

The macOS 11.2 SDK does not appear to be installed

The macOS 11.2 SDK does not appear to be installed

it is not resolvable. Doing what Macports suggests xcode-select --install indeed installs the CLT, which Macports keeps ignoring (and there's no SDK-11.2, at least for Intel-based Big Sur):

$ ll /Library/Developer/CommandLineTools/SDKs/
total 0
drwxr-xr-x  5 root  wheel  160 Apr 11 11:37 ./
drwxr-xr-x  5 root  wheel  160 Apr 11 11:36 ../
lrwxr-xr-x  1 root  wheel   14 Apr 11 11:37 MacOSX.sdk@ -> MacOSX11.1.sdk
drwxr-xr-x  8 root  wheel  256 Jul  9  2020 MacOSX10.15.sdk/
drwxr-xr-x  7 root  wheel  224 Nov 30 07:33 MacOSX11.1.sdk/

You are using a non-MacPorts provided Java JDK 11

Yeah...?

and it looks like that is the cause of the problems...

The problem is with the Web proxy (this all is happening behind a corporate firewall). Are you saying that the Macports-provided JDK-11 would understand proxy env vars from Macports config or from the environment, but the Amazon port of JDK-11 would not???

Please try removing that, and then allow the port to install the fallback from Macports...

Same thing, of course - it does not take the env var JAVA_HOME, but chooses to figure it out for itself instead:

:info:build INFO: Repository io_bazel_rules_closure instantiated at:
:info:build   no stack (--record_rule_instantiation_callstack not enabled)
:info:build Repository rule http_archive defined at:
:info:build   /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/6da232b4e45addff3b712271afe8847b/external/bazel_tools/tools/build_defs/repo/http.bzl:336:16: in <toplevel>
:info:build WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz failed: class java.io.IOException Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL
:info:build WARNING: Download from https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.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 'io_bazel_rules_closure':
:info:build    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_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/6da232b4e45addff3b712271afe8847b/external/io_bazel_rules_closure/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz: Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL

And

$ fgr JAVA /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/main.log
412::debug:main Discovered JAVA_HOME via /usr/libexec/java_home -f -v: /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
22595::debug:configure JAVA_HOME='/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home'
22650::debug:build JAVA_HOME='/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home'

Actually removing the Corretto JDK-11, still resulted in the same problem:

$ fgr JAVA /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/main.log
412::debug:main Discovered JAVA_HOME via /usr/libexec/java_home -f -v: /Library/Java/JavaVirtualMachines/openjdk11/Contents/Home
22595::debug:configure JAVA_HOME='/Library/Java/JavaVirtualMachines/openjdk11/Contents/Home'
22650::debug:build JAVA_HOME='/Library/Java/JavaVirtualMachines/openjdk11/Contents/Home'
$ 

and

:info:build INFO: Repository io_bazel_rules_closure instantiated at:
:info:build   no stack (--record_rule_instantiation_callstack not enabled)
:info:build Repository rule http_archive defined at:
:info:build   /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/6da232b4e45addff3b712271afe8847b/external/bazel_tools/tools/build_defs/repo/http.bzl:336:16: in <toplevel>
:info:build WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz failed: class java.io.IOException Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL
:info:build WARNING: Download from https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.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 'io_bazel_rules_closure':
Last edited 4 years ago by mouse07410 (Mouse) (previous) (diff)

comment:9 in reply to:  8 Changed 4 years ago by cjones051073 (Chris Jones)

Replying to mouse07410:

The macOS 11.2 SDK does not appear to be installed

The macOS 11.2 SDK does not appear to be installed

it is not resolvable. Doing what Macports suggests xcode-select --install indeed installs the CLT, which Macports keeps ignoring (and there's no SDK-11.2, at least for Intel-based Big Sur):

$ ll /Library/Developer/CommandLineTools/SDKs/
total 0
drwxr-xr-x  5 root  wheel  160 Apr 11 11:37 ./
drwxr-xr-x  5 root  wheel  160 Apr 11 11:36 ../
lrwxr-xr-x  1 root  wheel   14 Apr 11 11:37 MacOSX.sdk@ -> MacOSX11.1.sdk
drwxr-xr-x  8 root  wheel  256 Jul  9  2020 MacOSX10.15.sdk/
drwxr-xr-x  7 root  wheel  224 Nov 30 07:33 MacOSX11.1.sdk/

Ah yes. i guess you are using the last released version of base ? I am using a devel version from git which I think has a work around for this.

You are using a non-MacPorts provided Java JDK 11

Yeah...?

and it looks like that is the cause of the problems...

The problem is with the Web proxy (this all is happening behind a corporate firewall). Are you saying that the Macports-provided JDK-11 would understand proxy env vars from Macports config or from the environment, but the Amazon port of JDK-11 would not???

I have no idea. I was just noting you where using a JDK that isn’t the one normally used, or tested to build the port.

Please try removing that, and then allow the port to install the fallback from Macports...

Same thing, of course - it does not take the env var JAVA_HOME, but chooses to figure it out for itself instead:

:info:build INFO: Repository io_bazel_rules_closure instantiated at:
:info:build   no stack (--record_rule_instantiation_callstack not enabled)
:info:build Repository rule http_archive defined at:
:info:build   /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/6da232b4e45addff3b712271afe8847b/external/bazel_tools/tools/build_defs/repo/http.bzl:336:16: in <toplevel>
:info:build WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz failed: class java.io.IOException Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL
:info:build WARNING: Download from https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.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 'io_bazel_rules_closure':
:info:build    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_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/6da232b4e45addff3b712271afe8847b/external/io_bazel_rules_closure/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz: Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL

And

$ fgr JAVA /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/main.log
412::debug:main Discovered JAVA_HOME via /usr/libexec/java_home -f -v: /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
22595::debug:configure JAVA_HOME='/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home'
22650::debug:build JAVA_HOME='/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home'

Well, it looks to me the issue is either your coorporate firewall, or the JDK you are using. Either way, its not a scenario anyone other than yourself can really debug and fix.

Last edited 4 years ago by cjones051073 (Chris Jones) (previous) (diff)

comment:10 Changed 4 years ago by mouse07410 (Mouse)

Well, it looks to me the issue is either your coorporate firewall, or the JDK you are using

It's not the JDK - it's the firewall:

$ fgr JAVA /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/main.log
412::debug:main Discovered JAVA_HOME via /usr/libexec/java_home -f -v: /Library/Java/JavaVirtualMachines/openjdk11/Contents/Home
22595::debug:configure JAVA_HOME='/Library/Java/JavaVirtualMachines/openjdk11/Contents/Home'
22650::debug:build JAVA_HOME='/Library/Java/JavaVirtualMachines/openjdk11/Contents/Home'
$ 

and

:info:build INFO: Repository io_bazel_rules_closure instantiated at:
:info:build   no stack (--record_rule_instantiation_callstack not enabled)
:info:build Repository rule http_archive defined at:
:info:build   /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-tensorflow/py39-tensorflow/work/bazel_build/6da232b4e45addff3b712271afe8847b/external/bazel_tools/tools/build_defs/repo/http.bzl:336:16: in <toplevel>
:info:build WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz failed: class java.io.IOException Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL
:info:build WARNING: Download from https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz failed: class java.io.IOException Proxy address llproxy.llan.ll.mit.edu:8080 is not a valid URL

Env vars are set to point at the proxy:

JAVA_OPTS=-Dhttp.proxyHost=llproxy.llan.ll.mit.edu -Dhttp.proxyPort=8080

How would you suggest I debug it?

Last edited 4 years ago by mouse07410 (Mouse) (previous) (diff)

comment:11 Changed 4 years ago by cjones051073 (Chris Jones)

Sorry but I am not really an expert on JAVA so I cannot help you with your proxy settings...

comment:12 Changed 4 years ago by cjones051073 (Chris Jones)

Btw, not really a fix but a side comment, but there is now a new port that provides a hardware accelerated build of tensorflow, from Apple, for macOS11. See py38-tensorflow_macos. Only slight issue is upstream does not yet (its an alpha version right now) support python 3.9, so there is only a 3.8 version at the moment.

See

port notes py38-tensorflow

For migration instructions.

comment:13 Changed 4 years ago by mouse07410 (Mouse)

Thank you! So, for now I should look at py38-tensorflow_macos, and eventually there'd be py39-tensorflow_macos?

That should work. And py38-tensorflow_macos installs smoothly.

Update Would you be able to report the proxy problem upstream? It seems obvious that their (bazel's) downloader is broken. How do I know? Because jarsigner on my machines can access the external time-servers via HTTP and HTTPS through the proxy just fine.

Last edited 4 years ago by mouse07410 (Mouse) (previous) (diff)

comment:14 in reply to:  13 Changed 4 years ago by cjones051073 (Chris Jones)

Replying to mouse07410:

Thank you! So, for now I should look at py38-tensorflow_macos, and eventually there'd be py39-tensorflow_macos?

That entirely depends on if/when upstream support 3.9

https://github.com/apple/tensorflow_macos

That should work. And py38-tensorflow_macos installs smoothly.

Note: See TracTickets for help on using tickets.