./configure hang up #25864

issue elonlvl openend 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….

    0checking dependency style of g++... gcc3
    1checking whether g++ supports C++17 features with -std=c++17... yes
    2checking whether std::filesystem can be used without link library... no
    3checking whether std::filesystem needs -lstdc++fs... no
    4checking whether std::filesystem needs -lc++fs... configure: error: in `/bitcoin/bitcoin-cli':
    5configure: error: cannot figure out how to use std::filesystem
    6See `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
    0errirayech:bitcoin folderhub$ g++ --version
    1Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
    2Apple LLVM version 10.0.0 (clang-1000.10.44.4)
    3Target: x86_64-apple-darwin17.7.0
    4Thread model: posix
    5InstalledDir: /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:

    0brew install llvm
    1./autogen.sh
    2# where /path/to is something like /opt/homebrew/opt/llvm/bin/clang.
    3# brew info llvm will show you this.
    4./configure CC=/path/to/clang CXX=/path/to/clang++
    5make 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
     0errirayech:bitcoin folderhub$ ./configure
     1checking for pkg-config... /usr/local/bin/pkg-config
     2checking pkg-config is at least version 0.9.0... yes
     3checking build system type... x86_64-apple-darwin17.7.0
     4checking host system type... x86_64-apple-darwin17.7.0
     5checking for a BSD-compatible install... /usr/bin/install -c
     6checking whether build environment is sane... yes
     7checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
     8checking for gawk... no
     9checking for mawk... no
    10checking for nawk... no
    11checking for awk... awk
    12checking whether make sets $(MAKE)... yes
    13checking whether make supports nested variables... yes
    14checking whether to enable maintainer-specific portions of Makefiles... yes
    15checking whether make supports nested variables... (cached) yes
    16checking for g++... g++
    17checking whether the C++ compiler works... yes
    18checking for C++ compiler default output file name... a.out
    19checking for suffix of executables... 
    20checking whether we are cross compiling... no
    21checking for suffix of object files... o
    22checking whether the compiler supports GNU C++... yes
    23checking whether g++ accepts -g... yes
    24checking for g++ option to enable C++11 features... none needed
    25checking whether make supports the include directive... yes (GNU style)
    26checking dependency style of g++... gcc3
    27checking whether g++ supports C++17 features with -std=c++17... yes
    28checking whether std::filesystem can be used without link library... no
    29checking whether std::filesystem needs -lstdc++fs... no
    30checking whether std::filesystem needs -lc++fs... configure: error: in `/Users/folderhub/heard/bitcoin':
    31configure: error: cannot figure out how to use std::filesystem
    32See `config.log' for more details
    
  20. elonlvl commented at 4:32 am on August 20, 2022: none
     0errirayech:bitcoin folderhub$ ./configure CC=/usr/local/opt/llvm CXX=/usr/local/opt/llvm/lib
     1checking for pkg-config... /usr/local/bin/pkg-config
     2checking pkg-config is at least version 0.9.0... yes
     3checking build system type... i386-apple-darwin17.7.0
     4checking host system type... i386-apple-darwin17.7.0
     5checking for a BSD-compatible install... /usr/bin/install -c
     6checking whether build environment is sane... yes
     7checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
     8checking for gawk... no
     9checking for mawk... no
    10checking for nawk... no
    11checking for awk... awk
    12checking whether make sets $(MAKE)... yes
    13checking whether make supports nested variables... yes
    14checking whether to enable maintainer-specific portions of Makefiles... yes
    15checking whether make supports nested variables... (cached) yes
    16checking whether the C++ compiler works... no
    17configure: error: in `/Users/folderhub/heard/bitcoin':
    18configure: error: C++ compiler cannot create executables
    19See `config.log' for more details
    

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

     0
     1
     2
     3
     4
     5
     6errirayech:bitcoin folderhub$ ./configure CC=/usr/local/opt/llvm CXX=/usr/local/opt/llvm/lib
     7checking for pkg-config... /usr/local/bin/pkg-config
     8checking pkg-config is at least version 0.9.0... yes
     9checking build system type... i386-apple-darwin17.7.0
    10checking host system type... i386-apple-darwin17.7.0
    11checking for a BSD-compatible install... /usr/bin/install -c
    12checking whether build environment is sane... yes
    13checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
    14checking for gawk... no
    15checking for mawk... no
    16checking for nawk... no
    17checking for awk... awk
    18checking whether make sets $(MAKE)... yes
    19checking whether make supports nested variables... yes
    20checking whether to enable maintainer-specific portions of Makefiles... yes
    21checking whether make supports nested variables... (cached) yes
    22checking whether the C++ compiler works... no
    23configure: error: in `/Users/folderhub/heard/bitcoin':
    24configure: error: C++ compiler cannot create executables
    25See `config.log' for more details
    
  21. elonlvl commented at 2:14 am on August 21, 2022: none
     0errirayech:bitcoin folderhub$  ./configure CC=/opt/homebrew/opt/llvm/bin/clang@ CXX=/opt/homebrew/opt/llvm/bin/clang++  
     1checking for pkg-config... /usr/local/bin/pkg-config
     2checking pkg-config is at least version 0.9.0... yes
     3checking build system type... i386-apple-darwin17.7.0
     4checking host system type... i386-apple-darwin17.7.0
     5checking for a BSD-compatible install... /usr/bin/install -c
     6checking whether build environment is sane... yes
     7checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
     8checking for gawk... no
     9checking for mawk... no
    10checking for nawk... no
    11checking for awk... awk
    12checking whether make sets $(MAKE)... yes
    13checking whether make supports nested variables... yes
    14checking whether to enable maintainer-specific portions of Makefiles... yes
    15checking whether make supports nested variables... (cached) yes
    16checking whether the C++ compiler works... no
    17configure: error: in `/Users/folderhub/heard/bitcoin':
    18configure: error: C++ compiler cannot create executables
    19See `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: 2024-09-29 01:12 UTC

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