Bug 1214288 - GCC 10 / 12 crashes when building neochat
Summary: GCC 10 / 12 crashes when building neochat
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Development (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-15 09:56 UTC by Christophe Marin
Modified: 2023-08-15 11:25 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.