<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=utf-8">
<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:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
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;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I will try your suggestions and get back you in case of any queries.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank you for suggestions.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-Hiral<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Derek Schuff [mailto:dschuff@google.com]
<br>
<b>Sent:</b> Wednesday, January 28, 2015 10:47 PM<br>
<b>To:</b> jonathan@codesourcery.com; Oza, Hiral; İsmail Dönmez<br>
<b>Cc:</b> cfe-dev@cs.uiuc.edu; llvmdev@cs.uiuc.edu<br>
<b>Subject:</b> Re: [LLVMdev] Building clang/llvm without libstdc++ or GPLv3 tools/libraries<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">We ship PNaCl's LLVM on Linux and Mac with libc++ and libc++abi. We build a libc++.so/dylib that includes the libc++abi files directly and doesn't depend on libstdc++ at all (it does depend on libc.so and libgcc_s.so; on mac it only depends
on libSystem.B.dylib and not on any external libc++abi). Doing it this way sidesteps any layering issues with libc++ and libc++abi.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed Jan 28 2015 at 6:42:30 AM Jonathan Roelofs <<a href="mailto:jroelofs.lists@gmail.com">jroelofs.lists@gmail.com</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
On 1/28/15 4:57 AM, Oza, Hiral wrote:<br>
> Thank Ismail for quick reply.<br>
><br>
> I read that Linux, we need to build...<br>
> (1) libcxx (without libcxxabi) ==> done<br>
> (2) build libcxxabi ==> failing with following error<br>
What's the error?<br>
> (3) and then re-build libcxx<br>
I don't think you need to build & rebuild libcxx. The correct order is:<br>
<br>
1) build libcxxabi<br>
2) build libcxx<br>
3) test libcxxabi<br>
4) test libcxx<br>
<br>
This is because of some unfortunate layering violations in libcxxabi,<br>
where it depends on the c++ library's headers. Also, the libcxxabi<br>
tests depend on libcxx being built.<br>
<br>
<br>
Cheers,<br>
<br>
Jon<br>
><br>
> By the way I am building libcxx and libcxxabi Out-of-tree llvm build.<br>
><br>
> Please correct me if I am missing something.<br>
><br>
> Thank you.<br>
> -Hiral<br>
><br>
><br>
<br>
--<br>
Jon Roelofs<br>
<a href="mailto:jonathan@codesourcery.com" target="_blank">jonathan@codesourcery.com</a><br>
CodeSourcery / Mentor Embedded<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><o:p></o:p></p>
</div>
</div>
</body>
</html>