mush42 / sonata

A cross-platform inference engine for neural TTS models.
MIT License
63 stars 14 forks source link

problems for windows x86 build #6

Closed ycs12 closed 3 weeks ago

ycs12 commented 2 months ago

Issue Description

Hi, I'm trying to build sonata for x86 (32-bits) on Windows using cargo build --target i686-pc-windows-msvc (rustc version 1.80.0) and getting error:

error: failed to run custom build command for `torch-sys v0.14.0`

Caused by:
  process didn't exit successfully: `D:\sonata\target\debug\build\torch-sys-fbc662d9b1c8da76\build-script-build` (exit code: 1)
  --- stderr
  error occurred: Command "C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX64\\x86\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "D:\\libtorch\\include" "-I" "D:\\libtorch\\include/torch/csrc/api/include" "/std:c++17" "-FoD:\\sonata\\target\\i686-pc-windows-msvc\\debug\\build\\torch-sys-33665b9233c4b73b\\out\\19072f24a82f85ae-torch_api_generated.o" "-c" "libtch/torch_api_generated.cpp" with args cl.exe did not execute successfully (status code exit code: 2).

I'm wondering does the sonata project support x86 compilation on Windows? Thank you so much.