-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
syscall
warning in Bazel build
#717
Comments
`copts_` list contains `-Werror` option in order to turn all warnings into the errors. `-Wno-error=deprecated-declarations` option turns `syscall` warning into a warning even if -Werror is specified. Also I created an issue in the google/glog repo about `syscall` warning [#717](google/glog#717).
I'm not sure this is invalid: I think bazel/glog.bzl might need to set HAVE_PTHREAD_THREADID_NP and OS_MACOSX to benefit from #685. Am I missing something? @ArthurBandaryk You could look into adding those to darwin_only_copts. If that fixes the warning for you, please send a PR! |
`copts_` list contains `-Werror` option in order to turn all warnings into the errors. `-Wno-error=deprecated-declarations` option turns `syscall` warning into a warning even if -Werror is specified. Also I created an issue in the google/glog repo about `syscall` warning [#717](google/glog#717).
@drigz Good catch. I missed that the problem is related to Bazel. |
Hey @drigz ! First of all I would like to thank you, your idea to add 2 options |
This commit resolves [google#717](google#717) issue.
This commit resolves [google#717](google#717) issue.
`copts_` list contains `-Werror` option in order to turn all warnings into the errors. `-Wno-error=deprecated-declarations` option turns `syscall` warning into a warning even if -Werror is specified. Also I created an issue in the google/glog repo about `syscall` warning [#717](google/glog#717).
This avoids issues like google#717.
This avoids issues like google#717.
This avoids issues like google#717.
This avoids issues like google#717.
`copts_` list contains `-Werror` option in order to turn all warnings into the errors. `-Wno-error=deprecated-declarations` option turns `syscall` warning into a warning even if -Werror is specified. Also I created an issue in the google/glog repo about `syscall` warning [#717](google/glog#717).
`copts_` list contains `-Werror` option in order to turn all warnings into the errors. `-Wno-error=deprecated-declarations` option turns `syscall` warning into a warning even if -Werror is specified. Also I created an issue in the google/glog repo about `syscall` warning [#717](google/glog#717).
`copts_` list contains `-Werror` option in order to turn all warnings into the errors. `-Wno-error=deprecated-declarations` option turns `syscall` warning into a warning even if -Werror is specified. Also I created an issue in the google/glog repo about `syscall` warning [#717](google/glog#717).
Hey guys! JFYI when I'm trying to build
glog
withbazel build :glog
in macOS 11.4 I got the following warning:Is there a way to fix this warning?
ty:)
The text was updated successfully, but these errors were encountered: