[llvm] [libc] fix missing macro dependency in bazel (PR #86298)

Schrodinger ZHU Yifan via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 12:20:02 PDT 2024


SchrodingerZhu wrote:

```
ERROR: /home/schrodingerzy/.cache/bazel/_bazel_schrodingerzy/7304816608f0590331fc5bd443889928/external/llvm-project/libc/utils/MPFRWrapper/BUILD.bazel:29:21: Compiling libc/utils/MPFRWrapper/MPFRUtils.cpp failed: (Exit 1): clang-17 failed: error executing command (from target @llvm-project//libc/utils/MPFRWrapper:mpfr_wrapper) /usr/bin/clang-17 -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer '-std=c++0x' ... (remaining 103 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/llvm-project/libc/utils/MPFRWrapper/MPFRUtils.cpp:17:10: error: module @llvm-project//libc/utils/MPFRWrapper:mpfr_wrapper does not depend on a module exporting 'include/llvm-libc-macros/math-macros.h'
   17 | #include "include/llvm-libc-macros/math-macros.h"
      |          ^
1 error generated.
INFO: Elapsed time: 4.935s, Critical Path: 1.77s
INFO: 298 processes: 60 internal, 238 linux-sandbox.
FAILED: Build did NOT complete successfully
```

https://github.com/llvm/llvm-project/pull/86298


More information about the llvm-commits mailing list