<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    What is your exact set up?<br>
    <br>
    In reference on my system:<br>
    <br>
    KNOWN: <br>
    <br>
    Debian Sid/Unstable Kernel 3.2.<br>
    <br>
    GCC DEFAULT SETUP: <br>
    <br>
    gcc (Debian 4.7.2-4) 4.7.2<br>
    Copyright (C) 2012 Free Software Foundation, Inc.<br>
    This is free software; see the source for copying conditions.  There
    is NO<br>
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
    PURPOSE.<br>
    <br>
    LLVM/Clang/LLDB/Compiler-RT/LIBCXX Trunk via SVN under their proper
    checkout points. [lldb/clang under /trunk/llvm/tools,
    compiler-rt/libcxx under /trunk/llvm/projects, test-suite/llvm-test
    under /trunk/llvm/projects]<br>
    <br>
    CONFIGURATION CMAKE SETUP: <br>
    <br>
    cmake version 2.8.9<br>
    <br>
    PROCEDURE I USE TO BUILD:<br>
    <br>
    Two stages.<br>
    <br>
    Create a build directory for trunk against gcc outside of trunk.<br>
    <br>
    $ mkdir cmake-gcc-trunk<br>
    <br>
    Configure with cmake generic configuration with no optimization
    flags on the compilers just to get it to build.<br>
    <br>
    user@host: cmake-gcc-trunk$ cmake -DCMAKE_C_COMPILER=/usr/bin/gcc
    -DCMAKE_CXX_COMPILER=/usr/bin/g++ ../trunk/llvm<br>
    <br>
    user@host: cmake-gcc-trunk$ make<br>
    <br>
    You can edit the CMakeCache.txt file and set up MinSizeRel, set BOOL
    to ON for LLVM_EXAMPLES, CLANG_EXAMPLES, TEST-SUITE,
    SHARED_LIBRARIES, etc.<br>
    <br>
    You can also copy down all those areas you want configured how you
    want, put them in a shell script and run the steps to update your
    cmake config and thus keep the CMakeCache.txt file current.<br>
    <br>
    Once you build and install into /usr/local<br>
    <br>
    Create a build directory for trunk against clang/clang++ local
    outside of trunk.<br>
    <br>
    $ mkdir cmake-clang-trunk<br>
    <br>
    Configure with cmake generic configuration with no optimization
    flags on the compilers just to get it to build.<br>
    <br>
    user@host: cmake-clang-trunk$ cmake
    -DCMAKE_C_COMPILER=/usr/local/clang
    -DCMAKE_CXX_COMPILER=/usr/local/bin/clang++ ../trunk/llvm<br>
    <br>
    user@host: cmake-gcc-trunk$ make<br>
    <br>
    From then on you only occasionally have to deal with broken updates
    via svn/git not fully up-to-date before clang/clang++ can self-host
    builds under /usr/local.<br>
    <br>
    NOTE: On occasion ubuntu, debian and other distributions have to
    update their gcc defaults and made aware within llvm/clang when
    building against and trying to find the necessary header files, but
    that always gets resolved.<br>
    <br>
    - Marc<br>
    <br>
    <div class="moz-cite-prefix">On 11/01/2012 01:32 AM, Sujit Kamthe
      wrote:<br>
    </div>
    <blockquote
      cite="mid:1427E4962C9226469AF4711023F5D8B33E09BB8B@KCHJEXMB02.kpit.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Trebuchet MS","sans-serif";
        color:#17365D;
        text-shadow:none;
        font-weight:normal;
        font-style:normal;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@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="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-family:"Trebuchet
            MS","sans-serif";color:#17365D">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Trebuchet
            MS","sans-serif";color:#17365D">I tried
            building clag on Ubuntu 11.10 using instruction given at
          </span><a moz-do-not-send="true"
            href="http://clang.llvm.org/get_started.html">http://clang.llvm.org/get_started.html</a><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-family:"Trebuchet
            MS","sans-serif";color:#17365D">The make
            command throws following error:<o:p></o:p></span></p>
        <table class="MsoTableGrid"
          style="border-collapse:collapse;border:none" border="1"
          cellpadding="0" cellspacing="0">
          <tbody>
            <tr style="height:210.1pt">
              <td style="width:940.05pt;border:solid windowtext
                1.0pt;padding:0in 5.4pt 0in 5.4pt;height:210.1pt"
                valign="top" width="1253">
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">autobuild@CFCServer:~/CheckMate/build$
                    make<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">make[1]: Entering directory
                    `/home/autobuild/CheckMate/build/lib/Support'<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">llvm[1]: Compiling
                    APFloat.cpp for Debug+Asserts build<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">In file included from
                    /home/autobuild/CheckMate/llvm/include/llvm/Support/type_traits.h:20:0,<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">                 from
                    /home/autobuild/CheckMate/llvm/include/llvm/ADT/SmallVector.h:19,<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">                 from
                    /home/autobuild/CheckMate/llvm/include/llvm/ADT/ArrayRef.h:13,<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">                 from
                    /home/autobuild/CheckMate/llvm/include/llvm/ADT/APInt.h:18,<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">                 from
                    /home/autobuild/CheckMate/llvm/include/llvm/ADT/APFloat.h:104,<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">                 from
                    /home/autobuild/CheckMate/llvm/lib/Support/APFloat.cpp:15:<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">/home/autobuild/CheckMate/build/include/llvm/Support/DataTypes.h:79:3:
                    error: #error "Don't have a definition for uint64_t
                    on this platform"<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">In file included from
                    /home/autobuild/CheckMate/llvm/include/llvm/Support/MathExtras.h:17:0,<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">                 from
                    /home/autobuild/CheckMate/llvm/include/llvm/ADT/APInt.h:20,<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">                 from
                    /home/autobuild/CheckMate/llvm/include/llvm/ADT/APFloat.h:104,<o:p></o:p></span></p>
                <p class="MsoNormal"><span
                    style="font-family:"Courier
                    New";color:#17365D">                 from
                    /home/autobuild/CheckMate/llvm/lib/Support/APFloat.cpp:15:</span><span
                    style="font-family:"Trebuchet
                    MS","sans-serif";color:#17365D"><o:p></o:p></span></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><span style="font-family:"Trebuchet
            MS","sans-serif";color:#17365D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Trebuchet
            MS","sans-serif";color:#17365D">Can anybody
            please help?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Trebuchet
            MS","sans-serif";color:#17365D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Courier
            New";color:#1F497D">Regards,
          </span><span style="font-family:"Courier
            New";color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:#548DD4">Sujit Kamthe<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:#548DD4"><o:p> </o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:#548DD4"><img id="Picture_x0020_1"
                src="cid:part2.04040709.02000507@reanimality.com"
                alt="buildbox_logo" width="100" border="0" height="18"></span></b><span
            style="color:black"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:8.0pt;color:#595959">Productivity
            & FE |</span><span style="font-size:8.0pt;color:#76923C">
          </span><span style="font-size:8.0pt;color:#595959">Automotive
            and Engineering SBU | KPITCummins Infosystems Ltd|Board: +91
            20 66525000 | Extn:3102 |Mobile:7709076120 </span><span
            style="color:black"><o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br clear="all">
      This message contains information that may be privileged or
      confidential and is the property of the KPIT Cummins Infosystems
      Ltd. It is intended only for the person to whom it is addressed.
      If you are not the intended recipient, you are not authorized to
      read, print, retain copy, disseminate, distribute, or use this
      message or any part thereof. If you receive this message in error,
      please notify the sender immediately and delete all copies of this
      message. KPIT Cummins Infosystems Ltd. does not accept any
      liability for virus infected mails.
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a>
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      Marc J. Driftmeyer<br>
      Email :: <a href="mailto:mjd@reanimality.com">mjd@reanimality.com</a><br>
      Web :: <a href="http://www.reanimality.com">http://www.reanimality.com</a><br>
      Cell :: (509) 435-5212
    </div>
  </body>
</html>