Ah, this issue is discussed for GMP here:

http://gmplib.org/list-archives/gmp-bugs/2008-July/001047.html

Exactly the same thing is happening in MPIR because originally MPIR
started from the GMP codebase and no changes we have made since have
rectified this issue.

One poster to the GMP list seemed to think that although make check
will fail when building a shared library, there is probably nothing
actually wrong with the library that is produced. The only problem is,
you have no way of verifying this. There is some discussion of doing a
cross-compilation with Cygwin to verify your library is working. That
may be one solution for you if you require a shared library.

I will create a ticket for this issue and someone will hopefully
eventually fix it. The problem is that this may be:

* An issue in MPIR
* An issue with libtool
* An issue with MSYS

In other words, there is no guarantee we actually *can* fix it. Also,
as this is a very difficult issue, it may be quite some time before it
is resolved. There are at least two other very hard issues in the
queue before it. Sorry to be so unhelpful.

Can I ask what application you have in mind for the MPIR library?
Perhaps there is some other easier way we can help you get to what you
are trying to achieve, e.g. helping you create an MSVC build of MPIR,
etc.

Bill.

2009/5/30 Bill Hart <goodwillh...@googlemail.com>:
> By the way, you original command:
>
> ./configure --enable-cxx --disable-static --enable-shared
>
> will not work in MSYS as far as I know. MSYS does not support the
> building of shared libraries for MPIR as far as I am aware. You can
> only build a static library. If you want a little bit more flexibility
> on Windows, you need to use MSVC.
>
> We should document this for the MSYS system.
>
> Bill.
>
> 2009/5/30 Bill Hart <goodwillh...@googlemail.com>:
>> make clean simply removes all the files you built before.
>>
>> If you do:
>>
>> make
>> make clean
>> make check
>>
>> it should not pass make check, as there is no library to check, since
>> you just cleaned it away!!
>>
>> I'm checking now on my machine whether:
>>
>> ./configure --enable-cxx
>> make clean
>> make
>> make check
>>
>> works. It should. If not, you have found a bug.
>>
>> Out of interest, you might try running make check twice and see if it
>> passes the second time.
>>
>> Bill.
>>
>> 2009/5/30 Peter_APIIT <peterap...@gmail.com>:
>>>
>>> It works just fine after reversing command
>>>
>>> the command i type is
>>>
>>> ./configure --enable-cxx --disable-static --enable-shared
>>> make
>>> make check return 9 test failed
>>>
>>> but your command works perfectly.
>>>
>>> ./configure --enable-gmpcompat
>>> make clean
>>> make
>>> make check
>>>
>>>
>>> I issue make clean after make. Is there any difference ?
>>>
>>> I have build the library but i now want to rebuild it with cpp
>>> interface.
>>>
>>> What command should i type ?
>>>
>>> Thanks.
>>> >>>
>>>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to