halide / Halide

a language for fast, portable data-parallel computation
https://halide-lang.org
Other
5.91k stars 1.07k forks source link

Build issue Windows - Generator Missing #8444

Open soufianekhiat opened 4 weeks ago

soufianekhiat commented 4 weeks ago

During the cmake configuration I have a missed generator: Halide-halide_generators_DIR-NOTFOUND

Looking on the build bot I wasn't able to find the generator: https://buildbot.halide-lang.org/master/#/builders/129/builds/258

Details: Target: windows-llvm18-x86-64 Tested on main branch: 1653c16b02c714bc20ceda7b89cb19f0a19a8814

Command:

cmake -G "Visual Studio 17 2022" -Thost=x64 -A x64 -S . -B build_head --toolchain D:\vcpkg\scripts\buildsystems\vcpkg.cmake -DCMAKE_TOOLCHAIN_FILE=C:/git/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build .\build_head --config Release

Option:

WITH_AUTOSCHEDULERS ON
WITH_TESTS OFF
WITH_UTILS ON
WITH_PYTHON_BINDINGS ON
WITH_PYTHON_STUBS ON

Log part with issue:

     Creating library C:/git/Halide/build_head/src/autoschedulers/adams2019/Release/adams2019_cost_model.generator.lib and object C:/git/Halide/build_head/src/aut
  oschedulers/adams2019/Release/adams2019_cost_model.generator.exp
  adams2019_cost_model.generator.vcxproj -> C:\git\Halide\build_head\bin\Release\adams2019_cost_model.generator.exe
  1>Generating adams2019_cost_model.h, adams2019_cost_model.obj
  Le système ne trouve pas le nom de fichier de commandes - VCEnd
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(237,5): error MSB8066: Custom build for 'C:\git\Halide\build_head\CMakeFiles\18f24502a21ffc2f96de059467d40243\adams2019_cost_model.h.rule' exited with code 1. [C:\git\Halide\build_head\src\autoschedulers\adams2019\
adams2019_cost_model.update.vcxproj]
  Building Custom Rule C:/git/Halide/tools/CMakeLists.txt
  GenGen.cpp
     Creating library C:/git/Halide/build_head/tools/Release/gengen.lib and object C:/git/Halide/build_head/tools/Release/gengen.exp
  Halide_GenRT.vcxproj -> C:\git\Halide\build_head\bin\Release\gengen.exe
  1>Generating adams2019_cost_model.runtime.obj
  Le système ne trouve pas le nom de fichier de commandes - VCEnd
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(237,5): error MSB8066: Custom build for 'C:\git\Hali
de\build_head\CMakeFiles\18f24502a21ffc2f96de059467d40243\adams2019_cost_model.runtime.obj.rule' exited with code 1. [C:\git\Halide\build_head\src\autoschedulers\
adams2019\adams2019_cost_model.runtime.vcxproj]
  1>Generating adams2019_train_cost_model.h, adams2019_train_cost_model.obj
  Le système ne trouve pas le nom de fichier de commandes - VCEnd
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(237,5): error MSB8066: Custom build for 'C:\git\Hali
de\build_head\CMakeFiles\18f24502a21ffc2f96de059467d40243\adams2019_train_cost_model.h.rule' exited with code 1. [C:\git\Halide\build_head\src\autoschedulers\adam
s2019\adams2019_train_cost_model.update.vcxproj]
  1>Generating baseline.cpp
  Building Custom Rule C:/git/Halide/src/autoschedulers/anderson2021/CMakeLists.txt
  baseline.cpp
  anderson2021_weights_obj.vcxproj -> C:\git\Halide\build_head\src\autoschedulers\anderson2021\anderson2021_weights_obj.dir\Release\anderson2021_weights_obj.lib
  Building Custom Rule C:/git/Halide/src/autoschedulers/anderson2021/CMakeLists.txt
  cost_model_generator.cpp
     Creating library C:/git/Halide/build_head/src/autoschedulers/anderson2021/Release/anderson2021_cost_model.generator.lib and object C:/git/Halide/build_head/s
  rc/autoschedulers/anderson2021/Release/anderson2021_cost_model.generator.exp
  anderson2021_cost_model.generator.vcxproj -> C:\git\Halide\build_head\bin\Release\anderson2021_cost_model.generator.exe
  1>Generating anderson2021_cost_model.h, anderson2021_cost_model.obj
  Le système ne trouve pas le nom de fichier de commandes - VCEnd
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(237,5): error MSB8066: Custom build for 'C:\git\Hali
de\build_head\CMakeFiles\441147cd6bdd05db2eebe071f62c4629\anderson2021_cost_model.h.rule' exited with code 1. [C:\git\Halide\build_head\src\autoschedulers\anderso
n2021\anderson2021_cost_model.update.vcxproj]
  1>Generating anderson2021_cost_model.runtime.obj
  Le système ne trouve pas le nom de fichier de commandes - VCEnd
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(237,5): error MSB8066: Custom build for 'C:\git\Hali
de\build_head\CMakeFiles\441147cd6bdd05db2eebe071f62c4629\anderson2021_cost_model.runtime.obj.rule' exited with code 1. [C:\git\Halide\build_head\src\autoschedule
rs\anderson2021\anderson2021_cost_model.runtime.vcxproj]
  1>Generating anderson2021_train_cost_model.h, anderson2021_train_cost_model.obj
  Le système ne trouve pas le nom de fichier de commandes - VCEnd
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(237,5): error MSB8066: Custom build for 'C:\git\Hali
de\build_head\CMakeFiles\441147cd6bdd05db2eebe071f62c4629\anderson2021_train_cost_model.h.rule' exited with code 1. [C:\git\Halide\build_head\src\autoschedulers\a
nderson2021\anderson2021_train_cost_model.update.vcxproj]
alexreinking commented 3 weeks ago

This sounds like a cross compilation issue. Let me try to repro