powderluv / bazel-bin

14 stars 7 forks source link

Bazel binary package for apollo80 system #7

Open samcom12 opened 3 years ago

samcom12 commented 3 years ago

Hi, Can you try building bazel-3.7.1 for the apollo80 system? This system is cray-centos8-aarch64 machine.

powderluv commented 3 years ago

I dont have access to an a64fx system - however if you do it should just work provided you have java. I can help if you give me ssh access to the system or if you can post what is the error you get when you try to build bazel on there.

samcom12 commented 3 years ago

@powderluv Thanks for your response!

I was using the below command for building bazel on the apollo80 system.

wget https://github.com/bazelbuild/bazel/archive/4.0.0.tar.gz
tar -xvzf 4.0.0.tar.gz
cd bazel-4.0.0
export JAVA_HOME=/home/apps/jdk/jdk1.8.0_281
bazel build --verbose_failures //src:bazel-dev 

Below is log generated out of it.

DEBUG: /home/sameer/.cache/bazel/_bazel_sameer/a570c627cb2c69ff9dc7b2ad91eeecff/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /home/sameer/.cache/bazel/_bazel_sameer/a570c627cb2c69ff9dc7b2ad91eeecff/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:103:14: rbe_ubuntu1804_java11 not using checked in configs as detect_java_home was set to True
DEBUG: /home/sameer/.cache/bazel/_bazel_sameer/a570c627cb2c69ff9dc7b2ad91eeecff/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /home/sameer/.cache/bazel/_bazel_sameer/a570c627cb2c69ff9dc7b2ad91eeecff/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:103:14: rbe_ubuntu1604_java8 not using checked in configs as detect_java_home was set to True
WARNING: /home/sameer/.cache/bazel/_bazel_sameer/a570c627cb2c69ff9dc7b2ad91eeecff/external/remote_java_tools_linux/BUILD:733:11: in hdrs attribute of cc_library rule @remote_java_tools_linux//:combiners: Artifact 'external/remote_java_tools_linux/java_tools/src/tools/singlejar/zip_headers.h' is duplicated (through '@remote_java_tools_linux//:transient_bytes' and '@remote_java_tools_linux//:zip_headers'). Since this rule was created by the macro 'cc_library', the error might have been caused by the macro implementation
INFO: Analyzed target //src:bazel-dev (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/apps/bazel-372/bazel-4.0.0/src/BUILD:309:9: Executing genrule //src:embedded_tools_jdk_allmodules failed (Exit 127): bash failed: error executing command
  (cd /home/sameer/.cache/bazel/_bazel_sameer/a570c627cb2c69ff9dc7b2ad91eeecff/sandbox/linux-sandbox/1396/execroot/io_bazel && \
  exec env - \
    LD_LIBRARY_PATH=/opt/cray/pe/lib64:/opt/cray/lib64 \
    PATH=/home/apps/bazel_371:/home/sameer/bin/bazel-bin:/home/sameer/.local/bin:/home/sameer/bin:/opt/cray/pe/craype/2.7.0/bin:/opt/cray/pe/cce-sve/10.0.1/binutils/aarch64/aarch64-unknown-linux-gnu/bin:/opt/cray/pe/cce-sve/10.0.1/utils/aarch64/bin:/home/apps/spack/bin:/usr/local/Modules/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/cray/pe/bin \
  /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/src/create_embedded_tools "bazel-out/aarch64-fastbuild/bin/src/embedded_tools_jdk_allmodules.zip" bazel-out/aarch64-fastbuild/bin/src/embedded_tools_jdk_allmodules.params')
Execution platform: //:default_host_platform

Use --sandbox_debug to see verbose messages from the sandbox bash failed: error executing command
  (cd /home/sameer/.cache/bazel/_bazel_sameer/a570c627cb2c69ff9dc7b2ad91eeecff/sandbox/linux-sandbox/1396/execroot/io_bazel && \
  exec env - \
    LD_LIBRARY_PATH=/opt/cray/pe/lib64:/opt/cray/lib64 \
    PATH=/home/apps/bazel_371:/home/sameer/bin/bazel-bin:/home/sameer/.local/bin:/home/sameer/bin:/opt/cray/pe/craype/2.7.0/bin:/opt/cray/pe/cce-sve/10.0.1/binutils/aarch64/aarch64-unknown-linux-gnu/bin:/opt/cray/pe/cce-sve/10.0.1/utils/aarch64/bin:/home/apps/spack/bin:/usr/local/Modules/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/cray/pe/bin \
  /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/src/create_embedded_tools "bazel-out/aarch64-fastbuild/bin/src/embedded_tools_jdk_allmodules.zip" bazel-out/aarch64-fastbuild/bin/src/embedded_tools_jdk_allmodules.params')
Execution platform: //:default_host_platform

Use --sandbox_debug to see verbose messages from the sandbox
/usr/bin/env: 'python': No such file or directory
Target //src:bazel-dev failed to build
INFO: Elapsed time: 2.543s, Critical Path: 1.84s
INFO: 24 processes: 24 internal.
FAILED: Build did NOT complete successfully

Please let me know if you require any extra info.

powderluv commented 3 years ago

Looks like you don't have python. Install python or symlink to your install? Thanks

samcom12 commented 3 years ago

@powderluv I did install it successfully.