HeWhoHeWho commented on issue #17895:
URL: https://github.com/apache/datafusion/issues/17895#issuecomment-3365688893

   Double checked my MS Build Tools 2022, all relevant tools have been 
installed with the path manually added just now - still, build failed.
   
   This is the full _long_ log of error output. I guess it goes beyond just 
Rust installation problem.. should have shared this earlier. I'm no expert in 
this. But I can see `This program is blocked by group policy.` Is it the 
MSBuild.exe affected?
   
   ```
   cargo:[email protected]: NASM command not found or failed to execute.
   cargo:[email protected]: NASM command not found or failed to execute.
   cargo:[email protected]: Building with: CMake
   cargo:[email protected]: Symbol Prefix: Some("aws_lc_0_32_2")
   cargo:[email protected]: NASM command not found or failed to execute.
   cargo:[email protected]: NASM command not found or failed to execute.
   cargo:[email protected]: Environment Variable found 'CMAKE': 'cmake'
   cargo:[email protected]: CMAKE environment variable set: cmake
   cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_BUILDER_X86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_BUILDER
   
cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREGENERATED_SRC_X86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREGENERATED_SRC
   cargo:rerun-if-env-changed=AWS_LC_SYS_EFFECTIVE_TARGET_x86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_EFFECTIVE_TARGET
   cargo:rustc-cfg=x86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC_x86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
   default_for Target: 'x86_64-pc-windows-msvc'
   cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC_x86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
   cargo:warning=NASM command not found or failed to execute.
   cargo:warning=NASM command not found or failed to execute.
   cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_x86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE
   cargo:rerun-if-env-changed=CMAKE_x86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=CMAKE
   cargo:warning=Building with: CMake
   cargo:warning=Symbol Prefix: Some("aws_lc_0_32_2")
   cargo:warning=NASM command not found or failed to execute.
   cargo:warning=NASM command not found or failed to execute.
   cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_BUILDER_X86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_BUILDER
   
cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREGENERATED_SRC_X86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREGENERATED_SRC
   cargo:rerun-if-env-changed=AWS_LC_SYS_EFFECTIVE_TARGET_x86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_EFFECTIVE_TARGET
   cargo:rustc-cfg=x86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC_x86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
   default_for Target: 'x86_64-pc-windows-msvc'
   cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC_x86_64_pc_windows_msvc
   cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
   cargo:warning=NASM command not found or failed to execute.
   cargo:warning=NASM command not found or failed to execute.
   cargo:warning=!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   cargo:warning=!!!   Using pre-built NASM binaries      !!!
   cargo:warning=!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   cargo:warning=Selected prebuilt-nasm.bat (batch script can execute, shell 
script cannot)
   error: failed to run custom build command for `aws-lc-sys v0.32.2`
   
   Caused by:
     process didn't exit successfully: 
`C:\Temp\cargo-build\release\build\aws-lc-sys-b4ab3bbe702d200f\build-script-main`
 (exit code: 101)
     --- stdout
     cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREFIX_x86_64_pc_windows_msvc
     cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREFIX
     
cargo:rerun-if-env-changed=AWS_LC_SYS_PREGENERATED_BINDINGS_x86_64_pc_windows_msvc
     cargo:rerun-if-env-changed=AWS_LC_SYS_PREGENERATED_BINDINGS
     
cargo:rerun-if-env-changed=AWS_LC_SYS_EXTERNAL_BINDGEN_x86_64_pc_windows_msvc
     cargo:rerun-if-env-changed=AWS_LC_SYS_EXTERNAL_BINDGEN
     cargo:rerun-if-env-changed=AWS_LC_SYS_NO_ASM_x86_64_pc_windows_msvc
     cargo:rerun-if-env-changed=AWS_LC_SYS_NO_ASM
     cargo:rerun-if-env-changed=AWS_LC_SYS_CFLAGS_x86_64_pc_windows_msvc
     cargo:rerun-if-env-changed=AWS_LC_SYS_CFLAGS
     cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
     cargo:rerun-if-env-changed=CFLAGS
     cargo:rerun-if-env-changed=AWS_LC_SYS_PREBUILT_NASM_x86_64_pc_windows_msvc
     cargo:rerun-if-env-changed=AWS_LC_SYS_PREBUILT_NASM
     cargo:rerun-if-env-changed=AWS_LC_SYS_C_STD_x86_64_pc_windows_msvc
     cargo:rerun-if-env-changed=AWS_LC_SYS_C_STD
     
     CARGO_ENCODED_RUSTFLAGS = Some()
     cargo:rerun-if-env-changed=VCINSTALLDIR
     VCINSTALLDIR = None
     cargo:rerun-if-env-changed=VSTEL_MSBuildProjectFullPath
     VSTEL_MSBuildProjectFullPath = None
     cargo:rerun-if-env-changed=VSCMD_ARG_VCVARS_SPECTRE
     VSCMD_ARG_VCVARS_SPECTRE = None
     cargo:rerun-if-env-changed=WindowsSdkDir
     WindowsSdkDir = None
     cargo:rerun-if-env-changed=WindowsSDKVersion
     WindowsSDKVersion = None
     cargo:rerun-if-env-changed=LIB
     LIB = None
     PATH = 
Some(C:\Temp\cargo-build\release\deps;C:\Temp\cargo-build\release;C:\Users\<redacted>\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
 Files (x86)\Microsoft\Edge\Application;C:\Program Files 
(x86)\SafeNet\Authentication\SAC\x64;C:\Program 
Files\SafeNet\Authentication\SAC\x32;C:\Program 
Files\SafeNet\Authentication\SAC\x32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files (x86)\Adaptive\AdaptiveClient\bin\x64;C:\Program Files 
(x86)\Adaptive\AdaptiveClient\bin\x32;C:\Program Files 
(x86)\Adaptive\AdaptiveClient\bin\x64;C:\Program 
Files\SASHome\x86\SecureCommon\ccme4;C:\Program 
Files\SASHome\Secure\ccme4;C:\Program Files\Git-2.41.0\cmd;C:\Program 
Files\Elasticsearch\bin\C:\Program Files\Docker\Docker\resources\bin;C:\Program 
Files\jdl\;C:\Program Files\dotnet\;C:\Program Files\
 Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Python3.12.7\;C:\Program 
Files\Python3.12.7\Scripts;C:\Users\<redacted>\AppData\Roaming\Python\Python3.12\Scripts;C:\Users\<redacted>\.cargo\bin;C:\Program
 Files (x86)\Microsoft Visual Studio\2022\BuildTools\CurrentBin;C:\Program 
Files\CMake_3.29\bin;C:\Users\<redacted>\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin)
     cargo:rerun-if-env-changed=INCLUDE
     INCLUDE = None
     HOST = Some(x86_64-pc-windows-msvc)
     cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
     CC_x86_64-pc-windows-msvc = None
     cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
     CC_x86_64_pc_windows_msvc = None
     cargo:rerun-if-env-changed=HOST_CC
     HOST_CC = None
     cargo:rerun-if-env-changed=CC
     CC = None
     cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
     CRATE_CC_NO_DEFAULTS = None
     CARGO_CFG_TARGET_FEATURE = Some(cmpxchg16b,fxsr,sse,sse2,sse3)
     DEBUG = Some(false)
     CARGO_ENCODED_RUSTFLAGS = Some()
     cargo:rerun-if-env-changed=CFLAGS
     CFLAGS = None
     
     cargo:warning=Compilation of 'cli.c' failed - Err(Error { kind: 
ToolExecError, message: "command did not execute successfully: \"C:\\Program 
Files (x86)\\Microsoft Visual 
Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX64\\x64\\cl.exe\"
 \"-nologo\" \"-MD\" \"-O2\" \"-Brepro\" \"-W4\" \"-Grepro\" \"-utf-8\" 
\"-IC:\\Users\\<redacted>\\.cargo\\registry\\src\\<redacted>\\aws-lc-sys-0.32.2\\aws-lc\\tests\\compiler_features_tests\\cli.c\"
 }}).
     cargo:warning=NASM command not found or failed to execute.
   
     --- stderr
     CMake Deprecation Warning at CMakeLists.txt:10 (cmake_policy):
       The OLD behavior for policy CMP0091 will be removed from a future version
       of CMake.
       
       The cmake-policies(7) manual explains that the OLD behaviors of all
       policies are deprecated and that a policy should be set to OLD only under
       specific short-term circumstances. Projects should be ported to the NEW
       behavior and not rely on setting a policy to OLD.
   
     CMake Error at CMakeLists.txt:13 (project):
       Failed to run MSBuild command:
       
         C:/Program Files (x86)/Microsoft Visual 
Studio/2022/BuildTools/MSBuild/Current/Bin/amd64/MSBuild.exe
       
       to get the value of VCTargetsPath:
       
         MSBuild version 17.5.0+6f08c67f3 for .NET Framework
         Build started at 20-Oct-2025 11:10:58 AM.
         Included response file: C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\MSBuild\Current\Bin\amd64\MSBuild.rsp
         
         Project 
"C:\Temp\cargo-build\release\build\aws-lc-sys-a2822a39a239e59b\out\build\CMakeFiles\3.29.9\VCTargetsPath.vcxproj"
 on node 1 (default targets).
         PrepareForBuild:
           Creating directory "x64\Debug\".
           Creating directory "x64\Debug\VCTargetsPath.tlog\".
         InitializeBuildStatus:
           Creating "x64\Debug\VCTargetsPath.tlog\unsuccessfulbuild" because 
"AlwaysCreate" was specified.
         PostBuildEvent:
           echo VCTargetsPath=C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\VCEnd
           
           This program is blocked by group policy. For more information, 
contact your system administrator.
           
           C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5):
 error MSB3073: The command "echo VCTargetsPath=C:\Program Files 
(x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\ 
[C:\Temp\cargo-build\release\build\aws-lc-sys-a2822a39a239e59b\out\build\CMakeFiles\3.29.9\VCTargetsPath.vcxproj]
           C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5):
 error MSB3073: :VCEnd" exited with code 1. 
[C:\Temp\cargo-build\release\build\aws-lc-sys-a2822a39a239e59b\out\build\CMakeFiles\3.29.9\VCTargetsPath.vcxproj]
         Done Building Project 
"C:\Temp\cargo-build\release\build\aws-lc-sys-a2822a39a239e59b\out\build\CMakeFiles\3.29.9\VCTargetsPath.vcxproj"
 (default targets) -- FAILED.
   
     [MASSIVE LIST OF C++ COMPILER ERRORS FROM vcruntime_c11_stdatomic.h - ALL 
SYNTAX ERRORS]
     
     C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include\vcruntime_c11_stdatomic.h(36):
 error C2061: syntax error: identifier 'atomic_bool'
     C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include\vcruntime_c11_stdatomic.h(37):
 error C2059: syntax error: ';'
     [... hundreds of similar errors ...]
     C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include\vcruntime_c11_stdatomic.h(121):
 error C2061: syntax error: identifier '_Atomic'
     C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include\vcruntime_c11_stdatomic.h(122):
 error C2059: syntax error: '}'
   
     cargo:warning=Compilation of 'c11.c' failed - Err(Error { kind: 
ToolExecError, message: "command did not execute successfully: \"C:\\Program 
Files (x86)\\Microsoft Visual 
Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX64\\x64\\cl.exe\"
 \"-nologo\" \"-MD\" \"-O2\" \"-Brepro\" \"-W4\" \"-utf-8\" 
\"-IC:\\Users\\<redacted>\\.cargo\\registry\\src\\<redacted>\\aws-lc-sys-0.32.2\\aws-lc\\tests\\compiler_features_tests\\c11.c\"
 }).
     cargo:warning=NASM command not found or failed to execute.
     cargo:warning=!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     cargo:warning=!!!   Using pre-built NASM binaries      !!!
     cargo:warning=!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     cargo:warning=Selected prebuilt-nasm.bat (batch script can execute, shell 
script cannot)
     
     CMAKE_TOOLCHAIN_FILE_x86_64-pc-windows-msvc = None
     CMAKE_TOOLCHAIN_FILE_x86_64_pc_windows_msvc = None
     HOST_CMAKE_TOOLCHAIN_FILE = None
     CMAKE_TOOLCHAIN_FILE = None
     CMAKE_GENERATOR_x86_64-pc-windows-msvc = None
     HOST_CMAKE_GENERATOR = None
     CMAKE_GENERATOR = None
     CMAKE_PREFIX_PATH_x86_64-pc-windows-msvc = None
     CMAKE_PREFIX_PATH_x86_64_pc_windows_msvc = None
     HOST_CMAKE_PREFIX_PATH = None
     CMAKE_PREFIX_PATH = None
     CMAKE_x86_64-pc-windows-msvc = None
     CMAKE_x86_64_pc_windows_msvc = None
     HOST_CMAKE = None
     CMAKE = Some("cmake")
     running: "cmake" 
"C:\\Users\\<redacted>\\.cargo\\registry\\src\\<redacted>\\aws-lc-sys-0.32.2" 
"-G" "Visual Studio 17 2022" "-Thost=x64" "-Ax64" "-DBUILD_SHARED_LIBS=0" 
"-DBORINGSSL_PREFIX=aws_lc_0_32_2" "-DBUILD_TESTING=0" 
"-DCMAKE_BUILD_TYPE=release" ...
   
     Creating directory "x64\Debug\".
     Creating directory "x64\Debug\VCTargetsPath.tlog\".
     InitializeBuildStatus:
       Creating "x64\Debug\VCTargetsPath.tlog\unsuccessfulbuild" because 
"AlwaysCreate" was specified.
     PostBuildEvent:
       echo VCTargetsPath=C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\:VCEnd
       
       This program is blocked by group policy. For more information, contact 
your system administrator.
       
       C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5):
 error MSB3073: The command "echo VCTargetsPath=C:\Program Files 
(x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\ 
[C:\Temp\cargo-build\release\build\aws-lc-sys-30ba05689358a0bc\out\build\CMakeFiles\3.29.9\VCTargetsPath.vcxproj]
       C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5):
 error MSB3073: :VCEnd" exited with code 1. 
[C:\Temp\cargo-build\release\build\aws-lc-sys-30ba05689358a0bc\out\build\CMakeFiles\3.29.9\VCTargetsPath.vcxproj]
     Done Building Project 
"C:\Temp\cargo-build\release\build\aws-lc-sys-30ba05689358a0bc\out\build\CMakeFiles\3.29.9\VCTargetsPath.vcxproj"
 (default targets) -- FAILED.
   
     Build FAILED.
   
     
"C:\Temp\cargo-build\release\build\aws-lc-sys-30ba05689358a0bc\out\build\CMakeFiles\3.29.9\VCTargetsPath.vcxproj"
 (default target) (1) ->
     (PostBuildEvent target) ->
       C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5):
 error MSB3073: The command "echo VCTargetsPath=C:\Program Files 
(x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\ 
[C:\Temp\cargo-build\release\build\aws-lc-sys-30ba05689358a0bc\out\build\CMakeFiles\3.29.9\VCTargetsPath.vcxproj]
       C:\Program Files (x86)\Microsoft Visual 
Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5):
 error MSB3073: :VCEnd" exited with code 1. 
[C:\Temp\cargo-build\release\build\aws-lc-sys-30ba05689358a0bc\out\build\CMakeFiles\3.29.9\VCTargetsPath.vcxproj]
   
       0 Warning(s)
       1 Error(s)
   
     Time Elapsed 00:00:07.14
   
     Exit code: 1
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to