Building master (f05cf59d91eb03857dd9bdcc77607764da0349d2) on Ubuntu 22.04 with GCC 8.5:
0$ ./autogen.sh
1$ ./configure --with-incompatible-bdb CC=gcc-8 CXX=g++-8
2$ make clean
3$ make
4...
5 CXX libbitcoin_node_a-validation.o
6during RTL pass: reload
7validation.cpp: In member function ‘bool CChainState::FlushStateToDisk(BlockValidationState&, FlushStateMode, int)’:
8validation.cpp:2386:1: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
9
10 }
11 ^
12unrecognized DWARF version in .debug_info at 6
13unrecognized DWARF version in .debug_info at 6
14unrecognized DWARF version in .debug_info at 6
15Please submit a full bug report,
16with preprocessed source if appropriate.
17See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.
18make[2]: *** [Makefile:10721: libbitcoin_node_a-validation.o] Error 1
19make[2]: *** Waiting for unfinished jobs....
20make[2]: Leaving directory '/home/hebasto/GitHub/bitcoin/src'
21make[1]: *** [Makefile:19149: all-recursive] Error 1
22make[1]: Leaving directory '/home/hebasto/GitHub/bitcoin/src'
23make: *** [Makefile:816: all-recursive] Error 1
Interesting that the upstream bug has been fixed and backported:
0gcc-8 (8.3.0-25) unstable; urgency=medium
1
2 * Update to SVN 20191126 (r278718) from the gcc-8-branch.
3 - Fix PR c/91401, PR tree-optimization/91355, PR middle-end/90840,
4 PR target/90867 (x86), PR c/90898, PR middle-end/91450,
5 PR c++/92384, PR tree-optimization/92056, PR tree-optimization/91665,
6 PR middle-end/91001, PR middle-end/91105, PR middle-end/91106,
7 PR middle-end/91623, PR other/92090, PR target/92389 (x86),
8 PR target/87833 (x86), PR target/92095 (SPARC), PR fortran/92113,
9 PR tree-optimization/85887, PR c++/92201, PR c++/91974,
10 PR preprocessor/92296, PR fortran/92569, PR ada/92575.
11
12 -- Matthias Klose <doko@debian.org> Tue, 26 Nov 2019 08:34:48 +0100