[llvm-bugs] [Bug 45474] New: Wasm-ld complains about wrong symbol type for some std functions

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 8 07:52:59 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45474

            Bug ID: 45474
           Summary: Wasm-ld complains about wrong symbol type for some std
                    functions
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: wasm
          Assignee: unassignedbugs at nondot.org
          Reporter: darta at web2mil.com.uy
                CC: llvm-bugs at lists.llvm.org, sbc at chromium.org

Created attachment 23328
  --> https://bugs.llvm.org/attachment.cgi?id=23328&action=edit
.ii & .s files

The error is as follows

wasm-ld: error: symbol type mimsatch: memcpy
>>> defined as WASM_SYMBOL_TYPE_DATA in libcliente_LIB.a(Server.cpp.o)

>>> defined as WASM_SYMBOL_TYPE_FUNCTION in deps/store/libStore.a(EmscriptenStore.cpp.o)

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200408/ddc8b27e/attachment.html>


More information about the llvm-bugs mailing list