Fail to build on Fedora 32 #19892

issue hebasto opened this issue on September 6, 2020
  1. hebasto commented at 11:47 AM on September 6, 2020: member
    $ cat /etc/system-release
    Fedora release 32 (Thirty Two)
    $ gcc --version | grep gcc
    gcc (GCC) 10.2.1 20200723 (Red Hat 10.2.1-1)
    $ make --version
    GNU Make 4.2.1
    Built for x86_64-redhat-linux-gnu
    Copyright (C) 1988-2016 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    $ git rev-parse HEAD
    03689317021a72431762c1974530f2a980a7fffa
    $ ./autogen.sh 
    $ ./configure
    $ make clean
    $ make
    ...
      CXX      libbitcoin_common_a-warnings.o
      AR       libbitcoin_common.a
    bfd plugin: script/libbitcoin_common_a-descriptor.o: file too short
    
    /usr/bin/ranlib: out of memory allocating 7701297037312 bytes after a total of 774144 bytes
    make[2]: *** [Makefile:7481: libbitcoin_common.a] Error 1
    make[2]: Leaving directory '/home/hebasto/bitcoin/src'
    make[1]: *** [Makefile:18954: all-recursive] Error 1
    make[1]: Leaving directory '/home/hebasto/bitcoin/src'
    make: *** [Makefile:797: all-recursive] Error 1
    
  2. hebasto added the label Bug on Sep 6, 2020
  3. fanquake commented at 11:49 AM on September 6, 2020: member

    /usr/bin/ranlib: out of memory allocating 7701297037312 bytes after a total of 774144 bytes

    This looks like you ran out of memory. Building on Fedora 32 works fine.

  4. hebasto commented at 11:52 AM on September 6, 2020: member

    /usr/bin/ranlib: out of memory allocating 7701297037312 bytes after a total of 774144 bytes

    This looks like you ran out of memory. Building on Fedora 32 works fine.

    That was my first thought too. Monitoring with watch free did not show any problems. It is a VM with 16 GB RAM, and make is running without -j option.

    UPDATE: I have no free 7172 GiB :)

  5. MarcoFalke commented at 12:15 PM on September 6, 2020: member

    Could be a hard drive failure. Try rm -r ./src && git restore ./src (only if you have no changes in ./src that you want to keep!)

  6. MarcoFalke removed the label Bug on Sep 6, 2020
  7. MarcoFalke added the label Questions and Help on Sep 6, 2020
  8. hebasto commented at 12:21 PM on September 6, 2020: member

    Could be a hard drive failure. Try rm -r ./src && git restore ./src (only if you have no changes in ./src that you want to keep!)

    Did not help, unfortunately.

  9. MarcoFalke commented at 12:22 PM on September 6, 2020: member

    Does a fresh clone help? Does a fresh install of the OS help?

  10. hebasto commented at 4:04 PM on September 6, 2020: member

    Does a fresh clone help?

    No.

    Does a fresh install of the OS help?

    Yes! Thank you @MarcoFalke!

  11. hebasto closed this on Sep 6, 2020

  12. fanquake locked this on Sep 7, 2020

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: 2026-04-24 21:14 UTC

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