From 8afe70f492f7c3cd79f5c9171675521d9c6505d162b6a05548b7f710a69daa06 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Wed, 18 Jan 2023 15:11:04 +0000 Subject: [PATCH] Accepting request 1058694 from home:frispete:branches:X11:XOrg - Compile with gcc12 on Leaps: building drivers fails with: /usr/include/dxguids/dxguids.h:70:1: internal compiler error: in cxx_eval_bit_field_ref, at cp/constexpr.c:2578 OBS-URL: https://build.opensuse.org/request/show/1058694 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1178 --- Mesa.changes | 7 +++++++ Mesa.spec | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/Mesa.changes b/Mesa.changes index 7ad7f29..612a36a 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -6,6 +6,13 @@ Mon Jan 16 22:44:11 UTC 2023 - Martin Hauke You will need to set your environment to use it * See https://docs.mesa3d.org/envvars#rusticl-environment-variables +------------------------------------------------------------------- +Mon Jan 16 11:27:13 UTC 2023 - Hans-Peter Jansen + +- Compile with gcc12 on Leaps: building drivers fails with: + /usr/include/dxguids/dxguids.h:70:1: internal compiler error: + in cxx_eval_bit_field_ref, at cp/constexpr.c:2578 + ------------------------------------------------------------------- Sun Jan 15 12:40:15 UTC 2023 - Martin Hauke diff --git a/Mesa.spec b/Mesa.spec index 0afc8a8..54166e5 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -154,7 +154,11 @@ BuildRequires: bison BuildRequires: cmake BuildRequires: fdupes BuildRequires: flex +%if 0%{?sle_version} >= 150400 +BuildRequires: gcc12-c++ +%else BuildRequires: gcc-c++ +%endif BuildRequires: glslang-devel BuildRequires: imake BuildRequires: libtool @@ -801,6 +805,10 @@ grep -v -i vulkan "%{_sourcedir}/baselibs.conf" >"%{_sourcedir}/temp" && \ %ifarch ppc64 ppc64le %limit_build -m 1024 %endif +%if 0%{?sle_version} >= 150400 +export CC=gcc-12 +export CXX=g++-12 +%endif egl_platforms=x11,wayland