<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 - Wasm-ld complains about wrong symbol type for some std functions"
   href="https://bugs.llvm.org/show_bug.cgi?id=45474">45474</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Wasm-ld complains about wrong symbol type for some std functions
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>wasm
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>darta@web2mil.com.uy
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, sbc@chromium.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23328" name="attach_23328" title=".ii & .s files">attachment 23328</a> <a href="attachment.cgi?id=23328&action=edit" title=".ii & .s files">[details]</a></span>
.ii & .s files

The error is as follows

wasm-ld: error: symbol type mimsatch: memcpy
<span class="quote">>>> defined as WASM_SYMBOL_TYPE_DATA in libcliente_LIB.a(Server.cpp.o)</span >

<span class="quote">>>> defined as WASM_SYMBOL_TYPE_FUNCTION in deps/store/libStore.a(EmscriptenStore.cpp.o)</span >

I'm switching from emscripten fastcomp to upstream, and code works fine on
fastcomp and while building for ANDROID NDK.

from both .ii files 

# 24 "C:\\emsdk\\upstream\\emscripten\\system\\include\\libc\\string.h" 2 3

void *memcpy (void *__restrict, const void *__restrict, size_t);
void *memmove (void *, const void *, size_t);
void *memset (void *, int, size_t);

which is not only a function, but also exactly the same on both .ii

I'm attaching all the files I think are related. If you need anything else,
please tell me.</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>