https://bugs.winehq.org/show_bug.cgi?id=48113
--- Comment #11 from Saulius K. saulius2@gmail.com --- (This is continuation from the bug 52607)
After applying the fix [1] inspired by the earlier one from Alexandre [2], I get the same error as Carlo:
--- snip --- tools/winegcc/winegcc.exe -o dlls/ntdll/ntdll.dll --wine-objdir . -Wl,--disable-stdcall-fixup \ -fasynchronous-unwind-tables -shared dlls/ntdll/ntdll.spec -nodefaultlibs \ -Wl,--image-base,0x7bc00000 -mno-cygwin dlls/ntdll/actctx.o dlls/ntdll/atom.o dlls/ntdll/crypt.o \ dlls/ntdll/debugbuffer.o dlls/ntdll/env.o dlls/ntdll/error.o dlls/ntdll/exception.o \ dlls/ntdll/handletable.o dlls/ntdll/heap.o dlls/ntdll/large_int.o dlls/ntdll/loader.o \ dlls/ntdll/locale.o dlls/ntdll/math.o dlls/ntdll/misc.o dlls/ntdll/path.o dlls/ntdll/printf.o \ dlls/ntdll/process.o dlls/ntdll/reg.o dlls/ntdll/relay.o dlls/ntdll/resource.o dlls/ntdll/rtl.o \ dlls/ntdll/rtlbitmap.o dlls/ntdll/rtlstr.o dlls/ntdll/sec.o dlls/ntdll/signal_arm.o \ dlls/ntdll/signal_arm64.o dlls/ntdll/signal_i386.o dlls/ntdll/signal_x86_64.o dlls/ntdll/string.o \ dlls/ntdll/sync.o dlls/ntdll/thread.o dlls/ntdll/threadpool.o dlls/ntdll/time.o \ dlls/ntdll/version.o dlls/ntdll/wcstring.o dlls/ntdll/version.res dlls/winecrt0/libwinecrt0.a \
tools/winegcc/winegcc.exe -o programs/arp/arp.exe --wine-objdir . -Wl,--disable-stdcall-fixup \ -fasynchronous-unwind-tables -mconsole -municode -mno-cygwin programs/arp/main.o \ dlls/winecrt0/libwinecrt0.a dlls/ucrtbase/libucrtbase.a dlls/kernel32/libkernel32.a \ dlls/ntdll/libntdll.a gcc: error: unrecognized command-line option ‘-municode’ winegcc: /usr/bin/gcc.exe failed make: *** [Makefile:156236: programs/arp/arp.exe] Error 2 --- snip ---
As `-municode` gets passed through to gcc, it's a bug in winegcc judging by Alexandre in comment #3 circa 2019-11-16:
(In reply to Carlo Bramini from comment #2)
Perhaps I'm doing something wrong, but this is what I get if I try to call gcc with -mno-cygwin option.
You shouldn't do that. The option is meant for winegcc. If it gets passed through to gcc that's a winegcc bug.
Ping Alexandre.
[1]https://www.winehq.org/pipermail/wine-devel/2022-February/209575.html [2]https://source.winehq.org/git/wine.git/commitdiff/49ee0f58e8e1f993c2fb91c088...