I haven´t done any changes to my blender repositoy and Im compiling using:
make release > …\BuildLog.txt
inside the blender directory inside my repository directory.
I’m having this error since a few days ago and I would like to avois to patch myself my repo.
Generating kernel_optix.ptx
CUSTOMBUILD : nvcc warning : The ‘compute_35’, ‘compute_37’, ‘compute_50’, ‘sm_35’, ‘sm_37’ and ‘sm_50’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). [G:\blender-git\build_windows_Release_x64_vc16_Release\intern\cycles\kernel\cycles_kernel_cuda.vcxproj]
nvcc fatal : Could not set up the environment for Microsoft Visual Studio using ‘C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/HostX64/x64/…/…/…/…/…/…/…/VC/Auxiliary/Build/vcvars64.bat’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(240,5): error MSB8066: Compilaci¢n personalizada de “G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\filter_sm_35.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\kernel_sm_35.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\filter_sm_37.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\kernel_sm_37.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\filter_sm_50.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\kernel_sm_50.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\filter_sm_52.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\kernel_sm_52.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\filter_sm_60.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\kernel_sm_60.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\filter_sm_61.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\kernel_sm_61.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\filter_sm_70.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\kernel_sm_70.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\filter_sm_75.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\kernel_sm_75.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\filter_sm_86.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\kernel_sm_86.cubin.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\filter_compute_75.ptx.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\kernel_compute_75.ptx.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\9697bdaecbd336892a6eeee18de27a28\cycles_kernel_cuda.rule” terminada con el c¢digo 1. [G:\blender-git\build_windows_Release_x64_vc16_Release\intern\cycles\kernel\cycles_kernel_cuda.vcxproj]
CUSTOMBUILD : nvcc warning : The ‘compute_35’, ‘compute_37’, ‘compute_50’, ‘sm_35’, ‘sm_37’ and ‘sm_50’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). [G:\blender-git\build_windows_Release_x64_vc16_Release\intern\cycles\kernel\cycles_kernel_optix.vcxproj]
nvcc fatal : Could not set up the environment for Microsoft Visual Studio using ‘C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/HostX64/x64/…/…/…/…/…/…/…/VC/Auxiliary/Build/vcvars64.bat’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(240,5): error MSB8066: Compilaci¢n personalizada de “G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\kernel_optix.ptx.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\7fe1b758a87f97ad13a94b9aee9c4d37\kernel_optix_shader_raytrace.ptx.rule;G:\blender-git\build_windows_Release_x64_vc16_Release\CMakeFiles\9697bdaecbd336892a6eeee18de27a28\cycles_kernel_optix.rule” terminada con el c¢digo 1. [G:\blender-git\build_windows_Release_x64_vc16_Release\intern\cycles\kernel\cycles_kernel_optix.vcxproj]
Moving to a new topic since this seems unrelated. 2.93 already has the fix for the error in the original topic.
The relevant error message is this one:
nvcc fatal : Could not set up the environment for Microsoft Visual Studio using
‘C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/HostX64/x64/…/…/…/…/…/…/…/VC/Auxiliary/Build/vcvars64.bat’
I’ve never encountered that myself, but maybe one of the suggestions here will help:
Reinstalling CUDA and/or Visual Studio may also help.
For the moment opening I solved the compìling opening the solution generated (even with the error) and compiling from the IDE.
I will investigate why this discrepancies on the path and why VS dissapeared from a normal command prompt, maybe has to do with Windows 10 removing it and wanting people use Power Shell???
I will post my findings. But any ideas are welcome.
Building from the ide finished but then trying to launch it from a previous shortcut from my Desktop gave me another error about wrong parallel configuration.
To make it short, I decided to run the build from Powershell, finished (so definetly the command prompt problems must be a path thing), tried to run from the shortcut same wrong parallel conf.
Afraid that it could be for trying build over build I went the fearless route. Deleted the whole buil dir. Build it from Powershell with a make clean release.
Tried to run with the old shortcut, bad idea, same wrong parallel configuration. So deleted the shortcut and run the blender.exe, run it flawlessly.
Redone the shortcut and now it works.
I will investigate how to fix the path problem. In the meantime I will use Powershell.