This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[OT] Re: 1.5.18-1: undefined reference to `ffs' in mno-cygwin mode


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]