<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 11, 2017, at 8:57 AM, Meghali Dhoble &lt;<a href="mailto:dhoblem@us.ibm.com" class="">dhoblem@us.ibm.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><p class=""><font size="2" class="">Hi John,</font><br class=""><font size="2" class="">No, I haven't made any changes for Clang. What specific changes you think I need to have for Clang?</font><br class=""></p></div></div></blockquote><div><br class=""></div>In lib/Basic/Targets.cpp, you need your target's checkCallingConvention to say that CC_Swift is okay. &nbsp;You also need to make your ABIInfo implementation in lib/CodeGen/TargetInfo.cpp subclass SwiftABIInfo and implement its methods appropriately for what your target supports.</div><div><br class=""></div><div>John.<br class=""><blockquote type="cite" class=""><div class=""><div class=""><p class=""><br class=""><font size="2" class="">One observation I have for LLVM and  Clang that even though I have installed them directly using "apt-get install" ; the build-script looks for the SRC_ROOT/llvm and llvm/tools/clang folders. Also the build-script runs the build on top of these folders.</font><br class=""><font size="2" class="">I understand if we have system installed dependencies then those should be used instead of the building it from source; please correct me if I am wrong here.</font><br class=""><br class=""><font size="2" class="">PS: As of now I am building using -m option, the build command is:  ./utils/build-script -m -R </font><br class=""><br class=""><font size="2" class="">Thanks,</font><br class=""><font size="2" class="">Meghali </font><br class=""><br class=""><span id="cid:1__=8FBB0B0BDFD5FC198f9e8a93df938690918c8FB@">&lt;graycol.gif&gt;</span><font size="2" color="#424282" class="">John McCall ---09/07/2017 12:29:29 AM---&gt; On Sep 6, 2017, at 3:28 AM, Meghali Dhoble &lt;<a href="mailto:dhoblem@us.ibm.com" class="">dhoblem@us.ibm.com</a>&gt; wrote: &gt; Thanks John, for the resp</font><br class=""><br class=""><font size="2" color="#5F5F5F" class="">From:        </font><font size="2" class="">John McCall &lt;<a href="mailto:rjmccall@apple.com" class="">rjmccall@apple.com</a>&gt;</font><br class=""><font size="2" color="#5F5F5F" class="">To:        </font><font size="2" class="">Meghali Dhoble &lt;<a href="mailto:dhoblem@us.ibm.com" class="">dhoblem@us.ibm.com</a>&gt;</font><br class=""><font size="2" color="#5F5F5F" class="">Cc:        </font><font size="2" class="">Graydon Hoare &lt;<a href="mailto:ghoare@apple.com" class="">ghoare@apple.com</a>&gt;, swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt;</font><br class=""><font size="2" color="#5F5F5F" class="">Date:        </font><font size="2" class="">09/07/2017 12:29 AM</font><br class=""><font size="2" color="#5F5F5F" class="">Subject:        </font><font size="2" class="">Re: [swift-dev] Swift build on ppc64le platform</font><br class=""><font size="2" color="#5F5F5F" class="">Sent by:        </font><font size="2" class=""><a href="mailto:rjmccall@apple.com" class="">rjmccall@apple.com</a></font><br class=""></p><hr width="100%" size="2" align="left" noshade="" style="color:#8091A5; " class=""><br class=""><br class="">
<ul class=""><ul class="">On Sep 6, 2017, at 3:28 AM, Meghali Dhoble &lt;<a href="mailto:dhoblem@us.ibm.com" class=""><u class=""><font color="#0000FF" class="">dhoblem@us.ibm.com</font></u></a>&gt; wrote:
<p class=""><font size="2" class="">Thanks John, for the response.<br class="">We have a patch added already for ppc64 support at llvm, however still the failures seen,</font></p></ul></ul>Did you change Clang?<br class=""><br class="">John.
<ul class=""><ul class=""><font size="2" class="">I will try to opt for 2nd option and see if that helps.</font><br class=""><font size="2" class=""><br class="">Thanks,<br class="">Meghali</font><br class=""><br class="">&lt;graycol.gif&gt;<font size="2" color="#424282" class="">John McCall ---08/28/2017 09:59:28 PM---&gt; On Aug 28, 2017, at 9:08 AM, Meghali Dhoble via swift-dev &lt;</font><a href="mailto:swift-dev@swift.org" class=""><u class=""><font size="2" color="#0000FF" class="">swift-dev@swift.org</font></u></a><font size="2" color="#424282" class="">&gt; wrote: &gt; Hi,</font><br class=""><font size="2" color="#5F5F5F" class=""><br class="">From: </font><font size="2" class="">John McCall &lt;</font><a href="mailto:rjmccall@apple.com" class=""><u class=""><font size="2" color="#0000FF" class="">rjmccall@apple.com</font></u></a><font size="2" class="">&gt;</font><font size="2" color="#5F5F5F" class=""><br class="">To: </font><font size="2" class="">Meghali Dhoble &lt;</font><a href="mailto:dhoblem@us.ibm.com" class=""><u class=""><font size="2" color="#0000FF" class="">dhoblem@us.ibm.com</font></u></a><font size="2" class="">&gt;</font><font size="2" color="#5F5F5F" class=""><br class="">Cc: </font><font size="2" class="">swift-dev &lt;</font><a href="mailto:swift-dev@swift.org" class=""><u class=""><font size="2" color="#0000FF" class="">swift-dev@swift.org</font></u></a><font size="2" class="">&gt;, Graydon Hoare &lt;</font><a href="mailto:ghoare@apple.com" class=""><u class=""><font size="2" color="#0000FF" class="">ghoare@apple.com</font></u></a><font size="2" class="">&gt;</font><font size="2" color="#5F5F5F" class=""><br class="">Date: </font><font size="2" class="">08/28/2017 09:59 PM</font><font size="2" color="#5F5F5F" class=""><br class="">Subject: </font><font size="2" class="">Re: [swift-dev] Swift build on ppc64le platform</font><font size="2" color="#5F5F5F" class=""><br class="">Sent by: </font><a href="mailto:rjmccall@apple.com" class=""><u class=""><font size="2" color="#0000FF" class="">rjmccall@apple.com</font></u></a><div class=""><br class="webkit-block-placeholder"></div><hr width="100%" size="2" align="left" noshade="" class=""><br class="">
<ul class=""><ul class=""><ul class=""><ul class="">On Aug 28, 2017, at 9:08 AM, Meghali Dhoble via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class=""><u class=""><font color="#0000FF" class="">swift-dev@swift.org</font></u></a>&gt; wrote: 
<p class=""><font size="2" class="">Hi, <br class="">I have been working towards getting the swift source code built on my power (ppc64le) platform on Ubuntu16.04 OS. <br class="">I am observing build issues and looking for some help here. Please redirect me if this is not the right place for these questions.<br class=""><br class="">I would like to understand the pre-requisites and the hardware configurations required to build this language. <br class="">The error I am getting look like memory issues as the process is being killed abruptly. I am attaching the log herewith for reference. </font></p></ul></ul></ul></ul>I don't see anything like that in the log. It looks like an ordinary compiler error relating to our custom calling convention.<br class=""><br class="">You need to either<br class="">1. implement swiftcc in LLVM's ppc64 backend and then teach Clang that it's legal there or<br class="">2. configure Swift to not try to use it.<br class=""><br class="">In the short term, I suspect that (2) is the right approach. Graydon was at least thinking about doing some work recently that would be aimed at making it easier to do this kind of configuration; CC'ing him explicitly to see if there's been progress there.<br class=""><br class="">John.<br class=""></ul></ul><br class=""><br class="">
</div>
</div></blockquote></div><br class=""></body></html>