This is an old revision of the document!
Versions of GCC
There are many versions of gcc in the ports tree.
- It is painful for builders (especially the ones using qemu) to have so many versions.
- Some only exist to satisfy dependencies.
This page discusses the list of ports that we should try to update to reduce the dependencies.
Current versions in the tree
The usage column does not include ports that hardwire the version. See HardcodedGCCVersions for that list.
| port | usage | status | comments |
| gcc4.8 | unsupported | ||
| gcc6-aux | Ada-language ports | supported | defined in Mk/Uses/ada.mk |
| gcc7 | unsupported | ||
| gcc8 | tree-wide default (powerpcspe) | supported | defined in Mk/bsd.default-versions.mk |
| gcc9 | supported | defined in Mk/bsd.default-versions.mk | |
| gcc10 | tree-wide default (all but powerpcspe) | supported | new default as of see PR 246700 |
| gcc11-devel | testing | testing |
Dependency statistics
Processing INDEX-13 on amd64 20200610 (and deleting self-references) produces:
0 gcc4 0 gcc5 43 gcc6 0 gcc7 0 gcc8 3477 gcc9 0 gcc10
on powerpc64, gcc8 is needed to build gcc9, so the number is nonzeo (and large).