msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.3k stars 491 forks source link

msys/mingw32/mingw64 cli arguments parsed error. #3173

Open liudonghua123 opened 2 years ago

liudonghua123 commented 2 years ago

Describe the issue

I just tried to compile fba using visual studio tools according to https://www.fbalpha.com/compile/. And when I configured and run mingw32-make vc. I got some errors related to xxx is not recognized as an internal or external command. If I run the command in mingw32 directly, it will reproduce the errors. However, if I run in the cmd, it is ok.

image

image

image

If I run without cmd /c in mingw32 shell, another error is shown.

```shell Liu.D.H@DESKTOP-DELL MINGW32 /d/code/other/fbalpha $ "C:\Windows\System32\cmd.exe" /c "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx86\x86\cl.exe" /nologo /w /O2 /Ox /Oi /Ot /Oy /Ob2 /GF /Gs /Gy /GL /Zc:forScope /MT /EHsc /w44201 /w44127 /w44244 /w44505 /w44514 /w44611 /w44710 /w44799 /w44800 /D_USE_MATH_DEFINES /DBUILD_WIN32 /DUSE_SPEEDHACKS /DFILENAME=fba /DMMX=1 /DZLIB_WINAPI /DDECL_SPEC=__cdecl /D_7ZIP_PPMD_SUPPPORT /D_7ZIP_ST /D_UNICODE /DFASTCALL /DINCLUDE_7Z_SUPPORT /DINCLUDE_AVI_RECORDING /DLSB_FIRST /DINCLUDE_LIB_PNGH /DBUILD_X86_ASM /Isrc/burn /Isrc/burn/devices /Isrc/burn/snd /Isrc/burn/drv /Isrc/burn/drv/atari /Isrc/burn/drv/capcom /Isrc/burn/drv/cave /Isrc/burn/drv/coleco /Isrc/burn/drv/cps3 /Isrc/burn/drv/dataeast /Isrc/burn/drv/galaxian /Isrc/burn/drv/irem /Isrc/burn/drv/konami /Isrc/burn/drv/megadrive /Isrc/burn/drv/midway /Isrc/burn/drv/pce /Isrc/burn/drv/pst90s /Isrc/burn/drv/pre90s /Isrc/burn/drv/neogeo /Isrc/burn/drv/pgm /Isrc/burn/drv/psikyo /Isrc/burn/drv/sega /Isrc/burn/drv/sg1000 /Isrc/burn/drv/sms /Isrc/burn/drv/msx /Isrc/burn/drv/snes /Isrc/burn/drv/spectrum /Isrc/burn/drv/taito /Isrc/burn/drv/toaplan /Isrc/cpu /Isrc/cpu/a68k /Isrc/cpu/arm /Isrc/cpu/arm7 /Isrc/cpu/h6280 /Isrc/cpu/hd6309 /Isrc/cpu/i8039 /Isrc/cpu/i8x41 /Isrc/cpu/i8051 /Isrc/cpu/adsp2100 /Isrc/cpu/konami /Isrc/cpu/mips3 /Isrc/cpu/m68k /Isrc/cpu/m6502 /Isrc/cpu/m6800 /Isrc/cpu/m6805 /Isrc/cpu/m6809 /Isrc/cpu/nec /Isrc/cpu/pic16c5x /Isrc/cpu/s2650 /Isrc/cpu/tlcs90 /Isrc/cpu/sh2 /Isrc/cpu/tms32010 /Isrc/cpu/tms34010 /Isrc/cpu/upd7725 /Isrc/cpu/upd7810 /Isrc/cpu/v60 /Isrc/cpu/z80 /Isrc/cpu/z180 /Isrc/burner /Isrc/burner/win32 /Isrc/dep/kaillera/client /Isrc/dep/libs/libpng /Isrc/dep/libs/lib7z /Isrc/dep/libs/zlib /Isrc/intf /Isrc/intf/video /Isrc/intf/video/scalers /Isrc/intf/video/win32 /Isrc/intf/audio /Isrc/intf/audio/win32 /Isrc/intf/input /Isrc/intf/input/win32 /Isrc/intf/cd /Isrc/intf/cd/win32 /Isrc/intf/perfcount /Isrc/intf/perfcount/win32 /Isrc/dep/generated /Iobj/VC/3/dep/generated /Isrc/dep/mingw/include/directx9 /Isrc/dep/vc/include/xaudio2 /Isrc\dep\VC\include /DINLINE=__inline /c src/cpu/m68k/m68kcpu.c /Foobj/VC/3/cpu/m68k/m68kcpu.o 'apcom' is not recognized as an internal or external command, operable program or batch file. Liu.D.H@DESKTOP-DELL MINGW32 /d/code/other/fbalpha $ "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx86\x86\cl.exe" /nologo /w /O2 /Ox /Oi /Ot /Oy /Ob2 /GF /Gs /Gy /GL /Zc:forScope /MT /EHsc /w44201 /w44127 /w44244 /w44505 /w44514 /w44611 /w44710 /w44799 /w44800 /D_USE_MATH_DEFINES /DBUILD_WIN32 /DUSE_SPEEDHACKS /DFILENAME=fba /DMMX=1 /DZLIB_WINAPI /DDECL_SPEC=__cdecl /D_7ZIP_PPMD_SUPPPORT /D_7ZIP_ST /D_UNICODE /DFASTCALL /DINCLUDE_7Z_SUPPORT /DINCLUDE_AVI_RECORDING /DLSB_FIRST /DINCLUDE_LIB_PNGH /DBUILD_X86_ASM /Isrc/burn /Isrc/burn/devices /Isrc/burn/snd /Isrc/burn/drv /Isrc/burn/drv/atari /Isrc/burn/drv/capcom /Isrc/burn/drv/cave /Isrc/burn/drv/coleco /Isrc/burn/drv/cps3 /Isrc/burn/drv/dataeast /Isrc/burn/drv/galaxian /Isrc/burn/drv/irem /Isrc/burn/drv/konami /Isrc/burn/drv/megadrive /Isrc/burn/drv/midway /Isrc/burn/drv/pce /Isrc/burn/drv/pst90s /Isrc/burn/drv/pre90s /Isrc/burn/drv/neogeo /Isrc/burn/drv/pgm /Isrc/burn/drv/psikyo /Isrc/burn/drv/sega /Isrc/burn/drv/sg1000 /Isrc/burn/drv/sms /Isrc/burn/drv/msx /Isrc/burn/drv/snes /Isrc/burn/drv/spectrum /Isrc/burn/drv/taito /Isrc/burn/drv/toaplan /Isrc/cpu /Isrc/cpu/a68k /Isrc/cpu/arm /Isrc/cpu/arm7 /Isrc/cpu/h6280 /Isrc/cpu/hd6309 /Isrc/cpu/i8039 /Isrc/cpu/i8x41 /Isrc/cpu/i8051 /Isrc/cpu/adsp2100 /Isrc/cpu/konami /Isrc/cpu/mips3 /Isrc/cpu/m68k /Isrc/cpu/m6502 /Isrc/cpu/m6800 /Isrc/cpu/m6805 /Isrc/cpu/m6809 /Isrc/cpu/nec /Isrc/cpu/pic16c5x /Isrc/cpu/s2650 /Isrc/cpu/tlcs90 /Isrc/cpu/sh2 /Isrc/cpu/tms32010 /Isrc/cpu/tms34010 /Isrc/cpu/upd7725 /Isrc/cpu/upd7810 /Isrc/cpu/v60 /Isrc/cpu/z80 /Isrc/cpu/z180 /Isrc/burner /Isrc/burner/win32 /Isrc/dep/kaillera/client /Isrc/dep/libs/libpng /Isrc/dep/libs/lib7z /Isrc/dep/libs/zlib /Isrc/intf /Isrc/intf/video /Isrc/intf/video/scalers /Isrc/intf/video/win32 /Isrc/intf/audio /Isrc/intf/audio/win32 /Isrc/intf/input /Isrc/intf/input/win32 /Isrc/intf/cd /Isrc/intf/cd/win32 /Isrc/intf/perfcount /Isrc/intf/perfcount/win32 /Isrc/dep/generated /Iobj/VC/3/dep/generated /Isrc/dep/mingw/include/directx9 /Isrc/dep/vc/include/xaudio2 /Isrc\dep\VC\include /DINLINE=__inline /c src/cpu/m68k/m68kcpu.c /Foobj/VC/3/cpu/m68k/m68kcpu.o Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31629 for x86 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/nologo', object file assumed cl : Command line warning D9024 : unrecognized source file type 'W:/', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/O2', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Ox', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Oi', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Ot', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Oy', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Ob2', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/GF', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Gs', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Gy', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/GL', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/MT', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/EHsc', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/w44201', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/w44127', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/w44244', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/w44505', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/w44514', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/w44611', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/w44710', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/w44799', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/w44800', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/D_USE_MATH_DEFINES', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DBUILD_WIN32', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DUSE_SPEEDHACKS', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DFILENAME=fba', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DMMX=1', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DZLIB_WINAPI', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DDECL_SPEC=__cdecl', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/D_7ZIP_PPMD_SUPPPORT', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/D_7ZIP_ST', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/D_UNICODE', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DFASTCALL', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DINCLUDE_7Z_SUPPORT', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DINCLUDE_AVI_RECORDING', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DLSB_FIRST', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DINCLUDE_LIB_PNGH', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DBUILD_X86_ASM', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/devices', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/snd', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/atari', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/capcom', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/cave', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/coleco', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/cps3', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/dataeast', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/galaxian', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/irem', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/konami', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/megadrive', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/midway', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/pce', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/pst90s', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/pre90s', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/neogeo', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/pgm', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/psikyo', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/sega', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/sg1000', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/sms', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/msx', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/snes', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/spectrum', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/taito', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burn/drv/toaplan', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/a68k', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/arm', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/arm7', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/h6280', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/hd6309', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/i8039', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/i8x41', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/i8051', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/adsp2100', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/konami', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/mips3', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/m68k', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/m6502', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/m6800', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/m6805', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/m6809', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/nec', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/pic16c5x', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/s2650', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/tlcs90', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/sh2', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/tms32010', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/tms34010', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/upd7725', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/upd7810', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/v60', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/z80', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/cpu/z180', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burner', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/burner/win32', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/dep/kaillera/client', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/dep/libs/libpng', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/dep/libs/lib7z', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/dep/libs/zlib', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/video', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/video/scalers', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/video/win32', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/audio', object file assumed cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/audio/win32', object file assumed Microsoft (R) Incremental Linker Version 14.33.31629.0 Copyright (C) Microsoft Corporation. All rights reserved. /out:nologo.exe D:/msys64/nologo W:/ D:/msys64/O2 D:/msys64/Ox D:/msys64/Oi D:/msys64/Ot D:/msys64/Oy D:/msys64/Ob2 D:/msys64/GF D:/msys64/Gs D:/msys64/Gy D:/msys64/GL D:/msys64/MT D:/msys64/EHsc D:/msys64/w44201 D:/msys64/w44127 D:/msys64/w44244 D:/msys64/w44505 D:/msys64/w44514 D:/msys64/w44611 D:/msys64/w44710 D:/msys64/w44799 D:/msys64/w44800 D:/msys64/D_USE_MATH_DEFINES D:/msys64/DBUILD_WIN32 D:/msys64/DUSE_SPEEDHACKS D:/msys64/DFILENAME=fba D:/msys64/DMMX=1 D:/msys64/DZLIB_WINAPI D:/msys64/DDECL_SPEC=__cdecl D:/msys64/D_7ZIP_PPMD_SUPPPORT D:/msys64/D_7ZIP_ST D:/msys64/D_UNICODE D:/msys64/DFASTCALL D:/msys64/DINCLUDE_7Z_SUPPORT D:/msys64/DINCLUDE_AVI_RECORDING D:/msys64/DLSB_FIRST D:/msys64/DINCLUDE_LIB_PNGH D:/msys64/DBUILD_X86_ASM D:/msys64/Isrc/burn D:/msys64/Isrc/burn/devices D:/msys64/Isrc/burn/snd D:/msys64/Isrc/burn/drv D:/msys64/Isrc/burn/drv/atari D:/msys64/Isrc/burn/drv/capcom D:/msys64/Isrc/burn/drv/cave D:/msys64/Isrc/burn/drv/coleco D:/msys64/Isrc/burn/drv/cps3 D:/msys64/Isrc/burn/drv/dataeast D:/msys64/Isrc/burn/drv/galaxian D:/msys64/Isrc/burn/drv/irem D:/msys64/Isrc/burn/drv/konami D:/msys64/Isrc/burn/drv/megadrive D:/msys64/Isrc/burn/drv/midway D:/msys64/Isrc/burn/drv/pce D:/msys64/Isrc/burn/drv/pst90s D:/msys64/Isrc/burn/drv/pre90s D:/msys64/Isrc/burn/drv/neogeo D:/msys64/Isrc/burn/drv/pgm D:/msys64/Isrc/burn/drv/psikyo D:/msys64/Isrc/burn/drv/sega D:/msys64/Isrc/burn/drv/sg1000 D:/msys64/Isrc/burn/drv/sms D:/msys64/Isrc/burn/drv/msx D:/msys64/Isrc/burn/drv/snes D:/msys64/Isrc/burn/drv/spectrum D:/msys64/Isrc/burn/drv/taito D:/msys64/Isrc/burn/drv/toaplan D:/msys64/Isrc/cpu D:/msys64/Isrc/cpu/a68k D:/msys64/Isrc/cpu/arm D:/msys64/Isrc/cpu/arm7 D:/msys64/Isrc/cpu/h6280 D:/msys64/Isrc/cpu/hd6309 D:/msys64/Isrc/cpu/i8039 D:/msys64/Isrc/cpu/i8x41 D:/msys64/Isrc/cpu/i8051 D:/msys64/Isrc/cpu/adsp2100 D:/msys64/Isrc/cpu/konami D:/msys64/Isrc/cpu/mips3 D:/msys64/Isrc/cpu/m68k D:/msys64/Isrc/cpu/m6502 D:/msys64/Isrc/cpu/m6800 D:/msys64/Isrc/cpu/m6805 D:/msys64/Isrc/cpu/m6809 D:/msys64/Isrc/cpu/nec D:/msys64/Isrc/cpu/pic16c5x D:/msys64/Isrc/cpu/s2650 D:/msys64/Isrc/cpu/tlcs90 D:/msys64/Isrc/cpu/sh2 D:/msys64/Isrc/cpu/tms32010 D:/msys64/Isrc/cpu/tms34010 D:/msys64/Isrc/cpu/upd7725 D:/msys64/Isrc/cpu/upd7810 D:/msys64/Isrc/cpu/v60 D:/msys64/Isrc/cpu/z80 D:/msys64/Isrc/cpu/z180 D:/msys64/Isrc/burner D:/msys64/Isrc/burner/win32 D:/msys64/Isrc/dep/kaillera/client D:/msys64/Isrc/dep/libs/libpng D:/msys64/Isrc/dep/libs/lib7z D:/msys64/Isrc/dep/libs/zlib D:/msys64/Isrc/intf D:/msys64/Isrc/intf/video D:/msys64/Isrc/intf/video/scalers D:/msys64/Isrc/intf/video/win32 D:/msys64/Isrc/intf/audio D:/msys64/Isrc/intf/audio/win32 LINK : fatal error LNK1181: cannot open input file 'D:\msys64\nologo.obj' -bash: /Isrc/intf/input: No such file or directory Liu.D.H@DESKTOP-DELL MINGW32 /d/code/other/fbalpha $ ```

