Skip to content

Instantly share code, notes, and snippets.

@j2kun
Last active July 18, 2023 16:54
Show Gist options
  • Save j2kun/f369293656434bb153d910090b8a2346 to your computer and use it in GitHub Desktop.
Save j2kun/f369293656434bb153d910090b8a2346 to your computer and use it in GitHub Desktop.
Minimal WORKSPACE repro
Loading:
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: Repository xls_pip_deps instantiated at:
/usr/local/google/home/jkun/fhe/xls_repro/WORKSPACE:65:33: in <toplevel>
/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/com_google_xls/dependency_support/initialize_external.bzl:35:16: in initialize_external_repositories
/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/rules_python/python/pip.bzl:98:19: in pip_install
Repository rule pip_repository defined at:
/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/rules_python/python/pip_install/pip_repository.bzl:323:33: in <toplevel>
Loading: 0 packages loaded
ERROR: An error occurred during the fetch of repository 'xls_pip_deps':
Traceback (most recent call last):
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/rules_python/python/pip_install/pip_repository.bzl", line 195, column 13, in _pip_repository_impl
fail("rules_python failed: %s (%s)" % (result.stdout, result.stderr))
Error in fail: rules_python failed: Collecting Flask==2.3.2
Using cached Flask-2.3.2-py3-none-any.whl (96 kB)
Collecting Jinja2==3.1.2
Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting werkzeug==2.3.3
Using cached Werkzeug-2.3.3-py3-none-any.whl (242 kB)
Collecting itsdangerous>=2.0
Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting click==8.1.3
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting markupsafe==2.1.1
Using cached MarkupSafe-2.1.1.tar.gz (18 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting termcolor==1.1.0
Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting psutil==5.7.0
Using cached psutil-5.7.0.tar.gz (449 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting portpicker==1.3.1
Using cached portpicker-1.3.1.tar.gz (18 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pyyaml==5.4.1
Using cached PyYAML-5.4.1.tar.gz (175 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
( error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [56 lines of output]
/usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:515: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/pypi__pip/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/pypi__pip/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/pypi__pip/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 108, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1213, in run_command
super().run_command(command)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 312, in run
self.find_sources()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 320, in find_sources
mm.run()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 564, in run
self.add_defaults()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 602, in add_defaults
sdist.add_defaults(self)
File "/usr/lib/python3/dist-packages/setuptools/command/sdist.py", line 106, in add_defaults
super().add_defaults()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/sdist.py", line 252, in add_defaults
self._add_defaults_ext()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/sdist.py", line 337, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 201, in get_source_files
File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/rules_python/python/pip_install/extract_wheels/__main__.py", line 5, in <module>
main()
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/rules_python/python/pip_install/extract_wheels/__init__.py", line 92, in main
subprocess.run(
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--isolated', 'wheel', '-r', '/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/com_google_xls/dependency_support/pip_requirements.txt', '--wheel-dir', '/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/xls_pip_deps']' returned non-zero exit status 1.
)
ERROR: /usr/local/google/home/jkun/fhe/xls_repro/WORKSPACE:65:33: fetching pip_repository rule //external:xls_pip_deps: Traceback (most recent call last):
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/rules_python/python/pip_install/pip_repository.bzl", line 195, column 13, in _pip_repository_impl
fail("rules_python failed: %s (%s)" % (result.stdout, result.stderr))
Error in fail: rules_python failed: Collecting Flask==2.3.2
Using cached Flask-2.3.2-py3-none-any.whl (96 kB)
Collecting Jinja2==3.1.2
Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting werkzeug==2.3.3
Using cached Werkzeug-2.3.3-py3-none-any.whl (242 kB)
Collecting itsdangerous>=2.0
Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting click==8.1.3
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting markupsafe==2.1.1
Using cached MarkupSafe-2.1.1.tar.gz (18 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting termcolor==1.1.0
Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting psutil==5.7.0
Using cached psutil-5.7.0.tar.gz (449 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting portpicker==1.3.1
Using cached portpicker-1.3.1.tar.gz (18 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pyyaml==5.4.1
Using cached PyYAML-5.4.1.tar.gz (175 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
( error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [56 lines of output]
/usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:515: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/pypi__pip/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/pypi__pip/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/pypi__pip/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 108, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1213, in run_command
super().run_command(command)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 312, in run
self.find_sources()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 320, in find_sources
mm.run()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 564, in run
self.add_defaults()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 602, in add_defaults
sdist.add_defaults(self)
File "/usr/lib/python3/dist-packages/setuptools/command/sdist.py", line 106, in add_defaults
super().add_defaults()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/sdist.py", line 252, in add_defaults
self._add_defaults_ext()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/sdist.py", line 337, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 201, in get_source_files
File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/rules_python/python/pip_install/extract_wheels/__main__.py", line 5, in <module>
main()
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/rules_python/python/pip_install/extract_wheels/__init__.py", line 92, in main
subprocess.run(
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--isolated', 'wheel', '-r', '/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/com_google_xls/dependency_support/pip_requirements.txt', '--wheel-dir', '/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/xls_pip_deps']' returned non-zero exit status 1.
)
ERROR: rules_python failed: Collecting Flask==2.3.2
Using cached Flask-2.3.2-py3-none-any.whl (96 kB)
Collecting Jinja2==3.1.2
Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting werkzeug==2.3.3
Using cached Werkzeug-2.3.3-py3-none-any.whl (242 kB)
Collecting itsdangerous>=2.0
Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting click==8.1.3
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting markupsafe==2.1.1
Using cached MarkupSafe-2.1.1.tar.gz (18 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting termcolor==1.1.0
Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting psutil==5.7.0
Using cached psutil-5.7.0.tar.gz (449 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting portpicker==1.3.1
Using cached portpicker-1.3.1.tar.gz (18 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pyyaml==5.4.1
Using cached PyYAML-5.4.1.tar.gz (175 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
( error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [56 lines of output]
/usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:515: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/pypi__pip/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/pypi__pip/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/pypi__pip/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 108, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1213, in run_command
super().run_command(command)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 312, in run
self.find_sources()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 320, in find_sources
mm.run()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 564, in run
self.add_defaults()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 602, in add_defaults
sdist.add_defaults(self)
File "/usr/lib/python3/dist-packages/setuptools/command/sdist.py", line 106, in add_defaults
super().add_defaults()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/sdist.py", line 252, in add_defaults
self._add_defaults_ext()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/sdist.py", line 337, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 201, in get_source_files
File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/rules_python/python/pip_install/extract_wheels/__main__.py", line 5, in <module>
main()
File "/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/rules_python/python/pip_install/extract_wheels/__init__.py", line 92, in main
subprocess.run(
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--isolated', 'wheel', '-r', '/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/com_google_xls/dependency_support/pip_requirements.txt', '--wheel-dir', '/usr/local/google/home/jkun/.cache/bazel/_bazel_jkun/4d3432b5e5144d53c784c2398a4673f7/external/xls_pip_deps']' returned non-zero exit status 1.
)
INFO: Elapsed time: 7.846s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
workspace(name = "xls_repro")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Install XLS and its transitive dependencies.
http_archive(
name = "com_google_xls",
sha256 = "c0653f9e3979e311ef9c8660d13f60d1217d9830fdb22011d22954a429f898e5",
strip_prefix = "xls-dce44c5c896773c85c2b8078f9d38d7b8b39912e",
url = "https://github.com/google/xls/archive/dce44c5c896773c85c2b8078f9d38d7b8b39912e.tar.gz",
)
# Used by xlscc.
http_archive(
name = "com_github_hlslibs_ac_types",
build_file = "@com_google_xls//dependency_support/com_github_hlslibs_ac_types:bundled.BUILD.bazel",
sha256 = "7ab5e2ee4c675ef6895fdd816c32349b3070dc8211b7d412242c66d0c6e8edca",
strip_prefix = "ac_types-57d89634cb5034a241754f8f5347803213dabfca",
urls = ["https://github.com/hlslibs/ac_types/archive/57d89634cb5034a241754f8f5347803213dabfca.tar.gz"],
)
# Toolchain to install LLVM, a requirements for XLS
http_archive(
name = "com_grail_bazel_toolchain",
strip_prefix = "bazel-toolchain-0.8",
urls = [
"https://github.com/grailbio/bazel-toolchain/archive/refs/tags/0.8.zip",
],
)
load("@com_grail_bazel_toolchain//toolchain:deps.bzl", "bazel_toolchain_dependencies")
bazel_toolchain_dependencies()
load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm_toolchain")
llvm_toolchain(
name = "llvm_toolchain",
llvm_version = "14.0.0",
strip_prefix = {"": "clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04"},
# In Docker, this ensures that we use the toolchain uses a pre-installed LLVM,
# which is required because llvm_toolchain does not support Docker using its
# introspection capabilities.
urls = {
"": [
"https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.0/clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz",
],
},
)
load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
llvm_register_toolchains()
load("@com_google_xls//dependency_support:load_external.bzl", "load_external_repositories")
load_external_repositories()
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
load("@com_google_xls//dependency_support:initialize_external.bzl", "initialize_external_repositories")
initialize_external_repositories()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment