Commit e212b973 by songxinkai

python::boost, prue virtual class

parent 410ed6c4
cmake_minimum_required(VERSION 3.14)
project(hello)
# headers
set(PYTHON_INCLUDE_DIRS /home/songxinkai/anaconda3/include/python3.7m)
set(PYTHON_LIBRARIES /home/songxinkai/anaconda3/lib/libpython3.7m.so)
# libraries
set(Boost_INCLUDE_DIRS /home/songxinkai/Boost_1.72.0/include)
set(Boost_LIBRARIES /home/songxinkai/Boost_1.72.0/lib/libboost_python37.so)
# cpp codes
file(GLOB_RECURSE python_srcs ${PROJECT_SOURCE_DIR}/*.cpp)
set(class_example_src class_example.cpp)
set(function_example_src function_example.cpp)
set(pure_virtual_inherit_example_src pure_virtual_inherit_example.cpp)
# compile
add_library(pyhello SHARED ${python_srcs})
set_target_properties(pyhello PROPERTIES PREFIX "" OUTPUT_NAME "_hello")
add_library(_function_example SHARED ${function_example_src})
add_library(_class_example SHARED ${class_example_src})
add_library(_pure_virtual_inherit_example SHARED ${pure_virtual_inherit_example_src})
set_target_properties(_function_example PROPERTIES PREFIX "" OUTPUT_NAME "_function_example")
set_target_properties(_class_example PROPERTIES PREFIX "" OUTPUT_NAME "_class_example")
set_target_properties(_pure_virtual_inherit_example PROPERTIES PREFIX "" OUTPUT_NAME "_pure_virtual_inherit_example")
include_directories(${PYTHON_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
target_link_libraries(pyhello ${PYTHON_LIBRARIES} ${Boost_LIBRARIES})
target_link_libraries(_class_example ${PYTHON_LIBRARIES} ${Boost_LIBRARIES})
target_link_libraries(_function_example ${PYTHON_LIBRARIES} ${Boost_LIBRARIES})
target_link_libraries(_pure_virtual_inherit_example ${PYTHON_LIBRARIES} ${Boost_LIBRARIES})
......@@ -14,9 +14,6 @@
# EXTERNAL cache entries
########################
//No help, variable specified on the command line.
Boost_NO_BOOST_CMAKE:BOOL=ON
//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar
......@@ -203,9 +200,6 @@ CMAKE_STRIP:FILEPATH=/usr/bin/strip
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
//No help, variable specified on the command line.
PYTHON_EXECUTABLE:UNINITIALIZED=/home/songxinkai/anaconda3/bin/python3
//Value Computed by CMake
hello_BINARY_DIR:STATIC=/home/songxinkai/mytests/boost/python/build
......
......@@ -28,33 +28,33 @@ The CXX compiler identification is GNU, found in "/home/songxinkai/mytests/boost
Determining if the C compiler works passed with the following output:
Change Dir: /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_db9d6/fast
/usr/bin/gmake -f CMakeFiles/cmTC_db9d6.dir/build.make CMakeFiles/cmTC_db9d6.dir/build
Run Build Command(s):/usr/bin/gmake cmTC_ea2b8/fast
/usr/bin/gmake -f CMakeFiles/cmTC_ea2b8.dir/build.make CMakeFiles/cmTC_ea2b8.dir/build
gmake[1]: Entering directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_db9d6.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_db9d6.dir/testCCompiler.c.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_db9d6
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_db9d6.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_db9d6.dir/testCCompiler.c.o -o cmTC_db9d6
Building C object CMakeFiles/cmTC_ea2b8.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_ea2b8.dir/testCCompiler.c.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_ea2b8
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_ea2b8.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_ea2b8.dir/testCCompiler.c.o -o cmTC_ea2b8
gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_2ddca/fast
/usr/bin/gmake -f CMakeFiles/cmTC_2ddca.dir/build.make CMakeFiles/cmTC_2ddca.dir/build
Run Build Command(s):/usr/bin/gmake cmTC_b201c/fast
/usr/bin/gmake -f CMakeFiles/cmTC_b201c.dir/build.make CMakeFiles/cmTC_b201c.dir/build
gmake[1]: Entering directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o
/usr/bin/cc -v -o CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake3/Modules/CMakeCCompilerABI.c
Building C object CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o
/usr/bin/cc -v -o CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake3/Modules/CMakeCCompilerABI.c
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'
/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/cc1 -quiet -v /usr/share/cmake3/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o -version -o /tmp/ccwyRCd8.s
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'
/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/cc1 -quiet -v /usr/share/cmake3/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o -version -o /tmp/ccSaozno.s
GNU C (GCC) version 4.8.5 20150623 (Red Hat 4.8.5-39) (x86_64-redhat-linux)
compiled by GNU C version 4.8.5 20150623 (Red Hat 4.8.5-39), GMP version 6.0.0, MPFR version 3.1.1, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
......@@ -70,15 +70,15 @@ GNU C (GCC) version 4.8.5 20150623 (Red Hat 4.8.5-39) (x86_64-redhat-linux)
compiled by GNU C version 4.8.5 20150623 (Red Hat 4.8.5-39), GMP version 6.0.0, MPFR version 3.1.1, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: edd9a53947039836c859e437e8c9af72
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'
as -v --64 -o CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o /tmp/ccwyRCd8.s
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'
as -v --64 -o CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o /tmp/ccSaozno.s
GNU assembler version 2.25.1 (x86_64-redhat-linux) using BFD version version 2.25.1-31.base.el7
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'
Linking C executable cmTC_2ddca
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_2ddca.dir/link.txt --verbose=1
/usr/bin/cc -v CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o -o cmTC_2ddca
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'
Linking C executable cmTC_b201c
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_b201c.dir/link.txt --verbose=1
/usr/bin/cc -v CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o -o cmTC_b201c
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
......@@ -88,8 +88,8 @@ Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_2ddca' '-mtune=generic' '-march=x86-64'
/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_2ddca /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_b201c' '-mtune=generic' '-march=x86-64'
/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_b201c /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o
gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
......@@ -110,19 +110,19 @@ Parsed C implicit link information from above output:
link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
ignore line: [Change Dir: /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp]
ignore line: []
ignore line: [Run Build Command(s):/usr/bin/gmake cmTC_2ddca/fast ]
ignore line: [/usr/bin/gmake -f CMakeFiles/cmTC_2ddca.dir/build.make CMakeFiles/cmTC_2ddca.dir/build]
ignore line: [Run Build Command(s):/usr/bin/gmake cmTC_b201c/fast ]
ignore line: [/usr/bin/gmake -f CMakeFiles/cmTC_b201c.dir/build.make CMakeFiles/cmTC_b201c.dir/build]
ignore line: [gmake[1]: Entering directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp']
ignore line: [Building C object CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o]
ignore line: [/usr/bin/cc -v -o CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake3/Modules/CMakeCCompilerABI.c]
ignore line: [Building C object CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o]
ignore line: [/usr/bin/cc -v -o CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake3/Modules/CMakeCCompilerABI.c]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/cc]
ignore line: [Target: x86_64-redhat-linux]
ignore line: [Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux]
ignore line: [Thread model: posix]
ignore line: [gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64']
ignore line: [ /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/cc1 -quiet -v /usr/share/cmake3/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o -version -o /tmp/ccwyRCd8.s]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64']
ignore line: [ /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/cc1 -quiet -v /usr/share/cmake3/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o -version -o /tmp/ccSaozno.s]
ignore line: [GNU C (GCC) version 4.8.5 20150623 (Red Hat 4.8.5-39) (x86_64-redhat-linux)]
ignore line: [ compiled by GNU C version 4.8.5 20150623 (Red Hat 4.8.5-39), GMP version 6.0.0, MPFR version 3.1.1, MPC version 1.0.1]
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
......@@ -138,15 +138,15 @@ Parsed C implicit link information from above output:
ignore line: [ compiled by GNU C version 4.8.5 20150623 (Red Hat 4.8.5-39), GMP version 6.0.0, MPFR version 3.1.1, MPC version 1.0.1]
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [Compiler executable checksum: edd9a53947039836c859e437e8c9af72]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64']
ignore line: [ as -v --64 -o CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o /tmp/ccwyRCd8.s]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64']
ignore line: [ as -v --64 -o CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o /tmp/ccSaozno.s]
ignore line: [GNU assembler version 2.25.1 (x86_64-redhat-linux) using BFD version version 2.25.1-31.base.el7 ]
ignore line: [COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64']
ignore line: [Linking C executable cmTC_2ddca]
ignore line: [/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_2ddca.dir/link.txt --verbose=1]
ignore line: [/usr/bin/cc -v CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o -o cmTC_2ddca ]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64']
ignore line: [Linking C executable cmTC_b201c]
ignore line: [/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_b201c.dir/link.txt --verbose=1]
ignore line: [/usr/bin/cc -v CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o -o cmTC_b201c ]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/cc]
ignore line: [COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper]
......@@ -156,8 +156,8 @@ Parsed C implicit link information from above output:
ignore line: [gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ]
ignore line: [COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_2ddca' '-mtune=generic' '-march=x86-64']
link line: [ /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_2ddca /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_b201c' '-mtune=generic' '-march=x86-64']
link line: [ /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_b201c /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o]
arg [/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2] ==> ignore
arg [--build-id] ==> ignore
arg [--no-add-needed] ==> ignore
......@@ -168,7 +168,7 @@ Parsed C implicit link information from above output:
arg [-dynamic-linker] ==> ignore
arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
arg [-o] ==> ignore
arg [cmTC_2ddca] ==> ignore
arg [cmTC_b201c] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o] ==> ignore
......@@ -177,7 +177,7 @@ Parsed C implicit link information from above output:
arg [-L/lib/../lib64] ==> dir [/lib/../lib64]
arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64]
arg [-L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../..] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../..]
arg [CMakeFiles/cmTC_2ddca.dir/CMakeCCompilerABI.c.o] ==> ignore
arg [CMakeFiles/cmTC_b201c.dir/CMakeCCompilerABI.c.o] ==> ignore
arg [-lgcc] ==> lib [gcc]
arg [--as-needed] ==> ignore
arg [-lgcc_s] ==> lib [gcc_s]
......@@ -204,14 +204,14 @@ Parsed C implicit link information from above output:
Detecting C [-std=c11] compiler features compiled with the following output:
Change Dir: /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_933f1/fast
/usr/bin/gmake -f CMakeFiles/cmTC_933f1.dir/build.make CMakeFiles/cmTC_933f1.dir/build
Run Build Command(s):/usr/bin/gmake cmTC_1cb80/fast
/usr/bin/gmake -f CMakeFiles/cmTC_1cb80.dir/build.make CMakeFiles/cmTC_1cb80.dir/build
gmake[1]: Entering directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_933f1.dir/feature_tests.c.o
/usr/bin/cc -std=c11 -o CMakeFiles/cmTC_933f1.dir/feature_tests.c.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/feature_tests.c
Linking C executable cmTC_933f1
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_933f1.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_933f1.dir/feature_tests.c.o -o cmTC_933f1
Building C object CMakeFiles/cmTC_1cb80.dir/feature_tests.c.o
/usr/bin/cc -std=c11 -o CMakeFiles/cmTC_1cb80.dir/feature_tests.c.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/feature_tests.c
Linking C executable cmTC_1cb80
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_1cb80.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_1cb80.dir/feature_tests.c.o -o cmTC_1cb80
gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
......@@ -224,14 +224,14 @@ gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFi
Detecting C [-std=c99] compiler features compiled with the following output:
Change Dir: /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_382b0/fast
/usr/bin/gmake -f CMakeFiles/cmTC_382b0.dir/build.make CMakeFiles/cmTC_382b0.dir/build
Run Build Command(s):/usr/bin/gmake cmTC_ec741/fast
/usr/bin/gmake -f CMakeFiles/cmTC_ec741.dir/build.make CMakeFiles/cmTC_ec741.dir/build
gmake[1]: Entering directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_382b0.dir/feature_tests.c.o
/usr/bin/cc -std=c99 -o CMakeFiles/cmTC_382b0.dir/feature_tests.c.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/feature_tests.c
Linking C executable cmTC_382b0
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_382b0.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_382b0.dir/feature_tests.c.o -o cmTC_382b0
Building C object CMakeFiles/cmTC_ec741.dir/feature_tests.c.o
/usr/bin/cc -std=c99 -o CMakeFiles/cmTC_ec741.dir/feature_tests.c.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/feature_tests.c
Linking C executable cmTC_ec741
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_ec741.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_ec741.dir/feature_tests.c.o -o cmTC_ec741
gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
......@@ -244,14 +244,14 @@ gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFi
Detecting C [-std=c90] compiler features compiled with the following output:
Change Dir: /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_10500/fast
/usr/bin/gmake -f CMakeFiles/cmTC_10500.dir/build.make CMakeFiles/cmTC_10500.dir/build
Run Build Command(s):/usr/bin/gmake cmTC_70496/fast
/usr/bin/gmake -f CMakeFiles/cmTC_70496.dir/build.make CMakeFiles/cmTC_70496.dir/build
gmake[1]: Entering directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_10500.dir/feature_tests.c.o
/usr/bin/cc -std=c90 -o CMakeFiles/cmTC_10500.dir/feature_tests.c.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/feature_tests.c
Linking C executable cmTC_10500
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_10500.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_10500.dir/feature_tests.c.o -o cmTC_10500
Building C object CMakeFiles/cmTC_70496.dir/feature_tests.c.o
/usr/bin/cc -std=c90 -o CMakeFiles/cmTC_70496.dir/feature_tests.c.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/feature_tests.c
Linking C executable cmTC_70496
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_70496.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_70496.dir/feature_tests.c.o -o cmTC_70496
gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
......@@ -262,33 +262,33 @@ gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFi
Determining if the CXX compiler works passed with the following output:
Change Dir: /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_bd0b3/fast
/usr/bin/gmake -f CMakeFiles/cmTC_bd0b3.dir/build.make CMakeFiles/cmTC_bd0b3.dir/build
Run Build Command(s):/usr/bin/gmake cmTC_d3b8b/fast
/usr/bin/gmake -f CMakeFiles/cmTC_d3b8b.dir/build.make CMakeFiles/cmTC_d3b8b.dir/build
gmake[1]: Entering directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_bd0b3.dir/testCXXCompiler.cxx.o
/usr/bin/c++ -o CMakeFiles/cmTC_bd0b3.dir/testCXXCompiler.cxx.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTC_bd0b3
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_bd0b3.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_bd0b3.dir/testCXXCompiler.cxx.o -o cmTC_bd0b3
Building CXX object CMakeFiles/cmTC_d3b8b.dir/testCXXCompiler.cxx.o
/usr/bin/c++ -o CMakeFiles/cmTC_d3b8b.dir/testCXXCompiler.cxx.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTC_d3b8b
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_d3b8b.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_d3b8b.dir/testCXXCompiler.cxx.o -o cmTC_d3b8b
gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
Detecting CXX compiler ABI info compiled with the following output:
Change Dir: /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_aa60d/fast
/usr/bin/gmake -f CMakeFiles/cmTC_aa60d.dir/build.make CMakeFiles/cmTC_aa60d.dir/build
Run Build Command(s):/usr/bin/gmake cmTC_3786d/fast
/usr/bin/gmake -f CMakeFiles/cmTC_3786d.dir/build.make CMakeFiles/cmTC_3786d.dir/build
gmake[1]: Entering directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o
/usr/bin/c++ -v -o CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake3/Modules/CMakeCXXCompilerABI.cpp
Building CXX object CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o
/usr/bin/c++ -v -o CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake3/Modules/CMakeCXXCompilerABI.cpp
Using built-in specs.
COLLECT_GCC=/usr/bin/c++
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/cc1plus -quiet -v -D_GNU_SOURCE /usr/share/cmake3/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o -version -o /tmp/ccFWQw8U.s
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/cc1plus -quiet -v -D_GNU_SOURCE /usr/share/cmake3/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o -version -o /tmp/ccScqS4f.s
GNU C++ (GCC) version 4.8.5 20150623 (Red Hat 4.8.5-39) (x86_64-redhat-linux)
compiled by GNU C version 4.8.5 20150623 (Red Hat 4.8.5-39), GMP version 6.0.0, MPFR version 3.1.1, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
......@@ -307,15 +307,15 @@ GNU C++ (GCC) version 4.8.5 20150623 (Red Hat 4.8.5-39) (x86_64-redhat-linux)
compiled by GNU C version 4.8.5 20150623 (Red Hat 4.8.5-39), GMP version 6.0.0, MPFR version 3.1.1, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 0b3d22846f8ec00d42314b8d2d71514a
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
as -v --64 -o CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccFWQw8U.s
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
as -v --64 -o CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccScqS4f.s
GNU assembler version 2.25.1 (x86_64-redhat-linux) using BFD version version 2.25.1-31.base.el7
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
Linking CXX executable cmTC_aa60d
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_aa60d.dir/link.txt --verbose=1
/usr/bin/c++ -v CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_aa60d
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
Linking CXX executable cmTC_3786d
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_3786d.dir/link.txt --verbose=1
/usr/bin/c++ -v CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_3786d
Using built-in specs.
COLLECT_GCC=/usr/bin/c++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
......@@ -325,8 +325,8 @@ Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_aa60d' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_aa60d /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_3786d' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_3786d /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o
gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
......@@ -353,19 +353,19 @@ Parsed CXX implicit link information from above output:
link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
ignore line: [Change Dir: /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp]
ignore line: []
ignore line: [Run Build Command(s):/usr/bin/gmake cmTC_aa60d/fast ]
ignore line: [/usr/bin/gmake -f CMakeFiles/cmTC_aa60d.dir/build.make CMakeFiles/cmTC_aa60d.dir/build]
ignore line: [Run Build Command(s):/usr/bin/gmake cmTC_3786d/fast ]
ignore line: [/usr/bin/gmake -f CMakeFiles/cmTC_3786d.dir/build.make CMakeFiles/cmTC_3786d.dir/build]
ignore line: [gmake[1]: Entering directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp']
ignore line: [Building CXX object CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o]
ignore line: [/usr/bin/c++ -v -o CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake3/Modules/CMakeCXXCompilerABI.cpp]
ignore line: [Building CXX object CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o]
ignore line: [/usr/bin/c++ -v -o CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake3/Modules/CMakeCXXCompilerABI.cpp]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/c++]
ignore line: [Target: x86_64-redhat-linux]
ignore line: [Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux]
ignore line: [Thread model: posix]
ignore line: [gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
ignore line: [ /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/cc1plus -quiet -v -D_GNU_SOURCE /usr/share/cmake3/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o -version -o /tmp/ccFWQw8U.s]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
ignore line: [ /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/cc1plus -quiet -v -D_GNU_SOURCE /usr/share/cmake3/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o -version -o /tmp/ccScqS4f.s]
ignore line: [GNU C++ (GCC) version 4.8.5 20150623 (Red Hat 4.8.5-39) (x86_64-redhat-linux)]
ignore line: [ compiled by GNU C version 4.8.5 20150623 (Red Hat 4.8.5-39), GMP version 6.0.0, MPFR version 3.1.1, MPC version 1.0.1]
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
......@@ -384,15 +384,15 @@ Parsed CXX implicit link information from above output:
ignore line: [ compiled by GNU C version 4.8.5 20150623 (Red Hat 4.8.5-39), GMP version 6.0.0, MPFR version 3.1.1, MPC version 1.0.1]
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [Compiler executable checksum: 0b3d22846f8ec00d42314b8d2d71514a]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
ignore line: [ as -v --64 -o CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccFWQw8U.s]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
ignore line: [ as -v --64 -o CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccScqS4f.s]
ignore line: [GNU assembler version 2.25.1 (x86_64-redhat-linux) using BFD version version 2.25.1-31.base.el7 ]
ignore line: [COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
ignore line: [Linking CXX executable cmTC_aa60d]
ignore line: [/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_aa60d.dir/link.txt --verbose=1]
ignore line: [/usr/bin/c++ -v CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_aa60d ]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
ignore line: [Linking CXX executable cmTC_3786d]
ignore line: [/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_3786d.dir/link.txt --verbose=1]
ignore line: [/usr/bin/c++ -v CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_3786d ]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/c++]
ignore line: [COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper]
......@@ -402,8 +402,8 @@ Parsed CXX implicit link information from above output:
ignore line: [gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ]
ignore line: [COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_aa60d' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
link line: [ /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_aa60d /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_3786d' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
link line: [ /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_3786d /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o]
arg [/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2] ==> ignore
arg [--build-id] ==> ignore
arg [--no-add-needed] ==> ignore
......@@ -414,7 +414,7 @@ Parsed CXX implicit link information from above output:
arg [-dynamic-linker] ==> ignore
arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
arg [-o] ==> ignore
arg [cmTC_aa60d] ==> ignore
arg [cmTC_3786d] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o] ==> ignore
......@@ -423,7 +423,7 @@ Parsed CXX implicit link information from above output:
arg [-L/lib/../lib64] ==> dir [/lib/../lib64]
arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64]
arg [-L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../..] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../..]
arg [CMakeFiles/cmTC_aa60d.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
arg [CMakeFiles/cmTC_3786d.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
arg [-lstdc++] ==> lib [stdc++]
arg [-lm] ==> lib [m]
arg [-lgcc_s] ==> lib [gcc_s]
......@@ -448,14 +448,14 @@ Parsed CXX implicit link information from above output:
Detecting CXX [-std=c++1y] compiler features compiled with the following output:
Change Dir: /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_3f20a/fast
/usr/bin/gmake -f CMakeFiles/cmTC_3f20a.dir/build.make CMakeFiles/cmTC_3f20a.dir/build
Run Build Command(s):/usr/bin/gmake cmTC_4c026/fast
/usr/bin/gmake -f CMakeFiles/cmTC_4c026.dir/build.make CMakeFiles/cmTC_4c026.dir/build
gmake[1]: Entering directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_3f20a.dir/feature_tests.cxx.o
/usr/bin/c++ -std=c++1y -o CMakeFiles/cmTC_3f20a.dir/feature_tests.cxx.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/feature_tests.cxx
Linking CXX executable cmTC_3f20a
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_3f20a.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_3f20a.dir/feature_tests.cxx.o -o cmTC_3f20a
Building CXX object CMakeFiles/cmTC_4c026.dir/feature_tests.cxx.o
/usr/bin/c++ -std=c++1y -o CMakeFiles/cmTC_4c026.dir/feature_tests.cxx.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/feature_tests.cxx
Linking CXX executable cmTC_4c026
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_4c026.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_4c026.dir/feature_tests.cxx.o -o cmTC_4c026
gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
......@@ -521,14 +521,14 @@ gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFi
Detecting CXX [-std=c++11] compiler features compiled with the following output:
Change Dir: /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_77210/fast
/usr/bin/gmake -f CMakeFiles/cmTC_77210.dir/build.make CMakeFiles/cmTC_77210.dir/build
Run Build Command(s):/usr/bin/gmake cmTC_75f91/fast
/usr/bin/gmake -f CMakeFiles/cmTC_75f91.dir/build.make CMakeFiles/cmTC_75f91.dir/build
gmake[1]: Entering directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_77210.dir/feature_tests.cxx.o
/usr/bin/c++ -std=c++11 -o CMakeFiles/cmTC_77210.dir/feature_tests.cxx.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/feature_tests.cxx
Linking CXX executable cmTC_77210
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_77210.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_77210.dir/feature_tests.cxx.o -o cmTC_77210
Building CXX object CMakeFiles/cmTC_75f91.dir/feature_tests.cxx.o
/usr/bin/c++ -std=c++11 -o CMakeFiles/cmTC_75f91.dir/feature_tests.cxx.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/feature_tests.cxx
Linking CXX executable cmTC_75f91
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_75f91.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_75f91.dir/feature_tests.cxx.o -o cmTC_75f91
gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
......@@ -594,14 +594,14 @@ gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFi
Detecting CXX [-std=c++98] compiler features compiled with the following output:
Change Dir: /home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_7d906/fast
/usr/bin/gmake -f CMakeFiles/cmTC_7d906.dir/build.make CMakeFiles/cmTC_7d906.dir/build
Run Build Command(s):/usr/bin/gmake cmTC_d2ee5/fast
/usr/bin/gmake -f CMakeFiles/cmTC_d2ee5.dir/build.make CMakeFiles/cmTC_d2ee5.dir/build
gmake[1]: Entering directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_7d906.dir/feature_tests.cxx.o
/usr/bin/c++ -std=c++98 -o CMakeFiles/cmTC_7d906.dir/feature_tests.cxx.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/feature_tests.cxx
Linking CXX executable cmTC_7d906
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_7d906.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_7d906.dir/feature_tests.cxx.o -o cmTC_7d906
Building CXX object CMakeFiles/cmTC_d2ee5.dir/feature_tests.cxx.o
/usr/bin/c++ -std=c++98 -o CMakeFiles/cmTC_d2ee5.dir/feature_tests.cxx.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/feature_tests.cxx
Linking CXX executable cmTC_d2ee5
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_d2ee5.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_d2ee5.dir/feature_tests.cxx.o -o cmTC_d2ee5
gmake[1]: Leaving directory `/home/songxinkai/mytests/boost/python/build/CMakeFiles/CMakeTmp'
......
......@@ -118,5 +118,7 @@ set(CMAKE_MAKEFILE_PRODUCTS
# Dependency information for all targets:
set(CMAKE_DEPEND_INFO_FILES
"CMakeFiles/pyhello.dir/DependInfo.cmake"
"CMakeFiles/_pure_virtual_inherit_example.dir/DependInfo.cmake"
"CMakeFiles/_class_example.dir/DependInfo.cmake"
"CMakeFiles/_function_example.dir/DependInfo.cmake"
)
......@@ -65,39 +65,113 @@ CMAKE_SOURCE_DIR = /home/songxinkai/mytests/boost/python
CMAKE_BINARY_DIR = /home/songxinkai/mytests/boost/python/build
#=============================================================================
# Target rules for target CMakeFiles/pyhello.dir
# Target rules for target CMakeFiles/_pure_virtual_inherit_example.dir
# All Build rule for target.
CMakeFiles/pyhello.dir/all:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/depend
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/songxinkai/mytests/boost/python/build/CMakeFiles --progress-num=1,2,3 "Built target pyhello"
.PHONY : CMakeFiles/pyhello.dir/all
CMakeFiles/_pure_virtual_inherit_example.dir/all:
$(MAKE) -f CMakeFiles/_pure_virtual_inherit_example.dir/build.make CMakeFiles/_pure_virtual_inherit_example.dir/depend
$(MAKE) -f CMakeFiles/_pure_virtual_inherit_example.dir/build.make CMakeFiles/_pure_virtual_inherit_example.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/songxinkai/mytests/boost/python/build/CMakeFiles --progress-num=5,6 "Built target _pure_virtual_inherit_example"
.PHONY : CMakeFiles/_pure_virtual_inherit_example.dir/all
# Include target in all.
all: CMakeFiles/pyhello.dir/all
all: CMakeFiles/_pure_virtual_inherit_example.dir/all
.PHONY : all
# Build rule for subdir invocation for target.
CMakeFiles/pyhello.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/songxinkai/mytests/boost/python/build/CMakeFiles 3
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/pyhello.dir/all
CMakeFiles/_pure_virtual_inherit_example.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/songxinkai/mytests/boost/python/build/CMakeFiles 2
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/_pure_virtual_inherit_example.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/songxinkai/mytests/boost/python/build/CMakeFiles 0
.PHONY : CMakeFiles/pyhello.dir/rule
.PHONY : CMakeFiles/_pure_virtual_inherit_example.dir/rule
# Convenience name for target.
pyhello: CMakeFiles/pyhello.dir/rule
_pure_virtual_inherit_example: CMakeFiles/_pure_virtual_inherit_example.dir/rule
.PHONY : pyhello
.PHONY : _pure_virtual_inherit_example
# clean rule for target.
CMakeFiles/pyhello.dir/clean:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/clean
.PHONY : CMakeFiles/pyhello.dir/clean
CMakeFiles/_pure_virtual_inherit_example.dir/clean:
$(MAKE) -f CMakeFiles/_pure_virtual_inherit_example.dir/build.make CMakeFiles/_pure_virtual_inherit_example.dir/clean
.PHONY : CMakeFiles/_pure_virtual_inherit_example.dir/clean
# clean rule for target.
clean: CMakeFiles/pyhello.dir/clean
clean: CMakeFiles/_pure_virtual_inherit_example.dir/clean
.PHONY : clean
#=============================================================================
# Target rules for target CMakeFiles/_class_example.dir
# All Build rule for target.
CMakeFiles/_class_example.dir/all:
$(MAKE) -f CMakeFiles/_class_example.dir/build.make CMakeFiles/_class_example.dir/depend
$(MAKE) -f CMakeFiles/_class_example.dir/build.make CMakeFiles/_class_example.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/songxinkai/mytests/boost/python/build/CMakeFiles --progress-num=1,2 "Built target _class_example"
.PHONY : CMakeFiles/_class_example.dir/all
# Include target in all.
all: CMakeFiles/_class_example.dir/all
.PHONY : all
# Build rule for subdir invocation for target.
CMakeFiles/_class_example.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/songxinkai/mytests/boost/python/build/CMakeFiles 2
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/_class_example.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/songxinkai/mytests/boost/python/build/CMakeFiles 0
.PHONY : CMakeFiles/_class_example.dir/rule
# Convenience name for target.
_class_example: CMakeFiles/_class_example.dir/rule
.PHONY : _class_example
# clean rule for target.
CMakeFiles/_class_example.dir/clean:
$(MAKE) -f CMakeFiles/_class_example.dir/build.make CMakeFiles/_class_example.dir/clean
.PHONY : CMakeFiles/_class_example.dir/clean
# clean rule for target.
clean: CMakeFiles/_class_example.dir/clean
.PHONY : clean
#=============================================================================
# Target rules for target CMakeFiles/_function_example.dir
# All Build rule for target.
CMakeFiles/_function_example.dir/all:
$(MAKE) -f CMakeFiles/_function_example.dir/build.make CMakeFiles/_function_example.dir/depend
$(MAKE) -f CMakeFiles/_function_example.dir/build.make CMakeFiles/_function_example.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/songxinkai/mytests/boost/python/build/CMakeFiles --progress-num=3,4 "Built target _function_example"
.PHONY : CMakeFiles/_function_example.dir/all
# Include target in all.
all: CMakeFiles/_function_example.dir/all
.PHONY : all
# Build rule for subdir invocation for target.
CMakeFiles/_function_example.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/songxinkai/mytests/boost/python/build/CMakeFiles 2
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/_function_example.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/songxinkai/mytests/boost/python/build/CMakeFiles 0
.PHONY : CMakeFiles/_function_example.dir/rule
# Convenience name for target.
_function_example: CMakeFiles/_function_example.dir/rule
.PHONY : _function_example
# clean rule for target.
CMakeFiles/_function_example.dir/clean:
$(MAKE) -f CMakeFiles/_function_example.dir/build.make CMakeFiles/_function_example.dir/clean
.PHONY : CMakeFiles/_function_example.dir/clean
# clean rule for target.
clean: CMakeFiles/_function_example.dir/clean
.PHONY : clean
......
/home/songxinkai/mytests/boost/python/build/CMakeFiles/rebuild_cache.dir
/home/songxinkai/mytests/boost/python/build/CMakeFiles/edit_cache.dir
/home/songxinkai/mytests/boost/python/build/CMakeFiles/pyhello.dir
/home/songxinkai/mytests/boost/python/build/CMakeFiles/_pure_virtual_inherit_example.dir
/home/songxinkai/mytests/boost/python/build/CMakeFiles/_class_example.dir
/home/songxinkai/mytests/boost/python/build/CMakeFiles/_function_example.dir
......@@ -111,71 +111,124 @@ depend:
.PHONY : depend
#=============================================================================
# Target rules for targets named pyhello
# Target rules for targets named _pure_virtual_inherit_example
# Build rule for target.
pyhello: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 pyhello
.PHONY : pyhello
_pure_virtual_inherit_example: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 _pure_virtual_inherit_example
.PHONY : _pure_virtual_inherit_example
# fast build rule for target.
pyhello/fast:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/build
.PHONY : pyhello/fast
_pure_virtual_inherit_example/fast:
$(MAKE) -f CMakeFiles/_pure_virtual_inherit_example.dir/build.make CMakeFiles/_pure_virtual_inherit_example.dir/build
.PHONY : _pure_virtual_inherit_example/fast
CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.o: CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o
#=============================================================================
# Target rules for targets named _class_example
# Build rule for target.
_class_example: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 _class_example
.PHONY : _class_example
# fast build rule for target.
_class_example/fast:
$(MAKE) -f CMakeFiles/_class_example.dir/build.make CMakeFiles/_class_example.dir/build
.PHONY : _class_example/fast
#=============================================================================
# Target rules for targets named _function_example
# Build rule for target.
_function_example: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 _function_example
.PHONY : _function_example
# fast build rule for target.
_function_example/fast:
$(MAKE) -f CMakeFiles/_function_example.dir/build.make CMakeFiles/_function_example.dir/build
.PHONY : _function_example/fast
class_example.o: class_example.cpp.o
.PHONY : class_example.o
# target to build an object file
class_example.cpp.o:
$(MAKE) -f CMakeFiles/_class_example.dir/build.make CMakeFiles/_class_example.dir/class_example.cpp.o
.PHONY : class_example.cpp.o
class_example.i: class_example.cpp.i
.PHONY : class_example.i
# target to preprocess a source file
class_example.cpp.i:
$(MAKE) -f CMakeFiles/_class_example.dir/build.make CMakeFiles/_class_example.dir/class_example.cpp.i
.PHONY : class_example.cpp.i
class_example.s: class_example.cpp.s
.PHONY : class_example.s
# target to generate assembly for a file
class_example.cpp.s:
$(MAKE) -f CMakeFiles/_class_example.dir/build.make CMakeFiles/_class_example.dir/class_example.cpp.s
.PHONY : class_example.cpp.s
function_example.o: function_example.cpp.o
.PHONY : CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.o
.PHONY : function_example.o
# target to build an object file
CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o
.PHONY : CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o
function_example.cpp.o:
$(MAKE) -f CMakeFiles/_function_example.dir/build.make CMakeFiles/_function_example.dir/function_example.cpp.o
.PHONY : function_example.cpp.o
CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.i: CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.i
function_example.i: function_example.cpp.i
.PHONY : CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.i
.PHONY : function_example.i
# target to preprocess a source file
CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.i:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.i
.PHONY : CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.i
function_example.cpp.i:
$(MAKE) -f CMakeFiles/_function_example.dir/build.make CMakeFiles/_function_example.dir/function_example.cpp.i
.PHONY : function_example.cpp.i
CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.s: CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.s
function_example.s: function_example.cpp.s
.PHONY : CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.s
.PHONY : function_example.s
# target to generate assembly for a file
CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.s:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.s
.PHONY : CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.s
function_example.cpp.s:
$(MAKE) -f CMakeFiles/_function_example.dir/build.make CMakeFiles/_function_example.dir/function_example.cpp.s
.PHONY : function_example.cpp.s
hello.o: hello.cpp.o
pure_virtual_inherit_example.o: pure_virtual_inherit_example.cpp.o
.PHONY : hello.o
.PHONY : pure_virtual_inherit_example.o
# target to build an object file
hello.cpp.o:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/hello.cpp.o
.PHONY : hello.cpp.o
pure_virtual_inherit_example.cpp.o:
$(MAKE) -f CMakeFiles/_pure_virtual_inherit_example.dir/build.make CMakeFiles/_pure_virtual_inherit_example.dir/pure_virtual_inherit_example.cpp.o
.PHONY : pure_virtual_inherit_example.cpp.o
hello.i: hello.cpp.i
pure_virtual_inherit_example.i: pure_virtual_inherit_example.cpp.i
.PHONY : hello.i
.PHONY : pure_virtual_inherit_example.i
# target to preprocess a source file
hello.cpp.i:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/hello.cpp.i
.PHONY : hello.cpp.i
pure_virtual_inherit_example.cpp.i:
$(MAKE) -f CMakeFiles/_pure_virtual_inherit_example.dir/build.make CMakeFiles/_pure_virtual_inherit_example.dir/pure_virtual_inherit_example.cpp.i
.PHONY : pure_virtual_inherit_example.cpp.i
hello.s: hello.cpp.s
pure_virtual_inherit_example.s: pure_virtual_inherit_example.cpp.s
.PHONY : hello.s
.PHONY : pure_virtual_inherit_example.s
# target to generate assembly for a file
hello.cpp.s:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/hello.cpp.s
.PHONY : hello.cpp.s
pure_virtual_inherit_example.cpp.s:
$(MAKE) -f CMakeFiles/_pure_virtual_inherit_example.dir/build.make CMakeFiles/_pure_virtual_inherit_example.dir/pure_virtual_inherit_example.cpp.s
.PHONY : pure_virtual_inherit_example.cpp.s
# Help Target
help:
......@@ -185,13 +238,18 @@ help:
@echo "... depend"
@echo "... rebuild_cache"
@echo "... edit_cache"
@echo "... pyhello"
@echo "... CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.o"
@echo "... CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.i"
@echo "... CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.s"
@echo "... hello.o"
@echo "... hello.i"
@echo "... hello.s"
@echo "... _pure_virtual_inherit_example"
@echo "... _class_example"
@echo "... _function_example"
@echo "... class_example.o"
@echo "... class_example.i"
@echo "... class_example.s"
@echo "... function_example.o"
@echo "... function_example.i"
@echo "... function_example.s"
@echo "... pure_virtual_inherit_example.o"
@echo "... pure_virtual_inherit_example.i"
@echo "... pure_virtual_inherit_example.s"
.PHONY : help
......
#include <boost/python.hpp>
#include <iostream>
using namespace boost::python;
using namespace std;
class Base {
public:
Base() : m_first(0) {
cout << "Base constructor 0, m_first: "
<< m_first << endl;
}
Base(int first) : m_first(first) {
cout << "Base constructor 1, m_first: "
<< m_first << endl;
}
~Base(){}
virtual void print(){
cout << "This is Base." << endl;
}
int get_first() const{return m_first;}
void set_first(int num){m_first = num;}
protected:
int m_first;
};
class Derived : public Base{
public:
Derived() : Base(), m_second(0) {}
Derived(int second) : Base(), m_second(second) {}
Derived(int first, int second) : Base(first), m_second(second) {}
~Derived(){}
void print(){
cout << "This is Derived (" << m_first << ", " << m_second << ")." << endl;
}
int get_second() const {return m_second;}
void set_second(int num) {m_second = num;}
protected:
int m_second;
};
class PrueVirtualClass {
public:
PrueVirtualClass(){}
virtual ~PrueVirtualClass () = default;
virtual int f() = 0;
};
struct PrueVirtualClassWrap : PrueVirtualClass, wrapper<PrueVirtualClass> {
PrueVirtualClassWrap(): PrueVirtualClass(){}
int f() {
return this->get_override("f")();
}
};
BOOST_PYTHON_MODULE(_class_example) {
class_<Base>("Base")
.def(init<int>())
.def("print", &Base::print)
.add_property("m_first", &Base::get_first) //, &Base::set_first)
;
// class_<Derived, bases<Base> >("Derived")
class_<Derived >("Derived")
.def(init<int>())
.def(init<int, int>())
.def("print", &Derived::print)
.add_property("m_second", &Derived::get_second, &Derived::set_second)
;
class_<PrueVirtualClassWrap, boost::noncopyable>("prueVirtualClass", init<>())
.def("f", pure_virtual(&PrueVirtualClass::f))
;
}
#include <boost/python.hpp>
using namespace boost::python;
const char* Greet() {
return "hello, world";
}
int Add(int i, int j) {
return i+j;
}
BOOST_PYTHON_MODULE(_function_example) {
def("greet", Greet);
def("add", &Add, "A function which adds two numbers");
}
#include <boost/python.hpp>
#include <iostream>
using namespace boost::python;
using std::cout;
using std::endl;
// Mockup abstract type.
class polygon {
public:
polygon() {}
virtual int area () = 0;
void print (){
cout << "in polygon::print()" << endl;
}
virtual ~polygon() = default;
};
// Wrapper to allow calling Python overrides.
struct polygon_wrap : polygon, wrapper<polygon> {
polygon_wrap(): polygon() {}
int area() { return this->get_override("area")(); }
};
BOOST_PYTHON_MODULE(_pure_virtual_inherit_example) {
// Expose models.
class_<polygon_wrap, boost::noncopyable>("Polygon", init<>())
.def("area", pure_virtual(&polygon::area))
.def("print", &polygon::print)
;
}
#!/home/songxinkai/anaconda3/bin/python
import sys
sys.path.insert(-1, "build")
import _pure_virtual_inherit_example as pv
class Square (pv.Polygon):
def area(self):
print("in sq::area()")
if __name__ == "__main__":
sq = Square()
sq.area()
sq.print()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment