<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/63222>63222</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Bazel build of clang headers generation fails on macOS
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          wsmoses
      </td>
    </tr>
</table>

<pre>
    ```
ERROR: /private/var/tmp/_bazel_wmoses/fc23347ca89ccc877582708f22eb94c3/external/llvm-project/clang/BUILD.bazel:1612:8: declared output 'external/llvm-project/clang/staging/include/__clang_cuda_builtin_vars.h' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
ERROR: /private/var/tmp/_bazel_wmoses/fc23347ca89ccc877582708f22eb94c3/external/llvm-project/clang/BUILD.bazel:1612:8: declared output 'external/llvm-project/clang/staging/include/__clang_cuda_cmath.h' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
ERROR: /private/var/tmp/_bazel_wmoses/fc23347ca89ccc877582708f22eb94c3/external/llvm-project/clang/BUILD.bazel:1612:8: declared output 'external/llvm-project/clang/staging/include/__clang_cuda_complex_builtins.h' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
ERROR: /private/var/tmp/_bazel_wmoses/fc23347ca89ccc877582708f22eb94c3/external/llvm-project/clang/BUILD.bazel:1612:8: declared output 'external/llvm-project/clang/staging/include/__clang_cuda_device_functions.h' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
ERROR: /private/var/tmp/_bazel_wmoses/fc23347ca89ccc877582708f22eb94c3/external/llvm-project/clang/BUILD.bazel:1612:8: declared output 'external/llvm-project/clang/staging/include/__clang_cuda_intrinsics.h' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
ERROR: /private/var/tmp/_bazel_wmoses/fc23347ca89ccc877582708f22eb94c3/external/llvm-project/clang/BUILD.bazel:1612:8: declared output 'external/llvm-project/clang/staging/include/__clang_cuda_libdevice_declares.h' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
ERROR: /private/var/tmp/_bazel_wmoses/fc23347ca89ccc877582708f22eb94c3/external/llvm-project/clang/BUILD.bazel:1612:8: declared output 'external/llvm-project/clang/staging/include/__clang_cuda_math.h' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
ERROR: /private/var/tmp/_bazel_wmoses/fc23347ca89ccc877582708f22eb94c3/external/llvm-project/clang/BUILD.bazel:1612:8: declared output 'external/llvm-project/clang/staging/include/__clang_cuda_math_forward_declares.h' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
ERROR: /private/var/tmp/_bazel_wmoses/fc23347ca89ccc877582708f22eb94c3/external/llvm-project/clang/BUILD.bazel:1612:8: declared output 'external/llvm-project/clang/staging/include/__clang_cuda_runtime_wrapper.h' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
```

cc @ftynse @ludgerpaehler @jdoerfert @vchuravy 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsmN2q4zYQx59GvhENztiJ7Qtf5DQ1FAoLp-21GUvjWIssGX0k6z59kTfhcFpKH2ANIcjS6D8f_DxYQu_VzRC17PTGTtcMY5isax9-tp58Nli5tuycP3_5leWXX97fv7yz4sIZdItTdwzEoLujY9CFeWHQ9QP-Rbp_bBoMulFAUZSVwLoRQtRVdaqhyusRgIamFAWDjr4FcgY1g07r-_zT4uxXEoFBJzSaG4Pu7c9ff7seNmVWXI7nI7DiUqc4JAmNjiS3MSwxcAbV_8v5gDe1jZQROsqUQ99vq72IEvshKh2U6e_o_GFiUPEHem5s4MIRBpJ8WPmNjIuaDvyPSXmuPF-cHXDQKx9IYPTEw0QvK44iRNR65VJJw6B6SfGQdn-PnsHP3LpP259pJffIpXIkgnUrRyM_qad1Fw13NNtAeuUMamM3dQzcGr1u5sKaQCZ4bsePyo1Kv_x4ji5ZLSrNOzu_HHxWZ9D8UDiIGcO0c7BzYOdF07dXe9hbw46EpLsS1I_RiKDsjsSORK9McMp4JXYYdhi0Gp4t4qm_Q7FDsX9O7hg8MehH6x7o5N4edi5eXLhogpqpfzhcFnI7Ef9NxD-up77_C8FZmY9hNZ7SSEd5I7cgTZpcmvgqLbmRXEgPdzFFh_eVZ7ItZFM0mFF7PNfnosxzgGxqCQQ05_xcnUAMhcCyrImOIEqRH2kAyFQLORT5OW-OTVnlcCghF1g2DVFd1eNxZGVOMyp9SEgcrLtlyvtI7bkAgEzjQNpvt3AAhh58W2QA7HTNXLthNMSbT6koH_yHSlBBU_uWyOTpUCpTXTeS-EQoyflUP3KYziZ8RKU9t4bPKL78nkWn2ymExbPiwqBj0N1UmOJwEHZ-0vtviLfQ0pu1hf53AAAA__9hQwHa">