guix: Prints "g++: not found" when building depends #21242

issue MarcoFalke opened this issue on February 20, 2021
  1. MarcoFalke commented at 6:14 AM on February 20, 2021: member

    Steps to reproduce: Start a guix build on a system without gcc.

    /bin/sh: 1: gcc: not found
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: g++: not found
    /bin/sh: 1: g++: not found
    env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang': No such file or directory
    env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang': No such file or directory
    env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang++': No such file or directory
    env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang++': No such file or directory
    Found macOS SDK at '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/SDKs/Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers', using...
    make: Entering directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: g++: not found
    /bin/sh: 1: g++: not found
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: g++: not found
    /bin/sh: 1: g++: not found
    make[1]: Entering directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: g++: not found
    /bin/sh: 1: g++: not found
    env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin/native/bin/clang': No such file or directory
    env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin/native/bin/clang': No such file or directory
    env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin/native/bin/clang++': No such file or directory
    env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin/native/bin/clang++': No such file or directory
    make[1]: Leaving directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
    make[1]: Entering directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: g++: not found
    /bin/sh: 1: g++: not found
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: g++: not found
    /bin/sh: 1: g++: not found
    make[1]: Leaving directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
    make[1]: Entering directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: gcc: not found
    /bin/sh: 1: g++: not found
    /bin/sh: 1: g++: not found
    /bin/sh: 1: x86_64-w64-mingw32-gcc: not found
    /bin/sh: 1: x86_64-w64-mingw32-gcc: not found
    /bin/sh: 1: x86_64-w64-mingw32-g++: not found
    /bin/sh: 1: x86_64-w64-mingw32-g++: not found
    make[1]: Leaving directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
    make: Leaving directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
    INFO: Building commit a4903f747ccd for platform triple x86_64-linux-gnu:
    
  2. MarcoFalke added the label Feature on Feb 20, 2021
  3. fanquake added the label Build system on Feb 20, 2021
  4. fanquake commented at 8:27 AM on February 20, 2021: member

    There is some discussion in #21089:

    Ah! This is because we now call build_CC and host_CC when determining our id_strings, and since the id_string variables are "immediate", any appending will also be evaluated immediately... Perhaps we can just set it to a dummy value when we're just downloading? Not sure what the best fix is here...

  5. dongcarl commented at 8:51 PM on February 22, 2021: member

    Right, small matter but if someone can come up with the right fix I'll apply it!

  6. dongcarl commented at 10:42 PM on March 12, 2021: member

    #21427 should fix this

  7. laanwj closed this on May 5, 2021

  8. sidhujag referenced this in commit 005744c270 on May 5, 2021
  9. DrahtBot locked this on Aug 18, 2022
  10. knst referenced this in commit 1b0946526d on Feb 7, 2023
  11. PastaPastaPasta referenced this in commit e78a6dd511 on Apr 10, 2023
  12. PastaPastaPasta referenced this in commit 641dc6623a on Apr 15, 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: 2026-04-17 06:14 UTC

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