Build fails on Ubuntu 22.04 with GCC 8.5 #24647

issue hebasto openend this issue on March 23, 2022
  1. hebasto commented at 6:49 am on March 23, 2022: member

    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
    
  2. hebasto added the label Bug on Mar 23, 2022
  3. hebasto added the label Upstream on Mar 23, 2022
  4. MarcoFalke commented at 12:27 pm on March 23, 2022: member
    You might have to report this upstream if you want it fixed?
  5. hebasto commented at 12:25 pm on May 27, 2022: member

    Closing.

    Ubuntu’s gcc-8 compilers are crap. On hirsute and impish they fail even with filesystem stuff. A code example from https://en.cppreference.com/w/cpp/filesystem/temp_directory_path ends with a segfault.

  6. hebasto closed this on May 27, 2022

  7. DrahtBot locked this on May 27, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-21 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me