fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile failed on x86 platform with msvc , error MSB3721: The command "ml.exe ... exited with code 1. [F:\Fireice-uk\xmr-stak\build_x86\xmr-stak-asm.vcxproj]

qd1332543 opened this issue · comments

The environment:
OS: Windows Server 2016 1607
CPU: AMD EPYC 7452 32-Core Processor
Compiler: msvc 14.29.30133

Describe the bug

"F:\Fireice-uk\xmr-stak\build_x86\xmr-stak.sln" (Rebuild target) (1) -> 
"F:\Fireice-uk\xmr-stak\build_x86\xmr-stak-asm.vcxproj.metaproj" (Rebuild target) (4) ->
"F:\Fireice-uk\xmr-stak\build_x86\xmr-stak-asm.vcxproj" (Rebuild target) (9) ->
(_MASM target) ->
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\BuildCustomizations\m asm.targets(70,5): error MSB3721: The command "ml.exe /c /nologo /Zi /Fo"xmr-stak-asm.dir\Release\cryptonight_v8 _main_loop.obj" /D"WIN32" /D"_WINDOWS" /D"NDEBUG" /D"CONF_NO_CUDA" /D"CONF_NO_HTTPD"  /D"CONF_NO_HWLOC" /D"GIT_COMMIT_HASH=67cf951" /D"GIT_BRANCH=master" /D"BACKEND_TYPE=amd-cpu" /D"_CRT_SECURE_NO_DEPRECATE" /D"NOMINMAX" /D"CMAKE_INTDIR="Release"" /I "F:\Fireice-uk\xmr-stak\." /I "C:\Strawberry\c\include" /I "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" /W3 /errorReport:prompt  /Ta"F:\Fireice-uk\xmr-stak\xmrstak\backend\cpu\crypto\asm\cryptonight_v8_main_loop.asm"" exited with code 1. [F:\Fireice-uk\xmr-stak\build_x86\xmr-stak-asm.vcxproj]

To Reproduce

1. git clone https://github.com/fireice-uk/xmr-stak
2. git -C "F:\Fireice-uk\xmr-stak" rev-parse --git-dir
   git -C "F:\Fireice-uk\xmr-stak" clean -xdf
   git -C "F:\Fireice-uk\xmr-stak" fetch --recurse-submodules=no --force
   git -C "F:\Fireice-uk\xmr-stak" reset --hard 67cf951
   git -C "F:\Fireice-uk\xmr-stak" remote prune origin
3. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=x86 -arch=x86
4. cmake -G "Visual Studio 16 2019" -A win32 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_LINK_STATIC=ON -DMICROHTTPD_ENABLE=OFF -DHWLOC_ENABLE=OFF  -DCUDA_ENABLE=OFF -DOPENSSL_ROOT_DIR="F:\tools\OpenSSL\lib" -DCMAKE_BUILD_TYPE=Release ..
5. mbuild /m /p:Platform=win32 /p:Configuration=Release xmr-stak.sln /t:Rebuild /p:BuildInParallel=true

Note: Just only repro on x86 platform
You can also check build error messages from attached file build.log