mingw-get-setup only offer old compiler version - CLOSED user error
I installed using the provided mingw-get-setup. The setup succeeded, but only offered GCC 6.3.0, even though this site claims 9.2.0 is available. I also have mingw-w64 installed on this computer under msys2 64-bit, in a completely separate directory. After setup completed, I started the msys environment using MinGW\msys\1.0\msys.bat. From there, I attempted to update using packman -Syu, which produces the following:
$ pacman -Syu
:: Synchronizing package databases...
msys is up to date mingw64 is up to date clang64 is up to date ucrt64 is up to date mingw32 is up to date:: Starting co
re system upgrade...
warning: terminate other MSYS2 programs before proceeding
looking for conflicting packages...
Packages (3) filesystem-2022.01-4 mintty-1~3.6.0-1 pacman-6.0.1-14
Total Download Size: 6.37 MiB
Total Installed Size: 34.75 MiB
Net Upgrade Size: 0.20 MiB
:: Proceed with installation? [Y/n] n
Looks like there is a common pacman database, and this MinGW msys environment is seeing the packages installed in the other environment.
At any rate, I'd like to get the newer GCC compiler in this MinGW environment. Apparently this cannot be done via either mingw-get-setup or via pacman?
There are several issues here:
The bulk of the information, which you have provided, is completely unrelated to any legitimate MinGW product. That the illegitimate products are visible from within your legitimate MinGW environment is a consequence of how you have configured your installation — likely you have included the bogus products within the PATH, which you have made visible when running the legitimate MinGW tools. Beyond this tip, I will offer no further advice in respect of unsupported products.
With that said, the only issue you have raised, which is actually of concern here, is:
I installed using the provided mingw-get-setup. The setup succeeded, but only offered GCC 6.3.0, even though this site claims 9.2.0 is available.
You don't give me enough information, to help me diagnose your issue, but your assertion is not borne out by evidence from my own Win7 installation:
$ mingw-get --version
mingw-get version 0.6.4
Copyright (C) 2009-2013, 2017, 2020, 2022, MinGW.OSDN Project
This is free software; see the product documentation, or source code,
for copying and redistribution conditions. There is NO WARRANTY; not
even an implied WARRANTY OF MERCHANTABILITY, nor of FITNESS FOR ANY
$ mingw-get list mingw32-gcc-bin
Package: mingw32-gcc Subsystem: mingw32
Installed Version: gcc-core-9.2.0-2-mingw32-bin.tar.xz
Repository Version: gcc-core-9.2.0-2-mingw32-bin.tar.xz
The GNU C Compiler
This package provides the MinGW implementation of the GNU C language
compiler; this includes the C preprocessor, and the common back end
processors which are necessary to support all other language compilers
in the GNU Compiler Collection.
This is a required component of the MinGW Compiler Suite.
Keith, thank you for your quick and thorough response. You are correct: I apparently downloaded mingw-get-setup from SourceForge, but then followed the link listed there to OSDN.net and continued my installation. Just now, I removed that installation, and started over again after downloading mingw-get-setup from OSDN.net. As you correctly describe, now the 9.2.0 compiler version is listed.
I'm just a developer using the MinGW tools, so I'm not privy to the long history of MinGW and MinGW-w64. I'm not a lawyer. However, a little Googling informed me that MinGW-w64 forked from MinGW in 2005, while the MINGW trademark was granted in 2014. I'm guessing the MinGW-w64 camp would claim prior works.
I appreciate your help and pointing me in the right direction. I'll close this ticket as user error if I'm able.