-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
cpp-tutorial can't find external linux toolchain #383
Comments
Seems potentially related to recent thread in the Bazel getstarted slack: https://bazelbuild.slack.com/archives/CD42R4HJL/p1702485704389129. If it's the same issue, then you could try using Bazel 6.4, or specifying the |
I got the same problem,I dig somehow,find it seems the external/gcc_toolchain_x86_64/bin/gcc script parse the EXECROOT not correct,it goes to /tmp,but it seems you need to take bazel-working-directory/_main as your EXECROOT |
Can this option be made default or can this be mentioned in the cpp tutorial https://bazel.build/start/cpp |
This issue is a significant impediment to new users trying to use the cpp-tutorial to learn bazel. That workflow is completely broken on Ubuntu 20.04 and openSUSE Leap 15.5. I spent two full days finding this issue, mostly because I assumed I was doing something wrong. |
Trying to run the cpp-tutorial as written on amd64 Ubuntu 22.04, the compilation process cannot find the external toolchain.
Re-running with verbose flags enabled:
Checking out commit 996a864 (the commit prior to #355 ) and the build works fine with my internal toolchain
Running bazel version 7.0.0 (via bazelisk)
Running on Ubuntu 22.04
The text was updated successfully, but these errors were encountered: