Bug 1214288

Summary: GCC 10 / 12 crashes when building neochat
Product: [openSUSE] openSUSE Distribution Reporter: Christophe Marin <christophe>
Component: DevelopmentAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: opensuse-kde-bugs, rguenther
Version: Leap 15.5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christophe Marin 2023-08-15 09:56:15 UTC
Background: newer libQuotient versions need a compiler that fully supports c++-20.

On Leap, when built with either GCC 10 or GCC 12, the compiler segfaults:

https://build.opensuse.org/package/live_build_log/KDE:Qt5/libQuotient:qt6/openSUSE_Leap_15.5/x86_64
Comment 1 Richard Biener 2023-08-15 11:25:16 UTC
There is no compiler that fully supports C++20 yet, that support is still experimental and incomplete.  Definitely GCC 10 isn't supported for this.
Oddly enough even though you install gcc12 it's gcc10 that's being used.
When I execute the offending compiler command in the chroot and using
/usr/bin/g++12 instead of /usr/bin/g++10 the failure goes away.

So something is wrong with your setup of the compilers.  I see

[   29s] + export CXX=g++-12
[   29s] + CXX=g++-12
[   29s] + cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_INSTALL_PREFIX:STRING=/usr -DCMAKE_MESSAGE_LOG_LEVEL:STRING=STATUS -S . -B build -GNinja -DCMAKE_C_COMPILER:STRING=gcc-10 -DCMAKE_CXX_COMPILER:STRING=g++-10 

^^^

and

build/CMakeCache.txt:CMAKE_CXX_COMPILER:STRING=/usr/bin/g++-10
build/DartConfiguration.tcl:BuildName: Linux-g++-10
build/DartConfiguration.tcl:Compiler: /usr/bin/g++-10

no idea where that's injected from.

GCC 10 isn't going to be fixed.