https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118819
Bug ID: 118819 Summary: runtime error: signed integer overflow during bootstrap Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- >From this morning's bootstrap with ASAN & UBSAN I get /home/dcb40b/gcc/working/./gcc/xgcc -B/home/dcb40b/gcc/working/./gcc/ -B/home/dcb40b/gcc/results.20250210/x86_64-pc-linux-gnu/bin/ -B/home/dcb40b/gcc/results.20250210/x86_64-pc-linux-gnu/lib/ -isystem /home/dcb40b/gcc/results.20250210/x86_64-pc-linux-gnu/include -isystem /home/dcb40b/gcc/results.20250210/x86_64-pc-linux-gnu/sys-include -fno-checking -DHAVE_CONFIG_H -I. -I../../../trunk/libgomp -I../../../trunk/libgomp/config/linux/x86 -I../../../trunk/libgomp/config/linux -I../../../trunk/libgomp/config/posix -I../../../trunk/libgomp -I../../../trunk/libgomp/../include -Wall -ftls-model=initial-exec -pthread -DUSING_INITIAL_EXEC_TLS -fcf-protection -mshstk -g -O2 -march=native -MT ptrlock.lo -MD -MP -MF .deps/ptrlock.Tpo -c ../../../trunk/libgomp/config/linux/ptrlock.c -fPIC -DPIC -o .libs/ptrlock.o ../../trunk/gcc/poly-int.h:776:5: runtime error: signed integer overflow: -9223372036854775807 + -8 cannot be represented in type 'long int' and working $ grep -E "error:|^Config" mk.out ... Configuring stage 2 in x86_64-pc-linux-gnu/libstdc++-v3 ../../trunk/gcc/poly-int.h:776:5: runtime error: signed integer overflow: -92233 72036854775807 + -8 cannot be represented in type 'long int' Configure is ../trunk/configure --prefix=$HOME/gcc/results.$DATE \ --disable-multilib \ --disable-werror \ --with-pkgversion=$HASH \ --with-build-config="bootstrap-asan bootstrap-ubsan" \ --enable-checking=yes \ --enable-languages=c,c++ sed 's;-O2;-O2 -march=znver3;' < Makefile > Makefile.tmp diff Makefile Makefile.tmp mv Makefile.tmp Makefile The last time I tried this bootstrap, dated 20250202, it seemed to work.