Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Broken Windows Build with LLVM #16081

Merged
merged 1 commit into from Nov 7, 2023

Conversation

junrushao
Copy link
Member

PR #16032 introduces a more stable way of zstd path finding by relying on LLVM's existing Findzstd module, but it turns out that the cmake dir from llvm-config is not very compatible with CMake's internal convention, and thus a conversion is required to get rid of the error message below:

-- Performing Test CMAKE_HAVE_LIBC_PTHREAD

    D:/a/package/package/tvm/build/CMakeFiles/CMakeScratch/TryCompile-tnlfb1/CMakeLists.txt:2

-- Configuring incomplete, errors occurred!
  when parsing string

    C:\Miniconda\envs\tlcpack-build\Library\lib\cmake\llvm

  Invalid character escape '\M'.

CC @lhutton1

PR apache#16032 introduces a more stable way of zstd path finding by relying
on LLVM's existing Findzstd module, but it turns out that the cmake dir
from `llvm-config` is not very compatible with CMake's internal
convention, and thus a conversion is required to get rid of the error
message below:

```
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD

    D:/a/package/package/tvm/build/CMakeFiles/CMakeScratch/TryCompile-tnlfb1/CMakeLists.txt:2

-- Configuring incomplete, errors occurred!
  when parsing string

    C:\Miniconda\envs\tlcpack-build\Library\lib\cmake\llvm

  Invalid character escape '\M'.
```
@junrushao junrushao marked this pull request as ready for review November 6, 2023 18:47
@Hzfengsy Hzfengsy merged commit 641225a into apache:main Nov 7, 2023
18 of 19 checks passed
@lhutton1
Copy link
Contributor

lhutton1 commented Nov 7, 2023

Thanks for checking the windows build @junrushao!

binarybana pushed a commit to binarybana/tvm that referenced this pull request Nov 14, 2023
PR apache#16032 introduces a more stable way of zstd path finding by relying
on LLVM's existing Findzstd module, but it turns out that the cmake dir
from `llvm-config` is not very compatible with CMake's internal
convention, and thus a conversion is required to get rid of the error
message below:

```
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD

    D:/a/package/package/tvm/build/CMakeFiles/CMakeScratch/TryCompile-tnlfb1/CMakeLists.txt:2

-- Configuring incomplete, errors occurred!
  when parsing string

    C:\Miniconda\envs\tlcpack-build\Library\lib\cmake\llvm

  Invalid character escape '\M'.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants