I'm trying to install GCC on my Windows workstation to do new testing using GCC and some C compiled programs that can be ported to Windows.
I have already used several versions of GCC for Windows, some based on CygWin others in Mingw itself, but now I want to focus everything on MSys2.
But even after I've removed all the applications, I'm not able to install GCC with Msys2.
I'm using the following command
$ pacman -S mingw-w64-x86_64-gcc
Then I get the following message:
resolvendo dependências...
procurando por pacotes conflitantes...
atenção: dependência cíclica detectada:
atenção: mingw-w64-x86_64-gcc-libgfortran será instalado antes de sua dependência mingw-w64-x86_64-gcc-libs
Pacotes (16) mingw-w64-x86_64-binutils-2.27-2 mingw-w64-x86_64-bzip2-1.0.6-5
mingw-w64-x86_64-crt-git-5.0.0.4745.d2384c2-1
mingw-w64-x86_64-gcc-libgfortran-6.2.0-2
mingw-w64-x86_64-gcc-libs-6.2.0-2 mingw-w64-x86_64-gmp-6.1.1-1
mingw-w64-x86_64-headers-git-5.0.0.4747.0f8f626-1
mingw-w64-x86_64-isl-0.17.1-1 mingw-w64-x86_64-libiconv-1.14-5
mingw-w64-x86_64-libwinpthread-git-5.0.0.4741.2c8939a-1
mingw-w64-x86_64-mpc-1.0.3-2 mingw-w64-x86_64-mpfr-3.1.4.p3-4
mingw-w64-x86_64-windows-default-manifest-6.4-2
mingw-w64-x86_64-winpthreads-git-5.0.0.4741.2c8939a-1
mingw-w64-x86_64-zlib-1.2.8-9 mingw-w64-x86_64-gcc-6.2.0-2
Tamanho total instalado: 357,21 MiB
:: Continuar a instalação? [S/n] S
(16/16) verificando chaves no chaveiro [#####################] 100%
(16/16) verificando integridade do pacote [#####################] 100%
(16/16) carregando arquivos do pacote [#####################] 100%
(16/16) verificando conflitos de arquivo [#####################] 100%
erro: falha em submeter a transação (arquivos conflitantes)
mingw-w64-x86_64-libiconv: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-gmp: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-libwinpthread-git: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-gcc-libgfortran: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-gcc-libs: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-bzip2: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-zlib: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-binutils: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-headers-git: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-crt-git: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-isl: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-mpfr: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-mpc: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-windows-default-manifest: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-winpthreads-git: /mingw64 existe no sistema de arquivos
mingw-w64-x86_64-gcc: /mingw64 existe no sistema de arquivos
Ocorreram erros e, portanto, nenhum pacote foi atualizado.
consu_000@SocialSLA MSYS ~
What should I do to resolve such a problem?