[Bug 52338] Cygwin compilation fails: undefined reference to `_imp____acrt_iob_func' in winecrt0/debug.c

WineHQ Bugzilla wine-bugs at winehq.org
Tue Jan 4 16:52:16 CST 2022


https://bugs.winehq.org/show_bug.cgi?id=52338

Jacek Caban <jacek at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
                 CC|                            |jacek at codeweavers.com

--- Comment #2 from Jacek Caban <jacek at codeweavers.com> ---
It may seem weird, but I don't see a way to support -mcygwin on Cygwin :)

winecrt0 is linked to both modules converted to PE files and not converted
ones. On PE targets, it means that those debug functions get linked to all
modules. They need to get stderr, which depends on crt used. In -mcygwin case
we should use Cygwin libc, but it was earlier built with msvcrt definitions. We
get away with it on mingw because mingw crt is compatible with msvcrt in this
case.

I don't see an easy way around it, you may disable problematic modules with
configure options for now. The problem will not exist once we convert remaining
modules to PE files.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list