./configure hang up #25864

issue elonlvl opened this issue on August 17, 2022
  1. elonlvl commented at 8:25 PM on August 17, 2022: none

    I am using Mac OS 13.0.1

    i get to this point everytime everyway I try to configure the code from source....

    checking dependency style of g++... gcc3
    checking whether g++ supports C++17 features with -std=c++17... yes
    checking whether std::filesystem can be used without link library... no
    checking whether std::filesystem needs -lstdc++fs... no
    checking whether std::filesystem needs -lc++fs... configure: error: in `/bitcoin/bitcoin-cli':
    configure: error: cannot figure out how to use std::filesystem
    See `config.log' for more details
    

    what can i do to remedy the situation?

  2. elonlvl added the label Bug on Aug 17, 2022
  3. fanquake commented at 8:27 PM on August 17, 2022: member

    You're using an unreleased version of macOS?

    What compiler are you using? What is the error in config.log?

  4. fanquake added the label macOS on Aug 17, 2022
  5. adam2k commented at 1:16 PM on August 18, 2022: none

    There is a macOS 13 beta out. I'm not sure why Apple would call it 13.0.1 while it's still in beta though?

    https://developer.apple.com/documentation/macos-release-notes/macos-13-release-notes

  6. ZaidanK commented at 5:02 PM on August 18, 2022: none

    I've recently encountered this on MacOs 12.5 I think I needed to install g++8 to get it to work, I see that you have g++3 there. I'm trying to redo my google searches. Did you follow the instructions through the macOS guide and have all the dependencies installed?

  7. elonlvl commented at 3:17 AM on August 19, 2022: none

    you know i actually meant 10.13.6

  8. elonlvl commented at 3:19 AM on August 19, 2022: none

    and yes i have all of the dependecies i thought. with the guide:

    using this guide:

    https://blog.coincorner.com/bitcoin-core-development-on-macos-a-step-by-step-guide-5ecf8b17eb49

  9. fanquake removed the label Bug on Aug 19, 2022
  10. fanquake commented at 7:01 AM on August 19, 2022: member

    i actually meant 10.13.6

    using this guide:

    There's no need to use (outdated), 2 year old build guides from Medium. Just use our actual build documentation: https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md.

    In any case, you didn't answer either of the questions we need answers to, to solve your problem: What compiler are you using? What is the error in config.log?. The problem is that your compiler doesn't support using std::filesystem. You can install and use a newer compiler that does. i.e GCC 8.1+ or Clang 8.0+.

  11. fanquake closed this on Aug 19, 2022

  12. elonlvl commented at 11:53 AM on August 19, 2022: none

    how do i go about updating gcc in mac os? with home brew ? i couldnt seem to get it working with brew install gcc@8 but it still recognizes gcc3 and not the new one. how exactly do i install the new compiler?

  13. MarcoFalke added the label Questions and Help on Aug 19, 2022
  14. MarcoFalke commented at 11:56 AM on August 19, 2022: member

    What is g++ --version (I think on macOS this will just print some clang version, as g++ may be an alias for clang)

  15. elonlvl commented at 11:57 AM on August 19, 2022: none
  16. elonlvl commented at 11:58 AM on August 19, 2022: none
    errirayech:bitcoin folderhub$ g++ --version
    Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
    Apple LLVM version 10.0.0 (clang-1000.10.44.4)
    Target: x86_64-apple-darwin17.7.0
    Thread model: posix
    InstalledDir: /Library/Developer/CommandLineTools/usr/bin
    
  17. fanquake commented at 1:46 PM on August 19, 2022: member

    i couldnt seem to get it working with brew install gcc@8

    There's no particular reason to use GCC 8. I'd instead suggest llvm, which is currently version 14.0.6. Once installed, pass CC and CXX to configure. i.e:

    brew install llvm
    ./autogen.sh
    # where /path/to is something like /opt/homebrew/opt/llvm/bin/clang.
    # brew info llvm will show you this.
    ./configure CC=/path/to/clang CXX=/path/to/clang++
    make check
    
  18. elonlvl commented at 3:28 PM on August 19, 2022: none

    clang ? is that what llvm is?

  19. elonlvl commented at 4:28 AM on August 20, 2022: none
    errirayech:bitcoin folderhub$ ./configure
    checking for pkg-config... /usr/local/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking build system type... x86_64-apple-darwin17.7.0
    checking host system type... x86_64-apple-darwin17.7.0
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether to enable maintainer-specific portions of Makefiles... yes
    checking whether make supports nested variables... (cached) yes
    checking for g++... g++
    checking whether the C++ compiler works... yes
    checking for C++ compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether the compiler supports GNU C++... yes
    checking whether g++ accepts -g... yes
    checking for g++ option to enable C++11 features... none needed
    checking whether make supports the include directive... yes (GNU style)
    checking dependency style of g++... gcc3
    checking whether g++ supports C++17 features with -std=c++17... yes
    checking whether std::filesystem can be used without link library... no
    checking whether std::filesystem needs -lstdc++fs... no
    checking whether std::filesystem needs -lc++fs... configure: error: in `/Users/folderhub/heard/bitcoin':
    configure: error: cannot figure out how to use std::filesystem
    See `config.log' for more details
    
  20. elonlvl commented at 4:32 AM on August 20, 2022: none
    errirayech:bitcoin folderhub$ ./configure CC=/usr/local/opt/llvm CXX=/usr/local/opt/llvm/lib
    checking for pkg-config... /usr/local/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking build system type... i386-apple-darwin17.7.0
    checking host system type... i386-apple-darwin17.7.0
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether to enable maintainer-specific portions of Makefiles... yes
    checking whether make supports nested variables... (cached) yes
    checking whether the C++ compiler works... no
    configure: error: in `/Users/folderhub/heard/bitcoin':
    configure: error: C++ compiler cannot create executables
    See `config.log' for more details
    
    
    

    i dont get as far with mapping out the CC And CXX

    
    
    
    
    
    
    errirayech:bitcoin folderhub$ ./configure CC=/usr/local/opt/llvm CXX=/usr/local/opt/llvm/lib
    checking for pkg-config... /usr/local/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking build system type... i386-apple-darwin17.7.0
    checking host system type... i386-apple-darwin17.7.0
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether to enable maintainer-specific portions of Makefiles... yes
    checking whether make supports nested variables... (cached) yes
    checking whether the C++ compiler works... no
    configure: error: in `/Users/folderhub/heard/bitcoin':
    configure: error: C++ compiler cannot create executables
    See `config.log' for more details
    
  21. elonlvl commented at 2:14 AM on August 21, 2022: none
    errirayech:bitcoin folderhub$  ./configure CC=/opt/homebrew/opt/llvm/bin/clang@ CXX=/opt/homebrew/opt/llvm/bin/clang++  
    checking for pkg-config... /usr/local/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking build system type... i386-apple-darwin17.7.0
    checking host system type... i386-apple-darwin17.7.0
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether to enable maintainer-specific portions of Makefiles... yes
    checking whether make supports nested variables... (cached) yes
    checking whether the C++ compiler works... no
    configure: error: in `/Users/folderhub/heard/bitcoin':
    configure: error: C++ compiler cannot create executables
    See `config.log' for more details
    

    still getting hung up, why cannot my c++ compiler make executables????

  22. elonlvl commented at 5:03 PM on August 22, 2022: none

    I WAS ABLE TO COMPILE THANK YOU VERY MUCH GUYS!!!

  23. elonlvl commented at 5:03 PM on August 22, 2022: none

    thanks for following up with me till the end.!!!

  24. bitcoin locked this on Aug 22, 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-16 21:13 UTC

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