Steps to Reproduce the Problem

  1. follow the docs on https://www.fbalpha.com/compile/
  2. run mingw32-make vc
  3. try the failed command in mingw32 and cmd.

Additional Context: Operating System, Screenshots

If applicable, add screenshots to help explain your problem.

Biswa96 commented 2 years ago

mingw environment is not compatible with MSVC toolchain. Use CMD or Powershell for that.

liudonghua123 commented 2 years ago

I find if the cli arguments contain /cxxx or /kxxx when using "C:\Windows\System32\cmd.exe" /c in mingw environment, then xxx will interpret as a new command. And if the cli arguments contain any /xxx without using "C:\Windows\System32\cmd.exe" /c, then /xxx will interpret as some path.

liudonghua123 commented 2 years ago

mingw environment is not compatible with MSVC toolchain. Use CMD or Powershell for that.

But for some building systems, it will use the make within mingw environment and ms vc tools. And this build guide seemed to work on an old version of mingw environment. Maybe the newer mingw shell have changed something.

This issue also has some common in https://github.com/msys2/MSYS2-packages/issues/329#issuecomment-1231087741.

mati865 commented 2 years ago

For UNIX (and therefore Cygwin/MSYS2) leading / means root directory so to call cl inside MSYS2 you have to replace them with - so your command becomes: cl -nologo -w ....