<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;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">2016/04/16 4:19 A.M. BugMaster <BugMaster <at> <a href="http://narod.ru" class="">narod.ru</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">On Sat, 16 Apr 2016 02:57:57 +0900, 桃源老師 wrote:</span><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">The error is:<br class="">error: Could not read profile default.profdata: No such file or directory<br class=""></blockquote><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">I checked x264 source directory and found there are a file named<br class="">"default.profraw". This file is created under Mac OS X El Capitan only.<br class=""></blockquote><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">After this error, I can generate the file "default.profdata" using the following command:<br class="">$ xcrun llvm-profdata merge -output=default.profdata default.profraw<br class=""></blockquote><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">And I can build x264 successfully by running make fprofiled again.<br class=""></blockquote><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">But in my think, this procedure is irregular. The error should not be occurred. Am I right?<br class=""></blockquote><br class=""><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Hi. IMHO currently we don't support fprofiled builds with clang (XCode).</span><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">We only support use of -fprofile-generate/-fprofile-use options with gcc/clang.</span><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div>My meaning of "<span style="font-family: HiraMaruProN-W4;" class="">make fprofiled" is run the command such as:</span></div><div><span style="font-family: HiraMaruProN-W4;" class="">$ </span><span style="font-family: HiraMaruProN-W4;" class="">make fprofiled VIDS="</span><span style="font-family: HiraMaruProN-W4;" class="">sintel_trailer_2k_480p24.y4m"</span></div><div><span style="font-family: HiraMaruProN-W4;" class=""><br class=""></span></div><div><span style="font-family: HiraMaruProN-W4;" class="">And </span><font face="HiraMaruProN-W4" class="">quoted line of error in previous post is the process/result of above command. I'm not running gcc command itself.</font></div><div><span style="font-family: HiraMaruProN-W4;" class=""><br class=""></span></div><div><span style="font-family: HiraMaruProN-W4;" class="">Do you mean build of this way is not supported with clang?</span></div><br class=""><blockquote type="cite" class=""><div class=""><span style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">But according to<span class="Apple-converted-space"> </span></span><a href="http://clang.llvm.org/docs/UsersManual.html#profiling-with-instrumentation" style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://clang.llvm.org/docs/UsersManual.html#profiling-with-instrumentation</a><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">while clang supports this options they looks like don't really equivalent to their GCC</span><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">counterparts. As it looks like they still need intermediate step for converting profiling</span><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">data format:</span><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">llvm-profdata merge -output=default.profdata default.profraw</span><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div>So you think this i<span style="font-family: HiraMaruProN-W4;" class="">ntermediate step for converting profiling data format is required to build x264 under El Capitan?</span></div><div><span style="font-family: HiraMaruProN-W4;" class=""><br class=""></span></div><div><span style="font-family: HiraMaruProN-W4;" class="">Or should I </span><font face="HiraMaruProN-W4" class="">claim this to llvm support team?</font></div></div><div><font face="HiraMaruProN-W4" class=""><br class=""></font><blockquote type="cite" class=""><div class=""><span style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">As for why it worked in older versions of Mac OS X, than may be used another version of clang</span><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">that simply ignored (not supported) -fprofile-generate/-fprofile-use options. Or old versions</span><br style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: HiraMaruProN-W4; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">more correctly mimicked gcc behaviour and new versions broke this for some reason.</span></div></blockquote><div><br class=""></div>Yes the older version of Mac OS X uses older version of clang. I don't know much about clang, me too don't know the reason.</div><div><br class=""></div><div><br class=""></div><div>Best Regards,<br style="font-family: HiraMaruProN-W4;" class=""><br style="font-family: HiraMaruProN-W4;" class=""><br style="font-family: HiraMaruProN-W4;" class=""><span style="font-family: HiraMaruProN-W4;" class="">// Miya aka. TougenRoushi</span><br class=""></div><div><span style="font-family: HiraMaruProN-W4;" class=""><br class=""></span></div></body></html>