<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Neil</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you.  I have seen the Getting Started page and it assumes working from a Git clone and not from the distribution files, so it is not dealing with my question.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am running on Ubuntu Linux 14.04 which I know is old.  I have more recent gcc including 7.1 which I am currently using for building Clang which I have done for successive versions for some years.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The build of 9.0.0 does work.  I would like to resolve the issue of messages about Git and VCSRevision.h.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
John</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
P.S. My apologies.  The email system imposed on me recently does not seem to have an option to quote a message when replying.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> cfe-dev <cfe-dev-bounces@lists.llvm.org> on behalf of Neil Nelson via cfe-dev <cfe-dev@lists.llvm.org><br>
<b>Sent:</b> 07 October 2019 01:44<br>
<b>To:</b> cfe-dev@lists.llvm.org <cfe-dev@lists.llvm.org><br>
<b>Subject:</b> Re: [cfe-dev] Building Clang from the distribution files - Git errors and VCSRevision.h</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">
<p><font size="-1">Have you already looked at this page?</font></p>
<p><font size="-1"><a class="x_moz-txt-link-freetext" href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fllvm.org%2Fdocs%2FGettingStarted.html%23getting-started-quickly-a-summary&data=02%7C01%7CJ.P.Fletcher%40aston.ac.uk%7C05c814fa2f1e45c21e5a08d74abf8556%7Ca085950c4c2544d5945ab852fa44a221%7C0%7C0%7C637060058757142543&sdata=0dVO8LB%2Ffu1MT2pIqvBs1Ew1Tcitbt0I6dQFyC5jycE%3D&reserved=0" originalsrc="https://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary" shash="YMRRNBolfr0Rllbx4x1s30k6XBzguY8l8giEnZlwG1eKi5ZaIK83ENE2TYlhu7r2Lnun057Ell9UoqcsbiO4gyB3Q2bRiuGp6djpAVcoGt28PKpIwyOKCvX1b242K3BiP/uVfu6jgRE8wQpWY5er0wkJQfUTxIt36770yZBAXt8=">https://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary</a></font></p>
<p><font size="-1"><br>
</font></p>
<p><font size="-1">What OS are you on?</font></p>
<p><font size="-1"><br>
</font></p>
<p><font size="-1">Neil Nelson<br>
</font></p>
<p><font size="-1"><br>
</font></p>
<div class="x_moz-cite-prefix"><font size="-1">On 10/6/19 2:29 PM, Fletcher, John P via cfe-dev wrote:</font><br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I am building LLVM and Clang from the distribution files using CMake, Ninja and gcc 7.1.  I can usually get a clean run on this.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have noticed with Clang 9.0.0 that I get some error messages which seem to be related to a file VCSRevision.h and a search for git.  It declares this to be fatal and carries on!</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
There is very little in the documentation about how to build LLVM and Clang from a distribution as compared to cloning from Git.  I am wondering if the build is assuming that git init has been run in the build location.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have read in the documentation about the CMake variable LLVM_APPEND_VC_REV which is defaulted to ON.  Should I be changing this value to OFF?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
It would be helpful to have an official manual for building from a distribution along the lines of this unofficial one which I have found to be helpful although now dated:
<a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fchiselapp.com%2Fuser%2Fttmrichter%2Frepository%2Fgng%2Fdoc%2Ftrunk%2Foutput%2Fblog%2F2016%2F01-llvm-clang-missing-manual.html&data=02%7C01%7CJ.P.Fletcher%40aston.ac.uk%7C05c814fa2f1e45c21e5a08d74abf8556%7Ca085950c4c2544d5945ab852fa44a221%7C0%7C0%7C637060058757142543&sdata=xmpKdzQ18Hx1AAfQboyJZAsjO%2BCCqHA6oQexq8pAKFI%3D&reserved=0" originalsrc="http://chiselapp.com/user/ttmrichter/repository/gng/doc/trunk/output/blog/2016/01-llvm-clang-missing-manual.html" shash="uJGHetOIJZAzn4ztqfFXgyDo3ael3PfKNKA8x8GEtCbbmdJ1Fs2SPhnxWQ9wBePBgQ9CYFldEIRKUhq8gcPbVf1o+pvFHhXvEEFiX+B1Omy1T395UNBmhNDKvp0Ivnvbgmb2NKRCgXukTXU1VfyasKbCzJIgjDcYiyg3bWOzzYc=" id="LPlnk333621">
http://chiselapp.com/user/ttmrichter/repository/gng/doc/trunk/output/blog/2016/01-llvm-clang-missing-manual.html</a></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Best wishes</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
John Fletcher</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="LPBorder_GTaHR0cDovL2NoaXNlbGFwcC5jb20vdXNlci90dG1yaWNodGVyL3JlcG9zaXRvcnkvZ25nL2RvYy90cnVuay9vdXRwdXQvYmxvZy8yMDE2LzAxLWxsdm0tY2xhbmctbWlzc2luZy1tYW51YWwuaHRtbA.." class="x_LPBorder262994" style="width:100%; margin-top:16px; margin-bottom:16px; max-width:800px; min-width:424px">
<table id="LPContainer262994" role="presentation" style="padding:12px 36px 12px 12px; width:100%; border-width:1px; border-style:solid; border-color:rgb(200,200,200); border-radius:2px">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td style="width:100%">
<div id="LPTitle262994" style=""><a target="_blank" id="LPUrlAnchor262994" href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fchiselapp.com%2Fuser%2Fttmrichter%2Frepository%2Fgng%2Fdoc%2Ftrunk%2Foutput%2Fblog%2F2016%2F01-llvm-clang-missing-manual.html&data=02%7C01%7CJ.P.Fletcher%40aston.ac.uk%7C05c814fa2f1e45c21e5a08d74abf8556%7Ca085950c4c2544d5945ab852fa44a221%7C0%7C0%7C637060058757152538&sdata=SFiMDLQV6y8%2B%2BknDo7uPqsJ8BHDF2NjwNEcPKTqw0lo%3D&reserved=0" originalsrc="http://chiselapp.com/user/ttmrichter/repository/gng/doc/trunk/output/blog/2016/01-llvm-clang-missing-manual.html" shash="aEsaOkxHHLtLhLOMALyWlpN9144lYCSMFxUOj/jDb23CxG9GpbBc5IsARjkX3eCd0hfNRF0oTzrv5l8M4gloqV6qWtSUopBRzqMOqRIvXd5HWo/A2dOlXwVvpu+P50QpJzdLROlP8bmpvT5cDNKDKyXez4txnvBNxnEP7OJ55sY=" style="text-decoration:none">Building
 LLVM/Clang: The Missing Manual</a></div>
