<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Yaron, <br>
      <br>
      I am using MSYS which I downloaded from here:<br>
<a class="moz-txt-link-freetext" href="https://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/">https://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/</a><br>
      <br>
      I do not believe this is MSYS2. Is there a difference and if so,
      could this be my entire issues?<br>
        <br>
      Have you built clang and run the "clang-tests" on Windows?  <br>
      <br>
      Is there anyone in clang development that would be interested in
      the erroneous make files and the Windows problems? I would be fine
      submitting bug reports if I knew this might be worked on.  If
      someone can advise me which bug tracker to use I will gladly post
      something. <br>
      <br>
      Thanks, <br>
      <br>
      Barbara<br>
      <br>
      <br>
      On 5/5/2015 9:54 AM, Yaron Keren wrote:<br>
    </div>
    <blockquote
cite="mid:CANa4zJoqLJSVmfXcWhTG3tJPvAo+_qLtUjT4v7mjyNx2y5HKyw@mail.gmail.com"
      type="cite">
      <div dir="rtl">
        <div dir="ltr">I have seen the export problem. As you say it
          resolved itself after restarting the make. </div>
        <div dir="ltr">You need mingw gcc 4.8 at least. mingw-w64 and
          all tools versions sounds OK.</div>
        <div dir="ltr">compiler-rt not required. </div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr">Are you using MSYS2 for the shell functionality?<br>
        </div>
        <div dir="ltr"><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">
          <div dir="ltr">2015-05-05 20:42 GMT+03:00 barbara <span
              dir="ltr"><<a moz-do-not-send="true"
                href="mailto:barbara@copperspice.com" target="_blank">barbara@copperspice.com</a>></span>:</div>
          <blockquote class="gmail_quote" style="margin:0
            .8ex;border-left:1px #ccc solid;border-right:1px #ccc
            solid;padding-left:1ex;padding-right:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>Yaron,<br>
                <br>
                Thanks for your response. Unfortunately this did not
                resolve the issue.<br>
                <br>
                I am extremely confused and unable to find the correct
                combination to build libclang.dll and libclang.dll.a for
                for Windows 32-bit and Windows 64-bit.  There are
                multiple sets of directions and sadly they do not agree
                with each other. <br>
                <br>
                I have tried the -G "Unix MakeFiles",   <font
                  face="Helvetica, Arial, sans-serif"> -G "MSYS
                  Makefiles" ,  and </font><font face="Helvetica,
                  Arial, sans-serif"> -G "Mingw Makefiles"  </font>so
                far.  All three produce the dll and .a files. <br>
                <br>
                a)    However, the build requires hand changes to two
                makefiles due to backslash problems.  I am unable to
                find out if this is a know bug or not.<br>
                <br>
                b)    The build crashes around 98% saying it is unable
                to find the libclang-exports. If I restart the build it
                completes successfully. This feels like a dependency
                order problem. <br>
                <br>
                c)    After building, no matter which cmake setup I use,
                the "make clang-test" fails with just over 260
                Unexpected Failures. Is there any known problem with
                these tests on Windows?<br>
                <br>
                <br>
                I need a version of clang which is not compiled with
                MSVC.  I have tried gcc 4.7.2 and gcc 4.8.1
                (MinGW-W64).  I am using Python 2.7.9. CMake version
                3.2.2 and GNU Make 3.82.90.  <br>
                <br>
                On some sets of the instructions there is an indication
                I need to install compiler-rt, which I have not done. 
                This was not required for the very simple build on
                Debian which worked flawlessly.  Is this required? <br>
                <br>
                I was told clang is being supported on Windows so I
                strongly believe some combination of what I am doing is
                not correct and I am out of ideas. I am grateful for any
                suggestions, ideas, or information about how to build
                clang and have this work. <br>
                <span class="HOEnZb"><font color="#888888"> <br>
                    <br>
                    Barbara</font></span>
                <div>
                  <div class="h5"><br>
                    <br>
                    <br>
                    On 5/4/2015 7:16 PM, Yaron Keren wrote:<br>
                  </div>
                </div>
              </div>
              <div>
                <div class="h5">
                  <blockquote type="cite">
                    <div dir="rtl">
                      <div dir="ltr">Hi</div>
                      <div dir="ltr"><br>
                      </div>
                      <div dir="ltr">1 Use  -G "Unix Makefiles"</div>
                      <div dir="ltr">2 Do not use MSYS 2, lots of the
                        tests fail.</div>
                      <div dir="ltr"><br>
                      </div>
                      <div dir="ltr">Yaron</div>
                      <div dir="ltr"><br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">
                        <div dir="ltr">2015-05-05 5:50 GMT+03:00 barbara
                          <span dir="ltr"><<a moz-do-not-send="true"
                              href="mailto:barbara@copperspice.com"
                              target="_blank">barbara@copperspice.com</a>></span>:</div>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000"> <font
                              face="Helvetica, Arial, sans-serif">I
                              downloaded clang 3.6 and built on Windows
                              Vista using MinGW 4.8.1 and CMake 3.2.2<br>
                              <br>
                              1    ran: cmake -G "MSYS Makefiles"
                              ../llvm<br>
                              <br>
                              2    There are two generated  make files
                              which have backslash problems around line
                              54. These were simple to edit by hand
                              however I believe this should not be
                              required.<br>
                              <br>
                              (a) 
                              tools/lto/CMakeFiles/LTO_exports.dir/build.make<br>
                              (b)
                              tools/clang/tools/libclang/CMakeFiles/libclang_exports.dir/build.make<br>
                              <br>
                              3    clang builds, however it must be
                              restarted a few times.<br>
                              <br>
                              4    After the build was done I ran
                              clang-test and it failed with 269
                              unexpected failures.<br>
                              <br>
                              5    Linking libclang with our application
                              appears to work. At run time, calling
                              "clang_parseTranslationUnit2()" returns an
                              extremely large number for the error code.<br>
                              <br>
                              I am happy to try any suggestions.<span><font
                                  color="#888888"><br>
                                  <br>
                                  <br>
                                  Barbara<br>
                                  <br>
                                </font></span></font> </div>
                          <br>
_______________________________________________<br>
                          cfe-dev mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:cfe-dev@cs.uiuc.edu"
                            target="_blank">cfe-dev@cs.uiuc.edu</a><br>
                          <a moz-do-not-send="true"
                            href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev"
                            target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>