<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Just to update this thread. These binaries have been uploaded and are now available from http://llvm.org/pre-releases/3.5/.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB"> llvmdev-bounces@cs.uiuc.edu
 [mailto:llvmdev-bounces@cs.uiuc.edu] <b>On Behalf Of </b>Daniel Sanders<br>
<b>Sent:</b> 28 July 2014 09:41<br>
<b>To:</b> Bill Wendling (isanbard@gmail.com)<br>
<b>Cc:</b> LLVM Developers Mailing List (llvmdev@cs.uiuc.edu)<br>
<b>Subject:</b> Re: [LLVMdev] Pre-built big-endian MIPS32r2 binaries<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I don't have access to the llvm.org SFTP at the moment. Anton K is sorting this out for me but in the meantime could someone upload
<a href="https://www.dropbox.com/s/23ff0z8ltc7rybk/clang%2Bllvm-3.5-rc1-mips-unknown-linux-gnu.tar.xz">
https://www.dropbox.com/s/23ff0z8ltc7rybk/clang%2Bllvm-3.5-rc1-mips-unknown-linux-gnu.tar.xz</a> for me?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB"> llvmdev-bounces@cs.uiuc.edu
 [mailto:llvmdev-bounces@cs.uiuc.edu] <b>On Behalf Of </b>Daniel Sanders<br>
<b>Sent:</b> 25 July 2014 12:09<br>
<b>To:</b> Bill Wendling (isanbard@gmail.com)<br>
<b>Cc:</b> LLVM Developers Mailing List (llvmdev@cs.uiuc.edu)<br>
<b>Subject:</b> [LLVMdev] Pre-built big-endian MIPS32r2 binaries<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I'm pleased to say that my latest attempt at running test-release.sh finished with minor issues (see below) so I'm planning to provide an big-endian MIPS32r2 pre-built binary in the LLVM 3.5 as an experimental/beta release. I was originally
 hoping to provide little-endian binaries too but I think there's insufficient time remaining for me to get that ready in time for Phase 1 testing.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The minor issues are that 'make check-all' fails tools/clang/test/Driver/cl-x86-flags.c since it assumes the default target was X86. I believe this is already fixed on the trunk. The other is that two objects are different between phase
 2 and 3 (ToolChains.o and llvm-config.o).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">There are a couple important requirements for these binaries beyond a Big-endian MIPS32r2. A recent Linux kernel will be required to avoid hitting a gap in the kernel's floating point emulation (mthc1 and mfhc1 were not emulated). I'm currently
 using a patched 3.4.27 kernel on my test system to resolve this but I'm told that the relevant bugfix is in Linux 3.14. A recent binutils will also be required. My test system currently has a top-of-tree binutils but 2.24 is expected to work (and I intend
 to test this).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I needed two patches to test-release.sh to make it work, the first was simply to retrieve the cfe project from the branch instead of the tag. This will be unnecessary for rc2 since the rc2 tag will contain the bugfix that I needed. The
 second was to add '—build=mips-unknown-linux-gnu' to the configure commands. This is to work config.guess picking mips64-unknown-linux-gnu which causes some issues due to known bugs in our handling of mips64*-* triples.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For reference, I'm currently testing on a fresh Big Endian MIPS32r2 Gentoo system. I intend to try Debian today but we will still require MIPS32r2 there since we lack MIPS-II code generation support. Here's the build command I used:<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">LANG=C CFLAGS=-mips32r2 CXXFLAGS=-mips32r2 ./test-release.sh -release 3.5 -rc 1 -triple mips-unknown-linux-gnu -no-64bit<o:p></o:p></p>
<p class="MsoNormal">Am I right in thinking that others use '-test-debug' and '-test-asserts' too?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-align:justify"><b><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#3333FF">Daniel Sanders<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-align:justify"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#3333FF">Leading Software Design Engineer, MIPS Processor IP<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#3333FF">Imagination Technologies Limited<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify"><a href="http://www.imgtec.com/"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">www.imgtec.com</span></a><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>