X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A427327.2010509@gmail.com> Date: Wed, 24 Jun 2009 19:40:39 +0100 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: 1.7 winbase.h (ilockcmpexch) compile error References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Brian Ford wrote: > I'm trying to build Cygwin 1.7 from CVS to debug an ImageMagick problem on > server 2008 that causes an access violation in cygwin1.dll. Doe anyone > know the work around for this issue? > > g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) > > winsup/cygwin/winbase.h: In > member function `int pthread_mutex::_trylock(pthread*)': > winsup/cygwin/winbase.h:59: > warning: volatile register variables don't work as you might wish > winsup/cygwin/winbase.h:63: > error: can't find a register in class `AREG' while reloading `asm' > > I presume it is related to this change: > > http://cygwin.com/ml/cygwin-patches/2009-q2/msg00072.html > > but I haven't had time to dig into the full problem. Thanks for any help > available. Argh. Try hacking out the 'register' and '__asm ("%eax")' from the declaration of the 'ret' variable on line 59. Send me the generated thread.s file offlist after finishing the build with --save-temps in the CFLAGS and I'll check that the codegen is correct. (Haven't used 3.x to build the DLL in ages myself.) cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple