Skip to content

Cannot build config tsc debug: MLIR not found #22

Closed

Description

@emyfops

I'm currently trying to build the project to work on my side, but I can't get past config_tsc_debug.bat

I'm building using Visual Studio 16 2019

C:\Users\Administrator\Desktop\BetterElytraBot\TypeScriptCompiler\__build\tsc>cmake ../../tsc -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Debug -Wno-dev
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045.
-- MLIR_DIR is C:/Users/Administrator/Desktop/BetterElytraBot/TypeScriptCompiler/3rdParty/llvm/debug/lib/cmake/mlir
-- CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE was x64 and set to x64
CMake Error at CMakeLists.txt:62 (find_package):
  Could not find a package configuration file provided by "MLIR" with any of
  the following names:

    MLIRConfig.cmake
    mlir-config.cmake

  Add the installation prefix of "MLIR" to CMAKE_PREFIX_PATH or set
  "MLIR_DIR" to a directory containing one of the above files.  If "MLIR"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "C:/Users/Administrator/Desktop/BetterElytraBot/TypeScriptCompiler/__build/tsc/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Administrator/Desktop/BetterElytraBot/TypeScriptCompiler/__build/tsc/CMakeFiles/CMakeError.log".

The folder /llvm/debug/lib/mlir does not exist
image

Activity

  1. ASDAlexander77 commented on Mar 13, 2023

    @ASDAlexander77
    Owner

    you need to run prepare_3rdParty.bat and ensure that it finished

  2. ASDAlexander77 commented on Mar 13, 2023

    @ASDAlexander77
    Owner

    then u need to open "tsc" folder and run 2 bats: config_tsc_debug.bat and then build_tsc_debug.bat

  3. emyfops commented on Mar 13, 2023

    @emyfops
    Author

    then u need to open "tsc" folder and run 2 bats: config_tsc_debug.bat and then build_tsc_debug.bat

    I found out that I needed more than 120 GB of storage to build it so I made some space and restarted

    This is how it looks like, now
    But it looks like there's still some missing folders
    image

    I did find an error and a warning from prepare_3rdParty.bat

    CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.24/Modules/GNUInstallDirs.cmake:243 (message):
      Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
      target architecture is known.  Please enable at least one language before
      including GNUInstallDirs.
    Call Stack (most recent call first):
      C:/Users/Administrator/Desktop/BetterElytraBot/TypeScriptCompiler/3rdParty/llvm-project/llvm/cmake/modules/LLVMInstallSymlink.cmake:5 (include)
      tools/llvm-ar/cmake_install.cmake:48 (include)
      tools/cmake_install.cmake:39 (include)
      cmake_install.cmake:69 (include)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    CMake Error at tools/mlir/lib/Dialect/MemRef/Transforms/cmake_install.cmake:37 (file):
      file INSTALL cannot find
      "C:/Users/Administrator/Desktop/BetterElytraBot/TypeScriptCompiler/__build/llvm/debug/lib/MLIRMemRefTransforms.lib":
      No such file or directory.
    Call Stack (most recent call first):
      tools/mlir/lib/Dialect/MemRef/cmake_install.cmake:38 (include)
      tools/mlir/lib/Dialect/cmake_install.cmake:66 (include)
      tools/mlir/lib/cmake_install.cmake:40 (include)
      tools/mlir/cmake_install.cmake:55 (include)
      tools/cmake_install.cmake:45 (include)
      cmake_install.cmake:69 (include)
    

    image

    I could potentially restart the entire installation and then redirect the output to a file because the terminal wasn't able to keep everything, so there might be some additional important errors that were not showed in this

  4. emyfops commented on Mar 14, 2023

    @emyfops
    Author

    I built the project again
    Here are the errors

    CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.24/Modules/GNUInstallDirs.cmake:243 (message):
      Unable to determine default CMAKE_INSTALL_LIBDIR directory because no    
      target architecture is known.  Please enable at least one language before
      including GNUInstallDirs.                                                
    Call Stack (most recent call first):                                       
      C:/Users/Administrator/Desktop/BetterElytraBot/TypeScriptCompiler/3rdParty/llvm-project/llvm/cmake/modules/LLVMInstallSymlink.cmake:5 (include)
      tools/llvm-ar/cmake_install.cmake:48 (include)
      tools/cmake_install.cmake:39 (include)
      cmake_install.cmake:69 (include)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    CMake Error at tools/mlir/lib/Dialect/MemRef/Transforms/cmake_install.cmake:37 (file):
      file INSTALL cannot find
      "C:/Users/Administrator/Desktop/BetterElytraBot/TypeScriptCompiler/__build/llvm/debug/lib/MLIRMemRefTransforms.lib":
      No such file or directory.
    Call Stack (most recent call first):
      tools/mlir/lib/Dialect/MemRef/cmake_install.cmake:38 (include)
      tools/mlir/lib/Dialect/cmake_install.cmake:66 (include)
      tools/mlir/lib/cmake_install.cmake:40 (include)
      tools/mlir/cmake_install.cmake:55 (include)
      tools/cmake_install.cmake:45 (include)
      cmake_install.cmake:69 (include)
    
  5. ASDAlexander77 commented on Mar 14, 2023

    @ASDAlexander77
    Owner

    try do delete __build folder and try again

  6. ASDAlexander77 commented on Mar 14, 2023

    @ASDAlexander77
    Owner

    just ensure there are no errors during compile process

  7. emyfops commented on Mar 14, 2023

    @emyfops
    Author

    try do delete __build folder and try again

    I tried that multiple times
    The 4 first builds were all different
    And the 2 latests builds ended up with the same content

    I'm not exactly sure what exactly could cause this, maybe I have to use Visual Studio 17 2022 instead of 16 2019 but I can't get the compiler to be recognized with this version

  8. ASDAlexander77 commented on Mar 16, 2023

    @ASDAlexander77
    Owner

    before I was using VS 16 2019 so it should be fine, but maybe something changed as I moved to LLVM 15.0.7.

  9. ASDAlexander77 commented on Mar 16, 2023

    @ASDAlexander77
    Owner

    try to use "ninja" build tools

  10. emyfops commented on Mar 16, 2023

    @emyfops
    Author

    try to use "ninja" build tools

    Are you building on linux ?
    I will try to build the project in linux to see if it works with ninja

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions