I found the issue when I was following the tutorial on a new Macbook Pro: Introduction to Bazel: Building a C++ Project.
➜ stage1 git:(master) ✗ bazel build //main:hello-world
The version information of
bazel that I’m using is
➜ stage1 git:(master) ✗ gcc --version