[compiler-rt] [compiler-rt][profile] Use runtimes-libc-headers in the GPU runtimes build (PR #192814)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 22 09:51:19 PDT 2026


gulfemsavrun wrote:

We started seeing a CMake error after this change:

```
CMake Error at cmake/modules/HandleLibC.cmake:21 (add_library):
  add_library cannot create target "runtimes-libc-headers" because another
  target with the same name already exists.  The existing target is an
  interface library created in source directory
  "/Users/swarming/b/s/w/ir/x/w/llvm-llvm-project/libcxx".  See documentation
  for policy CMP0002 for more details.
Call Stack (most recent call first):
  /Users/swarming/b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/CMakeLists.txt:40 (include)


CMake Error at cmake/modules/HandleLibC.cmake:23 (add_library):
  add_library cannot create target "runtimes-libc-static" because another
  target with the same name already exists.  The existing target is an
  interface library created in source directory
  "/Users/swarming/b/s/w/ir/x/w/llvm-llvm-project/libcxx".  See documentation
  for policy CMP0002 for more details.
Call Stack (most recent call first):
  /Users/swarming/b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/CMakeLists.txt:40 (include)


CMake Error at cmake/modules/HandleLibC.cmake:24 (add_library):
  add_library cannot create target "runtimes-libc-shared" because another
  target with the same name already exists.  The existing target is an
  interface library created in source directory
  "/Users/swarming/b/s/w/ir/x/w/llvm-llvm-project/libcxx".  See documentation
  for policy CMP0002 for more details.
```

https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-mac-arm64/b8683874769760578273/overview
https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8683874769760578273/+/u/clang/build/stdout

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


More information about the llvm-commits mailing list