https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117442
Bug ID: 117442
Summary: Cannot build libgfortran with
enable-gather-detailed-mem-stats after
r15-4760-g0b73e9382ab51c
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: jamborm at gcc dot gnu.org
CC: dmalcolm at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-linux-gnu
Target: x86_64-linux-gnu
After r15-4760-g0b73e9382ab51c (David Malcolm: diagnostics: support
multiple output formats simultaneously [PR116613]), libgfortran cannot
be built when you configure GCC to gather detailed memory statistics
like e.g.:
../src/configure --prefix=/tmp/inst --enable-languages=c,c++,fortran
--enable-checking=yes --disable-bootstrap --disable-libsanitizer
--disable-multilib --disable-libcilkrts --enable-gather-detailed-mem-stats
The build terminates in libgfortran configure, with:
checking whether the GNU Fortran compiler is working... no
The corresponding log file contains the test file on which gfortran ICEs:
configure:16360: checking whether the GNU Fortran compiler is working
configure:16373: /home/mjambor/gcc/mine/obj/./gcc/gfortran
-B/home/mjambor/gcc/mine/obj/./gcc/
-B/home/mjambor/gcc/mine/inst/x86_64-pc-linux-gnu/bin/
-B/home/mjambor/gcc/mine/inst/x86_64-pc-linux-gnu/lib/ -isystem
/home/mjambor/gcc/mine/inst/x86_64-pc-linux-gnu/include -isystem
/home/mjambor/gcc/mine/inst/x86_64-pc-linux-gnu/sys-include -c conftest.f
>&5
internal compiler error: in check_complete_insertion, at hash-table.h:572
0x9abe50 hash_table<hash_map<void const*, mem_usage_pair<vec_usage>,
simple_hashmap_traits<default_hash_traits<void const*>,
mem_usage_pair<vec_usage> > >::hash_entry, false,
xcallocator>::check_complete_insertion() const
/home/mjambor/gcc/mine/src/gcc/mem-stats.h:153
0x9abe50 hash_table<hash_map<void const*, mem_usage_pair<vec_usage>,
simple_hashmap_traits<default_hash_traits<void const*>,
mem_usage_pair<vec_usage> > >::hash_entry, false,
xcallocator>::find_with_hash(void const* const&, unsigned int)
/home/mjambor/gcc/mine/src/gcc/hash-table.h:990
0x9abe50 hash_map<void const*, mem_usage_pair<vec_usage>,
simple_hashmap_traits<default_hash_traits<void const*>,
mem_usage_pair<vec_usage> > >::get(void const* const&)
/home/mjambor/gcc/mine/src/gcc/hash-map.h:191
0x9abe50
mem_alloc_description<vec_usage>::contains_descriptor_for_instance(void const*)
/home/mjambor/gcc/mine/src/gcc/mem-stats.h:395
0x9abe50 vec_prefix::release_overhead(void*, unsigned long, unsigned long,
bool, char const*, int, char const*)
/home/mjambor/gcc/mine/src/gcc/vec.cc:138
0x277506d void
va_heap::release<diagnostic_per_format_buffer*>(vec<diagnostic_per_format_buffer*,
va_heap, vl_embed>*&)
/home/mjambor/gcc/mine/src/gcc/vec.h:345
0x277506d vec<diagnostic_per_format_buffer*, va_heap, vl_ptr>::release()
/home/mjambor/gcc/mine/src/gcc/vec.h:2027
0x277506d auto_vec<diagnostic_per_format_buffer*, 0ul>::~auto_vec()
/home/mjambor/gcc/mine/src/gcc/vec.h:1710
0x277506d diagnostic_buffer::~diagnostic_buffer()
/home/mjambor/gcc/mine/src/gcc/diagnostic.cc:1932
0x9b68a4 _start
../sysdeps/x86_64/start.S:115
gfortran: internal compiler error: Segmentation fault signal terminated program
f951
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
configure:16373: $? = 4
configure: failed program was:
|
| program foo
| real, parameter :: bar = sin (12.34 / 2.5)
| end program foo
configure:16377: result: no
configure:16379: error: GNU Fortran is not working; please report a bug in
http://gcc.gnu.org/bugzilla, attaching
/home/mjambor/gcc/mine/obj/x86_64-pc-linux-gnu/libgfortran/config.log