Error in bazel build -c opt xls/...

34 views
Skip to first unread message

Sujeet Kamble

unread,
Sep 1, 2023, 4:08:20 AM9/1/23
to xls-dev
I am a newbie in xls, but while running the command bazel build -c opt xls/... I am getting many errors.
Attached is also a screenshot for the same.
ERROR: An error occurred during the fetch of repository 'org_gnu_glpk':
   Traceback (most recent call last):
File "/home/sujeet/.cache/bazel/_bazel_sujeet/a26d9c500ecd72c115839b49a89398ef/external/bazel_tools/tools/build_defs/repo/http.bzl", line 132, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz] to /home/sujeet/.cache/bazel/_bazel_sujeet/a26d9c500ecd72c115839b49a89398ef/external/org_gnu_glpk/temp17931376036622965026/glpk-4.47.tar.gz: Connection reset
ERROR: /home/sujeet/Desktop/xls/WORKSPACE:69:33: fetching http_archive rule //external:org_gnu_glpk: Traceback (most recent call last):
File "/home/sujeet/.cache/bazel/_bazel_sujeet/a26d9c500ecd72c115839b49a89398ef/external/bazel_tools/tools/build_defs/repo/http.bzl", line 132, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz] to /home/sujeet/.cache/bazel/_bazel_sujeet/a26d9c500ecd72c115839b49a89398ef/external/org_gnu_glpk/temp17931376036622965026/glpk-4.47.tar.gz: Connection reset
ERROR: /home/sujeet/.cache/bazel/_bazel_sujeet/a26d9c500ecd72c115839b49a89398ef/external/com_github_quantamhd_lemon/BUILD.bazel:36:11: @com_github_quantamhd_lemon//:lemon depends on @org_gnu_glpk//:glpk in repository @org_gnu_glpk which failed to fetch. no such package '@org_gnu_glpk//': java.io.IOException: Error downloading [http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz] to /home/sujeet/.cache/bazel/_bazel_sujeet/a26d9c500ecd72c115839b49a89398ef/external/org_gnu_glpk/temp17931376036622965026/glpk-4.47.tar.gz: Connection reset
ERROR: Analysis of target '//xls/examples:find_index_place_and_route' failed; build aborted:
Screenshot from 2023-09-01 13-37-43.png

Leary, Chris

unread,
Sep 1, 2023, 12:22:59 PM9/1/23
to Sujeet Kamble, xls-dev
Hi Sujeet,

"Connection reset" sounds like your network connection was interrupted when dependencies were being downloaded.

Since our CI is passing I imagine this might be a specific problem with your environment.

Can you try again / try with a clean image / make sure your network connectivity seems right? e.g. can you wget the URL?

Also consider installing from conda (as described in the README) if you want to avoid building from source.

Cheers,

- Chris Leary

--
You received this message because you are subscribed to the Google Groups "xls-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xls-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xls-dev/1b865758-fc5a-4bf5-a64f-9c263222781en%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages