Using Bazel to build jaxlib on Windows: cannot complete build through proxy server #15740
Labels
area-Windows
Windows-specific issues and feature requests
P2
We'll consider working on this in future. (Assignee optional)
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: bug
Description of the bug:
System Info
I am building JAX from source on Windows but I cannot complete the build due to an SSL certificate issue. My environment variables are set up to work with my proxy, and I've configured various other programs to work with it as well. I need help configuring Bazel to work with my proxy.
When I attempt to build jaxlib with the command
python .\build\build.py
I get the following output:
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Set up a proxy server / firewall. Follow these instructions to build JAX from source on Windows for CPU only. For Bazel, I followed these instructions to install Bazelisk on my device.
After configuring the proxy for pip, MSYS2, git, and my device (using environment variables), I followed the JAX instructions, opened PowerShell as admin, and ran the command:
Which operating system are you running Bazel on?
Windows 10
What is the output of
bazel info release
?Starting local Bazel server and connecting to it... WARNING: Option 'experimental_strict_action_env' is deprecated: Use --incompatible_strict_action_env instead INFO: Reading 'startup' options from c:\users\dmsol\documents\rote\jax.bazelrc: --host_jvm_args=-Djavax.net.ssl.trustStore=C:Program Files (x86)Javajre1.8.0_261libsecuritycacerts, --host_jvm_args=-Djavax.net.ssl.trustStorePassword=changeit INFO: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=213 INFO: Reading rc options for 'info' from c:\users\dmsol\documents\rote\jax.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Options provided by the client: Inherited 'build' options: --python_path=C:/Users/dmsol/Anaconda3/python.exe INFO: Reading rc options for 'info' from c:\users\dmsol\documents\rote\jax.bazelrc: Inherited 'build' options: --apple_platform_type=macos --macos_minimum_os=10.14 --announce_rc --define open_source_build=true --spawn_strategy=standalone --enable_platform_specific_config --experimental_cc_shared_library --define=no_aws_support=true --define=no_gcp_support=true --define=no_hdfs_support=true --define=no_kafka_support=true --define=no_ignite_support=true --define=grpc_no_ares=true -c opt --config=short_logs --copt=-DMLIR_PYTHON_PACKAGE_PREFIX=jaxlib.mlir. --@org_tensorflow//tensorflow/compiler/xla/python:enable_gpu=false --@org_tensorflow//tensorflow/compiler/xla/python:enable_tpu=false INFO: Reading rc options for 'info' from c:\users\dmsol\documents\rote\jax.jax_configure.bazelrc: Inherited 'build' options: --strategy=Genrule=standalone --repo_env PYTHON_BIN_PATH=C:/Users/dmsol/Anaconda3/python.exe --action_env=PYENV_ROOT --python_path=C:/Users/dmsol/Anaconda3/python.exe --distinct_host_configuration=false INFO: Found applicable config definition build:short_logs in file c:\users\dmsol\documents\rote\jax.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:windows in file c:\users\dmsol\documents\rote\jax.bazelrc: --copt=/D_USE_MATH_DEFINES --host_copt=/D_USE_MATH_DEFINES --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI --copt=/Zc:preprocessor --cxxopt=/std:c++17 --host_cxxopt=/std:c++17 --linkopt=/DEBUG --host_linkopt=/DEBUG --linkopt=/OPT:REF --host_linkopt=/OPT:REF --linkopt=/OPT:ICF --host_linkopt=/OPT:ICF --experimental_strict_action_env=true WARNING: info command does not support starlark options. Ignoring options: [--@org_tensorflow//tensorflow/compiler/xla/python:enable_gpu=false, --@org_tensorflow//tensorflow/compiler/xla/python:enable_tpu=false] release 5.1.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Have you found anything relevant by searching the web?
Similar Issues
Any other information, logs, or outputs that you want to share?
I have also tried cloning the dependencies to my local device and pointing the repository variables by using:
and the like for the remaining dependencies. This gets rid of the SSL error but end of giving a slew of other errors. Besides, I really need this to specifically work through the proxy so that others at my company can replicate the process with relative ease.
The text was updated successfully, but these errors were encountered: