Problems with gmp and mpfr after rebasing - was Re: [ANNOUNCEMENT] gmp-4.3.1-1 for cygwin-1.7

David Billinghurst dbcygwin@gmail.com
Sat Jun 6 13:03:00 GMT 2009


David Billinghurst wrote:
> Dave Korn wrote:
>> David Billinghurst wrote:
>>
>>> I have rebuilt gmp with CVS binutils and -shared-libgcc.  This fixes the
>>> problem for me.  Could someone (Yaakov?) download the new DLLs in
>>> libgmp3-4.3.1-1.tar.bz2 and libgmpxx4-4.3.1-2.tar.bz2 (below) and
>>> confirm the fix.

>>
>> This doesn't appear to work for me with the existing expr.exe; I 
>> think you should just use new binutils but keep the static libgcc 
 >> linkage. The static ctors in the DLL appear to be getting run twice,
>> which is bad.

Take 2.  I can now reproduce the problems with expr due to cyggmp-3.dll 
and the gcc-4 problems due to cyggmp-3.dll and cygmpfr-1.dll.  I don't 
fully understand all of the issues - how do I check if static ctors in 
the DLL run twice? - so feedback is welcome.

Here is another build of gmp with CVS binutils and -shared-libgcc.  I 
took more care and ensured that CVS binutils was used everywhere.  These 
DLLs work with expr and gcc-4, and the gmp testsuite passes, both before 
and after rebasing.  A build without -shared-libgcc did not work after 
rebasing.

I have also rebuilt mpfr in the same way.  It too works for me after 
rebasing.

The new builds are available for testing.  You really only need the new 
DLLs.  These are in
  - libgmp3-4.3.1-3.tar.bz2,
  - libgmpxx4-4.3.1-3.tar.bz2
  - libmpfr1-2.4.1-3.tar.bz2

My other packages - mpclib, ppl and cloog-ppl - may suffer from the same 
problem.  A job for tomorrow.

##############################################################

D=http://billinghurst.customer.netspace.net.au/cygwin-1.7

wget -x -nH --cut-dirs=1 \
  ${D}/gmp/gmp-4.3.1-3-src.tar.bz2 \
  ${D}/gmp/gmp-4.3.1-3.tar.bz2 \
  ${D}/gmp/setup.hint \
  ${D}/gmp/libgmpxx4/libgmpxx4-4.3.1-3.tar.bz2 \
  ${D}/gmp/libgmpxx4/setup.hint \
  ${D}/gmp/libgmp3/libgmp3-4.3.1-3.tar.bz2 \
  ${D}/gmp/libgmp3/setup.hint \
  ${D}/gmp/libgmp-devel/libgmp-devel-4.3.1-3.tar.bz2 \
  ${D}/gmp/libgmp-devel/setup.hint


wget -x -nH --cut-dirs=1 \
  ${D}/mpfr/libmpfr-devel/libmpfr-devel-2.4.1-3.tar.bz2 \
  ${D}/mpfr/libmpfr-devel/setup.hint \
  ${D}/mpfr/libmpfr1/libmpfr1-2.4.1-3.tar.bz2 \
  ${D}/mpfr/libmpfr1/setup.hint \
  ${D}/mpfr/mpfr-2.4.1-3-src.tar.bz2 \
  ${D}/mpfr/mpfr-2.4.1-3.tar.bz2 \
  ${D}/mpfr/setup.hint


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list