Warnings with Mingw

Sisyphus sisyphus1 at optusnet.com.au
Mon Jun 13 14:50:55 CEST 2005


----- Original Message ----- 
From: "CB" <BigMul at yango.us>
To: <gmp-discuss at swox.com>
Sent: Monday, June 13, 2005 12:26 PM
Subject: Warnings with Mingw


> I downloaded gmp 4.1.4 and am building it with Mingw 4.1.0 & MSys.  (I'm
> using the 'candidate' versions of gcc & binutils, because the 'current'
> version of Mingw's GCC and BinUtils don't work, and abort.)
>
> I'm getting a few warnings about inline assembly
>
> Are they a problem?  I don't see a reference to them on the gmp page, and
I
> don't see anything immediately obvious in the mailing list archive.
>
>
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -g -O2 -fomit-frame
-pointer
>  -mcpu=pentiumpro -march=pentiumpro -c get_d_2exp.c
> get_d_2exp.c: In function `__gmpz_get_d_2exp':
> get_d_2exp.c:60: warning: matching constraint does not allow a register
> get_d_2exp.c:60: warning: matching constraint does not allow a register
>
>
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -g -O2 -fomit-frame
-pointer
>  -mcpu=pentiumpro -march=pentiumpro -c get_d_2exp.c
> get_d_2exp.c: In function `__gmpf_get_d_2exp':
> get_d_2exp.c:60: warning: matching constraint does not allow a register
> get_d_2exp.c:60: warning: matching constraint does not allow a register
>

I don't know how significant that warning is. (I routinely ignore all
warnings unless there are errors as well.)

>
> libtool: link: warning: undefined symbols not allowed in
pentium3-pc-mingw32
> shared libraries
>

I get that warning, too - when building with MinGW-3.0.1 (with which I've
never had any trouble, btw). If there are any undefined symbols, then the
shared library won't be built - so I would think that you can ignore that
particular warning unless you requested a shared library and it didn't get
built, in which case there would surely be error messages as well.

I don't get any other warnings at all. My configure command looked like
this:

./configure --disable-shared --enable-static

What options did you provide to to './configure' ?

I've also got the latest versions of the various components of MinGW from:
 https://sourceforge.net/project/showfiles.php?group_id=2435

I assume these are the same as provided by MinGW-4.1.0. ('gcc -v' reports
3.4.4. Same for you ?)

When I build gmp-4.1.4 using these newer packages I do get *all* of the
warnings that you've reported.

> Plus, of course, bunches of warnings about -mcpu being depricated.

I doubt they matter much ... but if someone contradicts me, take that
person's word for it, not mine.

Cheers,
Rob




More information about the gmp-discuss mailing list