[openssl-users] Build problems on Windows

Jakob Bohm jb-openssl at wisemo.com
Tue Jan 10 05:46:12 UTC 2017


On 10/01/2017 05:04, jeff saremi wrote:
>
> Hello
>
> I downloaded openssl-1.1.0c and i'm trying to build this on Windows 10 
> using Visual Studio 2015. I'm following the INSTALL and NOTES.WIN 
> instructions however I get stopped rather quickly with file not found 
> issues..
>
> I have also installed nasm. The build fails for 32 or 64 with slightly 
> different paths in the error. Here's the sequence of commands:
> 1.perl Configure VC-WIN32
> 2.nmake
>
>
> output:
>
> D:\repos\openssl-1.1.0c>perl Configure VC-WIN64A
> Configuring OpenSSL version 1.1.0c (0x1010003fL)
>     no-asan         [default]  OPENSSL_NO_ASAN
>     no-crypto-mdebug [default]  OPENSSL_NO_CRYPTO_MDEBUG
>     no-crypto-mdebug-backtrace [default] 
> OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
>     no-ec_nistp_64_gcc_128 [default] OPENSSL_NO_EC_NISTP_64_GCC_128
>     no-egd          [default]  OPENSSL_NO_EGD
>     no-fuzz-afl     [default]  OPENSSL_NO_FUZZ_AFL
>     no-fuzz-libfuzzer [default]  OPENSSL_NO_FUZZ_LIBFUZZER
>     no-heartbeats   [default]  OPENSSL_NO_HEARTBEATS
>     no-md2          [default]  OPENSSL_NO_MD2 (skip dir)
>     no-msan         [default]  OPENSSL_NO_MSAN
>     no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
>     no-sctp         [default]  OPENSSL_NO_SCTP
>     no-ssl-trace    [default]  OPENSSL_NO_SSL_TRACE
>     no-ssl3         [default]  OPENSSL_NO_SSL3
>     no-ssl3-method  [default]  OPENSSL_NO_SSL3_METHOD
>     no-ubsan        [default]  OPENSSL_NO_UBSAN
>     no-unit-test    [default]  OPENSSL_NO_UNIT_TEST
>     no-weak-ssl-ciphers [default]  OPENSSL_NO_WEAK_SSL_CIPHERS
>     no-zlib         [default]
>     no-zlib-dynamic [default]
> Configuring for VC-WIN64A
> CC            =cl
> CFLAG         =-W3 -wd4090 -Gs0 -GF -Gy -nologo -DOPENSSL_SYS_WIN32 
> -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE -DUNICODE 
> -D_UNICODE /MD /O2
> SHARED_CFLAG  =
> DEFINES       =OPENSSL_USE_APPLINK DSO_WIN32 NDEBUG OPENSSL_THREADS 
> OPENSSL_NO_STATIC_ENGINE OPENSSL_PIC OPENSSL_IA32_SSE2 
> OPENSSL_BN_ASM_MONT OPENSSL_BN_ASM_MONT5 OPENSSL_BN_ASM_GF2m SHA1_ASM 
> SHA256_ASM SHA512_ASM RC4_ASM MD5_ASM AES_ASM VPAES_ASM BSAES_ASM 
> GHASH_ASM ECP_NISTZ256_ASM POLY1305_ASM
> LFLAG         =/nologo /debug
> PLIB_LFLAG    =
> EX_LIBS       =ws2_32.lib gdi32.lib advapi32.lib crypt32.lib user32.lib
> APPS_OBJ      =win32_init.o ../ms/applink.o
> CPUID_OBJ     =x86_64cpuid.o
> UPLINK_OBJ    =../ms/uplink.o uplink-x86_64.o
> BN_ASM        =bn_asm.o x86_64-mont.o x86_64-mont5.o x86_64-gf2m.o 
> rsaz_exp.o rsaz-x86_64.o rsaz-avx2.o
> EC_ASM        =ecp_nistz256.o ecp_nistz256-x86_64.o
> DES_ENC       =des_enc.o fcrypt_b.o
> AES_ENC       =aes-x86_64.o vpaes-x86_64.o bsaes-x86_64.o 
> aesni-x86_64.o aesni-sha1-x86_64.o aesni-sha256-x86_64.o aesni-mb-x86_64.o
> BF_ENC        =bf_enc.o
> CAST_ENC      =c_enc.o
> RC4_ENC       =rc4-x86_64.o rc4-md5-x86_64.o
> RC5_ENC       =rc5_enc.o
> MD5_OBJ_ASM   =md5-x86_64.o
> SHA1_OBJ_ASM  =sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o 
> sha1-mb-x86_64.o sha256-mb-x86_64.o
> RMD160_OBJ_ASM=
> CMLL_ENC      =cmll-x86_64.o cmll_misc.o
> MODES_OBJ     =ghash-x86_64.o aesni-gcm-x86_64.o
> PADLOCK_OBJ   =e_padlock-x86_64.o
> CHACHA_ENC    =chacha-x86_64.o
> POLY1305_OBJ  =poly1305-x86_64.o
> BLAKE2_OBJ    =
> PROCESSOR     =
> RANLIB        =true
> ARFLAGS       =/nologo
> PERL          =perl
>
> SIXTY_FOUR_BIT mode
>
> Configured for VC-WIN64A.
>
> D:\repos\openssl-1.1.0c>nmake
>
> Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
>         "perl" "-I." -Mconfigdata "util/dofile.pl" "-omakefile" 
> "crypto/include/internal/bn_conf.h.in" > crypto/include/internal/bn_conf.h
>         "perl" "-I." -Mconfigdata "util/dofile.pl" "-omakefile" 
> "crypto/include/internal/dso_conf.h.in" > 
> crypto/include/internal/dso_conf.h
>         "perl" "-I." -Mconfigdata "util/dofile.pl" "-omakefile" 
> "include/openssl/opensslconf.h.in" > include/openssl/opensslconf.h
>         set ASM=nasm
>         "perl" "crypto/aes/asm/aes-x86_64.pl" "auto" 
> crypto/aes/aes-x86_64.asm
>
>         nasm -f win64 -DNEAR -Ox -g -ocrypto/aes/aes-x86_64.obj 
> "crypto/aes/aes-x86_64.asm"
> nasm: fatal: unable to open input file `crypto/aes/aes-x86_64.asm'
> NMAKE : fatal error U1077: 'C:\nasm-2.12.02\nasm.EXE' : return code '0x1'
> Stop.
>
>
Check your perl version, with the command perl -V


Enjoy

Jakob
-- 
Jakob Bohm, CIO, Partner, WiseMo A/S.  https://www.wisemo.com
Transformervej 29, 2860 Søborg, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded



More information about the openssl-users mailing list