Package Details: gcc9 9.5.0-1

Git Clone URL: (read-only, click to copy)
Package Base: gcc9
Description: The GNU Compiler Collection - C and C++ frontends (9.x.x)
Upstream URL:
Licenses: GPL, custom, LGPL, FDL
Submitter: dvzrv
Maintainer: jonathon
Last Packager: jonathon
Votes: 7
Popularity: 0.012775
First Submitted: 2020-11-23 19:59 (UTC)
Last Updated: 2022-06-17 18:46 (UTC)

Pinned Comments

jonathon commented on 2020-11-30 14:28 (UTC)

Please read the AUR wiki page before reporting issues.

If you are experiencing a build issue then ensure you are not using an AUR helper and are using a clean chroot.

Latest Comments

1 2 3 Next › Last »

bialy commented on 2022-11-15 16:55 (UTC)

Same issue with GCC10 - It seems that there is a problem with one of the building stages if too 'new' compiler is installed in the OS. For me it is GCC12.2.

I was able to build GCC9 using docker image base-devel-20210418.0.20194. GCC packages seems to work after installation on the host OS.

rengolin commented on 2022-11-15 16:53 (UTC) (edited on 2022-11-15 16:54 (UTC) by rengolin)

Same here:

.cache/yay/gcc9/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/ version `GLIBCXX_3.4.30' not found (required by /usr/lib/

My system libstdc++ has the symbol:

$ strings /usr/lib/ | grep "^GLIBCXX_3.4.30" 

But the one that the package brings does not:

$ strings .cache/yay/gcc9/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/ | grep "^GLIBCXX_3.4." | sort -u

The error is when creating the archive, so it could be that it's mixing system libraries with built libraries. It's possible that libstdc++ at the time of gcc9 didn't have that version and some rogue library (from the system) does and requires it, thus the error.

I don't know enough about the GCC build system to know what's wrong in the PKGBUILD, though.

bialy commented on 2022-11-14 13:11 (UTC) (edited on 2022-11-15 16:55 (UTC) by bialy)

I am trying to build package in a clean chroot makechrootpkg -c -r $CHROOT, but at the end I am receiving this

msgfmt: /build/gcc9/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/ version `GLIBCXX_3.4.30' not found (required by /usr/lib/
msgfmt: /build/gcc9/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/ version `GLIBCXX_3.4.30' not found (required by /usr/lib/

lamp commented on 2022-09-20 17:04 (UTC)

When installing gcc9 I see that it provides gcc9-libs, however it doesn't seem to provide a lib32-gcc9-libs (and there doesn't seem to be another package for this). Is there a known way for me to modify the PKGBUILD in order to build with support for using gcc -m32 with this gcc9 package? Or a different package that I am missing?

saburouta commented on 2022-08-28 20:27 (UTC) (edited on 2022-08-28 20:29 (UTC) by saburouta)

Fails to build in a clean chroot:

/usr/include/linux/mount.h:95:6: error: multiple definition of 'enum fsconfig_command'
   95 | enum fsconfig_command {
      |      ^~~~~~~~~~~~~~~~
In file included from /build/gcc9/src/gcc/libsanitizer/sanitizer_common/
/usr/include/sys/mount.h:189:6: note: previous definition here
  189 | enum fsconfig_command
      |      ^~~~~~~~~~~~~~~~
In file included from /usr/include/linux/fs.h:19,
                 from /build/gcc9/src/gcc/libsanitizer/sanitizer_common/
/usr/include/linux/mount.h:129:8: error: redefinition of 'struct mount_attr'

baloe commented on 2022-08-27 02:15 (UTC)

This does not compile in Manjaro.

Exits with make: *** [Makefile:997: all] Error 2


dbermond commented on 2022-06-17 18:14 (UTC)

@jonathon The package fails to build with lto enabled. This option is enabled by default on devtools, and may be enabled by the user in makepkg.conf. You should explicitly disable lto by adding '!lto' to the 'options' array like is done by repository gcc, repository gcc11, AUR gcc10 and AUR gcc7.

jonathon commented on 2021-09-03 19:22 (UTC)

That's a local issue, not a package issue. Please open a thread on the forum, or hop onto IRC.

$ gpg --search D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62
gpg: data source:
(1) Jakub Jelinek <>
      4096 bit RSA key 6C35B99309B5FA62, created: 2020-05-28
Keys 1-1 of 1 for "D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62".  Enter number(s), N)ext, or Q)uit >

nixit commented on 2021-09-03 17:44 (UTC) (edited on 2021-09-03 17:44 (UTC) by nixit)


thanx, however it appears that the key: D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62 is not in any keyserver I've searched.

jonathon commented on 2021-09-03 13:35 (UTC) (edited on 2021-09-03 13:38 (UTC) by jonathon)

@nixit, open a thread on the forum if you're having difficulty importing PGP keys.

@svictor, you need to import the key. Read the wiki page linked in the pinned comments.

@togtja, you ran out of disk space.