On 12/17/2011 11:23 PM, David Cleaver wrote:
On 12/16/2011 3:01 PM, Cactus wrote:
I have now added this to the MPIR SVN as the branch mpir-exp (with some
updates).
Brian
Hello all,
I am using mingw64 as my compiler inside an msys shell. I recently downloaded
the experimental branch from svn and got version 3752.
I ran './configure --enable-gmpcompat' and have come across a problem. Basically
nothing is defined inside of config.h. Everything has an #undef in front of it.
The 'configure' script is the same, line-for-line, as the one in the
mpir-2.5.0-rc1 directory. Even config.log is the same in both directories.
All of the following is based on svn 3757.
Alright, I finally found out why nothing was defined in my config.h. It turns
out that the config.in file has CRLF line endings in this experimental
directory, but it only has the LF line endings in the 2.5.0-rc1 directory. This
caused my tools to not properly process the config.in file into a config.h file.
Brian, can you check to see if there are CRLF line endings in the svn? Or
maybe my svn client changed the line endings when I downloaded it? If it is
CRLF in the svn repository, can we change that to LF?
Then, when that was fixed, I ran 'make' which went until the mpq directory and
came to an error with the mpq/cmp_ui.c/mpq_cmp_ui function saying it was
different from the mpir.h definition (on my mpir.h line 1252).
mpir.h has:
__GMP_DECLSPEC int _mpq_cmp_ui __GMP_PROTO ((mpq_srcptr, gmp_si, gmp_si))
__GMP_ATTRIBUTE_PURE;
and mpq/cmp_ui.c has:
_mpq_cmp_ui (mpq_srcptr op1, gmp_ui num2, gmp_ui den2)
I think the definition in mpir.h should be changed to:
__GMP_DECLSPEC int _mpq_cmp_ui __GMP_PROTO ((mpq_srcptr, gmp_ui, gmp_ui))
__GMP_ATTRIBUTE_PURE;
To match what is in the mpq/cmp_ui.c file.
Then, once I changed mpir.h to match the mpq/cmp_ui.c, both 'make' and 'make
check' ran successfully to completion. [except for my printf issue, of course ;) ]
On a different, but related note, with both the 2.5.0-rc1 and this 2.5.0-exp, I
have seen various warning messages scroll by, such as:
warning: cast from pointer to integer of different size
warning: overflow in implicit constant conversion
warning: initialization from incompatible pointer type
warning: passing argument 1 of '__gmpz_get_d_2exp' from incompatible pointer
type
warning: integer overflow in expression
warning: assignment from incompatible pointer type
warning: passing argument 1 of '__gmpf_get_d_2exp' from incompatible pointer
type
I only see these messages when running 'make check', and all of the tests in
'make check' pass. So, maybe this isn't anything to worry about? But, if you'd
like, I can go through and find each one and write back with a list of changes
that would be needed.
-David C.
P.S. I didn't copy the mpir.h file from one of your previous posts. That isn't
needed any more, is it?
--
You received this message because you are subscribed to the Google Groups
"mpir-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/mpir-devel?hl=en.