Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2022 21:41:25 +0200
From:      Piotr Kubaj <pkubaj@anongoth.pl>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   Re: git: fabbde505ba1 - main - devel/freebsd-gcc12: External FreeBSD toolchain based on GCC 12.
Message-ID:  <Yvvy5YLL/mxRQNMY@talos>
In-Reply-To: <2618b4d5-0bfa-bf04-79ae-e2a901bfcd23@FreeBSD.org>
References:  <202208121727.27CHRnw4092488@gitrepo.freebsd.org> <YvbKribfOsWqwMGd@talos> <2618b4d5-0bfa-bf04-79ae-e2a901bfcd23@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--N2tjlpW3SlgHKG9Y
Content-Type: multipart/mixed; boundary="RHl77wxROaZ225wl"
Content-Disposition: inline


--RHl77wxROaZ225wl
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

The target triple is powerpc64le-unknown-freebsd. Please look at the
attached patch.

On 22-08-16 11:02:24, John Baldwin wrote:
> On 8/12/22 2:48 PM, Piotr Kubaj wrote:
> > Why not powerpc64le?
>=20
> I haven't tried to add that one yet.  It's probably not hard to add.
> The main things I would need to know are the right target triple used
> to build.  However, just getting src to build with GCC at all is a bit
> of a challenge atm as clang doesn't build with GCC when using libc++
> (as these ports do).
>=20
> > On 22-08-12 17:27:49, John Baldwin wrote:
> >> The branch main has been updated by jhb (doc, src committer):
> >>
> >> URL: https://cgit.FreeBSD.org/ports/commit/?id=3Dfabbde505ba16b6156ecf=
55dc9f1d6bf01679861
> >>
> >> commit fabbde505ba16b6156ecf55dc9f1d6bf01679861
> >> Author:     John Baldwin <jhb@FreeBSD.org>
> >> AuthorDate: 2022-08-12 17:27:18 +0000
> >> Commit:     John Baldwin <jhb@FreeBSD.org>
> >> CommitDate: 2022-08-12 17:27:18 +0000
> >>
> >>      devel/freebsd-gcc12: External FreeBSD toolchain based on GCC 12.
> >>     =20
> >>      This port provides external GCC toolchains for GCC 12.1.0 for the
> >>      aarch64, amd64, armv6, armv7, i386, powerpc, powerpc64, and riscv=
64
> >>      platforms.
> >>     =20
> >>      Reviewed by:    lwhsu
> >>      Differential Revision:  https://reviews.freebsd.org/D35685
>=20
> --=20
> John Baldwin

--RHl77wxROaZ225wl
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment;
	filename="0001-devel-freebsd-gcc12-add-powerpc64le-support.patch"
Content-Transfer-Encoding: quoted-printable

=46rom 11370700f37aec3b60a01737f1fc3aaeed1ba626 Mon Sep 17 00:00:00 2001
=46rom: Piotr Kubaj <pkubaj@FreeBSD.org>
Date: Tue, 16 Aug 2022 14:17:49 +0200
Subject: [PATCH] devel/freebsd-gcc12: add powerpc64le support

---
 devel/freebsd-gcc12/Makefile              | 10 +++++--
 devel/freebsd-gcc12/pkg-plist.powerpc64le | 36 +++++++++++++++++++++++
 2 files changed, 43 insertions(+), 3 deletions(-)
 create mode 100644 devel/freebsd-gcc12/pkg-plist.powerpc64le

diff --git a/devel/freebsd-gcc12/Makefile b/devel/freebsd-gcc12/Makefile
index 0157738b60a1..9dd84e8d0cb6 100644
--- a/devel/freebsd-gcc12/Makefile
+++ b/devel/freebsd-gcc12/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS=3D	libgmp.so:math/gmp \
 		libmpc.so:math/mpc
 RUN_DEPENDS=3D	${BU_PREFIX}-as:devel/binutils@${BU_FLAVOR}
=20
-FLAVORS=3D	aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 riscv64
+FLAVORS=3D	aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le ri=
scv64
 TARGETARCH=3D	${FLAVOR}
=20
 USES=3D		compiler:c++11-lang cpe gmake iconv libtool makeinfo tar:xz
