Advertisement
Guest User

Liang Qi

a guest
Apr 26th, 2011
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.22 KB | None | 0 0
  1. liangqi@olwst90198 ~/tmp/build $ export CCC_CXX=clang++
  2. liangqi@olwst90198 ~/tmp/build $ export PATH=~/dev/packages/checker-256:$PATH
  3. liangqi@olwst90198 ~/tmp/build $ scan-build cmake -G "Unix Makefiles" ../cppsa_test/
  4. -- The C compiler identification is GNU
  5. -- The CXX compiler identification is unknown
  6. -- Checking whether C compiler has -isysroot
  7. -- Checking whether C compiler has -isysroot - yes
  8. -- Checking whether C compiler supports OSX deployment target flag
  9. -- Checking whether C compiler supports OSX deployment target flag - yes
  10. -- Check for working C compiler: /Users/liangqi/dev/packages/checker-256/libexec/ccc-analyzer
  11. -- Check for working C compiler: /Users/liangqi/dev/packages/checker-256/libexec/ccc-analyzer -- works
  12. -- Detecting C compiler ABI info
  13. -- Detecting C compiler ABI info - done
  14. -- Check for working CXX compiler: /Users/liangqi/dev/packages/checker-256/libexec/c++-analyzer
  15. -- Check for working CXX compiler: /Users/liangqi/dev/packages/checker-256/libexec/c++-analyzer -- works
  16. -- Detecting CXX compiler ABI info
  17. -- Detecting CXX compiler ABI info - failed
  18. -- Configuring done
  19. -- Generating done
  20. -- Build files have been written to: /Users/liangqi/tmp/build
  21. scan-build: Removing directory '/tmp/scan-build-2011-04-27-3' because it contains no reports.
  22. liangqi@olwst90198 ~/tmp/build $ scan-build -enable-checker cplusplus.experimental.Iterators -v -v -v make
  23. scan-build: Emitting reports for this run to '/tmp/scan-build-2011-04-27-3'.
  24. Scanning dependencies of target cppsa_test
  25. [100%] Building CXX object CMakeFiles/cppsa_test.dir/main.cpp.o
  26. clang++ -o CMakeFiles/cppsa_test.dir/main.cpp.o -c /Users/liangqi/tmp/cppsa_test/main.cpp
  27. could not find clang line
  28. make[2]: *** [CMakeFiles/cppsa_test.dir/main.cpp.o] Error 9
  29. make[1]: *** [CMakeFiles/cppsa_test.dir/all] Error 2
  30. make: *** [all] Error 2
  31. scan-build: Removing directory '/tmp/scan-build-2011-04-27-3' because it contains no reports.
  32. liangqi@olwst90198 ~/tmp/build $ which clang++
  33. /usr/bin/clang++
  34. liangqi@olwst90198 ~/tmp/build $ rm -rf ~/dev/packages/checker-256/bin/clang
  35. liangqi@olwst90198 ~/tmp/build $ rm -rf ~/dev/packages/checker-256/bin/clang++
  36. liangqi@olwst90198 ~/tmp/build $ cd /usr/local/bin
  37. liangqi@olwst90198 /usr/local/bin $ ls
  38. brew ctest git-shell lli llvm-extract llvm-ranlib scan-view
  39. bugpoint djpeg git-upload-archive llvm-ar llvm-ld llvm-stub set-xcode-analyzer
  40. ccmake gccxml git-upload-pack llvm-as llvm-link llvmc tblgen
  41. cjpeg gccxml_cc1plus gitk llvm-bcanalyzer llvm-mc macho-dump wget
  42. cmake git hg llvm-config llvm-nm opt wrjpgcom
  43. cmakexbuild git-cvsserver jpegtran llvm-diff llvm-objdump rdjpgcom
  44. cpack git-receive-pack llc llvm-dis llvm-prof scan-build
  45. liangqi@olwst90198 /usr/local/bin $ ln -s ~/dev/packages/checker-256/bin/clang-3.0 clang
  46. liangqi@olwst90198 /usr/local/bin $ ln -s ~/dev/packages/checker-256/bin/clang-3.0 clang++
  47. liangqi@olwst90198 /usr/local/bin $ export PATH=~/dev/packages/checker-256:/usr/local/bin:$PATH
  48. liangqi@olwst90198 /usr/local/bin $ cd -
  49. /Users/liangqi/tmp/build
  50. liangqi@olwst90198 ~/tmp/build $ which clang++
  51. /usr/local/bin/clang++
  52. liangqi@olwst90198 ~/tmp/build $ clang++ -v
  53. clang version 3.0 (tags/checker/checker-256)
  54. Target: x86_64-apple-darwin10
  55. Thread model: posix
  56. liangqi@olwst90198 ~/tmp/build $ make clean
  57. liangqi@olwst90198 ~/tmp/build $ scan-build -enable-checker cplusplus.experimental.Iterators -v -v -v make
  58. scan-build: 'clang' executable not found in '/Users/liangqi/dev/packages/checker-256/bin'.
  59. scan-build: Using 'clang' from path: /usr/local/bin/clang
  60. scan-build: Emitting reports for this run to '/tmp/scan-build-2011-04-27-3'.
  61. [100%] Building CXX object CMakeFiles/cppsa_test.dir/main.cpp.o
  62. clang++ -o CMakeFiles/cppsa_test.dir/main.cpp.o -c /Users/liangqi/tmp/cppsa_test/main.cpp
  63.  
  64. [LOCATION]: /Users/liangqi/tmp/build
  65. #SHELL (cd '/Users/liangqi/tmp/build' && '/usr/local/bin/clang++' '-cc1' '-triple' 'x86_64-apple-darwin10.0.0' '-analyze' '-disable-free' '-main-file-name' 'main.cpp' '-analyzer-store=region' '-analyzer-opt-analyze-nested-blocks' '-analyzer-eagerly-assume' '-analyzer-checker=core' '-analyzer-checker=deadcode' '-analyzer-checker=security' '-analyzer-checker=unix' '-analyzer-checker=osx' '-analyzer-output' 'plist' '-w' '-pic-level' '1' '-mdisable-fp-elim' '-masm-verbose' '-munwind-tables' '-target-cpu' 'core2' '-resource-dir' '/Users/liangqi/dev/packages/checker-256/bin/../lib/clang/3.0' '-ferror-limit' '19' '-fmessage-length' '0' '-stack-protector' '1' '-fblocks' '-fcxx-exceptions' '-fexceptions' '-fdiagnostics-show-option' '-analyzer-display-progress' '-analyzer-checker' 'cplusplus.experimental.Iterators' '-analyzer-output=html' '-o' '/tmp/scan-build-2011-04-27-3' '-x' 'c++' '/Users/liangqi/tmp/cppsa_test/main.cpp')
  66. ANALYZE: /usr/include/c++/4.2.1/cstring memchr
  67. ANALYZE: /usr/include/c++/4.2.1/cstring strchr
  68. ANALYZE: /usr/include/c++/4.2.1/cstring strpbrk
  69. ANALYZE: /usr/include/c++/4.2.1/cstring strrchr
  70. ANALYZE: /usr/include/c++/4.2.1/cstring strstr
  71. ANALYZE: /usr/include/libkern/i386/_OSByteOrder.h _OSSwapInt16
  72. ANALYZE: /usr/include/libkern/i386/_OSByteOrder.h _OSSwapInt32
  73. ANALYZE: /usr/include/libkern/i386/_OSByteOrder.h _OSSwapInt64
  74. ANALYZE: /usr/include/c++/4.2.1/cstdlib abs
  75. ANALYZE: /usr/include/c++/4.2.1/cstdlib div
  76. ANALYZE: /usr/include/c++/4.2.1/cstdlib abs
  77. ANALYZE: /usr/include/c++/4.2.1/cstdlib div
  78. ANALYZE: /usr/include/stdio.h __sputc
  79. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/c++locale.h __convert_from_v
  80. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_active_p
  81. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_once
  82. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_key_create
  83. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_key_delete
  84. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_getspecific
  85. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_setspecific
  86. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_mutex_lock
  87. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_mutex_trylock
  88. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_mutex_unlock
  89. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_recursive_mutex_init_function
  90. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_recursive_mutex_lock
  91. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_recursive_mutex_trylock
  92. ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_recursive_mutex_unlock
  93. ANALYZE: /usr/include/ctype.h isascii
  94. ANALYZE: /usr/include/ctype.h __istype
  95. ANALYZE: /usr/include/ctype.h __isctype
  96. ANALYZE: /usr/include/ctype.h __wcwidth
  97. ANALYZE: /usr/include/ctype.h isalnum
  98. ANALYZE: /usr/include/ctype.h isalpha
  99. ANALYZE: /usr/include/ctype.h isblank
  100. ANALYZE: /usr/include/ctype.h iscntrl
  101. ANALYZE: /usr/include/ctype.h isdigit
  102. ANALYZE: /usr/include/ctype.h isgraph
  103. ANALYZE: /usr/include/ctype.h islower
  104. ANALYZE: /usr/include/ctype.h isprint
  105. ANALYZE: /usr/include/ctype.h ispunct
  106. ANALYZE: /usr/include/ctype.h isspace
  107. ANALYZE: /usr/include/ctype.h isupper
  108. ANALYZE: /usr/include/ctype.h isxdigit
  109. ANALYZE: /usr/include/ctype.h toascii
  110. ANALYZE: /usr/include/ctype.h tolower
  111. ANALYZE: /usr/include/ctype.h toupper
  112. ANALYZE: /usr/include/ctype.h digittoint
  113. ANALYZE: /usr/include/ctype.h ishexnumber
  114. ANALYZE: /usr/include/ctype.h isideogram
  115. ANALYZE: /usr/include/ctype.h isnumber
  116. ANALYZE: /usr/include/ctype.h isphonogram
  117. ANALYZE: /usr/include/ctype.h isrune
  118. ANALYZE: /usr/include/ctype.h isspecial
  119. ANALYZE: /usr/include/_wctype.h iswalnum
  120. ANALYZE: /usr/include/_wctype.h iswalpha
  121. ANALYZE: /usr/include/_wctype.h iswcntrl
  122. ANALYZE: /usr/include/_wctype.h iswctype
  123. ANALYZE: /usr/include/_wctype.h iswdigit
  124. ANALYZE: /usr/include/_wctype.h iswgraph
  125. ANALYZE: /usr/include/_wctype.h iswlower
  126. ANALYZE: /usr/include/_wctype.h iswprint
  127. ANALYZE: /usr/include/_wctype.h iswpunct
  128. ANALYZE: /usr/include/_wctype.h iswspace
  129. ANALYZE: /usr/include/_wctype.h iswupper
  130. ANALYZE: /usr/include/_wctype.h iswxdigit
  131. ANALYZE: /usr/include/_wctype.h towlower
  132. ANALYZE: /usr/include/_wctype.h towupper
  133. ANALYZE: /usr/include/c++/4.2.1/cwchar wcschr
  134. ANALYZE: /usr/include/c++/4.2.1/cwchar wcspbrk
  135. ANALYZE: /usr/include/c++/4.2.1/cwchar wcsrchr
  136. ANALYZE: /usr/include/c++/4.2.1/cwchar wcsstr
  137. ANALYZE: /usr/include/c++/4.2.1/cwchar wmemchr
  138. ANALYZE: /usr/include/c++/4.2.1/bits/stl_algobase.h fill
  139. ANALYZE: /usr/include/c++/4.2.1/bits/stl_algobase.h fill
  140. ANALYZE: /usr/include/c++/4.2.1/bits/stl_algobase.h fill
  141. ANALYZE: /usr/include/c++/4.2.1/bits/stl_algobase.h lexicographical_compare
  142. ANALYZE: /usr/include/c++/4.2.1/bits/stl_algobase.h lexicographical_compare
  143. ANALYZE: /usr/include/c++/4.2.1/bits/stl_uninitialized.h uninitialized_copy
  144. ANALYZE: /usr/include/c++/4.2.1/bits/stl_uninitialized.h uninitialized_copy
  145. ANALYZE: /usr/include/c++/4.2.1/bits/stl_bvector.h operator-
  146. ANALYZE: /usr/include/c++/4.2.1/bits/stl_bvector.h operator+
  147. ANALYZE: /usr/include/c++/4.2.1/bits/stl_bvector.h operator+
  148. ANALYZE: /usr/include/c++/4.2.1/bits/stl_bvector.h __fill_bvector
  149. ANALYZE: /usr/include/c++/4.2.1/bits/stl_bvector.h fill
  150. ANALYZE: /Users/liangqi/tmp/cppsa_test/main.cpp main
  151. /Users/liangqi/tmp/cppsa_test/main.cpp:16:9: warning: Cannot compare iterators from different containers
  152. if (i1 != i2 ) {
  153. ^~~~~~~~
  154. 1 warning generated.
  155. Linking CXX executable cppsa_test
  156. clang++ -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cppsa_test.dir/main.cpp.o -o cppsa_test
  157. [100%] Built target cppsa_test
  158. scan-build: 1 bugs found.
  159. scan-build: Run 'scan-view /tmp/scan-build-2011-04-27-3' to examine bug reports.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement