-
Notifications
You must be signed in to change notification settings - Fork 2.4k
installation issue: Bazel doesn't build beyond 0.17.2 #12398
Copy link
Copy link
Closed
Labels
Description
I am currently trying to build latest tensorflow 1.x version for which Bazel v0.24.1 is needed. As shown below, Bazel won't build beyond 1.17.2
I tried commenting out a few patches that might be irrelavent for newer versions: fix_env_handling-0.17.2.patch, link.patch, and unix_cc_configure-0.17.2.patch but then I am getting different build errors.
Steps to reproduce the issue
==> Installing bazel
==> Searching for binary cache of bazel
==> Warning: No Spack mirrors are currently configured
==> No binary for bazel found: installing from source
==> Warning: There is no checksum on file to fetch [email protected] safely.
==> Fetch anyway? [y/N] y
==> Fetching with no checksum.
Add a checksum or use --no-checksum to skip this check.
==> Fetching https://github.com/bazelbuild/bazel/releases/download/0.18.1/bazel-0.18.1-dist.zip
######################################################################## 100.0%
==> Staging archive: /disk/software/lib/hpcpm/spack/var/spack/stage/bazel-0.18.1-bti25k6egb4fehuhaqb4cba5equsmi5e/bazel-0.18.1-dist.zip
==> Created stage in /disk/software/lib/hpcpm/spack/var/spack/stage/bazel-0.18.1-bti25k6egb4fehuhaqb4cba5equsmi5e
==> Applied patch /disk/software/lib/hpcpm/spack/var/spack/repos/builtin/packages/bazel/fix_env_handling-0.17.2.patch
1 out of 1 hunk FAILED -- saving rejects to file src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java.rej
==> Patch /disk/software/lib/hpcpm/spack/var/spack/repos/builtin/packages/bazel/link.patch failed.
==> Error: ProcessError: Command exited with status 1:
'/usr/bin/patch' '-s' '-p' '1' '-i' '/disk/software/lib/hpcpm/spack/var/spack/repos/builtin/packages/bazel/link.patch' '-d' '.'
Platform and user environment
Please report your OS here:
Linux ws-067 3.10.0-957.12.2.el7.x86_64 #1 SMP Tue May 14 21:24:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -d
Description: CentOS Linux release 7.6.1810 (Core)
[email protected] (will also try compiling with 4.8 soon)
Additional information
Rebuilding the package with the following options:
$ spack -d install [email protected]
==> [2019-08-12-17:25:20.214705] Fetching https://github.com/bazelbuild/bazel/releases/download/0.18.1/bazel-0.18.1-dist.zip
==> [2019-08-12-17:25:20.229222] '/usr/bin/curl' '-C' '-' '-o' '/disk/software/lib/hpcpm/spack/var/spack/stage/bazel-0.18.1-bti25k6egb4fehuhaqb4cba5equsmi5e/bazel-0.18.1-dist.zip.part' '-f' '-D' '-' '-L' 'https://github.com/bazelbuild/bazel/releases/download/0.18.1/bazel-0.18.1-dist.zip' '-#'
######################################################################## 100.0%
==> [2019-08-12-17:25:25.737364] Staging archive: /disk/software/lib/hpcpm/spack/var/spack/stage/bazel-0.18.1-bti25k6egb4fehuhaqb4cba5equsmi5e/bazel-0.18.1-dist.zip
==> [2019-08-12-17:25:25.746666] '/usr/bin/unzip' '-q' '/disk/software/lib/hpcpm/spack/var/spack/stage/bazel-0.18.1-bti25k6egb4fehuhaqb4cba5equsmi5e/bazel-0.18.1-dist.zip'
==> [2019-08-12-17:25:27.244610] Created stage in /disk/software/lib/hpcpm/spack/var/spack/stage/bazel-0.18.1-bti25k6egb4fehuhaqb4cba5equsmi5e
==> [2019-08-12-17:25:27.246456] '/usr/bin/patch' '-s' '-p' '1' '-i' '/disk/software/lib/hpcpm/spack/var/spack/repos/builtin/packages/bazel/fix_env_handling-0.17.2.patch' '-d' '.'
==> [2019-08-12-17:25:27.252151] Applied patch /disk/software/lib/hpcpm/spack/var/spack/repos/builtin/packages/bazel/fix_env_handling-0.17.2.patch
==> [2019-08-12-17:25:27.253205] '/usr/bin/patch' '-s' '-p' '1' '-i' '/disk/software/lib/hpcpm/spack/var/spack/repos/builtin/packages/bazel/link.patch' '-d' '.'
1 out of 1 hunk FAILED -- saving rejects to file src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java.rej
==> [2019-08-12-17:25:27.257628] ProcessError: Command exited with status 1:
'/usr/bin/patch' '-s' '-p' '1' '-i' '/disk/software/lib/hpcpm/spack/var/spack/repos/builtin/packages/bazel/link.patch' '-d' '.'
==> [2019-08-12-17:25:27.257816] Patch /disk/software/lib/hpcpm/spack/var/spack/repos/builtin/packages/bazel/link.patch failed.
==> [2019-08-12-17:25:27.265272] Error: ProcessError: Command exited with status 1:
'/usr/bin/patch' '-s' '-p' '1' '-i' '/disk/software/lib/hpcpm/spack/var/spack/repos/builtin/packages/bazel/link.patch' '-d' '.'
Traceback (most recent call last):
File "/disk/software/lib/hpcpm/spack/lib/spack/spack/build_environment.py", line 766, in child_process
return_value = function()
File "/disk/software/lib/hpcpm/spack/lib/spack/spack/package.py", line 1577, in build_process
self.do_patch()
File "/disk/software/lib/hpcpm/spack/lib/spack/spack/package.py", line 1119, in do_patch
patch.apply(self.stage)
File "/disk/software/lib/hpcpm/spack/lib/spack/spack/patch.py", line 88, in apply
apply_patch(stage, self.path, self.level, self.working_dir)
File "/disk/software/lib/hpcpm/spack/lib/spack/spack/patch.py", line 40, in apply_patch
'-d', working_dir)
File "/disk/software/lib/hpcpm/spack/lib/spack/spack/util/executable.py", line 189, in __call__
proc.returncode, long_msg)
ProcessError: Command exited with status 1:
'/usr/bin/patch' '-s' '-p' '1' '-i' '/disk/software/lib/hpcpm/spack/var/spack/repos/builtin/packages/bazel/link.patch' '-d' '.'
==> [2019-08-12-17:25:27.265925] READ LOCK: /disk/software/lib/hpcpm/spack/opt/spack/.spack-db/lock[0:0] [Acquiring]
==> [2019-08-12-17:25:27.267076] READ LOCK: /disk/software/lib/hpcpm/spack/opt/spack/.spack-db/lock[0:0] [Acquired]
==> [2019-08-12-17:25:27.315370] READ LOCK: /disk/software/lib/hpcpm/spack/opt/spack/.spack-db/lock[0:0] [Released]
==> [2019-08-12-17:25:27.321321] ChildError: ProcessError: Command exited with status 1:
'/usr/bin/patch' '-s' '-p' '1' '-i' '/disk/software/lib/hpcpm/spack/var/spack/repos/builtin/packages/bazel/link.patch' '-d' '.'Traceback (most recent call last):
File "/disk/software/lib/hpcpm/spack/lib/spack/spack/build_environment.py", line 766, in child_process
return_value = function()
File "/disk/software/lib/hpcpm/spack/lib/spack/spack/package.py", line 1577, in build_process
self.do_patch()
File "/disk/software/lib/hpcpm/spack/lib/spack/spack/package.py", line 1119, in do_patch
patch.apply(self.stage)
File "/disk/software/lib/hpcpm/spack/lib/spack/spack/patch.py", line 88, in apply
apply_patch(stage, self.path, self.level, self.working_dir)
File "/disk/software/lib/hpcpm/spack/lib/spack/spack/patch.py", line 40, in apply_patch
'-d', working_dir)
File "/disk/software/lib/hpcpm/spack/lib/spack/spack/util/executable.py", line 189, in __call__
proc.returncode, long_msg)
ProcessError: Command exited with status 1:
'/usr/bin/patch' '-s' '-p' '1' '-i' '/disk/software/lib/hpcpm/spack/var/spack/repos/builtin/packages/bazel/link.patch' '-d' '.'Reactions are currently unavailable