delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/06/09:03:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A2A6907.4000700@gmail.com>
Date: Sat, 06 Jun 2009 23:03:03 +1000
From: David Billinghurst <dbcygwin AT gmail DOT com>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Problems with gmp and mpfr after rebasing - was Re: [ANNOUNCEMENT] gmp-4.3.1-1 for cygwin-1.7
References: <announce DOT 4A189E22 DOT 8050002 AT gmail DOT com> <4A287EBF DOT 5020408 AT users DOT sourceforge DOT net> <f89dcc3a0906041922w7f95f86bg86cbef9c5ee14940 AT mail DOT gmail DOT com> <4A2886AD DOT 7000602 AT users DOT sourceforge DOT net> <4A288B1C DOT 7010104 AT gmail DOT com> <4A29193A DOT 8000004 AT gmail DOT com> <4A29561A DOT 1040008 AT gmail DOT com> <4A2A4678 DOT 3020906 AT gmail DOT com>
In-Reply-To: <4A2A4678.3020906@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019