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

Build issue Windows - Generator Missing #8444

Open
soufianekhiat opened this issue Oct 25, 2024 · 1 comment
Open

Build issue Windows - Generator Missing #8444

soufianekhiat opened this issue Oct 25, 2024 · 1 comment

Comments

@soufianekhiat
Copy link

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: 1653c16

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
Copy link
Member

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

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

No branches or pull requests

2 participants