Openssl compilation fails on Windows with nasm error: parser: instruction expected

Helde, Paavo Paavo.Helde at PERKINELMER.COM
Tue Feb 14 15:35:53 UTC 2023


Hi,

I'm trying to compile openssl 3.0.7 on Windows x64. Installed NASM 2.16.01 from https://www.nasm.us, but it complains loudly:

1>perl Configure --prefix=C:\DataAnalysis\MyProject\trunk\Production\Intermediates\x64\Release\openssl -w no-shared enable-egd no-module zlib VC-WIN64A
1>Configuring OpenSSL version 3.0.7 for target VC-WIN64A
[...]
1>nmake
[...]
1>           "nasm"  -Ox -f win64 -DNEAR -g -o crypto\aes\libcrypto-lib-aes-x86_64.obj "crypto\aes\aes-x86_64.asm"
1>crypto\aes\aes-x86_64.asm:1: error: parser: instruction expected
1>crypto\aes\aes-x86_64.asm:5: error: parser: instruction expected
1>crypto\aes\aes-x86_64.asm:7: warning: `PTR' is not a NASM keyword [-w+ptr]

The offending crypto\aes\aes-x86_64.asm file starts with:

OPTION DOTNAME
.text$    SEGMENT ALIGN(256) 'CODE'

ALIGN    16
_x86_64_AES_encrypt     PROC PRIVATE

               xor         eax,DWORD PTR[r15]
               xor         ebx,DWORD PTR[4+r15]

Any advice?
TIA
Paavo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20230214/9e9dc7bb/attachment.htm>


More information about the openssl-users mailing list