# HG changeset patch # User ikkun # Date 1497542782 -32400 # Node ID df645e67040a58df8d98f356f9a150c093cb2df9 # Parent 64fff82cf9c96ecbaadef3ac25047b89431a9523 fix diff -r 64fff82cf9c9 -r df645e67040a osc.md --- a/osc.md Thu Jun 15 23:38:07 2017 +0900 +++ b/osc.md Fri Jun 16 01:06:22 2017 +0900 @@ -52,7 +52,7 @@ - helloがtarget名となる - target名が生成される実行形式(コマンド)の名前となる。 - makeコマンドのターゲットにもなる -[CmakeLists.txt](file:samle/CmakeLists.txt) +[CmakeLists.txt](file:sample/CmakeLists.txt) # Makefileを生成しビルドしてみる - cmake .でMakefileを作成する @@ -73,7 +73,10 @@ # CUDAを使ってみる - +- プロジェクトに必要なcmakeの最低バージョンをを設定します。 +cmake_minimum_required(VERSION 3.7) +- 必要なCUDAのパッケージを設定します。 +find_package(CUDA REQUIRED) # Ninja diff -r 64fff82cf9c9 -r df645e67040a sample/CMakeCache.txt --- a/sample/CMakeCache.txt Thu Jun 15 23:38:07 2017 +0900 +++ b/sample/CMakeCache.txt Fri Jun 16 01:06:22 2017 +0900 @@ -21,6 +21,9 @@ // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. CMAKE_BUILD_TYPE:STRING= +//Enable/Disable color output during build. +CMAKE_COLOR_MAKEFILE:BOOL=ON + //CXX compiler CMAKE_CXX_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ @@ -86,8 +89,8 @@ //Path to a program. CMAKE_LINKER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -//Program used to build from build.ninja files. -CMAKE_MAKE_PROGRAM:FILEPATH=/usr/local/bin/ninja +//Path to a program. +CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make //Flags used by the linker during the creation of modules. CMAKE_MODULE_LINKER_FLAGS:STRING= @@ -197,6 +200,8 @@ CMAKE_CACHE_MINOR_VERSION:INTERNAL=8 //Patch version of cmake used to create the current loaded cache CMAKE_CACHE_PATCH_VERSION:INTERNAL=2 +//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE +CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 //Path to CMake executable. CMAKE_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.8.2/bin/cmake //Path to cpack program executable. @@ -227,6 +232,8 @@ CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//Path to cache edit program executable. +CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.8.2/bin/ccmake //Executable file format CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS @@ -244,7 +251,7 @@ //Name of external makefile project generator. CMAKE_EXTRA_GENERATOR:INTERNAL= //Name of generator. -CMAKE_GENERATOR:INTERNAL=Ninja +CMAKE_GENERATOR:INTERNAL=Unix Makefiles //Name of generator platform. CMAKE_GENERATOR_PLATFORM:INTERNAL= //Name of generator toolset. diff -r 64fff82cf9c9 -r df645e67040a sample/CMakeFiles/CMakeOutput.log --- a/sample/CMakeFiles/CMakeOutput.log Thu Jun 15 23:38:07 2017 +0900 +++ b/sample/CMakeFiles/CMakeOutput.log Fri Jun 16 01:06:22 2017 +0900 @@ -28,21 +28,29 @@ Determining if the C compiler works passed with the following output: Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp -Run Build Command:"/usr/local/bin/ninja" "cmTC_a5f12" -[1/2] Building C object CMakeFiles/cmTC_a5f12.dir/testCCompiler.c.o -[2/2] Linking C executable cmTC_a5f12 +Run Build Command:"/usr/bin/make" "cmTC_caf4f/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_caf4f.dir/build.make CMakeFiles/cmTC_caf4f.dir/build +Building C object CMakeFiles/cmTC_caf4f.dir/testCCompiler.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o CMakeFiles/cmTC_caf4f.dir/testCCompiler.c.o -c /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp/testCCompiler.c +Linking C executable cmTC_caf4f +/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_caf4f.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_caf4f.dir/testCCompiler.c.o -o cmTC_caf4f Detecting C compiler ABI info compiled with the following output: Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp -Run Build Command:"/usr/local/bin/ninja" "cmTC_41b67" -[1/2] Building C object CMakeFiles/cmTC_41b67.dir/CMakeCCompilerABI.c.o -[2/2] Linking C executable cmTC_41b67 +Run Build Command:"/usr/bin/make" "cmTC_e7743/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_e7743.dir/build.make CMakeFiles/cmTC_e7743.dir/build +Building C object CMakeFiles/cmTC_e7743.dir/CMakeCCompilerABI.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o CMakeFiles/cmTC_e7743.dir/CMakeCCompilerABI.c.o -c /usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeCCompilerABI.c +Linking C executable cmTC_e7743 +/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e7743.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -v -Wl,-v CMakeFiles/cmTC_e7743.dir/CMakeCCompilerABI.c.o -o cmTC_e7743 Apple LLVM version 7.0.2 (clang-700.1.81) Target: x86_64-apple-darwin15.6.0 Thread model: posix - "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o cmTC_41b67 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_41b67.dir/CMakeCCompilerABI.c.o -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib/darwin/libclang_rt.osx.a + "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o cmTC_e7743 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_e7743.dir/CMakeCCompilerABI.c.o -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib/darwin/libclang_rt.osx.a @(#)PROGRAM:ld PROJECT:ld64-253.9 configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS) Library search paths: @@ -55,13 +63,17 @@ link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] ignore line: [Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp] ignore line: [] - ignore line: [Run Build Command:"/usr/local/bin/ninja" "cmTC_41b67"] - ignore line: [[1/2] Building C object CMakeFiles/cmTC_41b67.dir/CMakeCCompilerABI.c.o] - ignore line: [[2/2] Linking C executable cmTC_41b67] + ignore line: [Run Build Command:"/usr/bin/make" "cmTC_e7743/fast"] + ignore line: [/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_e7743.dir/build.make CMakeFiles/cmTC_e7743.dir/build] + ignore line: [Building C object CMakeFiles/cmTC_e7743.dir/CMakeCCompilerABI.c.o] + ignore line: [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o CMakeFiles/cmTC_e7743.dir/CMakeCCompilerABI.c.o -c /usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeCCompilerABI.c] + ignore line: [Linking C executable cmTC_e7743] + ignore line: [/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e7743.dir/link.txt --verbose=1] + ignore line: [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -v -Wl,-v CMakeFiles/cmTC_e7743.dir/CMakeCCompilerABI.c.o -o cmTC_e7743 ] ignore line: [Apple LLVM version 7.0.2 (clang-700.1.81)] ignore line: [Target: x86_64-apple-darwin15.6.0] ignore line: [Thread model: posix] - link line: [ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o cmTC_41b67 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_41b67.dir/CMakeCCompilerABI.c.o -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib/darwin/libclang_rt.osx.a] + link line: [ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o cmTC_e7743 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_e7743.dir/CMakeCCompilerABI.c.o -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib/darwin/libclang_rt.osx.a] arg [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld] ==> ignore arg [-demangle] ==> ignore arg [-dynamic] ==> ignore @@ -72,11 +84,11 @@ arg [-syslibroot] ==> ignore arg [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk] ==> ignore arg [-o] ==> ignore - arg [cmTC_41b67] ==> ignore + arg [cmTC_e7743] ==> ignore arg [-search_paths_first] ==> ignore arg [-headerpad_max_install_names] ==> ignore arg [-v] ==> ignore - arg [CMakeFiles/cmTC_41b67.dir/CMakeCCompilerABI.c.o] ==> ignore + arg [CMakeFiles/cmTC_e7743.dir/CMakeCCompilerABI.c.o] ==> ignore arg [-lSystem] ==> lib [System] arg [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib/darwin/libclang_rt.osx.a] ==> lib [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib/darwin/libclang_rt.osx.a] Library search paths: [;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib] @@ -95,9 +107,13 @@ Detecting C [-std=c11] compiler features compiled with the following output: Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp -Run Build Command:"/usr/local/bin/ninja" "cmTC_aba0a" -[1/2] Building C object CMakeFiles/cmTC_aba0a.dir/feature_tests.c.o -[2/2] Linking C executable cmTC_aba0a +Run Build Command:"/usr/bin/make" "cmTC_0c859/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_0c859.dir/build.make CMakeFiles/cmTC_0c859.dir/build +Building C object CMakeFiles/cmTC_0c859.dir/feature_tests.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -std=c11 -o CMakeFiles/cmTC_0c859.dir/feature_tests.c.o -c /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/feature_tests.c +Linking C executable cmTC_0c859 +/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0c859.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_0c859.dir/feature_tests.c.o -o cmTC_0c859 Feature record: C_FEATURE:1c_function_prototypes @@ -109,9 +125,13 @@ Detecting C [-std=c99] compiler features compiled with the following output: Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp -Run Build Command:"/usr/local/bin/ninja" "cmTC_c75de" -[1/2] Building C object CMakeFiles/cmTC_c75de.dir/feature_tests.c.o -[2/2] Linking C executable cmTC_c75de +Run Build Command:"/usr/bin/make" "cmTC_80902/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_80902.dir/build.make CMakeFiles/cmTC_80902.dir/build +Building C object CMakeFiles/cmTC_80902.dir/feature_tests.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -std=c99 -o CMakeFiles/cmTC_80902.dir/feature_tests.c.o -c /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/feature_tests.c +Linking C executable cmTC_80902 +/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_80902.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_80902.dir/feature_tests.c.o -o cmTC_80902 Feature record: C_FEATURE:1c_function_prototypes @@ -123,9 +143,13 @@ Detecting C [-std=c90] compiler features compiled with the following output: Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp -Run Build Command:"/usr/local/bin/ninja" "cmTC_3915f" -[1/2] Building C object CMakeFiles/cmTC_3915f.dir/feature_tests.c.o -[2/2] Linking C executable cmTC_3915f +Run Build Command:"/usr/bin/make" "cmTC_04c81/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_04c81.dir/build.make CMakeFiles/cmTC_04c81.dir/build +Building C object CMakeFiles/cmTC_04c81.dir/feature_tests.c.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -std=c90 -o CMakeFiles/cmTC_04c81.dir/feature_tests.c.o -c /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/feature_tests.c +Linking C executable cmTC_04c81 +/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_04c81.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_04c81.dir/feature_tests.c.o -o cmTC_04c81 Feature record: C_FEATURE:1c_function_prototypes @@ -135,21 +159,29 @@ Determining if the CXX compiler works passed with the following output: Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp -Run Build Command:"/usr/local/bin/ninja" "cmTC_005b2" -[1/2] Building CXX object CMakeFiles/cmTC_005b2.dir/testCXXCompiler.cxx.o -[2/2] Linking CXX executable cmTC_005b2 +Run Build Command:"/usr/bin/make" "cmTC_31d90/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_31d90.dir/build.make CMakeFiles/cmTC_31d90.dir/build +Building CXX object CMakeFiles/cmTC_31d90.dir/testCXXCompiler.cxx.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o CMakeFiles/cmTC_31d90.dir/testCXXCompiler.cxx.o -c /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp/testCXXCompiler.cxx +Linking CXX executable cmTC_31d90 +/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_31d90.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_31d90.dir/testCXXCompiler.cxx.o -o cmTC_31d90 Detecting CXX compiler ABI info compiled with the following output: Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp -Run Build Command:"/usr/local/bin/ninja" "cmTC_0ae44" -[1/2] Building CXX object CMakeFiles/cmTC_0ae44.dir/CMakeCXXCompilerABI.cpp.o -[2/2] Linking CXX executable cmTC_0ae44 +Run Build Command:"/usr/bin/make" "cmTC_7b677/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_7b677.dir/build.make CMakeFiles/cmTC_7b677.dir/build +Building CXX object CMakeFiles/cmTC_7b677.dir/CMakeCXXCompilerABI.cpp.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o CMakeFiles/cmTC_7b677.dir/CMakeCXXCompilerABI.cpp.o -c /usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeCXXCompilerABI.cpp +Linking CXX executable cmTC_7b677 +/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7b677.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -v -Wl,-v CMakeFiles/cmTC_7b677.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_7b677 Apple LLVM version 7.0.2 (clang-700.1.81) Target: x86_64-apple-darwin15.6.0 Thread model: posix - "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o cmTC_0ae44 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_0ae44.dir/CMakeCXXCompilerABI.cpp.o -lc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib/darwin/libclang_rt.osx.a + "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o cmTC_7b677 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_7b677.dir/CMakeCXXCompilerABI.cpp.o -lc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib/darwin/libclang_rt.osx.a @(#)PROGRAM:ld PROJECT:ld64-253.9 configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS) Library search paths: @@ -162,13 +194,17 @@ link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] ignore line: [Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp] ignore line: [] - ignore line: [Run Build Command:"/usr/local/bin/ninja" "cmTC_0ae44"] - ignore line: [[1/2] Building CXX object CMakeFiles/cmTC_0ae44.dir/CMakeCXXCompilerABI.cpp.o] - ignore line: [[2/2] Linking CXX executable cmTC_0ae44] + ignore line: [Run Build Command:"/usr/bin/make" "cmTC_7b677/fast"] + ignore line: [/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_7b677.dir/build.make CMakeFiles/cmTC_7b677.dir/build] + ignore line: [Building CXX object CMakeFiles/cmTC_7b677.dir/CMakeCXXCompilerABI.cpp.o] + ignore line: [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o CMakeFiles/cmTC_7b677.dir/CMakeCXXCompilerABI.cpp.o -c /usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeCXXCompilerABI.cpp] + ignore line: [Linking CXX executable cmTC_7b677] + ignore line: [/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7b677.dir/link.txt --verbose=1] + ignore line: [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -v -Wl,-v CMakeFiles/cmTC_7b677.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_7b677 ] ignore line: [Apple LLVM version 7.0.2 (clang-700.1.81)] ignore line: [Target: x86_64-apple-darwin15.6.0] ignore line: [Thread model: posix] - link line: [ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o cmTC_0ae44 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_0ae44.dir/CMakeCXXCompilerABI.cpp.o -lc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib/darwin/libclang_rt.osx.a] + link line: [ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o cmTC_7b677 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_7b677.dir/CMakeCXXCompilerABI.cpp.o -lc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib/darwin/libclang_rt.osx.a] arg [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld] ==> ignore arg [-demangle] ==> ignore arg [-dynamic] ==> ignore @@ -179,11 +215,11 @@ arg [-syslibroot] ==> ignore arg [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk] ==> ignore arg [-o] ==> ignore - arg [cmTC_0ae44] ==> ignore + arg [cmTC_7b677] ==> ignore arg [-search_paths_first] ==> ignore arg [-headerpad_max_install_names] ==> ignore arg [-v] ==> ignore - arg [CMakeFiles/cmTC_0ae44.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore + arg [CMakeFiles/cmTC_7b677.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore arg [-lc++] ==> lib [c++] arg [-lSystem] ==> lib [System] arg [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib/darwin/libclang_rt.osx.a] ==> lib [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib/darwin/libclang_rt.osx.a] @@ -203,9 +239,13 @@ Detecting CXX [-std=c++1z] compiler features compiled with the following output: Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp -Run Build Command:"/usr/local/bin/ninja" "cmTC_5c2c8" -[1/2] Building CXX object CMakeFiles/cmTC_5c2c8.dir/feature_tests.cxx.o -[2/2] Linking CXX executable cmTC_5c2c8 +Run Build Command:"/usr/bin/make" "cmTC_243bf/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_243bf.dir/build.make CMakeFiles/cmTC_243bf.dir/build +Building CXX object CMakeFiles/cmTC_243bf.dir/feature_tests.cxx.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -std=c++1z -o CMakeFiles/cmTC_243bf.dir/feature_tests.cxx.o -c /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/feature_tests.cxx +Linking CXX executable cmTC_243bf +/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_243bf.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_243bf.dir/feature_tests.cxx.o -o cmTC_243bf Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers @@ -270,9 +310,13 @@ Detecting CXX [-std=c++14] compiler features compiled with the following output: Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp -Run Build Command:"/usr/local/bin/ninja" "cmTC_cb383" -[1/2] Building CXX object CMakeFiles/cmTC_cb383.dir/feature_tests.cxx.o -[2/2] Linking CXX executable cmTC_cb383 +Run Build Command:"/usr/bin/make" "cmTC_256cb/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_256cb.dir/build.make CMakeFiles/cmTC_256cb.dir/build +Building CXX object CMakeFiles/cmTC_256cb.dir/feature_tests.cxx.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -std=c++14 -o CMakeFiles/cmTC_256cb.dir/feature_tests.cxx.o -c /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/feature_tests.cxx +Linking CXX executable cmTC_256cb +/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_256cb.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_256cb.dir/feature_tests.cxx.o -o cmTC_256cb Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers @@ -337,9 +381,13 @@ Detecting CXX [-std=c++11] compiler features compiled with the following output: Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp -Run Build Command:"/usr/local/bin/ninja" "cmTC_a0b18" -[1/2] Building CXX object CMakeFiles/cmTC_a0b18.dir/feature_tests.cxx.o -[2/2] Linking CXX executable cmTC_a0b18 +Run Build Command:"/usr/bin/make" "cmTC_e2e29/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_e2e29.dir/build.make CMakeFiles/cmTC_e2e29.dir/build +Building CXX object CMakeFiles/cmTC_e2e29.dir/feature_tests.cxx.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -std=c++11 -o CMakeFiles/cmTC_e2e29.dir/feature_tests.cxx.o -c /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/feature_tests.cxx +Linking CXX executable cmTC_e2e29 +/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e2e29.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_e2e29.dir/feature_tests.cxx.o -o cmTC_e2e29 Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers @@ -404,9 +452,13 @@ Detecting CXX [-std=c++98] compiler features compiled with the following output: Change Dir: /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/CMakeTmp -Run Build Command:"/usr/local/bin/ninja" "cmTC_1b866" -[1/2] Building CXX object CMakeFiles/cmTC_1b866.dir/feature_tests.cxx.o -[2/2] Linking CXX executable cmTC_1b866 +Run Build Command:"/usr/bin/make" "cmTC_2dc1c/fast" +/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_2dc1c.dir/build.make CMakeFiles/cmTC_2dc1c.dir/build +Building CXX object CMakeFiles/cmTC_2dc1c.dir/feature_tests.cxx.o +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -std=c++98 -o CMakeFiles/cmTC_2dc1c.dir/feature_tests.cxx.o -c /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/feature_tests.cxx +Linking CXX executable cmTC_2dc1c +/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2dc1c.dir/link.txt --verbose=1 +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_2dc1c.dir/feature_tests.cxx.o -o cmTC_2dc1c Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers diff -r 64fff82cf9c9 -r df645e67040a sample/CMakeFiles/TargetDirectories.txt --- a/sample/CMakeFiles/TargetDirectories.txt Thu Jun 15 23:38:07 2017 +0900 +++ b/sample/CMakeFiles/TargetDirectories.txt Fri Jun 16 01:06:22 2017 +0900 @@ -1,4 +1,3 @@ /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/rebuild_cache.dir /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/edit_cache.dir /Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/hello.dir -/Users/e135704/seminar/osc/ikkun-osc/sample/CMakeFiles/fizzbizz.dir diff -r 64fff82cf9c9 -r df645e67040a sample/Makefile --- a/sample/Makefile Thu Jun 15 23:38:07 2017 +0900 +++ b/sample/Makefile Fri Jun 16 01:06:22 2017 +0900 @@ -123,46 +123,6 @@ $(MAKE) -f CMakeFiles/hello.dir/build.make CMakeFiles/hello.dir/build .PHONY : hello/fast -#============================================================================= -# Target rules for targets named fizzbizz - -# Build rule for target. -fizzbizz: cmake_check_build_system - $(MAKE) -f CMakeFiles/Makefile2 fizzbizz -.PHONY : fizzbizz - -# fast build rule for target. -fizzbizz/fast: - $(MAKE) -f CMakeFiles/fizzbizz.dir/build.make CMakeFiles/fizzbizz.dir/build -.PHONY : fizzbizz/fast - -fizzbizz.o: fizzbizz.c.o - -.PHONY : fizzbizz.o - -# target to build an object file -fizzbizz.c.o: - $(MAKE) -f CMakeFiles/fizzbizz.dir/build.make CMakeFiles/fizzbizz.dir/fizzbizz.c.o -.PHONY : fizzbizz.c.o - -fizzbizz.i: fizzbizz.c.i - -.PHONY : fizzbizz.i - -# target to preprocess a source file -fizzbizz.c.i: - $(MAKE) -f CMakeFiles/fizzbizz.dir/build.make CMakeFiles/fizzbizz.dir/fizzbizz.c.i -.PHONY : fizzbizz.c.i - -fizzbizz.s: fizzbizz.c.s - -.PHONY : fizzbizz.s - -# target to generate assembly for a file -fizzbizz.c.s: - $(MAKE) -f CMakeFiles/fizzbizz.dir/build.make CMakeFiles/fizzbizz.dir/fizzbizz.c.s -.PHONY : fizzbizz.c.s - hellow.o: hellow.c.o .PHONY : hellow.o @@ -199,10 +159,6 @@ @echo "... rebuild_cache" @echo "... edit_cache" @echo "... hello" - @echo "... fizzbizz" - @echo "... fizzbizz.o" - @echo "... fizzbizz.i" - @echo "... fizzbizz.s" @echo "... hellow.o" @echo "... hellow.i" @echo "... hellow.s" diff -r 64fff82cf9c9 -r df645e67040a sample/build.ninja --- a/sample/build.ninja Thu Jun 15 23:38:07 2017 +0900 +++ b/sample/build.ninja Fri Jun 16 01:06:22 2017 +0900 @@ -72,29 +72,6 @@ TARGET_FILE = hello TARGET_PDB = hello.dbg # ============================================================================= -# Object build statements for EXECUTABLE target fizzbizz - -build CMakeFiles/fizzbizz.dir/fizzbizz.c.o: C_COMPILER__fizzbizz fizzbizz.c - DEP_FILE = CMakeFiles/fizzbizz.dir/fizzbizz.c.o.d - FLAGS = -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk - OBJECT_DIR = CMakeFiles/fizzbizz.dir - OBJECT_FILE_DIR = CMakeFiles/fizzbizz.dir - -# ============================================================================= -# Link build statements for EXECUTABLE target fizzbizz - - -############################################# -# Link the executable fizzbizz - -build fizzbizz: C_EXECUTABLE_LINKER__fizzbizz CMakeFiles/fizzbizz.dir/fizzbizz.c.o - FLAGS = -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk - OBJECT_DIR = CMakeFiles/fizzbizz.dir - POST_BUILD = : - PRE_LINK = : - TARGET_FILE = fizzbizz - TARGET_PDB = fizzbizz.dbg -# ============================================================================= # Target aliases. # ============================================================================= @@ -113,7 +90,7 @@ ############################################# # The main all target. -build all: phony hello fizzbizz +build all: phony hello ############################################# # Make the all target the default. diff -r 64fff82cf9c9 -r df645e67040a sample/hello Binary file sample/hello has changed diff -r 64fff82cf9c9 -r df645e67040a sample/rules.ninja --- a/sample/rules.ninja Thu Jun 15 23:38:07 2017 +0900 +++ b/sample/rules.ninja Fri Jun 16 01:06:22 2017 +0900 @@ -39,25 +39,6 @@ ############################################# -# Rule for compiling C files. - -rule C_COMPILER__fizzbizz - depfile = $DEP_FILE - deps = gcc - command = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in - description = Building C object $out - - -############################################# -# Rule for linking C executable. - -rule C_EXECUTABLE_LINKER__fizzbizz - command = $PRE_LINK && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $FLAGS -Wl,-search_paths_first -Wl,-headerpad_max_install_names $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD - description = Linking C executable $TARGET_FILE - restat = $RESTAT - - -############################################# # Rule for re-running cmake. rule RERUN_CMAKE