pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GCC_REQD+= 12 ?(Re: games/openrct2 spins 99% CPU for hours



Am 22.12.2024 um 02:22 schrieb Makoto Fujiwara:
> Anyway, there are some problems in this context.
> When this package is compiled with gcc-10, based on the setting of
>     USE_CXX_FEATURE+= c++20 (and with mk/compiler/gcc.mk):
>
> it spins 99% at some point.
> Is it because of
> - cmake ?
> - gcc-10 problem ?  (I think this is true)
> - upstream code ?  (but OK with gcc-12)

The usual approach for situations like these is:

1. Track down the file that causes the spin loop.

2. Change the optimization level to -O0 for this file, to see whether it
is a compiler bug.

3. Track down the code snippet in this file that causes the spin loop,
by generating the preprocessed source and iteratively removing parts of
it until the bug no longer occurs, thereby producing a minimal
self-contained example, to decide whether it's a compiler bug or a code bug.

Did you already try the above steps? When you say "at some point", it
doesn't sound so.

Roland



Home | Main Index | Thread Index | Old Index