runtime icon indicating copy to clipboard operation
runtime copied to clipboard

rules_cuda example fails to run

Open skyw opened this issue 4 years ago • 1 comments

When I run bazel run --cuda //examples:hello_cuda, it fails with the following error

gcc-8: error: unrecognized command line option '-Wthread-safety'; did you mean '-fthread-jumps'? gcc-8: error: unrecognized command line option '-Wself-assign'; did you mean '-Wcast-align'? gcc-8: error: unrecognized command line option '-fcolor-diagnostics'

These seem to be clang option, not gcc's.

skyw avatar May 14 '21 16:05 skyw

It almost looks like you are picking up these copts. Do you have those in your ~/.bazelrc file or something?

Would you mind providing the output of bazel build --announce_rc --cuda //examples:hello_cuda?

chsigg avatar Jun 22 '21 19:06 chsigg