jbush001 / NyuziProcessor

GPGPU microprocessor architecture
Apache License 2.0
1.96k stars 348 forks source link

setup_tools.sh failure #204

Open LGarnet opened 1 year ago

LGarnet commented 1 year ago

I have all the required packages and I've tried the python3 fix described in the readme, but upon running the script I get the following error:

CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2471:EVAL:2 (add_custom_command):
  Error evaluating generator expression:

    $<TARGET_FILE:llvm-ranlib>

  Target "llvm-ranlib" is not an executable or library.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/ExternalProject.cmake:2471 (cmake_language)
  cmake/modules/LLVMExternalProjectUtils.cmake:239 (ExternalProject_Add_Step)
  runtimes/CMakeLists.txt:216 (llvm_ExternalProject_Add)
  runtimes/CMakeLists.txt:275 (builtin_default_target)

CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2471:EVAL:2 (add_custom_command):
  Error evaluating generator expression:

    $<TARGET_FILE:llvm-strip>

  Target "llvm-strip" is not an executable or library.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/ExternalProject.cmake:2471 (cmake_language)
  cmake/modules/LLVMExternalProjectUtils.cmake:239 (ExternalProject_Add_Step)
  runtimes/CMakeLists.txt:216 (llvm_ExternalProject_Add)
  runtimes/CMakeLists.txt:275 (builtin_default_target)

CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2471:EVAL:2 (add_custom_command):
  Error evaluating generator expression:

    $<TARGET_FILE:llvm-ranlib>

  Target "llvm-ranlib" is not an executable or library.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/ExternalProject.cmake:2471 (cmake_language)
  cmake/modules/LLVMExternalProjectUtils.cmake:239 (ExternalProject_Add_Step)
  runtimes/CMakeLists.txt:216 (llvm_ExternalProject_Add)
  runtimes/CMakeLists.txt:275 (builtin_default_target)

CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2471:EVAL:2 (add_custom_command):
  Error evaluating generator expression:

    $<TARGET_FILE:llvm-strip>

  Target "llvm-strip" is not an executable or library.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/ExternalProject.cmake:2471 (cmake_language)
  cmake/modules/LLVMExternalProjectUtils.cmake:239 (ExternalProject_Add_Step)
  runtimes/CMakeLists.txt:216 (llvm_ExternalProject_Add)
  runtimes/CMakeLists.txt:275 (builtin_default_target)
jbush001 commented 1 year ago

What OS are you building this on?

LGarnet commented 1 year ago

this is on arch linux

jbush001 commented 1 year ago

Could you do me a favor and copy all of the output from your terminal into a gist and add a link here?

LGarnet commented 1 year ago

https://gist.github.com/LGarnet/20dd77e5bbe91491e5d72a1a90a215fa

jbush001 commented 1 year ago

Thanks! It looks like there are multiple failures in the log. Can you do cmake --version?

LGarnet commented 1 year ago

cmake version 3.24.1

jbush001 commented 1 year ago

I'm afraid I'm a bit stumped. It appears a number of things are failing.

In the interim, there is a Docker image with the tool chain here: https://hub.docker.com/r/jeffbush001/nyuzi-build. The CI script demonstrates how to use it: https://github.com/jbush001/NyuziProcessor/blob/master/.github/workflows/ci.yml.

LGarnet commented 1 year ago

ah i see, thank you

jbush001 commented 1 year ago

This is actually an issue in https://github.com/jbush001/NyuziToolchain.

loonggi commented 8 months ago

I encountered the same issue and fixed it by changing cmake from version 3.26.3 to 3.16.3.