server icon indicating copy to clipboard operation
server copied to clipboard

Unable to build Triton Core from Source In Windows 10.

Open saugatapaul1010 opened this issue 7 months ago • 3 comments

Description I have been trying to build Triton Core from source in Windows 10 using these commands as mentioned in the README file for Triton Core at https://github.com/triton-inference-server/core

$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=`pwd`/install -DTRITON_CORE_HEADERS_ONLY=OFF ..
$ make install

For windows, we do not have "cmake" by default, so I have manually downloaded and installed CMAKE for windows from this location https://cmake.org/download/.

I have been able to run the first three commands as mentioned above, however, when I run make command I get this error

make: *** No targets specified and no makefile found.  Stop.

Alternatively, I have also tried using this command cmake --build .. But I get the below error

MSBuild version 17.9.8+b34f75857 for .NET Framework

  triton-core-serverstub.vcxproj -> D:\Triton\core\build\Debug\tritonserver.dll
  python-bindings.vcxproj -> D:\Triton\core\build\python\tritonserver\Debug\triton_bindings.cp310-win_amd64.pyd
  Generating stamp.whl
  Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settin
  gs > Manage App Execution Aliases.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): e
rror MSB8066: Custom build for 'D:\Triton\core\build\CMakeFiles\a95cbcdee534c4856769a684792c4c7c\stamp.whl.rule;D:\Trit
on\core\build\CMakeFiles\acd1fba41c7a8ae87210b2a7e7d4e549\generic-server-wheel.rule' exited with code 9009. [D:\Triton\
core\build\python\generic-server-wheel.vcxproj]
  Performing patch step for 'cnmem'
  Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settin
  gs > Manage App Execution Aliases.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): e
rror MSB8066: Custom build for 'D:\Triton\core\build\CMakeFiles\9e3dd73941999b96c50893179a68b8b5\cnmem-patch.rule;D:\Tr
iton\core\build\CMakeFiles\9e3dd73941999b96c50893179a68b8b5\cnmem-configure.rule;D:\Triton\core\build\CMakeFiles\9e3dd7
3941999b96c50893179a68b8b5\cnmem-build.rule;D:\Triton\core\build\CMakeFiles\9e3dd73941999b96c50893179a68b8b5\cnmem-inst
all.rule;D:\Triton\core\build\CMakeFiles\95512207661972978e7612d6d99795d1\cnmem-complete.rule;D:\Triton\core\build\CMak
eFiles\046a63b9c943a920a2724857c3ad3586\cnmem.rule' exited with code 9009. [D:\Triton\core\build\_deps\repo-third-party
-build\cnmem.vcxproj]
  Performing update step for 'grpc-repo'
  -- Already at requested tag: v1.54.3
  Performing patch step for 'grpc-repo'
  Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settin
  gs > Manage App Execution Aliases.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): e
rror MSB8066: Custom build for 'D:\Triton\core\build\CMakeFiles\bf8056e877d3af6fa18a178469670027\grpc-repo-update.rule;
D:\Triton\core\build\CMakeFiles\bf8056e877d3af6fa18a178469670027\grpc-repo-patch.rule;D:\Triton\core\build\CMakeFiles\b
f8056e877d3af6fa18a178469670027\grpc-repo-configure.rule;D:\Triton\core\build\CMakeFiles\bf8056e877d3af6fa18a1784696700
27\grpc-repo-build.rule;D:\Triton\core\build\CMakeFiles\bf8056e877d3af6fa18a178469670027\grpc-repo-install.rule;D:\Trit
on\core\build\CMakeFiles\bf8056e877d3af6fa18a178469670027\grpc-repo-test.rule;D:\Triton\core\build\CMakeFiles\955122076
61972978e7612d6d99795d1\grpc-repo-complete.rule;D:\Triton\core\build\CMakeFiles\046a63b9c943a920a2724857c3ad3586\grpc-r
epo.rule' exited with code 9009. [D:\Triton\core\build\_deps\repo-third-party-build\grpc-repo.vcxproj]
  Performing update step for 'prometheus-cpp'
  -- Already at requested tag: v1.0.1
  Performing patch step for 'prometheus-cpp'
  Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settin
  gs > Manage App Execution Aliases.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): e
rror MSB8066: Custom build for 'D:\Triton\core\build\CMakeFiles\5f0fa1ab9e1c2d1b20f1d13fb10a91af\prometheus-cpp-update.
rule;D:\Triton\core\build\CMakeFiles\5f0fa1ab9e1c2d1b20f1d13fb10a91af\prometheus-cpp-patch.rule;D:\Triton\core\build\CM
akeFiles\5f0fa1ab9e1c2d1b20f1d13fb10a91af\prometheus-cpp-configure.rule;D:\Triton\core\build\CMakeFiles\5f0fa1ab9e1c2d1
b20f1d13fb10a91af\prometheus-cpp-build.rule;D:\Triton\core\build\CMakeFiles\5f0fa1ab9e1c2d1b20f1d13fb10a91af\prometheus
-cpp-install.rule;D:\Triton\core\build\CMakeFiles\95512207661972978e7612d6d99795d1\prometheus-cpp-complete.rule;D:\Trit
on\core\build\CMakeFiles\046a63b9c943a920a2724857c3ad3586\prometheus-cpp.rule' exited with code 9009. [D:\Triton\core\b
uild\_deps\repo-third-party-build\prometheus-cpp.vcxproj]

The success criteria for Windows build is the presence of this file install/bin/tritonserver.dll. However, this file is not getting created.

Triton Information main

Are you using the Triton container or did you build it yourself?

To Reproduce Steps to reproduce the behavior.

Describe the models (framework, inputs, outputs), ideally include the model configuration file (if using an ensemble include the model configuration file for that as well).

Expected behavior A clear and concise description of what you expected to happen.

saugatapaul1010 avatar Jul 04 '24 21:07 saugatapaul1010