Package Details: mingw-w64-gcc 7.3.0-1

Git Clone URL: (read-only)
Package Base: mingw-w64-gcc
Description: Cross GCC for the MinGW-w64 cross-compiler
Upstream URL:
Licenses: GPL, custom, LGPL, FDL
Groups: mingw-w64, mingw-w64-toolchain
Provides: mingw-w64-gcc-base
Submitter: Barthalion
Maintainer: xantares
Last Packager: xantares
Votes: 18
Popularity: 5.220452
First Submitted: 2018-01-07 17:33
Last Updated: 2018-02-14 21:04

Required by (187)

Sources (3)

Pinned Comments

xantares commented on 2018-03-07 17:54

To install this package you can try to run the script:

$ wget

$ sh ./

stop after line "yaourt -S mingw-w64-gcc"

cguenther commented on 2018-01-19 08:19

Yeah this package has to be installed in a bootstrapped way. I found a automatable solution in this way:

gpg --recv 93BDB53CD4EBC740
gpg --recv C3126D3B4AE55E93
gpg --recv BBE43771487328A9

yaourt -S --noconfirm mingw-w64-binutils
yaourt -S --noconfirm mingw-w64-headers
yaourt -S --noconfirm mingw-w64-gcc-base
yaourt -S --noconfirm mingw-w64-crt
#uninstall winpthreads conflicting package without depedency check in front of winpthreads installation
#to avoid [y/N] question replacing it after building during installation of winpthreads
sudo pacman -Rdd --noconfirm mingw-w64-headers-bootstrap
yaourt -S --noconfirm mingw-w64-winpthreads
#same hackity hack again, here mingw-w64-gcc conflicts against mingw-w64-gcc-base
sudo pacman -Rdd --noconfirm mingw-w64-gcc-base
yaourt -S --noconfirm mingw-w64-gcc

xantares commented on 2018-01-13 08:28

@cguenther the bootrapping is done in this order:

  1. mingw-w64-binutils

  2. mingw-w64-headers

  3. mingw-w64-headers-bootstrap

  4. mingw-w64-gcc-base

  5. mingw-w64-crt

  6. mingw-w64-winpthreads

  7. mingw-w64-gcc

Latest Comments

qrwteyrutiyoup commented on 2018-04-15 17:53


Can you please update the .SRCINFO file so that it lists the two PGP keys required to build the file (the ones in the validpgpkeys array of the PKGBUILD)?

Not sure why they are not in there already.

addeps3 commented on 2018-03-09 16:21

I installed with yaourt --m-arg --skipchecksums --m-arg --skippgpcheck -Sb mingw-w64-gcc

xantares commented on 2018-03-07 17:54

To install this package you can try to run the script:

$ wget

$ sh ./

stop after line "yaourt -S mingw-w64-gcc"

Martchus commented on 2018-02-26 17:29

To make installation of common mingw-w64 packages easier, one can also use my binary repository.

I'm currently thinking about changing the exception handling to the way MSYS2's mingw-w64 packages are configured. See Any comments on that would be nice since the issue still contains open questions and things I'm not sure about.

agentcobra commented on 2018-02-22 00:59

doesn't build

==> Création du paquet mingw-w64-gcc 7.3.0-1 (jeu. févr. 22 01:58:28 CET 2018) ==> Vérification des dépendances pour l’exécution... ==> Vérification des dépendances pour la compilation... ==> Récupération des sources... -> gcc-7.3.0.tar.xz trouvé -> gcc-7.3.0.tar.xz.sig trouvé -> isl-0.18.tar.bz2 trouvé ==> Validation des fichiers source avec sha256sums... gcc-7.3.0.tar.xz ... Réussite gcc-7.3.0.tar.xz.sig ... Ignoré isl-0.18.tar.bz2 ... Réussite ==> Vérification des signatures des fichiers sources grâce à gpg... gcc-7.3.0.tar.xz ... ÉCHEC (Clé publique inconnue 3AB00996FC26A641) ==> ERREUR : Une ou plusieurs signatures PGP n’ont pas pu être vérifiées. :: Unable to build mingw-w64-gcc - makepkg exited with code: 1

xantares commented on 2018-02-18 08:12

@unxusr it doesnt take much ram, unless you use too much make jobs (MAKEFLAGS), more likely its the tmp size, you can also pass "--tmp path/with/space" to yaourt. Binaries are available on the ownstuff repo:

unxusr commented on 2018-02-17 21:16

My build advanced but still not finished. Now it seems that the build process was killed by the operating system due to excessive memory usage. I have a thinkpad with 8Gb of RAM (tried to build without X and other applications closed).

Are there any binary packages available ?

(PS: already tried to increase the size of my tmpfs)

I really need this package on arch...


unxusr commented on 2018-02-15 12:35

Solved my problem just by removing a custom C_INCLUDE_PATH from my bashrc.

unxusr commented on 2018-02-15 12:00

Tried to install on two computers (one is clean arch linux installation) but got the following error "‘TARGET_ALIAS’ undeclared". Could someone help me ?

gcc -DHAVE_CONFIG_H -I. -I/tmp/yaourt-tmp-haroldo/aur-mingw-w64-binutils/src/binutils-2.29/gas -I. -I/tmp/yaourt-tmp-haroldo/aur-mingw-w64-binutils/src/binutils-2.29/gas -I../bfd -I/tmp/yaourt-tmp-haroldo/aur-mingw-w64-binutils/src/binutils-2.29/gas/config -I/tmp/yaourt-tmp-haroldo/aur-mingw-w64-binutils/src/binutils-2.29/gas/../include -I/tmp/yaourt-tmp-haroldo/aur-mingw-w64-binutils/src/binutils-2.29/gas/.. -I/tmp/yaourt-tmp-haroldo/aur-mingw-w64-binutils/src/binutils-2.29/gas/../bfd -DLOCALEDIR="\"/usr/share/locale\"" -D_FORTIFY_SOURCE=2 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Wwrite-strings -I/tmp/yaourt-tmp-haroldo/aur-mingw-w64-binutils/src/binutils-2.29/gas/../zlib -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -MT depend.o -MD -MP -MF .deps/depend.Tpo -c -o depend.o /tmp/yaourt-tmp-haroldo/aur-mingw-w64-binutils/src/binutils-2.29/gas/depend.c /tmp/yaourt-tmp-haroldo/aur-mingw-w64-binutils/src/binutils-2.29/gas/as.c: In function ‘print_version_id’: /tmp/yaourt-tmp-haroldo/aur-mingw-w64-binutils/src/binutils-2.29/gas/as.c:229:14: error: ‘TARGET_ALIAS’ undeclared (first use in this function); did you mean ‘TARGET_ARCH’? VERSION, TARGET_ALIAS, BFD_VERSION_STRING); ^~~~~~~~~~~~ TARGET_ARCH

Forgon commented on 2018-02-11 14:39

Correct bootstrapping order:

  1. mingw-w64-binutils

    • requires zlib
  2. mingw-w64-headers

  3. mingw-w64-headers-bootstrap

  4. mingw-w64-gcc-base

    • requires cloog from AUR
    • requires libmpc
    • requires ppl
  5. mingw-w64-crt

  6. mingw-w64-winpthreads

    • requires mingw-w64-headers-bootstrap to be removed
    • don't forget to run libtool --finish /usr/x86-64-w64-mingw32/lib
  7. mingw-w64-gcc

    • requires gcc-ada
    • requires mingw-w64-gcc-base to be removed

All comments