finalburnneo / FBNeo

FinalBurn Neo - We are Team FBNeo.
http://neo-source.com
Other
939 stars 368 forks source link

error: ‘_tfopen’ was not declared in this scope; did you mean ‘fopen’? #1157

Closed liudonghua123 closed 2 years ago

liudonghua123 commented 2 years ago

Hi, I tried to build locally according to the steps on https://github.com/finalburnneo/FBNeo/blob/master/.github/workflows/nightly-release.yml. But it failed with some errors like error: '_tfopen' was not declared in this scope; did you mean ‘fopen’?

Liu.D.H@DESKTOP-DELL MSYS /d/code/other/FBNeo
$ make -j$(nproc) mingw SKIPDEPEND=1 RELEASEBUILD=1
Making normal build...

Compiling src/burn/drv/nes/d_nes.cpp...
Compiling src/burn/drv/sega/d_hangon.cpp...
Compiling src/burn/drv/sega/d_outrun.cpp...
Compiling src/burn/drv/sega/d_segac2.cpp...
Compiling src/burn/drv/sega/d_segae.cpp...
Compiling src/burn/drv/sega/d_segag80v.cpp...
Compiling src/burn/drv/sega/d_segas32.cpp...
Compiling src/burn/drv/sega/d_suprloco.cpp...
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/nes/d_nes.cpp:4:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/sega/sys16.h:1,
                 from src/burn/drv/sega/d_outrun.cpp:1:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/sega/sys16.h:1,
                 from src/burn/drv/sega/d_hangon.cpp:1:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/sega/d_segac2.cpp:12:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/sega/d_segae.cpp:3:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/sega/d_segag80v.cpp:10:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/sega/d_suprloco.cpp:4:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/sega/d_segas32.cpp:17:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
src/burn/drv/nes/d_nes.cpp: In function ‘INT32 filediff(TCHAR*, TCHAR*)’:
src/burn/drv/nes/d_nes.cpp:1004:15: error: ‘_tfopen’ was not declared in this scope; did you mean ‘fopen’?
 1004 |         fp1 = _tfopen(file1, _T("rb"));
      |               ^~~~~~~
      |               fopen
src/burn/drv/nes/d_nes.cpp: In function ‘INT32 ips_make(UINT8*, UINT8*, INT32, TCHAR*, TCHAR*)’:
src/burn/drv/nes/d_nes.cpp:1075:9: error: ‘_stprintf’ was not declared in this scope; did you mean ‘vswprintf’?
 1075 |         _stprintf(ips_path_fn, _T("%s%s"), ips_dir, ips_fn);
      |         ^~~~~~~~~
      |         vswprintf
src/burn/drv/nes/d_nes.cpp:1079:19: error: ‘_tfopen’ was not declared in this scope; did you mean ‘fopen’?
 1079 |         FILE *f = _tfopen(ips_path_fn_temp, _T("wb"));
      |                   ^~~~~~~
      |                   fopen
src/burn/drv/nes/d_nes.cpp:1174:33: error: ‘_wunlink’ was not declared in this scope; did you mean ‘unlink’?
 1174 |                                 _wunlink(szBackupNameFrom); // make sure there is only MAX_BACKUPS :)
      |                                 ^~~~~~~~
      |                                 unlink
src/burn/drv/nes/d_nes.cpp:1176:33: error: ‘_wrename’ was not declared in this scope; did you mean ‘rename’?
 1176 |                                 _wrename(szBackupNameFrom, szBackupNameTo); //derp.ips.backup0 -> derp.ips.backup1
      |                                 ^~~~~~~~
      |                                 rename
src/burn/drv/nes/d_nes.cpp:1183:26: error: ‘_wrename’ was not declared in this scope; did you mean ‘rename’?
 1183 |                 int rc = _wrename(ips_path_fn_temp, ips_path_fn);
      |                          ^~~~~~~~
      |                          rename
