Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

bazel errors #3684

Open
pshurie opened this issue Mar 20, 2021 · 2 comments
Open

bazel errors #3684

pshurie opened this issue Mar 20, 2021 · 2 comments

Comments

@pshurie
Copy link

pshurie commented Mar 20, 2021

I've followed the instructions https://heron.incubator.apache.org/docs/next/compiling-linux#building-on-ubuntu-18.04 and install version 3.7.2 of bazel (followed these instructions to make sure right version: https://docs.bazel.build/versions/master/install-ubuntu.html#install-on-ubuntu) and when I ran
bazel build --config=ubuntu heron/... I got the following errors (shortened for brevity but all the same ..no such attribute 'netrc' in 'http_file' rule):
root@213fea78ea26:~/incubator-heron# bazel build --config=ubuntu heron/...
ERROR: /root/.cache/bazel/_bazel_root/88837ab595738499a4ef3075862ee807/external/maven/defs.bzl:3:5: //external:ant_ant_1_6_5: no such attribute 'netrc' in 'http_file' rule
ERROR: /root/.cache/bazel/_bazel_root/88837ab595738499a4ef3075862ee807/external/maven/defs.bzl:9:5: //external:ant_ant_jar_sources_1_6_5: no such attribute 'netrc' in 'http_file' rule
ERROR: /root/.cache/bazel/_bazel_root/88837ab595738499a4ef3075862ee807/external/maven/defs.bzl:15:5: //external:antlr_antlr_2_7_7: no such attribute 'netrc' in 'http_file' rule
ERROR: /root/.cache/bazel/_bazel_root/88837ab595738499a4ef3075862ee807/external/maven/defs.bzl:21:5: //external:aopalliance_aopalliance_1_0: no such attribute 'netrc' in 'http_file' rule

@joshfischer1108
Copy link
Member

@nicknezis Would you look at this please?

@nicknezis
Copy link
Contributor

Hmm, those netrc issues are what we saw back in the older versions of Bazel. What do you see when you run bazel --version ?

The issue could also be related to Ant, which was added as a new dependency for the newer Zookeeper client library build process.

I tested a build on Ubuntu 20.04 using our docker script and it worked.
You can try a build also using this command to spin up a dev docker container:
./docker/scripts/dev-env-create.sh bazel2 ubuntu20.04

This is the Dockerfile for that setup. You can compare your Ubuntu system with the list of packages that we install. I wonder if the instructions you were using perhaps are missing a package such as ant.
https://github.com/apache/incubator-heron/blob/master/docker/compile/Dockerfile.ubuntu20.04

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants