<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 11 October 2016 at 08:59, Johan Wehrli via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>When compiling mumble-iphone from <a href="https://github.com/mumble-voip/mumble-iphoneos" target="_blank">https://github.com/<wbr>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">https://github.com/<wbr>booyah/protobuf-objc/tree/<wbr>696b7b61cdd4e8d77c55ace98b3119<wbr>194fa04b7f</a>).</div><div><br></div><div>I know that the code form protobuf is old but maybe there is an issue in the parser.</div><div><br></div><div>I get the following error (this is working well with the llvm from Apple): </div><div><br></div><div><div style="margin:0px 0px 0px 12px;font-size:11px;line-height:normal;font-family:Menlo">/src/runtime/Classes/<wbr>CodedOutputStream.m:389:47: current parser token '{'</div><div style="margin:0px 0px 0px 12px;font-size:11px;line-height:normal;font-family:Menlo">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"><br></div><div style="margin:0px 0px 0px 12px;line-height:normal">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"><br></div><div style="margin:0px 0px 0px 12px;line-height:normal">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><br></div><div>Hi Johan,</div><div><br></div><div>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><br></div><div>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><br></div><div>Cheers,</div><div>Alex</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div style="margin:0px 0px 0px 12px;line-height:normal"><br></div><div style="margin:0px 0px 0px 12px;line-height:normal">Greetings, </div><span class="HOEnZb"><font color="#888888"><div style="margin:0px 0px 0px 12px;line-height:normal"><br></div><div style="margin:0px 0px 0px 12px;line-height:normal">Johan</div><div style="margin:0px 0px 0px 12px;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px 0px 0px 12px;font-size:11px;line-height:normal;font-family:Menlo"><br></div>
</font></span></div></div><br><div style="word-wrap:break-word"><div></div></div><br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div></div>