{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/615","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/615/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/615/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/615/events","html_url":"https://github.com/bazelbuild/bazel/issues/615","id":117302709,"number":615,"title":"missing dependency declarations for standard library headers with --cpu=freebsd","user":{"login":"filmil","id":246576,"avatar_url":"https://avatars.githubusercontent.com/u/246576?v=3","gravatar_id":"","url":"https://api.github.com/users/filmil","html_url":"https://github.com/filmil","followers_url":"https://api.github.com/users/filmil/followers","following_url":"https://api.github.com/users/filmil/following{/other_user}","gists_url":"https://api.github.com/users/filmil/gists{/gist_id}","starred_url":"https://api.github.com/users/filmil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filmil/subscriptions","organizations_url":"https://api.github.com/users/filmil/orgs","repos_url":"https://api.github.com/users/filmil/repos","events_url":"https://api.github.com/users/filmil/events{/privacy}","received_events_url":"https://api.github.com/users/filmil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-17T07:52:39Z","updated_at":"2015-11-17T07:55:41Z","closed_at":null,"body":"I started getting the following error, when compiling with --cpu=freebsd:\r\n\r\nERROR: /home/f/work/bugs-bazel/BUILD:1:1: undeclared inclusion(s) in rule '//:strrev':\r\nthis rule is missing dependency declarations for the following files included by 'strrev.cc':\r\n  '/usr/lib/clang/3.4/include/stddef.h'\r\n  '/usr/lib/clang/3.4/include/stdarg.h'.\r\n\r\nNot sure if it was intended that a standard library headers would produce it.\r\n\r\nHere is a demo workspace that shows the problem.  The input command line is in the file INPUT; and the output I get is in the file OUTPUT\r\n\r\nhttps://bitbucket.org/filmil/bugs-bazel/src/453cced452ad4f4e2f3ac41ee7abd9a032ed9374\r\n\r\n8ff216d8e8a1c3fc5ed33453bb21b53381e295c9 is the first bad commit\r\ncommit 8ff216d8e8a1c3fc5ed33453bb21b53381e295c9\r\nAuthor: Philipp Wollermann <philwo@google.com>\r\nDate:   Mon Oct 19 12:28:03 2015 +0000\r\n\r\n    Quick workaround for #473 that reenables hdrs_check in Bazel to unblock the release. Note the following peculiarities of the current situation:\r\n    \r\n    - Sandboxed execution still silently falls back to non-sandboxed execution due to LocalGccStrategy explicitly requesting local execution.\r\n    - However, builds are still correct due to local execution using hdrs_check.\r\n    - hdrs_check, even though it was intended to default to \"strict\" in Bazel from the start, is still set to \"loose\" by default, so you might accidentally be using non-declared header files in your cc_* targets. In this case, your builds will break when the default becomes hdrs_check=strict and sandboxing becomes available. It is recommended that you check whether your builds are affected, by specifying --hdrs_check=strict manually and fixing your BUILD files to explicitly list all used includes in the srcs / hdrs attributes of your cc_* targets.\r\n    \r\n    These remaining issues will be fixed in an upcoming change.\r\n    \r\n    This change also adds regression tests for the issue.\r\n    \r\n    --\r\n    MOS_MIGRATED_REVID=105747212\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/157302542","html_url":"https://github.com/bazelbuild/bazel/issues/615#issuecomment-157302542","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/615","id":157302542,"user":{"login":"filmil","id":246576,"avatar_url":"https://avatars.githubusercontent.com/u/246576?v=3","gravatar_id":"","url":"https://api.github.com/users/filmil","html_url":"https://github.com/filmil","followers_url":"https://api.github.com/users/filmil/followers","following_url":"https://api.github.com/users/filmil/following{/other_user}","gists_url":"https://api.github.com/users/filmil/gists{/gist_id}","starred_url":"https://api.github.com/users/filmil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filmil/subscriptions","organizations_url":"https://api.github.com/users/filmil/orgs","repos_url":"https://api.github.com/users/filmil/repos","events_url":"https://api.github.com/users/filmil/events{/privacy}","received_events_url":"https://api.github.com/users/filmil/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T07:55:41Z","updated_at":"2015-11-17T07:55:41Z","body":"FWIW, my current master branch is at commit 50bf666652aacd274d534ad4ec4eadf8e8452e05"}}