https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117488
Bug ID: 117488 Summary: Building a gcc cross-compiler for hppa fails Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: bart.vanassche at gmail dot com Target Milestone: --- Created attachment 59559 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59559&action=edit build-gcc-hppa The attached script builds a hppa cross-compiler from the gcc source code. This script worked fine with previous versions of gcc but fails as follows with the gcc git commit (e97179bacd06 ("libstdc++: Improve comment for _Hashtable::_M_insert_unique_node")): ~~~ In file included from ../include/atomic.h:49, from dl-find_object.c:20: In function '_dlfo_update_init_seg', inlined from '_dl_find_object_update_1' at dl-find_object.c:689:30, inlined from '_dl_find_object_update' at dl-find_object.c:805:13: ../sysdeps/unix/sysv/linux/hppa/atomic-machine.h:44:4: error: '__atomic_store_4' writing 4 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=] 44 | __atomic_store_n ((mem), (val), __ATOMIC_RELAXED); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dl-find_object.c:644:3: note: in expansion of macro 'atomic_store_relaxed' 644 | atomic_store_relaxed (&seg->size, new_seg_size); | ^~~~~~~~~~~~~~~~~~~~ In function '_dl_find_object_update': cc1: note: destination object is likely at address zero cc1: all warnings being treated as errors make[2]: *** [../o-iterator.mk:9: /home/bart/software/glibc-build/elf/dl-find_object.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [Makefile:484: elf/subdir_lib] Error 2 make: *** [Makefile:9: all] Error 2 ~~~ Version of the kernel source tree: commit 906bd684e4b1 ("Merge tag 'spi-fix-v6.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi"; )