Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 2021 20:14:35 +0100
From:      Piotr Kubaj <pkubaj@anongoth.pl>
To:        Jan Beich <jbeich@freebsd.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r566179 - head/graphics/mesa-devel
Message-ID:  <YDFfm040oiCcqWTj@KGPE-D16>
In-Reply-To: <202102201906.11KJ6DIm005978@repo.freebsd.org>
References:  <202102201906.11KJ6DIm005978@repo.freebsd.org>

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

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

Please disable on powerpc64.

powerpc64 is known to have broken Clang - it generates broken binaries when=
 LTO is used (even simple tests like hello world break).

This is actually the worst case of compiler bug - binaries build fine, but =
just segfault at start.

It doesn't affect powerpc64le. The bug is already reported to upstream.

On 21-02-20 19:06:13, Jan Beich wrote:
> Author: jbeich
> Date: Sat Feb 20 19:06:12 2021
> New Revision: 566179
> URL: https://svnweb.freebsd.org/changeset/ports/566179
>=20
> Log:
>   graphics/mesa-devel: enable LTO by default
>  =20
>   Mesa drivers are large, so let linker optimize across files.
>   May improve init/load time without increasing FPS counter.
>  =20
>   Beware of dragons on non-amd64 e.g.,
>  =20
>     $ vkcube-xcb
>     Selected GPU 0: Intel(R) HD Graphics 530 (SKL GT2), type: 1
>     Assertion failed: (!err), function demo_prepare_buffers, file Vulkan-=
Tools-1.2.170/cube/cube.c, line 1344.
>     Abort trap
>  =20
>   Inspired by:	Arch Linux
>=20
> Modified:
>   head/graphics/mesa-devel/Makefile   (contents, props changed)
>=20
> Modified: head/graphics/mesa-devel/Makefile
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/graphics/mesa-devel/Makefile	Sat Feb 20 19:06:04 2021	(r566178)
> +++ head/graphics/mesa-devel/Makefile	Sat Feb 20 19:06:12 2021	(r566179)
> @@ -3,6 +3,7 @@
>  PORTNAME=3D	mesa
>  DISTVERSION=3D	21.0-branchpoint-1876
>  DISTVERSIONSUFFIX=3D	-g575756274a8
> +PORTREVISION=3D	1
>  CATEGORIES=3D	graphics
>  PKGNAMESUFFIX=3D	-devel
> =20
> @@ -55,13 +56,14 @@ PLIST_SUB=3D	ARCH=3D${ARCH:S/amd/x86_/}
>  LDFLAGS+=3D	-fuse-ld=3Dlld
>  .endif
> =20
> -OPTIONS_DEFINE=3D		${OPTIONS_MULTI} LIBUNWIND LLVM VAAPI VDPAU WAYLAND X=
11 ZSTD
> -OPTIONS_DEFAULT=3D	${OPTIONS_MULTI} LIBUNWIND LLVM VAAPI VDPAU WAYLAND X=
11 ZSTD
> +OPTIONS_DEFINE=3D		${OPTIONS_MULTI} LIBUNWIND LLVM LTO VAAPI VDPAU WAYLA=
ND X11 ZSTD
> +OPTIONS_DEFAULT=3D	${OPTIONS_MULTI} LIBUNWIND LLVM LTO VAAPI VDPAU WAYLA=
ND X11 ZSTD
>  OPTIONS_MULTI=3D		DRI GALLIUM VULKAN
>  OPTIONS_MULTI_DRI=3D	i965
>  OPTIONS_MULTI_GALLIUM=3D	iris r600 radeonsi
>  OPTIONS_MULTI_VULKAN=3D	anv radv
>  OPTIONS_EXCLUDE_DragonFly=3D	LIBUNWIND anv
> +OPTIONS_EXCLUDE_i386=3D	LTO # anv: vkcube fails on vkCreateSwapchainKHR
>  OPTIONS_EXCLUDE+=3D	${ARCH:Namd64:Ni386:Nx86_64:C/.+/anv i965 iris/}
>  OPTIONS_EXCLUDE+=3D	${ARCH:Naarch64:Namd64:Ni386:Npowerpc64:Npowerpc64le=
:Nx86_64:C/.+/LIBUNWIND/}
>  OPTIONS_EXCLUDE+=3D	${"${GL_DEFAULT:S/,/ /g:[-1]}"=3D=3D${.CURDIR:T}:?CO=
INST:}
> @@ -110,6 +112,8 @@ LLVM_BINARY_ALIAS=3D	llvm-config=3Dllvm-config${LLVM_=
DEFAU
>  .for i in r600 radeonsi radv
>  ${i}_IMPLIES+=3D		LLVM
>  .endfor
> +
> +LTO_MESON_TRUE=3D		b_lto
> =20
>  VAAPI_BUILD_DEPENDS=3D	libva>0:multimedia/libva
>  VAAPI_MESON_ENABLED=3D	gallium-va

--N4Yxe+PdsHvLudHM
Content-Type: application/pgp-signature; name="signature.asc"

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

iQIzBAABCgAdFiEEycyIeNkkgohzsoorelmbhSCDnJ0FAmAxX5sACgkQelmbhSCD
nJ1v9BAArjaTif1lJpgq9k3xJtzBFVJjqJKXQ+pwrmi6vmU6zb+V4e6hHX9onNz9
bHZszeTec4UUFFBHN5p5TvWND6/Rx2OsWqZ558W+2gGOrbuy3zaMe7w5RVsZ6xRV
dNh35p2c9k/FUokHMFaphwWIoVKPBzzX8XsFXdei81BgtUuATrCOBZMWdHpH1xMS
u+rrYnCiBZWICMNW4xvwGTHoX8dksIB72vETKnAUollXX16gvhgV9vGr/DDK4Xy/
OjyRDPo+y1u5z/iTCPP4MHgNYxx4sPM9S0QIB9dcj+TgwXA5zNvMi2zIbgPop3NZ
+a1btiIZ41hedCjsopag97Zua6F9Gy0UAAfpgMnNLec4YNB5KJYdcqGmqxEzKpxS
cdhQfS4BzCx8w6EKqyzTv1EqlEhKNl5xMZ8zKQCM+803cf/R1SSqcH5/qQPGgXPv
BwhZppx5BBHvSeHaAqEkDUea9RFKcz2JxwGY4U0G8ISCBpSBiP6NudLfEnGN5HGJ
g0bdktllpqNwApj403hwheE0EEyeRrOZeJIEt2NLEf1eiY+Y89l/QzrL/6wUZ+G6
V/121pe7h5CkkDKcVqQOZpZx3T2kNZO3nub0RCmDB3PQ4NSyVAF7QuHSZmLzQIA0
kXga3SqXNYrVNDGULPqZbiGU1zqEqtVFX/QKIdu6zbR6GnGd7DA=
=+4uX
-----END PGP SIGNATURE-----

--N4Yxe+PdsHvLudHM--



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