<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Non-deterministic results compiling on virtual Windows 8.1 Pro Update when using a Shared Folder"
   href="http://llvm.org/bugs/show_bug.cgi?id=21143">21143</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Non-deterministic results compiling on virtual Windows 8.1 Pro Update when using a Shared Folder
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.4
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libclang
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>xda@cypress.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>1. Install Windows 8.1 Pro Update on a virtual machine (tried with VirtualBox
4.3.16 on a Windows 7 x64 host as well as Parallels on an OS X host).

2. On the guest, install gcc-arm-embedded
(<a href="https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q3-update/+download/gcc-arm-none-eabi-4_8-2014q3-20140805-win32.exe">https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q3-update/+download/gcc-arm-none-eabi-4_8-2014q3-20140805-win32.exe</a>)
and LLVM (<a href="http://llvm.org/releases/3.5.0/LLVM-3.5.0-win32.exe">http://llvm.org/releases/3.5.0/LLVM-3.5.0-win32.exe</a>).

3. On the host, extract the attached files. Create a VirtualBox/Parallels
shared folder so the guest can access the extracted files. On the guest, use
the "Map Network Drive" button to map the shared folder as drive 'E'.

4. On the guest, open the command prompt and and run the following commands:

cd "C:\Program Files\LLVM\bin"

clang -ferror-limit=0 -isystem "C:\Program Files\GNU Tools ARM Embedded\4.8
2014q3\lib\gcc\arm-none-eabi\4.8.4\include" -isystem "C:\Program Files\GNU
Tools ARM Embedded\4.8 2014q3\lib\gcc\arm-none-eabi\4.8.4\include-fixed"
-isystem "C:\Program Files\GNU Tools ARM Embedded\4.8
2014q3\arm-none-eabi\include" -IE:\Doorbell.Bundle01\Doorbell.cydsn
-IE:\Doorbell.Bundle01\Doorbell.cydsn\Generated_Source\PSoC4 -c
E:\Doorbell.Bundle01\Doorbell.cydsn\main.c -o
E:\Doorbell.Bundle01\Doorbell.cydsn\main.o

It may be necessary to change the paths to "Program Files (x86)" if using a
64-bit guest.
main.c contains a syntax error and is not expected to compile correctly.

5. Repeat the command several times. You get different numbers of
errors/warnings and sometimes get stuck in an infinite (?) loop. While stuck in
this loop the memory usage keeps increasing. Log files for 16 consecutive runs
have been included in the attachment. Note: file12.txt was an infinite loop
that was eventually interrupted with Ctrl+C. file4.txt contains the expected
results.

Note: I saw a similar issue when calling
clang_createTranslationUnitFromSourceFile with the same source files.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>