Giter VIP home page Giter VIP logo

Comments (13)

ruskotron avatar ruskotron commented on May 17, 2024

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.

ruskotron avatar ruskotron commented on May 17, 2024

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.

ruskotron avatar ruskotron commented on May 17, 2024

never mind, the last update on that particular [WIN64] branch is 2004 :D

from openssl.

ruskotron avatar ruskotron commented on May 17, 2024

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.

thomasjammet avatar thomasjammet commented on May 17, 2024

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.

ben-crowhurst avatar ben-crowhurst commented on May 17, 2024

Has a solution be found for this issue? I'm having the same problem with Visual Studio 2015.

from openssl.

henrita avatar henrita commented on May 17, 2024

ruskotron's trick, switching to the stable branch, worked for me and seems like a good idea anyway.

from openssl.

ben-crowhurst avatar ben-crowhurst commented on May 17, 2024

Apologies, we should've confirmed @ruskotron suggestion worked for our project. You can find build instructions here.

from openssl.

MrHacky avatar MrHacky commented on May 17, 2024

this error seems to be back in openssl-1.1.0 (just encountered it with -pre3)

from openssl.

mlt avatar mlt commented on May 17, 2024

@MrHacky 👍

from openssl.

mlt avatar mlt commented on May 17, 2024

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.

mlt avatar mlt commented on May 17, 2024

It looks like only ml64 is affected. There is no need for any patching if nasm is on PATH.

from openssl.

luolin556 avatar luolin556 commented on May 17, 2024

With using the command line parameter no-asm

from openssl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.