Package Base Details: gcc8

Git Clone URL: (read-only, click to copy)
Submitter: dvzrv
Maintainer: severach
Last Packager: severach
Votes: 8
Popularity: 0.017889
First Submitted: 2020-11-23 19:45 (UTC)
Last Updated: 2023-07-31 00:19 (UTC)

Pinned Comments

jonathon commented on 2020-11-30 14:29 (UTC) (edited on 2021-02-28 02:12 (UTC) by jonathon)

Please read the AUR wiki page before reporting issues.

In addition, if you are experiencing a build issue then ensure you have tried building without using an AUR helper (e.g. makepkg) and with a clean chroot (e.g. makechrootpkg).

Latest Comments

1 2 3 Next › Last »

bsdice commented on 2023-07-30 14:41 (UTC)

I needed GCC 8 on a recent Arch installation, so I forward-ported the necessary fixes. Download PKGBUILD here:

All patches courtesy of our Gentoo friends, taken from

I deleted one patch that was already applied. Always useful to have an older compiler in case there is suspected mis-compilation. GCC 8.5 also still, and probably forever, the best compiler for small Atmel AVR projects.

eclairevoyant commented on 2023-05-28 04:56 (UTC)

@alexf91 disabling NLS is a workaround, but it's not a real solution and will cause build failures when compiling other programs with gcc8. It's a bit absurd that this hasn't been addressed in almost 6 months.

alexf91 commented on 2022-12-25 21:14 (UTC)

Disabling native language support fixes the build problems.

Edit PKGBUILD and add --disable-nls when the configure script is called.

HenryJia commented on 2022-12-20 23:52 (UTC)

Also getting the same error as @randomuser2

Anyone have any suggestions?

randomuser2 commented on 2022-12-11 15:20 (UTC) (edited on 2022-12-11 15:21 (UTC) by randomuser2)

I fails to build on latest due to being linked with some system libs that are requiring latest libc (that is not present in gcc8 src)

See the relevant part of the log below.

libtool: link: ranlib .libs/libstdc++convenience.a
libtool: link: rm -fr .libs/libstdc++convenience.lax .libs/libstdc++convenience.lax
libtool: link: ( cd ".libs" && rm -f "" && ln -s "../" "" )
make[6]: Leaving directory '/home/luk/dev/gcc8/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src'
make[5]: Leaving directory '/home/luk/dev/gcc8/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src'
Making all in doc
make[5]: Entering directory '/home/luk/dev/gcc8/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/doc'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/luk/dev/gcc8/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/doc'
Making all in po
make[5]: Entering directory '/home/luk/dev/gcc8/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/po'
msgfmt -o /home/luk/dev/gcc8/src/gcc/libstdc++-v3/po/de.po
msgfmt: /home/luk/dev/gcc8/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/ version `GLIBCXX_3.4.30' not found (required by /usr/lib/
make[5]: *** [Makefile:499:] Error 1
make[5]: Leaving directory '/home/luk/dev/gcc8/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/po'
make[4]: *** [Makefile:512: all-recursive] Error 1
make[4]: Leaving directory '/home/luk/dev/gcc8/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3'
make[3]: *** [Makefile:419: all] Error 2
make[3]: Leaving directory '/home/luk/dev/gcc8/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3'
make[2]: *** [Makefile:15903: all-stage1-target-libstdc++-v3] Error 2
make[2]: Leaving directory '/home/luk/dev/gcc8/src/gcc-build'
make[1]: *** [Makefile:23663: stage1-bubble] Error 2
make[1]: Leaving directory '/home/luk/dev/gcc8/src/gcc-build'
make: *** [Makefile:946: all] Error 2
==> ERROR: A failure occurred in build().
 -> error making: gcc8 (gcc8-libs gcc8)

I've read the wiki page, but I don't know how to resolve this.

petronny commented on 2022-07-11 10:07 (UTC)

Getting the following error:

/tmp/ccQW647E.s: Assembler messages:
/tmp/ccQW647E.s: Error: invalid attempt to declare external version name as default in symbol `__gttf2@@GCC_4.3.0'
lto-wrapper: fatal error: /build/gcc8/src/gcc-build/./gcc/xgcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:985:] Error 1
make[3]: Leaving directory '/build/gcc8/src/gcc-build/x86_64-pc-linux-gnu/libgcc'
make[2]: *** [Makefile:18783: all-stage1-target-libgcc] Error 2
make[2]: Leaving directory '/build/gcc8/src/gcc-build'
make[1]: *** [Makefile:23663: stage1-bubble] Error 2
make[1]: Leaving directory '/build/gcc8/src/gcc-build'
make: *** [Makefile:946: all] Error 2
==> ERROR: A failure occurred in build().

Full build log:

jonathon commented on 2022-05-15 17:10 (UTC)

Please read the page linked in the pinned comment.

bazza commented on 2022-05-15 16:22 (UTC)

==> Verifying source file signatures with gpg...
    gcc-8.5.0.tar.xz ... FAILED (unknown public key 6C35B99309B5FA62)
==> ERROR: One or more PGP signatures could not be verified!