X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: <49788A91 DOT 5070803 AT sbcglobal DOT net> Date: Thu, 22 Jan 2009 17:18:23 +0000 Message-ID: <2ca21dcc0901220918vaf7a317i1d0b29cd27cebd59@mail.gmail.com> Subject: [OT] Re: 1.5.18-1: undefined reference to `ffs' in mno-cygwin mode From: Dave Korn To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Dmitry Smirnov wrote: >> While this isn't a Cygwin issue (you're using '-mno-cygwin'), > Well, I never installed mingw separately. Is was a part of Cygwin > installation, so I supposed it has some relation. :-) Well, we give you a MinGW cross-compiler in the -mno-cygwin mode of gcc ... but we don't support MinGW programs that you write with it! > I'll try to ask mingw guys. They're bound to know better than we do here what's the best way to fix it. >> This search: >> http://www.google.com/search?q=ffs+qemu >> leads to some links that look promising. > > First one (http://qemu-forum.ipi.fi/viewtopic.php?f=5&t=4802) is mine. > No replies yet. Some others were read before these posts. I did not > find remedy. > > Thanks for bultin link, I'll investigate it... Talk to the MinGW guys, but the answer could be as simple as adding #if defined (__GNUC__) && !defined (__OPTIMIZE__) #define ffs(x) __builtin_ffs ((x)) #endif ... to some appropriate header file. cheers, DaveK -- 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/