<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - symbols generated for coverage at mingw show incorrect link attributes"
   href="https://bugs.llvm.org/show_bug.cgi?id=37514">37514</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>symbols generated for coverage at mingw show incorrect link attributes
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows XP
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>rkasanmascheff@hotmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20316" name="attach_20316" title="sources">attachment 20316</a> <a href="attachment.cgi?id=20316&action=edit" title="sources">[details]</a></span>
sources

Compiled LLVM/CLANG head on a current MSYS2/MINGW64

Compiling an advanced production project failed with
lots of dublicate symbol errors. 

For one case I was able to provide an simple example. (code attached)
Its a simplification of the scenario of a header defined inline function.
There are much more scenarios with the same type of errors. 
Under my linux system I do not get these errors.

clang++ -fprofile-instr-generate -fcoverage-mapping -o llvmbug.exe cu1.cpp
cu2.cpp

will complain about
__profd__Z7inlfuncv defined in both compilation units.


By the way there are also errors of not defined symbols
lprofGetHostName
__llvm_profile_filename
I just defined them as described in llvm-sources in my original project to
silence them :-)</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>