@@ -125,9 +125,13 @@ PLIST+=3D		${.CURDIR}/pkg-plist.amd64
 .if ${TARGETARCH} =3D=3D "amd64" || ${TARGETARCH} =3D=3D "i386"
 PLIST+=3D		${.CURDIR}/pkg-plist.i386
 .endif
-.if ${TARGETARCH:Mpowerpc64*}
+.if ${TARGETARCH} =3D=3D "powerpc64le"
+PLIST+=3D		${.CURDIR}/pkg-plist.powerpc64le
+.endif
+.if ${TARGETARCH} =3D=3D "powerpc64"
 PLIST+=3D		${.CURDIR}/pkg-plist.powerpc64
-.elif ${TARGETARCH:Mpowerpc*}
+.endif
+.if ${TARGETARCH} =3D=3D "powerpc"
 PLIST+=3D		${.CURDIR}/pkg-plist.powerpc
 .endif
 .if ${TARGETARCH:Mriscv*}
diff --git a/devel/freebsd-gcc12/pkg-plist.powerpc64le b/devel/freebsd-gcc1=
2/pkg-plist.powerpc64le
new file mode 100644
index 000000000000..bae4751d27d3
--- /dev/null
+++ b/devel/freebsd-gcc12/pkg-plist.powerpc64le
@@ -0,0 +1,36 @@
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/altivec.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/amo.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/bmi2intrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/bmiintrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/emmintrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/htmintrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/htmxlintrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/immintrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/mm_malloc.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/mmintrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/nmmintrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/pmmintrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/ppc-asm.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/ppu_intrinsics.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/rs6000-vecdefines.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/si2vmx.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/smmintrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/spu2vmx.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/tmmintrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/vec_types.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/x86gprintrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/x86intrin.h
+lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/xmmintrin.h
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/db=
xelf.h
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/gn=
u-user.h
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs=
6000/default64.h
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs=
6000/%%OPSYS%%64.h
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs=
6000/option-defaults.h
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs=
6000/rs6000-cpus.def
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs=
6000/rs6000-modes.h
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs=
6000/rs6000-opts.h
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs=
6000/rs6000-protos.h
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs=
6000/rs6000.h
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs=
6000/sysv4.h
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs=
6000/sysv4le.h
+%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/vx=
works-dummy.h
--=20
2.37.1


--RHl77wxROaZ225wl--

--N2tjlpW3SlgHKG9Y
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEycyIeNkkgohzsoorelmbhSCDnJ0FAmL78uUACgkQelmbhSCD
nJ2S4w//ZBZ6b6sfjjOmmr+4ogKOXrg7T+PhuAh4TjPIHD8EBOLsbuA7fDMpZXse
HX8U5XQ2Cw/TfPiigwioLBHci6J84QfdXNmzcijG5ymCdZBOqIurTgVxtzXMFpRf
C2WzB1OPf8lzUwObs/3NWk7Nsl0KP/8FmRsO/WhmiuB/nv9B+lPBl8T2OE288fiv
43ryOKKWOohiXiFuCFx7T/RtE6vVSKpZFDsiWdadIJ5qgxCvu7lCBhBua+Nk1YYZ
x9OkI6L62+3i+VFSGNYRWFFYAfe1J4Yi6ACCMtbDEgn0og+uq7gDtRaVwToz+3XL
5S0d3wC5SrZk/2QILgzMDcsuiDmzKU3fxAlV66iCNa5VTdKxW9o3D2BxZNhTLbyM
kfDOcezKQhpd+z0WEPk35NQXvgRaOklXvglvZHIE+ZmilFsAVTs3glN0qXbi4e1J
WUbYohaHmvbG1jVkq3uxdxJjMzRQzLz5dyfSRjM7Aq+m5KohkPgXNxxbwVXz14VE
kKMhkBcQR7B2egn3eZ/O42sYZP6QN2kWhq2WEdyTXRp2TrYLZURFDwZ1Ei098fBd
ZjN7rhdSnrOoCp/xDy7NIWzMPKI92wZXGOwXzoPwi/UfcCY7TR3I0z1z2e4Ry9Sv
wLrScSFxL3GEyG1gSO+PRW97NGrGNa4dIwfqMlfxYZRcBWkCf8g=
=RraN
-----END PGP SIGNATURE-----

--N2tjlpW3SlgHKG9Y--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Yvvy5YLL/mxRQNMY>