BSD Ports

lang/gcc12 12.5.0nb3 NetBSD

The GNU Compiler Collection (GCC) - 12.0 Release Series

System
NetBSD
Repository
pkgsrc
Last update
Commit
5961e86a53
License
gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
Categories
lang
Package size
92496.2 KiB, 419573.8 KiB installed

Description

The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C, Fortran, and Go.

In the other systems

SystemPortVersion
NetBSDlang/gcc1212.5.0nb3
FreeBSDlang/gcc1212.5.0
DragonFlylang/gcc1212.4.0_2
MidnightBSDlang/gcc1212.4.0_3
HardenedBSDlang/gcc1212.4.0_6
GhostBSDlang/gcc1212.4.0_6

Install

Binary package:

pkgin install gcc12

From pkgsrc:

cd /usr/pkgsrc/lang/gcc12 && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_6412.5.0nb3
NetBSD 10.1 aarch6412.5.0nb3
SmartOS / illumos x86_64-
macOS 15 arm64-

Dependencies

No port depends on this one.

Commit history 3

DateCommitCreditsLog message
5961e86a53 sjmulder lang/gcc12: account for linux/scc.h removal
Header removed in Linux 7.1: https://github.com/torvalds/linux/commit/64edfa65062dc4509ba75978116b2f6d392346f5
875dbc2057 wiz mk: switch the default for PATCH_DIST_STRIP from -p0 to -p1
adapt packages that didn't set PATCH_DIST_STRIP to use -p0, and remove the -p1 lines
c6fa12de57 he lang/gcc12: pull over the changes to rs6000/netbsd.h from our in-tree gcc.
This is so that this builds and runs on powerpc/11.0*. The most important fix is that on powerpc, -msecure-plt is enabled by default, so that resulting executables can be run with PAX_MPROTECT active. Otherwise, we end up with executables with sections which have both "write" and "execute" turned on, which PAX_MPROTECT rejects. Fixes PR#60439. Bump PKGREVISION for both gcc12 and gcc12-libs, to adhere to rules in comments.