Re: mingw 64-bit build of 1.1.0e

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just add -m64 on the config line, like this:

./config no-shared zlib -m64 -IC:/_64/msys_630/1.0/local/include \
-LC:/_64/msys_630/1.0/local/lib --prefix=C:/_64/msys_630/1.0/local

This is weird, though...  what config target did you get when
configuring?  Ideally, you should have gotten 'mingw64', which already
uses the -m64 flag, so what gives?  If you show us the config output,
maybe we can help you figure out what actually goes wrong...

Cheers,
Richard

In message <947E3E0C7B5E4C5A97C3506B97EBC133@OwnerPC311012> on Sat, 11 Mar 2017 22:21:05 +1100, <sisyphus1@xxxxxxxxxxxxxxx> said:

sisyphus1> Hi,
sisyphus1> 
sisyphus1> Having a spot of bother trying to build a static openssl-1.1.0e using
sisyphus1> a
sisyphus1> mingw-w64 64-bit compiler - namely, gcc version 6.3.0
sisyphus1> (x86_64-posix-sjlj-rev1, Built by MinGW-W64 project).
sisyphus1> 
sisyphus1> In the msys2 shell, I run:
sisyphus1> 
sisyphus1> ./config no-shared
sisyphus1> zlib -IC:/_64/msys_630/1.0/local/include
sisyphus1> -LC:/_64/msys_630/1.0/local/lib --prefix=C:/_64/msys_630/1.0/local
sisyphus1> && make && make test && make install
sisyphus1> 
sisyphus1> Works beautifully ... except that libssl.a and libcrypto.a turn out to
sisyphus1> be
sisyphus1> 32-bit builds !!
sisyphus1> That is, the built library works fine with the same vendor's 32-bit
sisyphus1> compiler
sisyphus1> (gcc version 6.3.0 (i686-posix-sjlj-rev1, Built by MinGW-W64
sisyphus1> project)), but
sisyphus1> the x64 compiler that built the damned things regards them as
sisyphus1> incompatible.
sisyphus1> 
sisyphus1> I'm thinking that I just need to specify an -m64 switch in there. How
sisyphus1> do I
sisyphus1> do that ?
sisyphus1> 
sisyphus1> I did try adding the 'os/compiler:mingw64' to the ./config args, but
sisyphus1> that
sisyphus1> resulted in:
sisyphus1> 
sisyphus1> $ ./config no-shared
sisyphus1> zlib -IC:/_64/msys_630/1.0/local/include
sisyphus1> -LC:/_64/msys_630/1.0/local/lib --prefix=C:/_64/msys_630/1.0/local
sisyphus1> os/compiler:mingw64 && make && make test && make install
sisyphus1> Operating system: x86_64-whatever-mingw
sisyphus1> Configuring for mingw
sisyphus1> Configuring OpenSSL version 1.1.0e (0x1010005fL)
sisyphus1> target already defined - mingw (offending arg: os/compiler:mingw64)
sisyphus1> 
sisyphus1> Having spent quite a few hours just getting to this diagnosis, I've
sisyphus1> now
sisyphus1> settled for simply asking the dumb question.
sisyphus1> (Sorry.)
sisyphus1> 
sisyphus1> Cheers,
sisyphus1> Rob 
sisyphus1> 
sisyphus1> 
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux