[Bug 59184] New: Building wine inside cygwin64 gives: unrecognized command-line option '-municode'
http://bugs.winehq.org/show_bug.cgi?id=59184 Bug ID: 59184 Summary: Building wine inside cygwin64 gives: unrecognized command-line option '-municode' Product: Wine Version: 11.0-rc1 Hardware: x86-64 OS: other Status: NEW Severity: minor Priority: P2 Component: -unknown Assignee: wine-bugs@list.winehq.org Reporter: bernhardu@mailbox.org Tried for fun how far I would get building wine inside a cygwin running in wine, but should be visible with cygwin in windows too. configure alone took around 15 minutes. Running cygwin in wine will need a few patches, e.g. from this branch: https://gitlab.winehq.org/bernhardu/wine/-/commits/msys2-cygwin_2025-09-15_w... Below was with a more modified tree, but I hope that is not relevant for this bug report. Ignoring this option '-municode' in winegcc with the modification at the bottom makes the build succeed. A renamed winemine.exe (to avoid getting the builtin executable) is running and looks good to me. wine setup-x86_64_2.934.exe \ --quiet-mode \ --upgrade-also \ --delete-orphans \ --root 'C:\cygwin64' \ --site 'https://linux.rz.ruhr-uni-bochum.de/download/cygwin/' \ --local-package-dir 'C:\cygwin64-setup' \ --packages git,curl,jq,libcurl,openssh,cygrunsrv,more,grep,stat,cygpath,nano,flex,bison,gcc-core,gcc-g++,ccache,pkg-config,make,libfreetype-devel $ gcc --version gcc (GCC) 13.4.0 /cygdrive/z/home/user/source/wine/configure \ CC="ccache gcc" \ CXX="ccache g++" \ --enable-win64 make -j programs/winemine/winemine.exe tools/winegcc/winegcc.exe -o programs/winemine/winemine.exe --wine-objdir . -m64 -mno-cygwin -fasynchronous-unwind-tables \ -mwindows -municode programs/winemine/dialog.o programs/winemine/main.o \ programs/winemine/winemine.res dlls/user32/libuser32.a dlls/gdi32/libgdi32.a \ dlls/advapi32/libadvapi32.a dlls/comctl32/libcomctl32.a dlls/shell32/libshell32.delay.a \ dlls/winecrt0/libwinecrt0.a dlls/ucrtbase/libucrtbase.a dlls/kernel32/libkernel32.a \ dlls/ntdll/libntdll.a dlls/winecrtend/libwinecrtend.a gcc: error: unrecognized command-line option '-municode'; did you mean '-Wunicode'? --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -545 +545 @@ static struct strarray get_link_args( const char *output_name ) - if (is_unicode_app) strarray_add( &flags, "-municode" ); + if (is_unicode_app && target.platform != PLATFORM_CYGWIN) strarray_add( &flags, "-municode" ); Related commits, especially the last one: https://gitlab.winehq.org/wine/wine/-/commit/e3bf6e5e77377ef4d384b7d0c0bee12... https://gitlab.winehq.org/wine/wine/-/commit/2064181c1f120e8d537952b3eeed5ab... https://gitlab.winehq.org/wine/wine/-/commit/44839493ae6a99d0e3aa0b2c22a83e1... -- 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.
participants (1)
-
WineHQ Bugzilla