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

rules_cuda example fails to run #58

Open
skyw opened this issue May 14, 2021 · 1 comment
Open

rules_cuda example fails to run #58

skyw opened this issue May 14, 2021 · 1 comment

Comments

@skyw
Copy link

skyw commented May 14, 2021

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.

@chsigg
Copy link
Collaborator

chsigg commented Jun 22, 2021

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?

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