----- Original Message ----- 
From: "JonY" <[email protected]>
To: "Ozkan Sezer" <[email protected]>
Cc: "Sisyphus" <[email protected]>; 
<[email protected]>
Sent: Wednesday, January 20, 2010 1:06 AM
Subject: Re: [Mingw-w64-public] Bulding gmp-5.0.0 with MinGW64 (in MSYS 
shell).


> On 1/19/2010 21:55, Ozkan Sezer wrote:
>> On Tue, Jan 19, 2010 at 3:50 PM, JonY<[email protected]> 
>> wrote:
>>> On 1/19/2010 20:03, Sisyphus wrote:
>>>>
>>>> ----- Original Message -----
>>>> From: "Ozkan Sezer"<[email protected]>
>>>>
>>>>>> Firstly, the command I'm running to build and test gmp-5.0.0 is:
>>>>>>
>>>>>> ./configure --disable-shared --enable-static --host=none-none-none
>>>>>> CC="x86_64-w64-mingw32-gcc -std=gnu99" CXX=x86_64-w64-mingw32-g++
>>>>>> AR=x86_64-w64-mingw32-ar LD=x86_64-w64-mingw32-ld
>>>>>> NM=x86_64-w64-mingw32-nm
>>>>>> RANLIB=x86_64-w64-mingw32-ranlib ABI=longlong&&   make&&   make 
>>>>>> check -i
>>>>>>
>>>>>
>>>>> I would have suggested using configure --build=x86_64-w64-mingw32
>>>>> --target=x86_64-w64-mingw32
>>>>
>>>> Unfortunately that doesn't get me very far:
>>>>
>>>> #################################
>>>> r...@desktop2 /c/_32/comp/gmp-5.0.0
>>>> $ ./configure --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32
>>>> configure: error: --target is not appropriate for GMP
>>>> Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
>>>> explicitly.  Use --host if cross-compiling (see "Installing GMP" in the
>>>> manual for more on this).
>>>>
>>>> r...@desktop2 /c/_32/comp/gmp-5.0.0
>>>>
>>>> #################################

>>> --target is only valid for GCC/Binutils, use --build/--host instead.
>>
>> Oops, really meant --host, not --target when I wrote that.
>> I guess people can't read mind, don't they ;)

I don't even know what *I* am thinking half the time ;-)

Ok ... I've now tried by running:

$  ./configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 
CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ 
AR=x86_64-w64-mingw32-ar LD=x86_64-w64-mingw32-ld NM=x86_64-w64-mingw32-nm 
RANLIB=x86_64-w64-mingw32-ranlib

I still get the same failures, plus 2 additional failures - both 
misc/t-printf.exe and misc/t-scanf.exe now fail to build because of some 
undefined references to __gmp_replacement_vsnprintf, __gmp_sscanf and 
__gmp_vfscanf.

I notice that __GMP_CFLAGS has changed from "-O2 -pedantic -std-gnu99" to 
"-O2 -pedantic -m64 -std=gnu99 -mtune=k8 -march=k8".
Does this constitute some improvement in the gmp library that I've built ?
I notice also that the latest build (unlike my earlier builds) did not 
define "NO_ASM" ... but it's still a "generic C" build, isn't it ? (There 
were no .asm files mentioned in the linking at the end of the 'configure' 
step.)

>>> The localeconv error is a known problem for win32/win64 target, you can
>>> ignore it.
>>>
>>
>> The thing is, that particular problem doesn't show up
>> with mingw.org compiler (I had tested with their
>> gcc-3.4.5 based toolchain in the past, don't know about
>> the behavior with their newer 4.4-based compilers).

> iiuc, it will fail on modern mingw.org too.

I just tried with gcc-4.4.0 from mingw.org and there were no test failures. 
(I'm not sure if it's the latest gcc-4.4.x available from them - had a quick 
look and couldn't find a gcc-4.4.x distro anywhere at 
http://sourceforge.net/projects/mingw/files/ , so I just used the one I 
already had from a few months back.)

> libmsvcrt.a now exports localeconv, but t-locale is trying to use its
> own implementation, hence the multiple definition error.

Yep - it was stated above that this is a "known issue". Does that mean 
there's no need to report it to gmp-bugs ?

As regards the t-perfpow.exe problem, I'm still wondering whether that 
should that be reported to gmp-bugs ?

Thanks for the replies, guys !

Cheers,
Rob 


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to