src/burn/drv/nes/d_nes.cpp: In function ‘INT32 ips_patch(UINT8*, INT32, TCHAR*)’:
src/burn/drv/nes/d_nes.cpp:1205:19: error: ‘_tfopen’ was not declared in this scope; did you mean ‘fopen’?
 1205 |         FILE *f = _tfopen(ips_fn, _T("rb"));
      |                   ^~~~~~~
      |                   fopen
src/burn/drv/nes/d_nes.cpp: In function ‘INT32 fds_load(UINT8*, UINT32, UINT32)’:
src/burn/drv/nes/d_nes.cpp:1282:9: error: ‘_stprintf’ was not declared in this scope; did you mean ‘vswprintf’?
 1282 |         _stprintf(szFilename, _T("%s%s.ips"), szAppEEPROMPath, BurnDrvGetText(DRV_NAME));
      |         ^~~~~~~~~
      |         vswprintf
Compiling src/burn/drv/sega/d_sys1.cpp...
Compiling src/burn/drv/sega/d_sys16a.cpp...
src/burn/drv/nes/d_nes.cpp: In function ‘INT32 NESExit()’:
src/burn/drv/nes/d_nes.cpp:10943:17: error: ‘_stprintf’ was not declared in this scope; did you mean ‘vswprintf’?
10943 |                 _stprintf(fds_saves_patch, _T("%s.ips"), BurnDrvGetText(DRV_NAME));
      |                 ^~~~~~~~~
      |                 vswprintf
