Open samestep opened 2 years ago
Strange, Clang 12 should support concepts.
I suspect there's something in //toolchain that's making assumptions specific to my system (reasonably up-to-date Linux Mint).
A few ideas:
.bazelrc
file get cloned correctly? --subcommands
flag: That is, bazel build -c opt //compile:interpret --subcommands
. This will build the target and emit to stderr the full commands the Bazel actions are performing. Maybe it's somehow not finding the wrong compiler path? Or not setting -std=c++2a
No, I cannot; if I save that file and compile it using either clang-12
or clang++-12
, I get the same error message, regardless of whether I add -std=c++2a
to the command.
I believe so.
Running that command gives me the following error message:
ERROR: Skipping '//compile:interpret': no such package 'compile': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
- /home/sam/github/asoffer/Icarus/compile
WARNING: Target pattern parsing failed.
ERROR: no such package 'compile': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
- /home/sam/github/asoffer/Icarus/compile
INFO: Elapsed time: 0.213s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
Typo.. should be compiler:interpret
, but regardless it seems like your version of clang doesn't support concepts, so the subcommands won't tell us much more. Probably worth checking the symlinks are correct by checking the version clang thinks it is (-v
). It could also be your standard library is placed somewhere strange and not being picked up by $PATH or -isystem. If you can locate those files that'd be great, otherwise I'd bet this is sufficiently common that stack overflow has an answer
I'm on Ubuntu 20.04, with
clang-12
installed viasudo apt install clang-12
and Bazel 5.2.0 installed via these instructions. When I run the build instructions from this repo's README, I get this error: