There is no gcc12-c++ package available when building against openSUSE_Leap_15.4. It is when building against openSUSE_Leap_15.5 though. So I simply can't verify whether using gcc12 would help. # osc meta prj X11:XOrg <repository name="openSUSE_Leap_15.5"> <path project="openSUSE:Leap:15.5" repository="standard"/> <arch>x86_64</arch> <arch>i586</arch> <arch>aarch64</arch> </repository> <repository name="openSUSE_Leap_15.4"> <path project="openSUSE:Leap:15.4" repository="standard"/> <arch>x86_64</arch> <arch>i586</arch> <arch>aarch64</arch> </repository>