Compiling src/burn/drv/sega/d_sys16b.cpp...
Compiling src/burn/drv/sega/d_sys18.cpp...
Compiling src/burn/drv/sega/d_sys24.cpp...
make[1]: *** [makefile.mingw:739: d_nes.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/sega/sys16.h:1,
                 from src/burn/drv/sega/d_sys16a.cpp:1:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/sega/d_sys1.cpp:7:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/sega/sys16.h:1,
                 from src/burn/drv/sega/d_sys16b.cpp:1:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/sega/sys16.h:1,
                 from src/burn/drv/sega/d_sys18.cpp:1:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
In file included from src/burn/burnint.h:15,
                 from src/burn/tiles_generic.h:1,
                 from src/burn/drv/sega/d_sys24.cpp:8:
src/burn/burn.h:13: warning: "__cdecl" redefined
   13 |  #define __cdecl
      |
<built-in>: note: this is the location of the previous definition
make: *** [makefile:96: mingw] Error 2

Liu.D.H@DESKTOP-DELL MSYS /d/code/other/FBNeo
$

Any ideas about this?

barbudreadmon commented 2 years ago

As specified in the workflow, there are a number of dependencies you need to install before running make -j$(nproc) mingw SKIPDEPEND=1 RELEASEBUILD=1, and you need to use mingw. See https://github.com/finalburnneo/FBNeo/blob/master/.github/workflows/nightly-release.yml#L83-L88 You might also need to do other steps, like downgrading pthread and the likes.

liudonghua123 commented 2 years ago

Yes, I have installed the dependencies via pacman -S msys2-devel base-devel binutils mingw-w64-i686-toolchain mingw-w64-i686-nasm zip wget, and downgraded pthread via pacman -U --noconfirm mingw-w64-i686-winpthreads-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz mingw-w64-i686-libwinpthread-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz. And I also have vs 2019/2022 community installed.

logs ```shell Liu.D.H@DESKTOP-DELL MSYS /d/code/other/FBNeo $ pacman -S --needed msys2-devel base-devel binutils mingw-w64-i686-toolchain mingw-w64-i686-nasm zip wget warning: gcc-11.3.0-2 is up to date -- skipping warning: base-devel-2022.01-2 is up to date -- skipping warning: binutils-2.37-5 is up to date -- skipping warning: mingw-w64-i686-binutils-2.39-2 is up to date -- skipping warning: mingw-w64-i686-crt-git-10.0.0.r72.g1dd2a4993-1 is up to date -- skipping warning: mingw-w64-i686-gcc-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-gcc-ada-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-gcc-fortran-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-gcc-libgfortran-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-gcc-libs-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-gcc-objc-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-gdb-12.1-3 is up to date -- skipping warning: mingw-w64-i686-gdb-multiarch-12.1-3 is up to date -- skipping warning: mingw-w64-i686-headers-git-10.0.0.r72.g1dd2a4993-1 is up to date -- skipping warning: mingw-w64-i686-libgccjit-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-libmangle-git-10.0.0.r72.g1dd2a4993-1 is up to date -- skipping warning: mingw-w64-i686-make-4.3-1 is up to date -- skipping warning: mingw-w64-i686-pkgconf-1.8.0-2 is up to date -- skipping warning: mingw-w64-i686-tools-git-10.0.0.r72.g1dd2a4993-1 is up to date -- skipping warning: mingw-w64-i686-winstorecompat-git-10.0.0.r72.g1dd2a4993-1 is up to date -- skipping :: There are 2 members in group mingw-w64-i686-toolchain: :: Repository mingw32 1) mingw-w64-i686-libwinpthread-git 2) mingw-w64-i686-winpthreads-git Enter a selection (default=all): warning: mingw-w64-i686-nasm-2.15.05-1 is up to date -- skipping warning: zip-3.0-3 is up to date -- skipping warning: wget-1.21.3-1 is up to date -- skipping resolving dependencies... looking for conflicting packages... Packages (2) mingw-w64-i686-libwinpthread-git-10.0.0.r72.g1dd2a4993-1 mingw-w64-i686-winpthreads-git-10.0.0.r72.g1dd2a4993-1 Total Installed Size: 0.46 MiB Net Upgrade Size: 0.02 MiB :: Proceed with installation? [Y/n] (2/2) checking keys in keyring [###############################] 100% (2/2) checking package integrity [###############################] 100% (2/2) loading package files [###############################] 100% (2/2) checking for file conflicts [###############################] 100% (2/2) checking available disk space [###############################] 100% :: Processing package changes... (1/2) upgrading mingw-w64-i686-libwinpthread-git [###############################] 100% (2/2) upgrading mingw-w64-i686-winpthreads-git [###############################] 100% Liu.D.H@DESKTOP-DELL MSYS /d/code/other/FBNeo $ pacman -U --noconfirm ~/mingw-w64-i686-winpthreads-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz ~/mingw-w64-i686-libwinpthread-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz loading packages... warning: downgrading package mingw-w64-i686-winpthreads-git (10.0.0.r72.g1dd2a4993-1 => 6.0.0.5203.9afaf1c2-1) warning: downgrading package mingw-w64-i686-libwinpthread-git (10.0.0.r72.g1dd2a4993-1 => 6.0.0.5203.9afaf1c2-1) resolving dependencies... looking for conflicting packages... Packages (2) mingw-w64-i686-libwinpthread-git-6.0.0.5203.9afaf1c2-1 mingw-w64-i686-winpthreads-git-6.0.0.5203.9afaf1c2-1 Total Installed Size: 0.44 MiB Net Upgrade Size: -0.02 MiB :: Proceed with installation? [Y/n] (2/2) checking keys in keyring [###############################] 100% (2/2) checking package integrity [###############################] 100% (2/2) loading package files [###############################] 100% (2/2) checking for file conflicts [###############################] 100% (2/2) checking available disk space [###############################] 100% :: Processing package changes... (1/2) downgrading mingw-w64-i686-libwinpthread-git [###############################] 100% (2/2) downgrading mingw-w64-i686-winpthreads-git [###############################] 100% Liu.D.H@DESKTOP-DELL MSYS /d/code/other/FBNeo $ make -j$(nproc) mingw SKIPDEPEND=1 RELEASEBUILD=1 Making normal build... Compiling src/burn/drv/nes/d_nes.cpp... Compiling src/burn/drv/taito/d_exzisus.cpp... Compiling src/burn/drv/taito/d_flstory.cpp... Compiling src/burn/drv/taito/d_galastrm.cpp... Compiling src/burn/drv/taito/d_gladiatr.cpp... Compiling src/burn/drv/taito/d_groundfx.cpp... Compiling src/burn/drv/taito/d_gunbuster.cpp... Compiling src/burn/drv/taito/d_jollyjgr.cpp... In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_exzisus.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/nes/d_nes.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_gladiatr.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition : note: this is the location of the previous definition In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_groundfx.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_gunbuster.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_jollyjgr.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_flstory.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_galastrm.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition src/burn/drv/nes/d_nes.cpp: In function ‘INT32 filediff(TCHAR*, TCHAR*)’: src/burn/drv/nes/d_nes.cpp:1004:15: error: ‘_tfopen’ was not declared in this scope; did you mean ‘fopen’? 1004 | fp1 = _tfopen(file1, _T("rb")); | ^~~~~~~ | fopen src/burn/drv/nes/d_nes.cpp: In function ‘INT32 ips_make(UINT8*, UINT8*, INT32, TCHAR*, TCHAR*)’: src/burn/drv/nes/d_nes.cpp:1075:9: error: ‘_stprintf’ was not declared in this scope; did you mean ‘vswprintf’? 1075 | _stprintf(ips_path_fn, _T("%s%s"), ips_dir, ips_fn); | ^~~~~~~~~ | vswprintf src/burn/drv/nes/d_nes.cpp:1079:19: error: ‘_tfopen’ was not declared in this scope; did you mean ‘fopen’? 1079 | FILE *f = _tfopen(ips_path_fn_temp, _T("wb")); | ^~~~~~~ | fopen src/burn/drv/nes/d_nes.cpp:1174:33: error: ‘_wunlink’ was not declared in this scope; did you mean ‘unlink’? 1174 | _wunlink(szBackupNameFrom); // make sure there is only MAX_BACKUPS :) | ^~~~~~~~ | unlink src/burn/drv/nes/d_nes.cpp:1176:33: error: ‘_wrename’ was not declared in this scope; did you mean ‘rename’? 1176 | _wrename(szBackupNameFrom, szBackupNameTo); //derp.ips.backup0 -> derp.ips.backup1 | ^~~~~~~~ | rename src/burn/drv/nes/d_nes.cpp:1183:26: error: ‘_wrename’ was not declared in this scope; did you mean ‘rename’? 1183 | int rc = _wrename(ips_path_fn_temp, ips_path_fn); | ^~~~~~~~ | rename src/burn/drv/nes/d_nes.cpp: In function ‘INT32 ips_patch(UINT8*, INT32, TCHAR*)’: src/burn/drv/nes/d_nes.cpp:1205:19: error: ‘_tfopen’ was not declared in this scope; did you mean ‘fopen’? 1205 | FILE *f = _tfopen(ips_fn, _T("rb")); | ^~~~~~~ | fopen src/burn/drv/nes/d_nes.cpp: In function ‘INT32 fds_load(UINT8*, UINT32, UINT32)’: src/burn/drv/nes/d_nes.cpp:1282:9: error: ‘_stprintf’ was not declared in this scope; did you mean ‘vswprintf’? 1282 | _stprintf(szFilename, _T("%s%s.ips"), szAppEEPROMPath, BurnDrvGetText(DRV_NAME)); | ^~~~~~~~~ | vswprintf src/burn/drv/nes/d_nes.cpp: In function ‘INT32 NESExit()’: src/burn/drv/nes/d_nes.cpp:10943:17: error: ‘_stprintf’ was not declared in this scope; did you mean ‘vswprintf’? 10943 | _stprintf(fds_saves_patch, _T("%s.ips"), BurnDrvGetText(DRV_NAME)); | ^~~~~~~~~ | vswprintf Compiling src/burn/drv/taito/d_ksayakyu.cpp... Compiling src/burn/drv/taito/d_lkage.cpp... Compiling src/burn/drv/taito/d_lsasquad.cpp... Compiling src/burn/drv/taito/d_mexico86.cpp... Compiling src/burn/drv/taito/d_minivdr.cpp... Compiling src/burn/drv/taito/d_msisaac.cpp... Compiling src/burn/drv/taito/d_nycaptor.cpp... make[1]: *** [makefile.mingw:740: d_nes.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_ksayakyu.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_lsasquad.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_lkage.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_mexico86.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_minivdr.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_msisaac.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition In file included from src/burn/burnint.h:15, from src/burn/tiles_generic.h:1, from src/burn/drv/taito/d_nycaptor.cpp:4: src/burn/burn.h:13: warning: "__cdecl" redefined 13 | #define __cdecl | : note: this is the location of the previous definition make: *** [makefile:96: mingw] Error 2 Liu.D.H@DESKTOP-DELL MSYS /d/code/other/FBNeo $ ```
barbudreadmon commented 2 years ago

As i said, you also need to use mingw (as "msystem" in msys)

liudonghua123 commented 2 years ago

Thanks, I tried to execute make -j$(nproc) mingw SKIPDEPEND=1 RELEASEBUILD=1 in mingw32 shell. It seemed ok now. I see the default shell is msys2, not mingw32,

https://github.com/finalburnneo/FBNeo/blob/5f2fb4b8302d071ac5d9017f7ba15af28f2c9872/.github/workflows/nightly-release.yml#L29-L31

and the build steps do not change the default shell.

https://github.com/finalburnneo/FBNeo/blob/5f2fb4b8302d071ac5d9017f7ba15af28f2c9872/.github/workflows/nightly-release.yml#L49-L51

logs ```shell Liu.D.H@DESKTOP-DELL MINGW32 ~ $ cd /d/code/other/FBNeo/ Liu.D.H@DESKTOP-DELL MINGW32 /d/code/other/FBNeo $ pacman -S --needed msys2-devel base-devel binutils mingw-w64-i686-toolchain mingw-w64-i686-nasm zip wget warning: gcc-11.3.0-2 is up to date -- skipping warning: base-devel-2022.01-2 is up to date -- skipping warning: binutils-2.37-5 is up to date -- skipping warning: mingw-w64-i686-binutils-2.39-2 is up to date -- skipping warning: mingw-w64-i686-crt-git-10.0.0.r72.g1dd2a4993-1 is up to date -- skipping warning: mingw-w64-i686-gcc-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-gcc-ada-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-gcc-fortran-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-gcc-libgfortran-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-gcc-libs-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-gcc-objc-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-gdb-12.1-3 is up to date -- skipping warning: mingw-w64-i686-gdb-multiarch-12.1-3 is up to date -- skipping warning: mingw-w64-i686-headers-git-10.0.0.r72.g1dd2a4993-1 is up to date -- skipping warning: mingw-w64-i686-libgccjit-12.2.0-1 is up to date -- skipping warning: mingw-w64-i686-libmangle-git-10.0.0.r72.g1dd2a4993-1 is up to date -- skipping warning: mingw-w64-i686-make-4.3-1 is up to date -- skipping warning: mingw-w64-i686-pkgconf-1.8.0-2 is up to date -- skipping warning: mingw-w64-i686-tools-git-10.0.0.r72.g1dd2a4993-1 is up to date -- skipping warning: mingw-w64-i686-winstorecompat-git-10.0.0.r72.g1dd2a4993-1 is up to date -- skipping :: There are 2 members in group mingw-w64-i686-toolchain: :: Repository mingw32 1) mingw-w64-i686-libwinpthread-git 2) mingw-w64-i686-winpthreads-git Enter a selection (default=all): warning: mingw-w64-i686-nasm-2.15.05-1 is up to date -- skipping warning: zip-3.0-3 is up to date -- skipping warning: wget-1.21.3-1 is up to date -- skipping resolving dependencies... looking for conflicting packages... Packages (2) mingw-w64-i686-libwinpthread-git-10.0.0.r72.g1dd2a4993-1 mingw-w64-i686-winpthreads-git-10.0.0.r72.g1dd2a4993-1 Total Installed Size: 0.46 MiB Net Upgrade Size: 0.02 MiB :: Proceed with installation? [Y/n] (2/2) checking keys in keyring [###############################] 100% (2/2) checking package integrity [###############################] 100% (2/2) loading package files [###############################] 100% (2/2) checking for file conflicts [###############################] 100% (2/2) checking available disk space [###############################] 100% :: Processing package changes... (1/2) upgrading mingw-w64-i686-libwinpthread-git [###############################] 100% (2/2) upgrading mingw-w64-i686-winpthreads-git [###############################] 100% Liu.D.H@DESKTOP-DELL MINGW32 /d/code/other/FBNeo $ pacman -U --noconfirm ~/mingw-w64-i686-winpthreads-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz ~/mingw-w64-i686-libwinpthread-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz loading packages... warning: downgrading package mingw-w64-i686-winpthreads-git (10.0.0.r72.g1dd2a4993-1 => 6.0.0.5203.9afaf1c2-1) warning: downgrading package mingw-w64-i686-libwinpthread-git (10.0.0.r72.g1dd2a4993-1 => 6.0.0.5203.9afaf1c2-1) resolving dependencies... looking for conflicting packages... Packages (2) mingw-w64-i686-libwinpthread-git-6.0.0.5203.9afaf1c2-1 mingw-w64-i686-winpthreads-git-6.0.0.5203.9afaf1c2-1 Total Installed Size: 0.44 MiB Net Upgrade Size: -0.02 MiB :: Proceed with installation? [Y/n] (2/2) checking keys in keyring [###############################] 100% (2/2) checking package integrity [###############################] 100% (2/2) loading package files [###############################] 100% (2/2) checking for file conflicts [###############################] 100% (2/2) checking available disk space [###############################] 100% :: Processing package changes... (1/2) downgrading mingw-w64-i686-libwinpthread-git [###############################] 100% (2/2) downgrading mingw-w64-i686-winpthreads-git [###############################] 100% Liu.D.H@DESKTOP-DELL MINGW32 /d/code/other/FBNeo $ make -j$(nproc) mingw SKIPDEPEND=1 RELEASEBUILD=1 Making normal build... Compiling src/burn/drv/nes/d_nes.cpp... Compiling src/burn/drv/taito/d_othunder.cpp... Compiling src/burn/drv/taito/d_qix.cpp... Compiling src/burn/drv/taito/d_retofinv.cpp... Compiling src/burn/drv/taito/d_rollrace.cpp... Compiling src/burn/drv/taito/d_slapshot.cpp... Compiling src/burn/drv/taito/d_ssrj.cpp... Compiling src/burn/drv/taito/d_superchs.cpp... Compiling src/burn/drv/taito/d_supridr.cpp... Compiling src/burn/drv/taito/d_taitob.cpp... Compiling src/burn/drv/taito/d_taitoh.cpp... Compiling src/burn/drv/taito/d_taitof2.cpp... Compiling src/burn/drv/taito/d_taitof3.cpp... Compiling src/burn/drv/taito/d_taitol.cpp... Compiling src/burn/drv/taito/d_taitomisc.cpp... Compiling src/burn/drv/taito/d_taitosj.cpp... Compiling src/burn/drv/taito/d_taitox.cpp... Compiling src/burn/drv/taito/d_taitoz.cpp... Compiling src/burn/drv/taito/d_tnzs.cpp... Compiling src/burn/drv/taito/d_undrfire.cpp... Compiling src/burn/drv/taito/d_wyvernf0.cpp... Compiling src/burn/drv/toaplan/d_batrider.cpp... Compiling src/burn/drv/toaplan/d_batsugun.cpp... Compiling src/burn/drv/toaplan/d_battleg.cpp... Compiling src/burn/drv/toaplan/d_bbakraid.cpp... Compiling src/burn/drv/toaplan/d_dogyuun.cpp... Compiling src/burn/drv/toaplan/d_fixeight.cpp... Compiling src/burn/drv/toaplan/d_enmadaio.cpp... Compiling src/burn/drv/toaplan/d_ghox.cpp... Compiling src/burn/drv/toaplan/d_kbash.cpp... Compiling src/burn/drv/toaplan/d_kbash2.cpp... Compiling src/burn/drv/toaplan/d_mahoudai.cpp... Compiling src/burn/drv/toaplan/d_pipibibs.cpp... Compiling src/burn/drv/toaplan/d_shippumd.cpp... Compiling src/burn/drv/toaplan/d_slapfght.cpp... Compiling src/burn/drv/toaplan/d_snowbro2.cpp... Compiling src/burn/drv/toaplan/d_tekipaki.cpp... Compiling src/burn/drv/toaplan/d_toaplan1.cpp... Compiling src/burn/drv/toaplan/d_truxton2.cpp... Compiling src/burn/drv/toaplan/d_twincobr.cpp... Compiling src/burn/drv/toaplan/d_vfive.cpp... Compiling src/burn/drv/toaplan/d_wardner.cpp... Compiling src/burn/drv/pre90s/d_4enraya.cpp... Compiling src/burn/drv/pre90s/d_1942.cpp... Compiling src/burn/drv/pre90s/d_1943.cpp... Compiling src/burn/drv/pre90s/d_aeroboto.cpp... Compiling src/burn/drv/pre90s/d_alinvade.cpp... Compiling src/burn/drv/pre90s/d_alpha68k.cpp... Compiling src/burn/drv/pre90s/d_alpha68k1.cpp... Compiling src/burn/drv/pre90s/d_alpha68k2.cpp... Compiling src/burn/drv/pre90s/d_ambush.cpp... Compiling src/burn/drv/pre90s/d_amspdwy.cpp... Compiling src/burn/drv/pre90s/d_arabian.cpp... Compiling src/burn/drv/pre90s/d_argus.cpp... Compiling src/burn/drv/pre90s/d_armedf.cpp... Compiling src/burn/drv/pre90s/d_asteroids.cpp... Compiling src/burn/drv/pre90s/d_atetris.cpp... Compiling src/burn/drv/pre90s/d_aztarac.cpp... Compiling src/burn/drv/pre90s/d_bagman.cpp... Compiling src/burn/drv/pre90s/d_baraduke.cpp... Compiling src/burn/drv/pre90s/d_battlane.cpp... Compiling src/burn/drv/pre90s/d_battlex.cpp... Compiling src/burn/drv/pre90s/d_bbusters.cpp... Compiling src/burn/drv/pre90s/d_beaminv.cpp... Compiling src/burn/drv/pre90s/d_berzerk.cpp... Compiling src/burn/drv/pre90s/d_bionicc.cpp... Compiling src/burn/drv/pre90s/d_blktiger.cpp... Compiling src/burn/drv/pre90s/d_blockade.cpp... Compiling src/burn/drv/pre90s/d_blockout.cpp... Compiling src/burn/drv/pre90s/d_blueprnt.cpp... Compiling src/burn/drv/pre90s/d_bogeyman.cpp... Compiling src/burn/drv/pre90s/d_bombjack.cpp... Compiling src/burn/drv/pre90s/d_btime.cpp... Compiling src/burn/drv/pre90s/d_bwidow.cpp... Compiling src/burn/drv/pre90s/d_bzone.cpp... Compiling src/burn/drv/pre90s/d_cabal.cpp... Compiling src/burn/drv/pre90s/d_calorie.cpp... Compiling src/burn/drv/pre90s/d_canyon.cpp... Compiling src/burn/drv/pre90s/d_capbowl.cpp... Compiling src/burn/drv/pre90s/d_carjmbre.cpp... Compiling src/burn/drv/pre90s/d_ccastles.cpp... Compiling src/burn/drv/pre90s/d_cclimber.cpp... Compiling src/burn/drv/pre90s/d_cheekyms.cpp... Compiling src/burn/drv/pre90s/d_chinagat.cpp... Compiling src/burn/drv/pre90s/d_citycon.cpp... Compiling src/burn/drv/pre90s/d_cloak.cpp... Compiling src/burn/drv/pre90s/d_cloud9.cpp... Compiling src/burn/drv/pre90s/d_clshroad.cpp... Compiling src/burn/drv/pre90s/d_commando.cpp... Compiling src/burn/drv/pre90s/d_cop01.cpp... Compiling src/burn/drv/pre90s/d_copsnrob.cpp... Compiling src/burn/drv/pre90s/d_cybertnk.cpp... Compiling src/burn/drv/pre90s/d_dacholer.cpp... Compiling src/burn/drv/pre90s/d_dday.cpp... Compiling src/burn/drv/pre90s/d_ddayjlc.cpp... Compiling src/burn/drv/pre90s/d_ddragon.cpp... Compiling src/burn/drv/pre90s/d_deadang.cpp... Compiling src/burn/drv/pre90s/d_djboy.cpp... Compiling src/burn/drv/pre90s/d_dkong.cpp... Compiling src/burn/drv/pre90s/d_docastle.cpp... Compiling src/burn/drv/pre90s/d_dogfgt.cpp... Compiling src/burn/drv/pre90s/d_dorachan.cpp... Compiling src/burn/drv/pre90s/d_dribling.cpp... Compiling src/burn/drv/pre90s/d_drmicro.cpp... Compiling src/burn/drv/pre90s/d_dynduke.cpp... Compiling src/burn/drv/pre90s/d_efdt.cpp... Compiling src/burn/drv/pre90s/d_epos.cpp... Compiling src/burn/drv/pre90s/d_espial.cpp... Compiling src/burn/drv/pre90s/d_ettrivia.cpp... Compiling src/burn/drv/pre90s/d_exedexes.cpp... Compiling src/burn/drv/pre90s/d_exerion.cpp... Compiling src/burn/drv/pre90s/d_exprraid.cpp... Compiling src/burn/drv/pre90s/d_exterm.cpp... Compiling src/burn/drv/pre90s/d_fantland.cpp... Compiling src/burn/drv/pre90s/d_fastfred.cpp... Compiling src/burn/drv/pre90s/d_firetrap.cpp... Compiling src/burn/drv/pre90s/d_flipjack.cpp... Compiling src/burn/drv/pre90s/d_flower.cpp... Compiling src/burn/drv/pre90s/d_foodf.cpp... Compiling src/burn/drv/pre90s/d_freekick.cpp... Compiling src/burn/drv/pre90s/d_funkybee.cpp... Compiling src/burn/drv/pre90s/d_galaga.cpp... Compiling src/burn/drv/pre90s/d_galivan.cpp... Compiling src/burn/drv/pre90s/d_gaplus.cpp... Compiling src/burn/drv/pre90s/d_ginganin.cpp... Compiling src/burn/drv/pre90s/d_gng.cpp... Compiling src/burn/drv/pre90s/d_goindol.cpp... Compiling src/burn/drv/pre90s/d_gunsmoke.cpp... Compiling src/burn/drv/pre90s/d_headonb.cpp... Compiling src/burn/drv/pre90s/d_himesiki.cpp... Compiling src/burn/drv/pre90s/d_higemaru.cpp... Compiling src/burn/drv/pre90s/d_holeland.cpp... ... ```
barbudreadmon commented 2 years ago

I'm not a windows user so i don't know much about msys2. My understanding is that the different msystems (shells ?) will set environment variables in different ways, and if you don't use the mingw one(s), CC and CXX will refer to some executables with no access to all the mingw builtin functions.

liudonghua123 commented 2 years ago

I'm not a windows user so i don't know much about msys2. My understanding is that the different msystems (shells ?) will set environment variables in different ways, and if you don't use the mingw one(s), CC and CXX will refer to some executables with no access to all the mingw builtin functions.

Thanks, now I get it. 😄