Hello guys, I’m trying to compile the current Master branch on a quite old Macbook Pro (early 2011) for which the latest supported os is Mac OS X 10.13 high sierra, and I’m getting the following error:
0Alessios-MacBook-Pro:src feeder$ make V=1
1g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../src/config -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -DHAVE_BUILD_INFO -Xclang -internal-isystem/usr/local/include -DMAC_OSX -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -DPROVIDE_FUZZ_MAIN_FUNCTION -I. -I./minisketch/include -I./secp256k1/include -I./univalue/include -I./leveldb/include -Wstack-protector -fstack-protector-all -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wloop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wunreachable-code-loop-increment -Wimplicit-fallthrough -Wdocumentation -Wno-unused-parameter -Wno-self-assign -g -O2 -MT bitcoind-bitcoind.o -MD -MP -MF .deps/bitcoind-bitcoind.Tpo -c -o bitcoind-bitcoind.o `test -f 'bitcoind.cpp' || echo './'`bitcoind.cpp
2In file included from bitcoind.cpp:10:
3In file included from ./chainparams.h:9:
4In file included from ./kernel/chainparams.h:10:
5In file included from ./netaddress.h:18:
6./util/strencodings.h:15:10: fatal error: 'charconv' file not found
7#include <charconv>
8 ^~~~~~~~~~
91 error generated.
10make[1]: *** [bitcoind-bitcoind.o] Error 1
11make: *** [all-recursive] Error 1
I think this is a known issue, and seems to be related to an old compiler, that does not fully support C++17 (and charconv, in particular)
My current compiler is an Apple LLVM 10, that I would believe is not that old:
0Alessios-MacBook-Pro:src feeder$ 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
Does anybody know if MacOS 10.13 is not supported anymore and it’s necessary to upgrade to a different release?
Is it known if MacOS 10.15 Catalina is supported?
PS: I also tried to install a newer version of GCC through BREW, but this release of MacOS is not supported anymore, so I’m just considering to change environment.