Skip to content

Build issue on max OS #2295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Jeff-avatar opened this issue Jul 12, 2020 · 20 comments · Fixed by #2321
Closed

Build issue on max OS #2295

Jeff-avatar opened this issue Jul 12, 2020 · 20 comments · Fixed by #2321

Comments

@Jeff-avatar
Copy link

Issue description

I downloaded pybind11 and ran the following steps as mentioned in the document - http://pybind11.readthedocs.io/en/master/basics.html

mkdir build
cd build
cmake ..
make check -j 4

Then I have the following make errors:

username@user-macbook-pro-2 build % make check -j 4
-- Install configuration: "MinSizeRel"
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/attr.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/embed.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/numpy.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/pybind11.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/operators.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/iostream.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/chrono.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/stl_bind.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/buffer_info.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/options.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/functional.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/stl.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/typeid.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/descr.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/internals.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/common.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/class.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/init.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/common.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/eval.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/cast.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/eigen.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/pytypes.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/complex.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/pybind11Config.cmake
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/pybind11ConfigVersion.cmake
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/FindPythonLibsNew.cmake
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/pybind11Tools.cmake
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/pybind11Targets.cmake
[  0%] Built target mock_install
[ 81%] Built target pybind11_tests
[ 85%] Built target pybind11_cross_module_tests
[ 89%] Built target cross_module_gil_utils
[ 93%] Built target external_module
[100%] Built target test_embed
[100%] Built target test_installed_function
make[3]: *** [tests/test_cmake_build/CMakeFiles/test_installed_embed] Error 1
make[2]: *** [tests/test_cmake_build/CMakeFiles/test_installed_embed.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_target] Error 1
make[3]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_embed] Error 1
make[3]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_function] Error 1
make[2]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/all] Error 2
make[2]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/all] Error 2
make[2]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/all] Error 2
make[1]: *** [tests/CMakeFiles/check.dir/rule] Error 2
make: *** [check] Error 2

Any body has an idea to solve this problem? Thank you very much. I am on a macbook pro with MacOS Catalina Version 10.15.4. And I have python 2.7 and python 3.7 installed on my Mac.

@YannickJadoul
Copy link
Collaborator

This is just building pybind11's own tests?

I don't see where the error is happening, though. Could you please:

  1. make sure to clear out the build directory and run CMake again
  2. post the command and output of running CMake
  3. run the make command with the VERBOSE=1 environment variable set?

Hopefully that will make things more clear!

@Jeff-avatar
Copy link
Author

Jeff-avatar commented Jul 12, 2020

This is just building pybind11's own tests?

I don't see where the error is happening, though. Could you please:

  1. make sure to clear out the build directory and run CMake again
  2. post the command and output of running CMake
  3. run the make command with the VERBOSE=1 environment variable set?

Hopefully that will make things more clear!

After clear out the build directory and run CMake again, the output is as follows

user@user-macbook-pro-2 build % cmake -DDOWNLOAD_CATCH=1 ..
-- Building tests with Eigen v3.3.7
-- Downloading catch v1.9.3...
-- Building interpreter tests using Catch v1.9.3
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- pybind11 v2.5.dev1
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/zhihui/python_binding/pybind11-master/build

Then I run make command as follows and get the output:

