<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Alex,<div class=""><br class=""></div><div class="">Sorry for the delay, my mail was blocked due to the size of the file and I did not notice it.</div><div class=""><br class=""></div><div class="">I have run the compilation with the -v and put the result into <a href="https://reviews.llvm.org/P7926" class="">https://reviews.llvm.org/P7926</a></div><div class=""><br class=""></div><div class="">I am just running a pass with the following runOnFunction:</div><div class=""><br class=""></div><div class=""><div class=""><i class="">bool MyPass::runOnFunction(Function &F) {</i></div><div class=""><i class=""> std::string ErrorStr;</i></div><div class=""><i class=""> raw_string_ostream OS(ErrorStr);</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class=""> // Check if the function is still correct.</i></div><div class=""><i class=""> if (verifyFunction(F, &OS)) {</i></div><div class=""><i class=""> std::string mess = "[" + std::string(ctp.str) + "]\tFunction " +</i></div><div class=""><i class=""> F.getName().str() + " error during pass " +</i></div><div class=""><i class=""> OS.str() + "\n";</i></div><div class=""><i class=""> F.getContext().emitError(Twine(mess));</i></div><div class=""><i class=""> }</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class=""> return false;</i></div><div class=""><i class="">}</i></div></div><div class=""><br class=""></div><div class="">I have run clang -E on the file and put the result in <a href="https://reviews.llvm.org/P7927" class="">https://reviews.llvm.org/P7927</a></div><div class=""><br class=""></div><div class="">Greetings,</div><div class=""><br class=""></div><div class="">Johan</div>
<br class=""><div style=""><blockquote type="cite" class=""><div class="">On 11 Oct 2016, at 11:42, Alex L <<a href="mailto:arphaman@gmail.com" class="">arphaman@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><br class="Apple-interchange-newline"><br style="font-family: Helvetica; font-size: 12px; 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 class="gmail_quote" style="font-family: Helvetica; font-size: 12px; 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;">On 11 October 2016 at 08:59, Johan Wehrli via llvm-dev<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div style="word-wrap: break-word;" class="">Hi,<div class=""><br class=""></div><div class="">When compiling mumble-iphone from <a href="https://github.com/mumble-voip/mumble-iphoneos" target="_blank" class="">https://github.com/<wbr class="">mumble-voip/mumble-iphoneos</a> I had a parser error on the file CodeOutputStream.m (form <a href="https://github.com/booyah/protobuf-objc/tree/696b7b61cdd4e8d77c55ace98b3119194fa04b7f" target="_blank" class="">https://github.com/<wbr class="">booyah/protobuf-objc/tree/<wbr class="">696b7b61cdd4e8d77c55ace98b3119<wbr class="">194fa04b7f</a>).</div><div class=""><br class=""></div><div class="">I know that the code form protobuf is old but maybe there is an issue in the parser.</div><div class=""><br class=""></div><div class="">I get the following error (this is working well with the llvm from Apple): </div><div class=""><br class=""></div><div class=""><div style="margin: 0px 0px 0px 12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">/src/runtime/Classes/<wbr class="">CodedOutputStream.m:389:47: current parser token '{'</div><div style="margin: 0px 0px 0px 12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">clang-3.9: error: unable to execute command: Segmentation fault: 11</div><div style="margin: 0px 0px 0px 12px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px 0px 0px 12px; line-height: normal;" class="">I have no experience with the front-end but it seems that the issue is at the end of the file (I have attached the file).</div><div style="margin: 0px 0px 0px 12px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px 0px 0px 12px; line-height: normal;" class="">If you remove the function writeRawLittleEndian32 and writeRawLittleEndian64, the parser does not indicate any error (maybe the error is in writeRawVarint64 and it is propagate to the next function). </div></div></div></blockquote><div class=""><br class=""></div><div class="">Hi Johan,</div><div class=""><br class=""></div><div class="">I tried reproducing this issue with clang-3.9 and top of tree clang but I failed with both. Can you please describe your exact configuration and compiler arguments? Running clang with the `-v` option turned on should give you this information.</div><div class=""><br class=""></div><div class="">As well as that, can you please attach the exact preprocessed output of 'CodedOutputStream.m' as well? You can obtain it by running `clang -E` on that file.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Alex</div><div class=""> </div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div style="word-wrap: break-word;" class=""><div class=""><div style="margin: 0px 0px 0px 12px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px 0px 0px 12px; line-height: normal;" class="">Greetings, </div><span class="HOEnZb"><font color="#888888" class=""><div style="margin: 0px 0px 0px 12px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px 0px 0px 12px; line-height: normal;" class="">Johan</div><div style="margin: 0px 0px 0px 12px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px 0px 0px 12px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div></font></span></div></div><br class=""><div style="word-wrap: break-word;" class=""><div class=""></div></div><br class="">______________________________<wbr class="">_________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/<wbr class="">mailman/listinfo/llvm-dev</a></blockquote></div></div></blockquote></div><br class=""></body></html>