Comments (13)
I'm having this problem too. I've been chasing my tail trying to determine what is wrong with my environment, but I think it may in fact be this:
commit 3ff08e1dde56747011a702a9a5aae06cfa8ae5fc
Author: Andy Polyakov <[email protected]>
Date: Thu Oct 23 16:08:44 2014 +0200
ecp_nistz256 update.
Facilitate switch to custom scatter-gather routines. This modification
does not change algorithms, only makes it possible to implement
alternative. This is achieved by a) moving precompute table to assembly
(perlasm parses ecp_nistz256_table.c and is free to rearrange data to
match gathering algorithm); b) adhering to explicit scatter subroutine
(which for now is simply a memcpy). First implementations that will use
this option are 32-bit assembly implementations, ARMv4 and x86, where
equivalent of current read-whole-table-select-single-value algorithm
is too time-consuming. [On side note, switching to scatter-gather on
x86_64 would allow to improve server-side ECDSA performance by ~5%].
Reviewed-by: Bodo Moeller <[email protected]>
from openssl.
Upon further inspection, it may not be that specific commit. In any case, I reset my repository back to before that commit was added and the build completed successfully:
git reset --hard 4d3fa06~1
looking at the available branches, I can see that there seems to be a WIN-64 specific branch, which might be worth checking out also.
from openssl.
never mind, the last update on that particular [WIN64] branch is 2004 :D
from openssl.
But the 1.0.2 stable branch seems to work fine!
git checkout -b 1.0.2 origin/OpenSSL_1_0_2-stable
from openssl.
I have encountered the same problem with the last version of Visual Studio 2013 (v. 12.0.31101.00 update 4) on an AMD64.
Here are the command executed:
>perl Configure VC-WIN64A --prefix=C:\OpenSSL-Bin
>ms\do_win64a
>nmake -f ms\ntdll.mak
And the output :
Assembling: tmp32dll\ecp_nistz256-x86_64.asm
tmp32dll\ecp_nistz256-x86_64.asm(5) size
tmp32dll\ecp_nistz256-x86_64.asm(5) : error A2189:invalid combination with segme
nt alignmenNMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 12.0\VC\BIN\x86_amd64\ml64.EXE"' : code retour '0x1'
Stop.
I was using the master branch, I will try with the 1.0.2 as it seems to work for ruskotron.
from openssl.
Has a solution be found for this issue? I'm having the same problem with Visual Studio 2015.
from openssl.
ruskotron's trick, switching to the stable branch, worked for me and seems like a good idea anyway.
from openssl.
Apologies, we should've confirmed @ruskotron suggestion worked for our project. You can find build instructions here.
from openssl.
this error seems to be back in openssl-1.1.0 (just encountered it with -pre3)
from openssl.
@MrHacky 👍
from openssl.
The following did the trick for me to compile. I didn't test if it actually runs.
diff --git a/crypto/ec/asm/ecp_nistz256-x86_64.pl b/crypto/ec/asm/ecp_nistz256-x86_64.pl
index 824d7b5..eca842d 100755
--- a/crypto/ec/asm/ecp_nistz256-x86_64.pl
+++ b/crypto/ec/asm/ecp_nistz256-x86_64.pl
@@ -3064,7 +3064,7 @@ print <<___;
.text
.globl ecp_nistz256_precomputed
.type ecp_nistz256_precomputed,\@object
-.align 4096
+.align 256
ecp_nistz256_precomputed:
___
while (@line=splice(@arr,0,16)) {
from openssl.
It looks like only ml64 is affected. There is no need for any patching if nasm is on PATH.
from openssl.
With using the command line parameter no-asm
from openssl.
Related Issues (20)
- There is a memory leak defect on line 134 of /openssl/test/threadpool_test.c.
- There is a memory leak defect on line 28 of the file /openssl/test/prov_config_test.c. HOT 3
- Decoder passphrase callback not working as expected HOT 2
- Windows build 32 bit HOT 1
- There is a memory leak defect at line 1234 in the file list.c in /openssl/apps. HOT 1
- There is a memory leak defect on line 523 of the file /openssl/crypto/conf/conf_mod.c.
- ssh-keygen -i can't import private PKCS8 keys
- Setting curve X448 seems to result in setting curve X25519
- There's a memory leak defect at line 453 in the file /openssl/test/ct_test.c.
- QUIC: Consider providing a notification and callback mechanism
- openssl.org has incorrect content-type HTTP header for source tarballs HOT 1
- EVP_PKEY_CTX_add1_hkdf_info no longer accept empty argument HOT 2
- RFC: Host a copy of each release tarball under https://www.openssl.org/source/old/<version>/ as soon as it's released, rather than only when it's superseded HOT 1
- OpenSSL v1.1.1: `EVP_DecryptFinal` always returns 0 for `AES-128-GCM`, i.e., for GCM algorithm.
- test
- OpenSSL 3.1: use after free in AVX 512 codepath for AES-GCM
- [BUG] SSL_read bad length when upload 2.9GB file HOT 1
- libcrypto.so segmentation fault in ERR_clear_error HOT 1
- Build broken in 3.3.0 in conf_lib.c on AIX 7.1 HOT 3
- d2i PublicKey(); usage error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openssl.