You are not logged in.

#1 2026-06-04 17:46:41

silverhikari
Member
Registered: 2018-09-09
Posts: 21

segmentation fault in cc1plus when building CLK

installed GCC: 16.1.1 20260430
build log: https://pastee.dev/p/HD63oHzl
when building CLK(either SDL or QT) from either upstream or the pkgbuild with GCC errors out with a segmentation fault in cc1plus. i have test and the program will build fine when using GCC 15.2.1 or using the latest version of clang. i have test to see if the problem is fixed by going to a newer version by git cloning the git repo, that did not fix it.

Offline

#2 2026-06-04 20:12:46

loqs
Member
Registered: 2014-03-06
Posts: 18,891

Re: segmentation fault in cc1plus when building CLK

Looks to be a gcc regression causing infinite recursion while generating and evaluating an implicit move constructor. I would suggest opening an upstream issue if there is not one open already.

Offline

#3 2026-06-04 22:01:41

silverhikari
Member
Registered: 2018-09-09
Posts: 21

Re: segmentation fault in cc1plus when building CLK

by upstream are you referring to the CLK project or GCC?

Offline

#4 2026-06-04 22:11:34

loqs
Member
Registered: 2014-03-06
Posts: 18,891

Re: segmentation fault in cc1plus when building CLK

gcc as the compiler should only ever fail with an internal error due to a hardware issue. As I can reproduce the issue on a separate system and you observed the issue is not present in gcc 15 that points to a gcc 16 regression.  CLK might be able to work around the issue by adding an concrete move constructor.

Last edited by loqs (2026-06-04 22:14:28)

Offline

Board footer

Powered by FluxBB