<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div></div><div><br></div><br><div><div>On Apr 24, 2013, at 19:38 , 凌欢 <<a href="mailto:linghuan713@126.com">linghuan713@126.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: arial; "><div>Hi, Jordan:<br>My checker version is 274 , and the previous veriosn also has the problem.</div><div>export clang_path=/Applications/xcode4.6_sdk6.1/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
</div><!--StartFragment --><div>
export xcode_path=/Applications/xcode4.6_sdk6.1/Contents/Developer/usr/bin/xcodebuild
</div><div>And the "xcode4.6_sdk6.1" is link to xcode 4.6 directory .</div><div>I have two questions for the scan build usage:</div><div><strong>1) Do the latest scan-build can support all the Xcode&SDK version ?</strong></div><div><strong>2) Is the above scan steps is valid  (link xcode 4.6 to anther directory ) ?</strong></div><p><strong>By the way ,  Can't exec "clang++" Problem throw out after the generated scan report.</strong></p><p>Thanks Jordan.<br> BRs</p><div>
<div>Howard Ling </div>
<div>*****************************************************</div>
<div> </div>
<div>E-mail:    <a href="mailto:linghuan713@126.com">linghuan713@126.com</a></div>
<div> </div>
<div>*****************************************************</div></div><div id="divNeteaseMailCard"></div><div></div>At 2013-04-25 01:28:14,"Jordan Rose" <<a href="mailto:jordan_rose@apple.com">jordan_rose@apple.com</a>> wrote:<br> <blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" id="isReplyContent"><div>Hm, this is wrong. You're not getting the new Xcode 4.6 scan-build integration, presumably because $xcode_path doesn't point to a valid "xcodebuild" executable. (Yes, scan-build is checking for that option verbatim.) What is $xcode_path on your system?</div><div><br></div><div>(By the way, if/when you get this working, you shouldn't need the --use-cc option.)</div><div><br></div><div>Jordan</div><div><br></div><br><div><div>On Apr 24, 2013, at 3:28 , 凌欢 <<a href="mailto:linghuan713@126.com">linghuan713@126.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-family: arial; font-size: 14px;"><div>Hi, all,:</div><div>when I use the following command to analyze the iPhone project , almost every project will throw the<strong> Can't exec "clang++" </strong>problem.</div><div>Here is the scan-build log, can anyone give me tip? Thanks for your  help.</div><div> </div><div>My scan command is:</div><div>
/data/checker/scan-build -o report --use-analyzer=Xcode --use-cc=$clang_path $xcode_path -scheme MttHDDistribution -configuration $CONFIG -sdk $SDK archive
</div><div> </div><div>And the scan log is the following text:<br><span style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Ld /Users/mqq/Library/Developer/Xcode/DerivedData/MttHD-aqrymoiwlplqyoaerjdmeutxmpdd/Build/Intermediates/ArchiveIntermediates/MttHDDistribution/InstallationBuildProductsLocation/Applications/MttHD.app/MttHD normal armv7</span><br style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">    cd /Users/mqq/hudson/clang_browser_ipad/MttHD</span><br style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">    setenv IPHONEOS_DEPLOYMENT_TARGET 4.0</span><br style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">    setenv PATH "/Applications/xcode4.6_sdk6.1/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/xcode4.6_sdk6.1/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"</span><br style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">    /data/checker/libexec/c++-analyzer -arch armv7 -isysroot /Applications/xcode4.6_sdk6.1/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/mqq/Library/Developer/Xcode/DerivedData/MttHD-aqrymoiwlplqyoaerjdmeutxmpdd/Build/Intermediates/ArchiveIntermediates/MttHDDistribution/BuildProductsPath/Distribution-iphoneos -L/Applications/xcode4.6_sdk6.1/Contents/Developer/usr/lib -L/Users/mqq/hudson/clang_browser_ipad/MttHD/ffmpeg/compiled/fat/lib -F/Users/mqq/Library/Developer/Xcode/DerivedData/MttHD-aqrymoiwlplqyoaerjdmeutxmpdd/Build/Intermediates/ArchiveIntermediates/MttHDDistribution/BuildProductsPath/Distribution-iphoneos -F/Users/mqq/Library/Developer/Xcode/DerivedData/MttHD-aqrymoiwlplqyoaerjdmeutxmpdd/Build/Intermediates/ArchiveIntermediates/MttHDDistribution/BuildProductsPath/Distribution-iphoneos -F/Users/mqq/hudson/clang_browser_ipad/MttHD/Classes/Engine/MSF -F/Users/mqq/hudson/clang_browser_ipad/MttHD/Classes/Engine/Analytics -F/Users/mqq/hudson/clang_browser_ipad/MttHD/WirelessUnifiedProtocol/build/Distribution-iphoneos -F/Users/mqq/hudson/clang_browser_ipad/MttHD/MiniQQMusic/build/Debug-iphoneos -filelist /Users/mqq/Library/Developer/Xcode/DerivedData/MttHD-aqrymoiwlplqyoaerjdmeutxmpdd/Build/Intermediates/ArchiveIntermediates/MttHDDistribution/IntermediateBuildFilesPath/MttHD.build/Distribution-iphoneos/MttHD.build/Objects-normal/armv7/MttHD.LinkFileList -dead_strip -lxml2 -fobjc-arc -ObjC -fobjc-link-runtime -miphoneos-version-min=4.0 -framework AdSupport -framework StoreKit -framework AddressBookUI -framework AddressBook -framework CoreVideo -liconv -framework CoreMedia /Users/mqq/Library/Developer/Xcode/DerivedData/MttHD-aqrymoiwlplqyoaerjdmeutxmpdd/Build/Intermediates/ArchiveIntermediates/MttHDDistribution/BuildProductsPath/Release-iphoneos/libqrencoder.a /Users/mqq/Library/Developer/Xcode/DerivedData/MttHD-aqrymoiwlplqyoaerjdmeutxmpdd/Build/Intermediates/ArchiveIntermediates/MttHDDistribution/BuildProductsPath/Release-iphoneos/libZXingWidget.a -lCocoaHttpServer -framework Analytics -framework Security /Users/mqq/Library/Developer/Xcode/DerivedData/MttHD-aqrymoiwlplqyoaerjdmeutxmpdd/Build/Intermediates/ArchiveIntermediates/MttHDDistribution/BuildProductsPath/Distribution-iphoneos/libWirelessUnifiedProtocol.a -licucore -lsqlite3.0 -lxml2 -lz -framework Foundation -framework UIKit -framework CoreGraphics -framework CFNetwork -framework QuartzCore -framework SystemConfiguration -framework AudioToolbox -framework MediaPlayer -framework AVFoundation -framework MobileCoreServices -framework CoreFoundation -weak_framework MessageUI -framework CoreLocation -weak_framework CoreTelephony -framework CoreText -lavcodec -lavdevice -lavformat -lavutil -lswscale -o /Users/mqq/Library/Developer/Xcode/DerivedData/MttHD-aqrymoiwlplqyoaerjdmeutxmpdd/Build/Intermediates/ArchiveIntermediates/MttHDDistribution/InstallationBuildProductsLocation/Applications/MttHD.app/MttHD</span></div><span style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"></span><div><br style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><strong><span style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Can't exec "clang++": No such file or directory at /data/checker/libexec/c++-analyzer line 429.</span><br style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Command /data/checker/libexec/c++-analyzer failed with exit code 255</span></strong></div><div><strong><span style="font: 15px/normal 微软雅黑, "MS Sans Serif", sans-serif; color: rgb(255, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 237, 196); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"></span></strong><br> BRs</div><div>
<div>Howard Ling </div>
<div>*****************************************************</div>
<div> </div>
<div>E-mail:    <a href="mailto:linghuan713@126.com">linghuan713@126.com</a></div>
<div> </div>
<div>*****************************************************</div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></blockquote></div><br></blockquote></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></blockquote></div><br></body></html>