MSYS2-packages icon indicating copy to clipboard operation
MSYS2-packages copied to clipboard

Request: Ability to disable automatic path mangling of command line arguments and environment variables

Open nickhutchinson opened this issue 9 years ago • 5 comments

I'm finding MSYS2's automatic mangling of environment variables1 2 when running native Win32 applications to be quite problematic. For example, any environment variable whose value begins with a forward slash appears to be interpreted as a UNIX path and is rewritten to be prefixed with "c:/msys64" when accessed by a Win32 app.

Relying on heuristics like this seems really error prone, so I'd like to request the ability to disable this behaviour globally.

Steps to reproduce:

# In a MSYS2 shell (Start > MSYS2 64bit > MSYS2 Shell)
$ export my_var=/foo
$ echo $my_var
/foo

$ cmd
$ echo %my_var%
c:/msys64/foo

1: http://sourceforge.net/p/msys2/wiki/How%20does%20MSYS2%20differ%20from%20Cygwin/ 2: http://sourceforge.net/p/msys2/wiki/Porting/

nickhutchinson avatar Aug 17 '15 19:08 nickhutchinson

It's a heuristic, of course we can't know which things are paths and which aren't. Disabling it globally will get you a fairly useless MSYS2. In fact, you may as well use Cygwin in that case. But this isn't a reason not to provide this capability as there may be some extreme edge cases when such a blunt tool is useful.

mingwandroid avatar Aug 17 '15 20:08 mingwandroid

In the meantime, many Windows executables can use either - or / as the first character of a switch/option.

mingwandroid avatar Aug 17 '15 22:08 mingwandroid

I have a similar problem running cl of ms build tools in mingw32-make when I try to build fbalpha, the error line shown is https://github.com/barry65536/FBAlpha/blob/416948158d88ba17f87813419ddc3c1209ef68c0/makefile.vc#L456. I printed the executed command, tried to run it in the cmd directly and it was ok. So the problem maybe the execution shell is not cmd but bash in msys2/mingw32. I also add echo $$SHELL in makefile which it printed /usr/bin/bash.

I tried to executed cl /h in mingw32 shell, /h seemed interpreted different then cmd.

cl command run in the cmd shell:

Click here to see the output
D:\code\other\FBAlpha>C:\msys64\mingw32\bin\mingw32-make.exe vc -j8
Making normal build...

build_details.cpp
Generating code
Finished generating code
Compiling src/burner/win32/systeminfo.cpp...
Compiling src/burner/win32/about.cpp...
Compiling resource file... resource.rc
systeminfo.cpp
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation.  All rights reserved.

about.cpp
Compiling Musashi MC680x0 core...
cl /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 /DBUILD_WIN32 /DUSE_SPEEDHACKS /DFILENAME=fba /DMMX=1 /DZLIB_WINAPI /DDECL_SPEC=__cdecl /D_7ZIP_PPMD_SUPPPORT /D_UNICODE /DFASTCALL /DINCLUDE_7Z_SUPPORT /DINCLUDE_AVI_RECORDING /DLSB_FIRST /DINCLUDE_LIB_PNGH /DBUILD_X86_ASM /DUSE_SEGOE /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 /IsrcdepVCinclude /DINLINE=__inline src/cpu/m68k/m68kmake.c /Foobj/VC/3/cpu/m68k/ /Feobj/VC/3/cpu/m68k/m68kmake.exe /link /NOLOGO /INCREMENTAL:NO /MACHINE:X86 /LIBPATH:srcVClib /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcd.lib /LTCG:STATUS /SUBSYSTEM:CONSOLE
Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31629 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '/MACHINE:X86'
cl : Command line warning D9002 : ignoring unknown option '/LIBPATH:srcVClib'
cl : Command line warning D9002 : ignoring unknown option '/NODEFAULTLIB:libc.lib'
cl : Command line warning D9002 : ignoring unknown option '/NODEFAULTLIB:libcd.lib'
cl : Command line warning D9002 : ignoring unknown option '/LTCG:STATUS'
cl : Command line warning D9002 : ignoring unknown option '/SUBSYSTEM:CONSOLE'
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/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_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/DUSE_SEGOE', 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
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/input', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/input/win32', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/cd', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/cd/win32', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/perfcount', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/perfcount/win32', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/dep/generated', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Iobj/VC/3/dep/generated', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/IsrcdepVCinclude', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DINLINE=__inline', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Foobj/VC/3/cpu/m68k/', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Feobj/VC/3/cpu/m68k/m68kmake.exe', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/link', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/NOLOGO', object file assumed
m68kmake.c
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/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_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/DUSE_SEGOE
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
D:/msys64/Isrc/intf/input
D:/msys64/Isrc/intf/input/win32
D:/msys64/Isrc/intf/cd
D:/msys64/Isrc/intf/cd/win32
D:/msys64/Isrc/intf/perfcount
D:/msys64/Isrc/intf/perfcount/win32
D:/msys64/Isrc/dep/generated
D:/msys64/Iobj/VC/3/dep/generated
D:/msys64/IsrcdepVCinclude
D:/msys64/DINLINE=__inline
m68kmake.obj
D:/msys64/Foobj/VC/3/cpu/m68k/
D:/msys64/Feobj/VC/3/cpu/m68k/m68kmake.exe
D:/msys64/link
D:/msys64/NOLOGO
LINK : fatal error LNK1181: cannot open input file 'D:\msys64\nologo.obj'
mingw32-make[2]: *** [makefile.vc:457: obj/VC/3/cpu/m68k/m68kmake.exe] Error 2
mingw32-make[1]: *** [makefile.vc:302: all] Error 2
mingw32-make: *** [makefile:93: vc] Error 2

D:\code\other\FBAlpha>cl /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 /DBUILD_WIN32 /DUSE_SPEEDHACKS /DFILENAME=fba /DMMX=1 /DZLIB_WINAPI /DDECL_SPEC=__cdecl /D_7ZIP_PPMD_SUPPPORT /D_UNICODE /DFASTCALL /DINCLUDE_7Z_SUPPORT /DINCLUDE_AVI_RECORDING /DLSB_FIRST /DINCLUDE_LIB_PNGH /DBUILD_X86_ASM /DUSE_SEGOE /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 /IsrcdepVCinclude /DINLINE=__inline src/cpu/m68k/m68kmake.c /Foobj/VC/3/cpu/m68k/ /Feobj/VC/3/cpu/m68k/m68kmake.exe /link /NOLOGO /INCREMENTAL:NO /MACHINE:X86 /LIBPATH:srcVClib /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcd.lib /LTCG:STATUS /SUBSYSTEM:CONSOLE
m68kmake.c
Generating code
  100%
Finished generating code

D:\code\other\FBAlpha>where cl
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx86\x86\cl.exe

D:\code\other\FBAlpha>"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx86\x86\cl.exe" /h
Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31629 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '/h'
cl : Command line error D8003 : missing source filename

D:\code\other\FBAlpha>"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx86\x86\cl.exe" -h
Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31629 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '-h'
cl : Command line error D8003 : missing source filename

D:\code\other\FBAlpha>"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx86\x86\cl.exe"
Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31629 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

D:\code\other\FBAlpha>

