openssl: Compiling 1.0.2l with VS2017 for x86 fails with A2070:invalid instruction operands
x86 Native Tools Command Prompt for VS 2017
> perl Configure VC-WIN32 --prefix="C:\Users\Owner\openssl-1.0.2l"
> ms\do_ms.bat
> nmake -f ms\nt.mak
Assembling: tmp32\sha1-586.asm
tmp32\sha1-586.asm(1432) : error A2070:invalid instruction operands
tmp32\sha1-586.asm(1576) : error A2070:invalid instruction operands
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\ml.EXE"' : return code '0x1'
Stop.
> where ml
> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\ml.exe
> where cl
> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\cl.exe
Also tried with x64_x86 Cross Tools Command Prompt for VS 2017, same results.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (7 by maintainers)
From INSTALL.W32:
Please try installing NASM and use
ms\do_nasm.batinstead ofms\do_ms.bat