Thanks @ben.boeckel For completeness, here’s CMakeOutput.log:
The system is: Darwin - 18.7.0 - x86_64
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/local/bin/g++
Build flags:
Id flags:
The output was:
0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
The CXX compiler identification is GNU, found in "/Users/adamhaber/Exercism/cpp/leap/build/CMakeFiles/3.19.2/CompilerIdCXX/a.out"
and here’s CMakeError.log:
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags:
The output was:
1
g++: error: unrecognized command-line option '-stdlib=libc++'
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: -c
The output was:
1
g++: error: unrecognized command-line option '-stdlib=libc++'
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: --c++
The output was:
1
g++: error: unrecognized command-line option '-stdlib=libc++'
g++: error: unrecognized command-line option '--c++'
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: --ec++
The output was:
1
g++: error: unrecognized command-line option '-stdlib=libc++'
g++: error: unrecognized command-line option '--ec++'; did you mean '-Weffc++'?
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/g++
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: error: unrecognized command-line option '-stdlib=libc++'
g++: error: unrecognized command-line option '--target=arm-arm-none-eabi'
Detecting CXX compiler ABI info failed to compile with the following output:
Change Dir: /Users/adamhaber/Exercism/cpp/leap/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_23228/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_23228.dir/build.make CMakeFiles/cmTC_23228.dir/build
Building CXX object CMakeFiles/cmTC_23228.dir/CMakeCXXCompilerABI.cpp.o
/usr/local/bin/g++ -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -v -Wl,-v -o CMakeFiles/cmTC_23228.dir/CMakeCXXCompilerABI.cpp.o -c /usr/local/Cellar/cmake/3.19.2/share/cmake/Modules/CMakeCXXCompilerABI.cpp
Using built-in specs.
COLLECT_GCC=/usr/local/bin/g++
g++: error: unrecognized command-line option '-stdlib=libc++'
Target: x86_64-apple-darwin18
Configured with: ../configure --build=x86_64-apple-darwin18 --prefix=/usr/local/Cellar/gcc/10.2.0 --libdir=/usr/local/Cellar/gcc/10.2.0/lib/gcc/10 --disable-nls --enable-checking=release --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-10 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-system-zlib --with-pkgversion='Homebrew GCC 10.2.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-multilib --with-native-system-header-dir=/usr/include --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk SED=/usr/bin/sed
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.2.0 (Homebrew GCC 10.2.0)
make[1]: *** [CMakeFiles/cmTC_23228.dir/CMakeCXXCompilerABI.cpp.o] Error 1
make: *** [cmTC_23228/fast] Error 2
Determining if the CXX compiler works failed with the following output:
Change Dir: /Users/adamhaber/Exercism/cpp/leap/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_b924e/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_b924e.dir/build.make CMakeFiles/cmTC_b924e.dir/build
Building CXX object CMakeFiles/cmTC_b924e.dir/testCXXCompiler.cxx.o
/usr/local/bin/g++ -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -o CMakeFiles/cmTC_b924e.dir/testCXXCompiler.cxx.o -c /Users/adamhaber/Exercism/cpp/leap/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
g++: error: unrecognized command-line option '-stdlib=libc++'
make[1]: *** [CMakeFiles/cmTC_b924e.dir/testCXXCompiler.cxx.o] Error 1
make: *** [cmTC_b924e/fast] Error 2
Some more info that might be relevant:
(base) adamhaber-s-macbookpro1:build adamhaber$ which gcc
/usr/local/bin/gcc
(base) adamhaber-s-macbookpro1:build adamhaber$ which g++
/usr/local/bin/g++
(base) adamhaber-s-macbookpro1:build adamhaber$ which clang
/Users/adamhaber/miniconda3/bin/clang
(base) adamhaber-s-macbookpro1:build adamhaber$ which clang++
/Users/adamhaber/miniconda3/bin/clang++
(base) adamhaber-s-macbookpro1:build adamhaber$ echo $CC
/usr/local/bin/gcc
(base) adamhaber-s-macbookpro1:build adamhaber$ echo $CXX
/usr/local/bin/g++
(base) adamhaber-s-macbookpro1:build adamhaber$