The error message:
(base) louielu@FVFC128NL410 inifile2 % ./build.sh
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is AppleClang 12.0.5.12050022
-- The CXX compiler identification is AppleClang 12.0.5.12050022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at test/googletest/CMakeLists.txt:54 (project):
VERSION keyword not followed by a value or was followed by a value that
expanded to nothing.
CMake Deprecation Warning at test/googletest/CMakeLists.txt:56 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Found PythonInterp: /opt/miniconda3/bin/python (found version "3.9.5")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.21)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
inifile_share
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/louielu/work/opensource/inifile2/build
[ 20%] Building CXX object src/CMakeFiles/inifile_share.dir/inifile.o
[ 20%] Building CXX object test/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
In file included from /Users/louielu/work/opensource/inifile2/test/googletest/src/gtest-all.cc:38:
In file included from /Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/gtest.h:62:
In file included from /Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-internal.h:40:
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:825:12: error: no member named 'make_tuple' in namespace 'std'
using std::make_tuple;
~~~~~^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:826:12: error: no member named 'tuple' in namespace 'std'
using std::tuple;
~~~~~^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:905:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
GTEST_DISALLOW_ASSIGN_(RE);
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:671:34: note: expanded from macro 'GTEST_DISALLOW_ASSIGN_'
void operator=(type const &) = delete
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:948:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
GTEST_DISALLOW_COPY_AND_ASSIGN_(GTestLog);
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:676:24: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
type(type const &) = delete;
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:948:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:677:3: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
GTEST_DISALLOW_ASSIGN_(type)
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:671:34: note: expanded from macro 'GTEST_DISALLOW_ASSIGN_'
void operator=(type const &) = delete
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1192:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
GTEST_DISALLOW_COPY_AND_ASSIGN_(Notification);
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:676:24: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
type(type const &) = delete;
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1192:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:677:3: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
GTEST_DISALLOW_ASSIGN_(type)
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:671:34: note: expanded from macro 'GTEST_DISALLOW_ASSIGN_'
void operator=(type const &) = delete
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1302:22: error: 'override' keyword is a C++11 extension [-Werror,-Wc++11-extensions]
~ThreadWithParam() override { Join(); }
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1311:14: error: 'override' keyword is a C++11 extension [-Werror,-Wc++11-extensions]
void Run() override {
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1326:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadWithParam);
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:676:24: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
type(type const &) = delete;
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1326:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:677:3: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
GTEST_DISALLOW_ASSIGN_(type)
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:671:34: note: expanded from macro 'GTEST_DISALLOW_ASSIGN_'
void operator=(type const &) = delete
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1684:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
GTEST_DISALLOW_COPY_AND_ASSIGN_(Mutex);
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:676:24: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
type(type const &) = delete;
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1684:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:677:3: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
GTEST_DISALLOW_ASSIGN_(type)
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:671:34: note: expanded from macro 'GTEST_DISALLOW_ASSIGN_'
void operator=(type const &) = delete
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1702:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
GTEST_DISALLOW_COPY_AND_ASSIGN_(GTestMutexLock);
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:676:24: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
type(type const &) = delete;
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1702:3: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:677:3: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
GTEST_DISALLOW_ASSIGN_(type)
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:671:34: note: expanded from macro 'GTEST_DISALLOW_ASSIGN_'
void operator=(type const &) = delete
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1759:5: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
GTEST_DISALLOW_COPY_AND_ASSIGN_(ValueHolder);
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:676:24: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
type(type const &) = delete;
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1759:5: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:677:3: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
GTEST_DISALLOW_ASSIGN_(type)
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:671:34: note: expanded from macro 'GTEST_DISALLOW_ASSIGN_'
void operator=(type const &) = delete
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1791:5: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
GTEST_DISALLOW_COPY_AND_ASSIGN_(ValueHolderFactory);
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:676:24: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
type(type const &) = delete;
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:1791:5: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:677:3: note: expanded from macro 'GTEST_DISALLOW_COPY_AND_ASSIGN_'
GTEST_DISALLOW_ASSIGN_(type)
^
/Users/louielu/work/opensource/inifile2/test/googletest/include/gtest/internal/gtest-port.h:671:34: note: expanded from macro 'GTEST_DISALLOW_ASSIGN_'
void operator=(type const &) = delete
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [test/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1
make[1]: *** [test/googletest/CMakeFiles/gtest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 30%] Linking CXX shared library ../lib/libinifile_share.dylib
[ 30%] Built target inifile_share
make: *** [all] Error 2