[llvm] [mlir] Fix CMake dependencies on mlir-linalg-ods-yaml-gen (PR #111973)
Timm Baeder via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 14 03:27:49 PDT 2024
tbaederr wrote:
This commit causes these errors when I configure:
```console
-- Clang version: 20.0.0git
CMake Error at cmake/modules/AddLLVM.cmake:2635 (add_custom_target):
add_custom_target called with invalid target name
"/home/tbaeder/code/llvm-project/build/NATIVE/bin/clang". Target names may
not contain a slash. Use ADD_CUSTOM_COMMAND to generate files.
Call Stack (most recent call first):
/home/tbaeder/code/llvm-project/clang/tools/driver/CMakeLists.txt:41 (setup_host_tool)
CMake Error at cmake/modules/AddLLVM.cmake:2637 (set_target_properties):
set_target_properties Can not find target to add properties to:
/home/tbaeder/code/llvm-project/build/NATIVE/bin/clang
Call Stack (most recent call first):
/home/tbaeder/code/llvm-project/clang/tools/driver/CMakeLists.txt:41 (setup_host_tool)
CMake Error at cmake/modules/AddLLVM.cmake:2635 (add_custom_target):
add_custom_target called with invalid target name
"/home/tbaeder/code/llvm-project/build/NATIVE/bin/llvm-as". Target names
may not contain a slash. Use ADD_CUSTOM_COMMAND to generate files.
Call Stack (most recent call first):
tools/llvm-as/CMakeLists.txt:15 (setup_host_tool)
CMake Error at cmake/modules/AddLLVM.cmake:2637 (set_target_properties):
set_target_properties Can not find target to add properties to:
/home/tbaeder/code/llvm-project/build/NATIVE/bin/llvm-as
Call Stack (most recent call first):
tools/llvm-as/CMakeLists.txt:15 (setup_host_tool)
CMake Error at cmake/modules/AddLLVM.cmake:2635 (add_custom_target):
add_custom_target called with invalid target name
"/home/tbaeder/code/llvm-project/build/NATIVE/bin/llvm-link". Target names
may not contain a slash. Use ADD_CUSTOM_COMMAND to generate files.
Call Stack (most recent call first):
tools/llvm-link/CMakeLists.txt:21 (setup_host_tool)
CMake Error at cmake/modules/AddLLVM.cmake:2637 (set_target_properties):
set_target_properties Can not find target to add properties to:
/home/tbaeder/code/llvm-project/build/NATIVE/bin/llvm-link
Call Stack (most recent call first):
tools/llvm-link/CMakeLists.txt:21 (setup_host_tool)
CMake Error at cmake/modules/AddLLVM.cmake:2635 (add_custom_target):
add_custom_target called with invalid target name
"/home/tbaeder/code/llvm-project/build/NATIVE/bin/llvm-nm". Target names
may not contain a slash. Use ADD_CUSTOM_COMMAND to generate files.
Call Stack (most recent call first):
tools/llvm-nm/CMakeLists.txt:29 (setup_host_tool)
CMake Error at cmake/modules/AddLLVM.cmake:2637 (set_target_properties):
set_target_properties Can not find target to add properties to:
/home/tbaeder/code/llvm-project/build/NATIVE/bin/llvm-nm
Call Stack (most recent call first):
tools/llvm-nm/CMakeLists.txt:29 (setup_host_tool)
CMake Error at cmake/modules/AddLLVM.cmake:2635 (add_custom_target):
add_custom_target called with invalid target name
"/home/tbaeder/code/llvm-project/build/NATIVE/bin/llvm-readobj". Target
names may not contain a slash. Use ADD_CUSTOM_COMMAND to generate files.
Call Stack (most recent call first):
tools/llvm-readobj/CMakeLists.txt:33 (setup_host_tool)
CMake Error at cmake/modules/AddLLVM.cmake:2637 (set_target_properties):
set_target_properties Can not find target to add properties to:
/home/tbaeder/code/llvm-project/build/NATIVE/bin/llvm-readobj
Call Stack (most recent call first):
tools/llvm-readobj/CMakeLists.txt:33 (setup_host_tool)
CMake Error at cmake/modules/AddLLVM.cmake:2635 (add_custom_target):
add_custom_target called with invalid target name
"/home/tbaeder/code/llvm-project/build/NATIVE/bin/opt". Target names may
not contain a slash. Use ADD_CUSTOM_COMMAND to generate files.
Call Stack (most recent call first):
tools/opt/CMakeLists.txt:53 (setup_host_tool)
CMake Error at cmake/modules/AddLLVM.cmake:2637 (set_target_properties):
set_target_properties Can not find target to add properties to:
/home/tbaeder/code/llvm-project/build/NATIVE/bin/opt
Call Stack (most recent call first):
tools/opt/CMakeLists.txt:53 (setup_host_tool)
-- Configuring incomplete, errors occurred!
```
Reverting the patch makes things work again.
https://github.com/llvm/llvm-project/pull/111973
More information about the llvm-commits
mailing list