user@user-macbook-pro-2 build % make VERBOSE=1 check -j 4
/usr/local/Cellar/cmake/3.17.0_1/bin/cmake -S/Users/zhihui/python_binding/pybind11-master -B/Users/zhihui/python_binding/pybind11-master/build --check-build-system CMakeFiles/Makefile.cmake 0
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 check
/usr/local/Cellar/cmake/3.17.0_1/bin/cmake -S/Users/zhihui/python_binding/pybind11-master -B/Users/zhihui/python_binding/pybind11-master/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_progress_start /Users/zhihui/python_binding/pybind11-master/build/CMakeFiles 48
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 tests/CMakeFiles/check.dir/all
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/mock_install.dir/build.make tests/test_cmake_build/CMakeFiles/mock_install.dir/depend
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/build.make tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/depend
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/build.make tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/depend
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/build.make tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/depend
cd /Users/zhihui/python_binding/pybind11-master/build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhihui/python_binding/pybind11-master /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/DependInfo.cmake --color=
cd /Users/zhihui/python_binding/pybind11-master/build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhihui/python_binding/pybind11-master /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/mock_install.dir/DependInfo.cmake --color=
cd /Users/zhihui/python_binding/pybind11-master/build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhihui/python_binding/pybind11-master /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/DependInfo.cmake --color=
cd /Users/zhihui/python_binding/pybind11-master/build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhihui/python_binding/pybind11-master /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/DependInfo.cmake --color=
Dependee "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/mock_install.dir/DependInfo.cmake" is newer than depender "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/mock_install.dir/depend.internal".
Dependee "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/DependInfo.cmake" is newer than depender "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/depend.internal".
Dependee "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/DependInfo.cmake" is newer than depender "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/depend.internal".
Dependee "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/DependInfo.cmake" is newer than depender "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/depend.internal".
Dependee "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/depend.internal".
Dependee "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/depend.internal".
Dependee "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/mock_install.dir/depend.internal".
Scanning dependencies of target test_subdirectory_embed
Dependee "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/depend.internal".
Scanning dependencies of target test_subdirectory_target
Scanning dependencies of target mock_install
Scanning dependencies of target test_subdirectory_function
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/build.make tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/build
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/build.make tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/build
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/build.make tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/build
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/mock_install.dir/build.make tests/test_cmake_build/CMakeFiles/mock_install.dir/build
cd /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build && /usr/local/Cellar/cmake/3.17.0_1/bin/ctest --quiet --output-log subdirectory_target.log --build-and-test /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build/subdirectory_target /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/subdirectory_target --build-config Release --build-noclean --build-generator Unix\ Makefiles  --build-makeprogram /usr/bin/make --build-target check --build-options -DCMAKE_PREFIX_PATH=/Users/zhihui/python_binding/pybind11-master/build/mock_install -DCMAKE_CXX_COMPILER=/Library/Developer/CommandLineTools/usr/bin/c++ -DPYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python3.7 -DPYBIND11_CPP_STANDARD= -DPYBIND11_PROJECT_DIR=/Users/zhihui/python_binding/pybind11-master
cd /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build && /usr/local/Cellar/cmake/3.17.0_1/bin/ctest --quiet --output-log subdirectory_embed.log --build-and-test /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build/subdirectory_embed /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/subdirectory_embed --build-config Release --build-noclean --build-generator Unix\ Makefiles  --build-makeprogram /usr/bin/make --build-target check --build-options -DCMAKE_PREFIX_PATH=/Users/zhihui/python_binding/pybind11-master/build/mock_install -DCMAKE_CXX_COMPILER=/Library/Developer/CommandLineTools/usr/bin/c++ -DPYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python3.7 -DPYBIND11_CPP_STANDARD= -DPYBIND11_PROJECT_DIR=/Users/zhihui/python_binding/pybind11-master
cd /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build && /usr/local/Cellar/cmake/3.17.0_1/bin/ctest --quiet --output-log subdirectory_function.log --build-and-test /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build/subdirectory_function /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/subdirectory_function --build-config Release --build-noclean --build-generator Unix\ Makefiles  --build-makeprogram /usr/bin/make --build-target check --build-options -DCMAKE_PREFIX_PATH=/Users/zhihui/python_binding/pybind11-master/build/mock_install -DCMAKE_CXX_COMPILER=/Library/Developer/CommandLineTools/usr/bin/c++ -DPYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python3.7 -DPYBIND11_CPP_STANDARD= -DPYBIND11_PROJECT_DIR=/Users/zhihui/python_binding/pybind11-master
cd /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -DCMAKE_INSTALL_PREFIX=/Users/zhihui/python_binding/pybind11-master/build/mock_install -P /Users/zhihui/python_binding/pybind11-master/build/cmake_install.cmake
-- Install configuration: "MinSizeRel"
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/attr.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/embed.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/numpy.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/pybind11.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/operators.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/iostream.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/chrono.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/stl_bind.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/buffer_info.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/options.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/functional.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/stl.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/typeid.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/descr.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/internals.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/common.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/class.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/init.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/common.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/eval.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/cast.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/eigen.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/pytypes.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/complex.h
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/pybind11Config.cmake
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/pybind11ConfigVersion.cmake
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/FindPythonLibsNew.cmake
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/pybind11Tools.cmake
-- Installing: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/pybind11Targets.cmake
[  0%] Built target mock_install
/Library/Developer/CommandLineTools/usr/bin/make -f tests/CMakeFiles/pybind11_tests.dir/build.make tests/CMakeFiles/pybind11_tests.dir/depend
cd /Users/zhihui/python_binding/pybind11-master/build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhihui/python_binding/pybind11-master /Users/zhihui/python_binding/pybind11-master/tests /Users/zhihui/python_binding/pybind11-master/build /Users/zhihui/python_binding/pybind11-master/build/tests /Users/zhihui/python_binding/pybind11-master/build/tests/CMakeFiles/pybind11_tests.dir/DependInfo.cmake --color=
Dependee "/Users/zhihui/python_binding/pybind11-master/build/tests/CMakeFiles/pybind11_tests.dir/DependInfo.cmake" is newer than depender "/Users/zhihui/python_binding/pybind11-master/build/tests/CMakeFiles/pybind11_tests.dir/depend.internal".
Dependee "/Users/zhihui/python_binding/pybind11-master/build/tests/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/zhihui/python_binding/pybind11-master/build/tests/CMakeFiles/pybind11_tests.dir/depend.internal".
Scanning dependencies of target pybind11_tests
/Library/Developer/CommandLineTools/usr/bin/make -f tests/CMakeFiles/pybind11_tests.dir/build.make tests/CMakeFiles/pybind11_tests.dir/build
[  2%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/pybind11_tests.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/pybind11_tests.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/pybind11_tests.cpp
make[3]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_target] Error 1
make[2]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_embed] Error 1
make[2]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/all] Error 2
[  4%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_async.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_async.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_async.cpp
[  6%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_buffers.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_buffers.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_buffers.cpp
make[3]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_function] Error 1
make[2]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/all] Error 2
[  8%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_builtin_casters.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_builtin_casters.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_builtin_casters.cpp
[ 10%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_call_policies.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_call_policies.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_call_policies.cpp
[ 12%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_callbacks.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_callbacks.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_callbacks.cpp
[ 14%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_chrono.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_chrono.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_chrono.cpp
[ 16%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_class.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_class.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_class.cpp
[ 18%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_constants_and_functions.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_constants_and_functions.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_constants_and_functions.cpp
[ 20%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_copy_move.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_copy_move.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_copy_move.cpp
[ 22%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_custom_type_casters.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_custom_type_casters.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_custom_type_casters.cpp
[ 25%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_docstring_options.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_docstring_options.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_docstring_options.cpp
[ 27%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_eigen.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_eigen.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_eigen.cpp
[ 29%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_enum.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_enum.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_enum.cpp
[ 31%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_eval.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_eval.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_eval.cpp
[ 33%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_exceptions.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_exceptions.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_exceptions.cpp
[ 35%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_factory_constructors.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_factory_constructors.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_factory_constructors.cpp
[ 37%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_gil_scoped.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_gil_scoped.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_gil_scoped.cpp
[ 39%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_iostream.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_iostream.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_iostream.cpp
[ 41%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_kwargs_and_defaults.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_kwargs_and_defaults.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_kwargs_and_defaults.cpp
[ 43%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_local_bindings.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_local_bindings.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_local_bindings.cpp
[ 45%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_methods_and_attributes.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_methods_and_attributes.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_methods_and_attributes.cpp
[ 47%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_modules.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_modules.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_modules.cpp
[ 50%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_multiple_inheritance.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_multiple_inheritance.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_multiple_inheritance.cpp
[ 52%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_numpy_array.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_numpy_array.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_numpy_array.cpp
[ 54%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_numpy_dtypes.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_numpy_dtypes.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_numpy_dtypes.cpp
[ 56%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_numpy_vectorize.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_numpy_vectorize.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_numpy_vectorize.cpp
[ 58%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_opaque_types.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_opaque_types.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_opaque_types.cpp
[ 60%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_operator_overloading.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_operator_overloading.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_operator_overloading.cpp
[ 62%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_pickling.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_pickling.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_pickling.cpp
[ 64%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_pytypes.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_pytypes.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_pytypes.cpp
[ 66%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_sequences_and_iterators.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_sequences_and_iterators.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_sequences_and_iterators.cpp
/Users/zhihui/python_binding/pybind11-master/tests/test_operator_overloading.cpp:116:23: warning: explicitly assigning value of variable of type 'const pybind11::detail::self_t' to itself
      [-Wself-assign-overloaded]
        .def(py::self -= py::self)
             ~~~~~~~~ ^  ~~~~~~~~
/Users/zhihui/python_binding/pybind11-master/tests/test_operator_overloading.cpp:120:23: warning: explicitly assigning value of variable of type 'const pybind11::detail::self_t' to itself
      [-Wself-assign-overloaded]
        .def(py::self /= py::self)
             ~~~~~~~~ ^  ~~~~~~~~
[ 68%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_smart_ptr.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_smart_ptr.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_smart_ptr.cpp
[ 70%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_stl.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_stl.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_stl.cpp
2 warnings generated.
[ 72%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_stl_binders.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_stl_binders.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_stl_binders.cpp
[ 75%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_tagbased_polymorphic.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_tagbased_polymorphic.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_tagbased_polymorphic.cpp
[ 77%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_union.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_union.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_union.cpp
[ 79%] Building CXX object tests/CMakeFiles/pybind11_tests.dir/test_virtual_functions.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_tests.dir/test_virtual_functions.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/test_virtual_functions.cpp
[ 81%] Linking CXX shared module ../../tests/pybind11_tests.cpython-37m-darwin.so
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_link_script CMakeFiles/pybind11_tests.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/c++ -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -bundle -Wl,-headerpad_max_install_names  -o ../../tests/pybind11_tests.cpython-37m-darwin.so CMakeFiles/pybind11_tests.dir/pybind11_tests.cpp.o CMakeFiles/pybind11_tests.dir/test_async.cpp.o CMakeFiles/pybind11_tests.dir/test_buffers.cpp.o CMakeFiles/pybind11_tests.dir/test_builtin_casters.cpp.o CMakeFiles/pybind11_tests.dir/test_call_policies.cpp.o CMakeFiles/pybind11_tests.dir/test_callbacks.cpp.o CMakeFiles/pybind11_tests.dir/test_chrono.cpp.o CMakeFiles/pybind11_tests.dir/test_class.cpp.o CMakeFiles/pybind11_tests.dir/test_constants_and_functions.cpp.o CMakeFiles/pybind11_tests.dir/test_copy_move.cpp.o CMakeFiles/pybind11_tests.dir/test_custom_type_casters.cpp.o CMakeFiles/pybind11_tests.dir/test_docstring_options.cpp.o CMakeFiles/pybind11_tests.dir/test_eigen.cpp.o CMakeFiles/pybind11_tests.dir/test_enum.cpp.o CMakeFiles/pybind11_tests.dir/test_eval.cpp.o CMakeFiles/pybind11_tests.dir/test_exceptions.cpp.o CMakeFiles/pybind11_tests.dir/test_factory_constructors.cpp.o CMakeFiles/pybind11_tests.dir/test_gil_scoped.cpp.o CMakeFiles/pybind11_tests.dir/test_iostream.cpp.o CMakeFiles/pybind11_tests.dir/test_kwargs_and_defaults.cpp.o CMakeFiles/pybind11_tests.dir/test_local_bindings.cpp.o CMakeFiles/pybind11_tests.dir/test_methods_and_attributes.cpp.o CMakeFiles/pybind11_tests.dir/test_modules.cpp.o CMakeFiles/pybind11_tests.dir/test_multiple_inheritance.cpp.o CMakeFiles/pybind11_tests.dir/test_numpy_array.cpp.o CMakeFiles/pybind11_tests.dir/test_numpy_dtypes.cpp.o CMakeFiles/pybind11_tests.dir/test_numpy_vectorize.cpp.o CMakeFiles/pybind11_tests.dir/test_opaque_types.cpp.o CMakeFiles/pybind11_tests.dir/test_operator_overloading.cpp.o CMakeFiles/pybind11_tests.dir/test_pickling.cpp.o CMakeFiles/pybind11_tests.dir/test_pytypes.cpp.o CMakeFiles/pybind11_tests.dir/test_sequences_and_iterators.cpp.o CMakeFiles/pybind11_tests.dir/test_smart_ptr.cpp.o CMakeFiles/pybind11_tests.dir/test_stl.cpp.o CMakeFiles/pybind11_tests.dir/test_stl_binders.cpp.o CMakeFiles/pybind11_tests.dir/test_tagbased_polymorphic.cpp.o CMakeFiles/pybind11_tests.dir/test_union.cpp.o CMakeFiles/pybind11_tests.dir/test_virtual_functions.cpp.o  -undefined dynamic_lookup -flto=thin
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/strip -x /Users/zhihui/python_binding/pybind11-master/tests/pybind11_tests.cpython-37m-darwin.so
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /usr/local/bin/python3.7 /Users/zhihui/python_binding/pybind11-master/tools/libsize.py /Users/zhihui/python_binding/pybind11-master/tests/pybind11_tests.cpython-37m-darwin.so /Users/zhihui/python_binding/pybind11-master/build/tests/sosize-pybind11_tests.cpython-37m-darwin.so.txt
------ pybind11_tests.cpython-37m-darwin.so file size: 2067524
[ 81%] Built target pybind11_tests
make[1]: *** [tests/CMakeFiles/check.dir/rule] Error 2
make: *** [check] Error 2

@YannickJadoul
Copy link
Collaborator

Huh, weird. I still don't see how. But could you now run again without parallelism (-j 4)? That seems to be really messing up the output order. Better to just get errors sequentially, in these cases.

@Jeff-avatar
Copy link
Author

Jeff-avatar commented Jul 12, 2020

Huh, weird. I still don't see how. But could you now run again without parallelism (-j 4)? That seems to be really messing up the output order. Better to just get errors sequentially, in these cases.

user@user-macbook-pro-2 build % make VERBOSE=1 check
/usr/local/Cellar/cmake/3.17.0_1/bin/cmake -S/Users/zhihui/python_binding/pybind11-master -B/Users/zhihui/python_binding/pybind11-master/build --check-build-system CMakeFiles/Makefile.cmake 0
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 check
/usr/local/Cellar/cmake/3.17.0_1/bin/cmake -S/Users/zhihui/python_binding/pybind11-master -B/Users/zhihui/python_binding/pybind11-master/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_progress_start /Users/zhihui/python_binding/pybind11-master/build/CMakeFiles 48
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 tests/CMakeFiles/check.dir/all
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/mock_install.dir/build.make tests/test_cmake_build/CMakeFiles/mock_install.dir/depend
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/build.make tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/depend
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/build.make tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/depend
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/build.make tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/depend
cd /Users/zhihui/python_binding/pybind11-master/build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhihui/python_binding/pybind11-master /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/mock_install.dir/DependInfo.cmake --color=
cd /Users/zhihui/python_binding/pybind11-master/build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhihui/python_binding/pybind11-master /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/DependInfo.cmake --color=
cd /Users/zhihui/python_binding/pybind11-master/build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhihui/python_binding/pybind11-master /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/DependInfo.cmake --color=
cd /Users/zhihui/python_binding/pybind11-master/build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhihui/python_binding/pybind11-master /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/build.make tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/build
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/build.make tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/build
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/mock_install.dir/build.make tests/test_cmake_build/CMakeFiles/mock_install.dir/build
/Library/Developer/CommandLineTools/usr/bin/make -f tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/build.make tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/build
cd /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build && /usr/local/Cellar/cmake/3.17.0_1/bin/ctest --quiet --output-log subdirectory_target.log --build-and-test /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build/subdirectory_target /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/subdirectory_target --build-config Release --build-noclean --build-generator Unix\ Makefiles  --build-makeprogram /usr/bin/make --build-target check --build-options -DCMAKE_PREFIX_PATH=/Users/zhihui/python_binding/pybind11-master/build/mock_install -DCMAKE_CXX_COMPILER=/Library/Developer/CommandLineTools/usr/bin/c++ -DPYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python3.7 -DPYBIND11_CPP_STANDARD= -DPYBIND11_PROJECT_DIR=/Users/zhihui/python_binding/pybind11-master
cd /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build && /usr/local/Cellar/cmake/3.17.0_1/bin/ctest --quiet --output-log subdirectory_function.log --build-and-test /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build/subdirectory_function /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/subdirectory_function --build-config Release --build-noclean --build-generator Unix\ Makefiles  --build-makeprogram /usr/bin/make --build-target check --build-options -DCMAKE_PREFIX_PATH=/Users/zhihui/python_binding/pybind11-master/build/mock_install -DCMAKE_CXX_COMPILER=/Library/Developer/CommandLineTools/usr/bin/c++ -DPYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python3.7 -DPYBIND11_CPP_STANDARD= -DPYBIND11_PROJECT_DIR=/Users/zhihui/python_binding/pybind11-master
cd /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build && /usr/local/Cellar/cmake/3.17.0_1/bin/ctest --quiet --output-log subdirectory_embed.log --build-and-test /Users/zhihui/python_binding/pybind11-master/tests/test_cmake_build/subdirectory_embed /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build/subdirectory_embed --build-config Release --build-noclean --build-generator Unix\ Makefiles  --build-makeprogram /usr/bin/make --build-target check --build-options -DCMAKE_PREFIX_PATH=/Users/zhihui/python_binding/pybind11-master/build/mock_install -DCMAKE_CXX_COMPILER=/Library/Developer/CommandLineTools/usr/bin/c++ -DPYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python3.7 -DPYBIND11_CPP_STANDARD= -DPYBIND11_PROJECT_DIR=/Users/zhihui/python_binding/pybind11-master
cd /Users/zhihui/python_binding/pybind11-master/build/tests/test_cmake_build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -DCMAKE_INSTALL_PREFIX=/Users/zhihui/python_binding/pybind11-master/build/mock_install -P /Users/zhihui/python_binding/pybind11-master/build/cmake_install.cmake
-- Install configuration: "MinSizeRel"
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/attr.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/embed.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/numpy.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/pybind11.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/operators.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/iostream.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/chrono.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/stl_bind.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/buffer_info.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/options.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/functional.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/stl.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/typeid.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/descr.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/internals.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/common.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/class.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/detail/init.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/common.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/eval.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/cast.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/eigen.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/pytypes.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/include/pybind11/complex.h
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/pybind11Config.cmake
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/pybind11ConfigVersion.cmake
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/FindPythonLibsNew.cmake
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/pybind11Tools.cmake
-- Up-to-date: /Users/zhihui/python_binding/pybind11-master/build/mock_install/share/cmake/pybind11/pybind11Targets.cmake
[  0%] Built target mock_install
/Library/Developer/CommandLineTools/usr/bin/make -f tests/CMakeFiles/pybind11_tests.dir/build.make tests/CMakeFiles/pybind11_tests.dir/depend
cd /Users/zhihui/python_binding/pybind11-master/build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhihui/python_binding/pybind11-master /Users/zhihui/python_binding/pybind11-master/tests /Users/zhihui/python_binding/pybind11-master/build /Users/zhihui/python_binding/pybind11-master/build/tests /Users/zhihui/python_binding/pybind11-master/build/tests/CMakeFiles/pybind11_tests.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make -f tests/CMakeFiles/pybind11_tests.dir/build.make tests/CMakeFiles/pybind11_tests.dir/build
make[3]: Nothing to be done for `tests/CMakeFiles/pybind11_tests.dir/build'.
[ 81%] Built target pybind11_tests
/Library/Developer/CommandLineTools/usr/bin/make -f tests/CMakeFiles/pybind11_cross_module_tests.dir/build.make tests/CMakeFiles/pybind11_cross_module_tests.dir/depend
cd /Users/zhihui/python_binding/pybind11-master/build && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhihui/python_binding/pybind11-master /Users/zhihui/python_binding/pybind11-master/tests /Users/zhihui/python_binding/pybind11-master/build /Users/zhihui/python_binding/pybind11-master/build/tests /Users/zhihui/python_binding/pybind11-master/build/tests/CMakeFiles/pybind11_cross_module_tests.dir/DependInfo.cmake --color=
Dependee "/Users/zhihui/python_binding/pybind11-master/build/tests/CMakeFiles/pybind11_cross_module_tests.dir/DependInfo.cmake" is newer than depender "/Users/zhihui/python_binding/pybind11-master/build/tests/CMakeFiles/pybind11_cross_module_tests.dir/depend.internal".
Dependee "/Users/zhihui/python_binding/pybind11-master/build/tests/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/zhihui/python_binding/pybind11-master/build/tests/CMakeFiles/pybind11_cross_module_tests.dir/depend.internal".
Scanning dependencies of target pybind11_cross_module_tests
/Library/Developer/CommandLineTools/usr/bin/make -f tests/CMakeFiles/pybind11_cross_module_tests.dir/build.make tests/CMakeFiles/pybind11_cross_module_tests.dir/build
[ 83%] Building CXX object tests/CMakeFiles/pybind11_cross_module_tests.dir/pybind11_cross_module_tests.cpp.o
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_cross_module_tests_EXPORTS -I/Users/zhihui/python_binding/pybind11-master/include -I/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/include -isystem /usr/local/include/eigen3  -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden   -flto=thin -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -std=c++14 -o CMakeFiles/pybind11_cross_module_tests.dir/pybind11_cross_module_tests.cpp.o -c /Users/zhihui/python_binding/pybind11-master/tests/pybind11_cross_module_tests.cpp
make[3]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_function] Error 1
make[2]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_function.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_target] Error 1
make[2]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_target.dir/all] Error 2
make[3]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_embed] Error 1
make[2]: *** [tests/test_cmake_build/CMakeFiles/test_subdirectory_embed.dir/all] Error 2
[ 85%] Linking CXX shared module ../../tests/pybind11_cross_module_tests.cpython-37m-darwin.so
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_link_script CMakeFiles/pybind11_cross_module_tests.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/c++ -Os -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -bundle -Wl,-headerpad_max_install_names  -o ../../tests/pybind11_cross_module_tests.cpython-37m-darwin.so CMakeFiles/pybind11_cross_module_tests.dir/pybind11_cross_module_tests.cpp.o  -undefined dynamic_lookup -flto=thin
cd /Users/zhihui/python_binding/pybind11-master/build/tests && /Library/Developer/CommandLineTools/usr/bin/strip -x /Users/zhihui/python_binding/pybind11-master/tests/pybind11_cross_module_tests.cpython-37m-darwin.so
[ 85%] Built target pybind11_cross_module_tests
make[1]: *** [tests/CMakeFiles/check.dir/rule] Error 2
make: *** [check] Error 2

@YannickJadoul
Copy link
Collaborator

I can actually reproduce the error. Something weird seems to be going on. I'll get back to you if I figure out more.

@Jeff-avatar
Copy link
Author

I can actually reproduce the error. Something weird seems to be going on. I'll get back to you if I figure out more.

Sounds great. Thank you.

@YannickJadoul
Copy link
Collaborator

One step closer: it happens during the test_subdirectory_function test of test_cmake_install, somehow.

Errors are dumped to a file tests/test_cmake_build/test_subdirectoy_function.log:

[OUTPUT]
Internal cmake changing into directory: /Users/yannick/pybind11/build/tests/test_cmake_build/subdirectory_function
======== CMake output     ======
Re-run cmake no build system arguments
pybind11 v2.5.dev1
Configuring done
Generating done
Build files have been written to: /Users/yannick/pybind11/build/tests/test_cmake_build/subdirectory_function
======== End CMake output ======
Change Dir: /Users/yannick/pybind11/build/tests/test_cmake_build/subdirectory_function

Run Build Command(s):/usr/bin/make check && /usr/local/Cellar/cmake/3.17.1/bin/cmake -S/Users/yannick/pybind11/tests/test_cmake_build/subdirectory_function -B/Users/yannick/pybind11/build/tests/test_cmak$
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/Makefile2 check
/usr/local/Cellar/cmake/3.17.1/bin/cmake -S/Users/yannick/pybind11/tests/test_cmake_build/subdirectory_function -B/Users/yannick/pybind11/build/tests/test_cmake_build/subdirectory_function --check-build-$
/usr/local/Cellar/cmake/3.17.1/bin/cmake -E cmake_progress_start /Users/yannick/pybind11/build/tests/test_cmake_build/subdirectory_function/CMakeFiles 2
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/Makefile2 CMakeFiles/check.dir/all
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/test_cmake_build.dir/build.make CMakeFiles/test_cmake_build.dir/depend
cd /Users/yannick/pybind11/build/tests/test_cmake_build/subdirectory_function && /usr/local/Cellar/cmake/3.17.1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/yannick/pybind11/tests/test_cmake_build/$
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/test_cmake_build.dir/build.make CMakeFiles/test_cmake_build.dir/build
[ 50%] Building CXX object CMakeFiles/test_cmake_build.dir/Users/yannick/pybind11/tests/test_cmake_build/main.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++  -Dtest_cmake_build_EXPORTS -I/Users/yannick/pybind11/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8  -O3 -DNDEBUG -isysroot$
In file included from /Users/yannick/pybind11/tests/test_cmake_build/main.cpp:1:
In file included from /Users/yannick/pybind11/include/pybind11/pybind11.h:44:
In file included from /Users/yannick/pybind11/include/pybind11/attr.h:13:
In file included from /Users/yannick/pybind11/include/pybind11/cast.h:13:
In file included from /Users/yannick/pybind11/include/pybind11/pytypes.h:12:
/Users/yannick/pybind11/include/pybind11/detail/common.h:326:17: warning: alias declarations are a C++11 extension [-Wc++11-extensions]
using ssize_t = Py_ssize_t;
                ^
/Users/yannick/pybind11/include/pybind11/detail/common.h:327:17: warning: alias declarations are a C++11 extension [-Wc++11-extensions]
using size_t  = std::size_t;
                ^
/Users/yannick/pybind11/include/pybind11/detail/common.h:330:6: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class return_value_policy : uint8_t {
     ^
/Users/yannick/pybind11/include/pybind11/detail/common.h:383:15: error: unknown type name 'constexpr'
inline static constexpr int log2(size_t n, int k = 0) { return (n <= 1) ? k : log2(n >> 1, k + 1); }
              ^
/Users/yannick/pybind11/include/pybind11/detail/common.h:383:25: error: expected unqualified-id
inline static constexpr int log2(size_t n, int k = 0) { return (n <= 1) ? k : log2(n >> 1, k + 1); }
                        ^
/Users/yannick/pybind11/include/pybind11/detail/common.h:386:15: error: unknown type name 'constexpr'
inline static constexpr size_t size_in_ptrs(size_t s) { return 1 + ((s - 1) >> log2(sizeof(void *))); }
              ^
/Users/yannick/pybind11/include/pybind11/detail/common.h:386:1: warning: inline variables are a C++17 extension [-Wc++17-extensions]
inline static constexpr size_t size_in_ptrs(size_t s) { return 1 + ((s - 1) >> log2(sizeof(void *))); }
^
/Users/yannick/pybind11/include/pybind11/detail/common.h:386:31: error: expected ';' after top level declarator
inline static constexpr size_t size_in_ptrs(size_t s) { return 1 + ((s - 1) >> log2(sizeof(void *))); }
                              ^

So for some reason, this test build is running without C++11 support.

@Jeff-avatar
Copy link
Author

Jeff-avatar commented Jul 12, 2020

Please let me know if you have any suggestions to fix this. I don't really have any clue about this.

@bstaletic
Copy link
Collaborator

-std= is not being set at all. Considering that the compiler defaults to -std=c++98, this is a very old compiler.

@YannickJadoul
Copy link
Collaborator

I'm working on it, yes. Just some update on what's going wrong and why there's no output showing the error.

@YannickJadoul
Copy link
Collaborator

-std= is not being set at all. Considering that the compiler defaults to -std=c++98, this is a very old compiler.

Yes, but normally, pybind11 sets a minimum standard, no?

@henryiii
Copy link
Collaborator

This should fix it:

diff --git a/tests/test_cmake_build/CMakeLists.txt b/tests/test_cmake_build/CMakeLists.txt
index c9b5fcb..cf9a9ca 100644
--- a/tests/test_cmake_build/CMakeLists.txt
+++ b/tests/test_cmake_build/CMakeLists.txt
@@ -13,6 +13,7 @@ function(pybind11_add_build_test name)
   set(build_options "-DCMAKE_PREFIX_PATH=${PROJECT_BINARY_DIR}/mock_install"
                     "-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}"
                     "-DPYTHON_EXECUTABLE:FILEPATH=${PYTHON_EXECUTABLE}"
+                    "-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}"
                     "-DPYBIND11_CPP_STANDARD=${PYBIND11_CPP_STANDARD}")
   if(NOT ARG_INSTALL)
     list(APPEND build_options "-DPYBIND11_PROJECT_DIR=${PROJECT_SOURCE_DIR}")

@ax3l
Copy link
Collaborator

ax3l commented Jul 21, 2020

What the version of CMake you are using @Jeff-avatar ? It could also be that CMake is a bit old and does not yet use the new logic that sets this automatically:

# Use the language standards abstraction if CMake supports it with the current compiler
if(NOT CMAKE_VERSION VERSION_LESS 3.1)
if(NOT CMAKE_CXX_STANDARD)
if(CMAKE_CXX14_STANDARD_COMPILE_OPTION)
set(CMAKE_CXX_STANDARD 14)
elseif(CMAKE_CXX11_STANDARD_COMPILE_OPTION)
set(CMAKE_CXX_STANDARD 11)
endif()
endif()
if(CMAKE_CXX_STANDARD)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
endif()

@henryiii
Copy link
Collaborator

(This also happens on CMake 3.17 in GHA)

@henryiii
Copy link
Collaborator

This really should be done via compile-features, not CMAKE_CXX_STANDARD - you can't actually impose a CXX standard through a target, but you can require compile features. But for now, passing through the variable above fixes this test.

@YannickJadoul
Copy link
Collaborator

(This also happens on CMake 3.17 in GHA)

I managed to reproduce it 1.5 weeks ago, with the latest version of CMake brew had to offer

This should fix it:

Huh, wait, why does it not detect CMAKE_CXX_STANDARD inside of the test project, then?

In the debug output, from last week, I saw it first being detected and set, then somehow disappear:

$ make test_subdirectory_function
Scanning dependencies of target test_subdirectory_function
Internal cmake changing into directory: /Users/yannick/pybind11/build/tests/test_cmake_build/subdirectory_function
======== CMake output     ======
The CXX compiler identification is AppleClang 11.0.0.11000033
Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Found PythonInterp: /usr/local/bin/python3.8 (found version "3.8.2") 
Found PythonLibs: /Library/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib
PYBIND11_CPP_STANDARD=
CMAKE_CXX_STANDARD=14
pybind11 v2.5.dev1
PYBIND11_CPP_STANDARD=
CMAKE_CXX_STANDARD=
TEST=TEST-NOTFOUND
Performing Test HAS_FLTO_THIN
Performing Test HAS_FLTO_THIN - Success
LTO enabled
Configuring done
Generating done
Build files have been written to: /Users/yannick/pybind11/build/tests/test_cmake_build/subdirectory_function
======== End CMake output ======
[...]

@ax3l
Copy link
Collaborator

ax3l commented Jul 21, 2020

Yes, I was surprised @chuckatkins did not add compile features in #1428 / #2184 as well, but it could be related to the very old CMake version we are still supporting.

In the debug output, from last week, I saw it first being detected and set, then somehow disappear:

Oh wow, I see.

@YannickJadoul
Copy link
Collaborator

YannickJadoul commented Jul 21, 2020

This should fix it:

That single line does fix it, so ... why not add it, then, I suppose.
Will you make a PR, @henryiii, or do you want me to do it?

(EDIT: Still not entirely happy to not understand why it failed before. But then I never perfectly understood parts of CMake...)

@ax3l
Copy link
Collaborator

ax3l commented Jul 21, 2020

I think the tests/test_cmake_build/CMakeLists.txt does not derive the CXX standard from pybind11Tools.cmake, which contains the compiler logic - so this is indeed manually set (and we should just add the manual line, yep).

@YannickJadoul
Copy link
Collaborator

I think the tests/test_cmake_build/CMakeLists.txt does not derive the CXX standard from pybind11Tools.cmake, which contains the compiler logic - so this is indeed manually set (and we should just add the manual line, yep).

It actually does get used, since that's where this

PYBIND11_CPP_STANDARD=
CMAKE_CXX_STANDARD=
TEST=TEST-NOTFOUND

debug output is:

diff --git a/tools/pybind11Tools.cmake b/tools/pybind11Tools.cmake
index a3603ab..df15900 100644
--- a/tools/pybind11Tools.cmake
+++ b/tools/pybind11Tools.cmake
@@ -146,7 +146,11 @@ function(pybind11_add_module target_name)
     set(exclude_from_all "")
   endif()
 
+message(PYBIND11_CPP_STANDARD=${PYBIND11_CPP_STANDARD})
+message(CMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD})
   add_library(${target_name} ${lib_type} ${exclude_from_all} ${ARG_UNPARSED_ARGUMENTS})
+get_target_property(TEST ${target_name} CXX_STANDARD)
+message(TEST=${TEST})
 
   if(ARG_SYSTEM)
     set(inc_isystem SYSTEM)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants