Re: Compile error with MinGW-w64
On 16/04/2012 2:31 AM, Andy Polyakov wrote: What happens if you add wait; at the very end of crypto/asm/sha1-x86_64.pl? It just hangs. 'which perl'? If not /bin/perl, i.e. non-MSYS perl, then I'd suggest to complement MSYS installation with MSYS perl. It works with MSYS perl. Thanks. I was using Strawberry Perl and ActivePerl with MSYS and they didn't work. They work fine in Cygwin though and in MSYS with earlier OpenSSL versions. Strange. Regards, Jonathan __ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org
Re: Compile error with MinGW-w64
On 14/04/2012 12:50 AM, Andy Polyakov wrote: What happens if you add wait; at the very end of crypto/asm/sha1-x86_64.pl? It just hangs. Regards, Jonathan __ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org
Re: Compile error with MinGW-w64
What happens if you add wait; at the very end of crypto/asm/sha1-x86_64.pl? It just hangs. 'which perl'? If not /bin/perl, i.e. non-MSYS perl, then I'd suggest to complement MSYS installation with MSYS perl. __ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org
Re: Compile error with MinGW-w64
On 30/03/2012 4:09 AM, Andy Polyakov wrote: I am having some trouble compiling OpenSSL 1.0.1 with MinGW-w64 under MSYS with the following commands: ./Configure mingw64 shared make Error output: perl asm/sha1-x86_64.pl mingw64 sha1-x86_64.s gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -D_WINDLL -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o sha1-x86_64.o sha1-x86_64.s sha1-x86_64.s: Assembler messages: sha1-x86_64.s:1824: Warning: end of file not at end of a line; newline inserted sha1-x86_64.s:2183: Error: number of operands mismatch for `rol' I've tested with MinGW-w64 4.5.2, 4.6.1 and 4.7.0 prerelease. Any ideas? Look into generated file, at lines in question. Run 'perl asm/sha1-x86_64.pl mingw64 sha1-x86_64.s' on another system (Windows or not, doesn't matter) and compare outputs... I can't reproduce the problem, so it's likely to be problem with your environment. You refer to 4.5.2, 4.6.1, 4.7.0. These sound like gcc versions, not MinGW, while problem is likely to be Perl or binutils... I was able to fix the issue by adding: $| = 1; before open STDOUT,$output || die can't open $output: $! in crypto/perlasm/x86_64-xlate.pl to disable output buffering. Apparently GCC was reading sha1-x86_64.s before Perl finished writing to it. Regards, Jonathan __ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org
Re: Compile error with MinGW-w64
On 30/03/2012 4:09 AM, Andy Polyakov wrote: I am having some trouble compiling OpenSSL 1.0.1 with MinGW-w64 under MSYS with the following commands: ./Configure mingw64 shared make Error output: perl asm/sha1-x86_64.pl mingw64 sha1-x86_64.s gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -D_WINDLL -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o sha1-x86_64.o sha1-x86_64.s sha1-x86_64.s: Assembler messages: sha1-x86_64.s:1824: Warning: end of file not at end of a line; newline inserted sha1-x86_64.s:2183: Error: number of operands mismatch for `rol' I've tested with MinGW-w64 4.5.2, 4.6.1 and 4.7.0 prerelease. Any ideas? Look into generated file, at lines in question. Run 'perl asm/sha1-x86_64.pl mingw64 sha1-x86_64.s' on another system (Windows or not, doesn't matter) and compare outputs... I can't reproduce the problem, so it's likely to be problem with your environment. You refer to 4.5.2, 4.6.1, 4.7.0. These sound like gcc versions, not MinGW, while problem is likely to be Perl or binutils... It seems sha1-x86_64.s is being read before it is completely written... Not sure how to handle this. Disable output buffering doesn't solve the problem completely - more output is written to file before it is read but the file is still read before it is completely written. This leads to linker errors. Regards, Jonathan __ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org
Re: Compile error with MinGW-w64
I am having some trouble compiling OpenSSL 1.0.1 with MinGW-w64 under MSYS with the following commands: ./Configure mingw64 shared make Error output: perl asm/sha1-x86_64.pl mingw64 sha1-x86_64.s gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -D_WINDLL -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o sha1-x86_64.o sha1-x86_64.s sha1-x86_64.s: Assembler messages: sha1-x86_64.s:1824: Warning: end of file not at end of a line; newline inserted sha1-x86_64.s:2183: Error: number of operands mismatch for `rol' I've tested with MinGW-w64 4.5.2, 4.6.1 and 4.7.0 prerelease. Any ideas? Look into generated file, at lines in question. Run 'perl asm/sha1-x86_64.pl mingw64 sha1-x86_64.s' on another system (Windows or not, doesn't matter) and compare outputs... I can't reproduce the problem, so it's likely to be problem with your environment. You refer to 4.5.2, 4.6.1, 4.7.0. These sound like gcc versions, not MinGW, while problem is likely to be Perl or binutils... It seems sha1-x86_64.s is being read before it is completely written... Not sure how to handle this. Disable output buffering doesn't solve the problem completely - more output is written to file before it is read but the file is still read before it is completely written. This leads to linker errors. What happens if you add wait; at the very end of crypto/asm/sha1-x86_64.pl? __ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org
Re: Compile error with MinGW-w64
I am having some trouble compiling OpenSSL 1.0.1 with MinGW-w64 under MSYS with the following commands: ./Configure mingw64 shared make Error output: perl asm/sha1-x86_64.pl mingw64 sha1-x86_64.s gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -D_WINDLL -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o sha1-x86_64.o sha1-x86_64.s sha1-x86_64.s: Assembler messages: sha1-x86_64.s:1824: Warning: end of file not at end of a line; newline inserted sha1-x86_64.s:2183: Error: number of operands mismatch for `rol' I've tested with MinGW-w64 4.5.2, 4.6.1 and 4.7.0 prerelease. Any ideas? Look into generated file, at lines in question. Run 'perl asm/sha1-x86_64.pl mingw64 sha1-x86_64.s' on another system (Windows or not, doesn't matter) and compare outputs... I can't reproduce the problem, so it's likely to be problem with your environment. You refer to 4.5.2, 4.6.1, 4.7.0. These sound like gcc versions, not MinGW, while problem is likely to be Perl or binutils... __ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org
Compile error with MinGW-w64
Hello, I am having some trouble compiling OpenSSL 1.0.1 with MinGW-w64 under MSYS with the following commands: ./Configure mingw64 shared make Error output: perl asm/sha1-x86_64.pl mingw64 sha1-x86_64.s gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -D_WINDLL -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o sha1-x86_64.o sha1-x86_64.s sha1-x86_64.s: Assembler messages: sha1-x86_64.s:1824: Warning: end of file not at end of a line; newline inserted sha1-x86_64.s:2183: Error: number of operands mismatch for `rol' I've tested with MinGW-w64 4.5.2, 4.6.1 and 4.7.0 prerelease. Any ideas? Regards, Jonathan __ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org