cl command run in mingw32 shell:

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" /w /O2 /Ox /Oi /Ot /Oy /Ob2 /GF /Gs /Gy /GL /Zc:forScope /MT /EHsc /w44201 /w44127 /w44244 /w44505 /w44514 /w44611 /w44710 /w44799 /w44800 /DBUILD_WIN32 /DUSE_SPEEDHACKS /DFILENAME=fba /DMMX=1 /DZLIB_WINAPI /DDECL_SPEC=__cdecl /D_7ZIP_PPMD_SUPPPORT /D_UNICODE /DFASTCALL /DINCLUDE_7Z_SUPPORT /DINCLUDE_AVI_RECORDING /DLSB_FIRST /DINCLUDE_LIB_PNGH /DBUILD_X86_ASM /DUSE_SEGOE /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 /IsrcdepVCinclude /DINLINE=__inline src/cpu/m68k/m68kmake.c /Foobj/VC/3/cpu/m68k/ /Feobj/VC/3/cpu/m68k/m68kmake.exe /link /INCREMENTAL:NO /MACHINE:X86 /LIBPATH:srcVClib /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcd.lib /LTCG:STATUS /SUBSYSTEM:CONSOLE      Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31629 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '/MACHINE:X86'
cl : Command line warning D9002 : ignoring unknown option '/LIBPATH:srcVClib'
cl : Command line warning D9002 : ignoring unknown option '/NODEFAULTLIB:libc.lib'
cl : Command line warning D9002 : ignoring unknown option '/NODEFAULTLIB:libcd.lib'
cl : Command line warning D9002 : ignoring unknown option '/LTCG:STATUS'
cl : Command line warning D9002 : ignoring unknown option '/SUBSYSTEM:CONSOLE'
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/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_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/DUSE_SEGOE', 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
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/input', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/input/win32', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/cd', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/cd/win32', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/perfcount', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/intf/perfcount/win32', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Isrc/dep/generated', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Iobj/VC/3/dep/generated', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/IsrcdepVCinclude', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/DINLINE=__inline', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Foobj/VC/3/cpu/m68k/', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/Feobj/VC/3/cpu/m68k/m68kmake.exe', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'D:/msys64/link', object file assumed
m68kmake.c
Microsoft (R) Incremental Linker Version 14.33.31629.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:.exe
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/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_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/DUSE_SEGOE
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
D:/msys64/Isrc/intf/input
D:/msys64/Isrc/intf/input/win32
D:/msys64/Isrc/intf/cd
D:/msys64/Isrc/intf/cd/win32
D:/msys64/Isrc/intf/perfcount
D:/msys64/Isrc/intf/perfcount/win32
D:/msys64/Isrc/dep/generated
D:/msys64/Iobj/VC/3/dep/generated
D:/msys64/IsrcdepVCinclude
D:/msys64/DINLINE=__inline
m68kmake.obj
D:/msys64/Foobj/VC/3/cpu/m68k/
D:/msys64/Feobj/VC/3/cpu/m68k/m68kmake.exe
D:/msys64/link
LINK : fatal error LNK1181: cannot open input file 'W:\.obj'

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" /h
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 'H:/', object file assumed
Microsoft (R) Incremental Linker Version 14.33.31629.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:.exe
H:/
LINK : fatal error LNK1181: cannot open input file 'H:\.obj'

Liu.D.H@DESKTOP-DELL MINGW32 /d/code/other/fbalpha

liudonghua123 avatar Aug 30 '22 02:08 liudonghua123

I tried to executed cl /h in mingw32 shell

Why?

Biswa96 avatar Aug 30 '22 02:08 Biswa96

I tried to executed cl /h in mingw32 shell

Why?

Because the interpretation of cl /h in cmd and mingw32 is quite different. /h in mingw32 shell seemed expanded or modified. If /h arguments passed as is, the make process would no problems.

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" /h
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 'H:/', object file assumed
Microsoft (R) Incremental Linker Version 14.33.31629.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:.exe
H:/
LINK : fatal error LNK1181: cannot open input file 'H:\.obj'

Liu.D.H@DESKTOP-DELL MINGW32 /d/code/other/fbalpha
D:\code\other\FBAlpha>"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx86\x86\cl.exe" /h
Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31629 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '/h'
cl : Command line error D8003 : missing source filename

D:\code\other\FBAlpha>

Maybe the commands in makefile should escape /. But how to do it automatically?

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" /h
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 'H:/', object file assumed
Microsoft (R) Incremental Linker Version 14.33.31629.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:.exe
H:/
LINK : fatal error LNK1181: cannot open input file 'H:\.obj'

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" //h
Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31629 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '/h'
cl : Command line error D8003 : missing source filename

Liu.D.H@DESKTOP-DELL MINGW32 /d/code/other/fbalpha
$

liudonghua123 avatar Aug 30 '22 03:08 liudonghua123