Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bazel build command failed as it does not have root privileges #1094

Open
GargSaab opened this issue Feb 13, 2023 · 1 comment
Open

bazel build command failed as it does not have root privileges #1094

GargSaab opened this issue Feb 13, 2023 · 1 comment

Comments

@GargSaab
Copy link

we are trying to build stratum_bcm, i am following the steps attached in the screenshot but when I try bazel build command, it ask for the root privileges, and when we try with sudo command, it gives "sorry, try again" when we try the correct password. Can you help me to figure out this?
Screenshot 2023-02-13 at 6 20 57 PM
Screenshot 2023-02-13 at 6 22 44 PM
Screenshot 2023-02-13 at 6 23 04 PM

@pudelkoM
Copy link
Member

There should be no password required on the account because of how it is configured: echo "%sudo ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers

For a regular build Bazel does not require root privileges, the error you see is because of a cache path that's mounted into the container.

Building on the switch is also not recommended.

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

No branches or pull requests

2 participants