<div id="LPDescription262994" style="font-size:14px; max-height:100px; color:rgb(102,102,102); font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; margin-bottom:12px; margin-right:8px; overflow:hidden">
LLVM and its attendant compiler project Clang are powerhouses in F/OSS. Unfortunately its attendant documentation is not such a powerhouse. Indeed its documentation for getting started with it is laughably terrible. Consider the "getting started" guide for
 LLVM. Now consider the equivalent document for Clang.</div>
<div id="LPMetadata262994" style="font-size:14px; font-weight:400; color:rgb(166,166,166); font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif">
chiselapp.com</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
cfe-dev mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="x_moz-txt-link-freetext" href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.llvm.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fcfe-dev&data=02%7C01%7CJ.P.Fletcher%40aston.ac.uk%7C05c814fa2f1e45c21e5a08d74abf8556%7Ca085950c4c2544d5945ab852fa44a221%7C0%7C0%7C637060058757152538&sdata=ntGYjmxw7TcorGCWzy%2FqQv6QUA1T43WgLuPXzDWcj%2Bw%3D&reserved=0" originalsrc="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" shash="riaVDaagMPKgShYrLebR1LMN/4jRh489evsMJs8vnhE6ywrxFyo3f5W105VLylC/Yux+htUTQ56P66+xUzK2QMjlcpviByefdcuBoHy+NoqgxntvAYLs/B+nrlcZBcgM2WAGb9FTWLUbvx0w9BJEVy4v+oWUSHP9Qx9NfAoGR/M=">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
</div>
</body>
</html>