[llvm-bugs] [Bug 45318] New: unexpected lld error: undefined symbol: clntudp_create

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 26 08:31:08 PDT 2020


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

            Bug ID: 45318
           Summary: unexpected lld error: undefined symbol: clntudp_create
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: pawel_sikora at zoho.com
                CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com

hi,
the lld (targeting aarch64) reports unexepcted errors for glibc symbols used by
sigar library (e.g.: clntudp_create).

% readelf -sW sysroot/lib/libc-2.26.so|grep clntudp_create
  1954: 00000000000f8b50    40 FUNC    GLOBAL DEFAULT   11
clntudp_create at GLIBC_2.17
  7217: 00000000000f8b50    40 FUNC    LOCAL  DEFAULT   11 __EI_clntudp_create
  8092: 00000000000f8b50    40 FUNC    LOCAL  DEFAULT   11 __GI_clntudp_create
  9911: 00000000000f8b50    40 FUNC    GLOBAL DEFAULT   11
clntudp_create at GLIBC_2.17

% ./bugme.sh
clang version 10.0.0 (/home/pawels/src/toolchain/llvm/llvm-project/clang
b406eab888021ade8b4e680d2cf45b82fca17a98)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/pawels/dvm/devel/toolchain/llvm/sysroot/bin
 "/home/pawels/dvm/devel/toolchain/llvm/sysroot/bin/ld.lld" --sysroot=./sysroot
-EL --hash-style=gnu --eh-frame-hdr -m aarch64linux -shared -o libhes_au.so
./sysroot/lib/crti.o ./sysroot/lib/crtbeginS.o -L./sysroot/lib -z origin -rpath
"\$ORIGIN" --no-undefined -soname libhes_au.so --verbose
sources/au/auMemoryMonitor.cpp.o sources/au/auFmt.cpp.o
sources/au/auFormat.cpp.o sources/au/auException.cpp.o
sources/au/auString.cpp.o sources/au/auStringUnix.cpp.o
sources/au/auSystem.cpp.o sources/au/auSystemUnix.cpp.o
sources/au/auNumberParser.cpp.o sources/au/auRandom.cpp.o
sources/au/auContract.cpp.o sources/au/auPlatform.cpp.o ./libsigar.a -ldl -lc++
-lm -lgcc_s -lgcc -lpthread -lc -lgcc_s -lgcc ./sysroot/lib/crtendS.o
./sysroot/lib/crtn.o
ld.lld: ./sysroot/lib/crti.o
ld.lld: ./sysroot/lib/crtbeginS.o
ld.lld: sources/au/auMemoryMonitor.cpp.o
ld.lld: sources/au/auFmt.cpp.o
ld.lld: sources/au/auFormat.cpp.o
ld.lld: sources/au/auException.cpp.o
ld.lld: sources/au/auString.cpp.o
ld.lld: sources/au/auStringUnix.cpp.o
ld.lld: sources/au/auSystem.cpp.o
ld.lld: sources/au/auSystemUnix.cpp.o
ld.lld: sources/au/auNumberParser.cpp.o
ld.lld: sources/au/auRandom.cpp.o
ld.lld: sources/au/auContract.cpp.o
ld.lld: sources/au/auPlatform.cpp.o
ld.lld: ./libsigar.a
ld.lld: ./sysroot/lib/libdl.so
ld.lld: ./sysroot/lib/libc++.so
ld.lld: ./sysroot/lib/libc++.so.1
ld.lld: ./sysroot/lib/libc++abi.so
ld.lld: ./sysroot/lib/libm.so
ld.lld: ./sysroot/lib/libgcc_s.so
ld.lld: ./sysroot/lib/libgcc.a
ld.lld: ./sysroot/lib/libpthread.so
ld.lld: ./sysroot/lib/libpthread.so.0
ld.lld: ./sysroot/lib/libpthread_nonshared.a
ld.lld: ./sysroot/lib/libc.so
ld.lld: ./sysroot/lib/libc.so.6
ld.lld: ./sysroot/lib/libc_nonshared.a
ld.lld: ./sysroot/lib/ld-linux-aarch64.so.1
ld.lld: ./sysroot/lib/libgcc_s.so
ld.lld: ./sysroot/lib/libgcc.a
ld.lld: ./sysroot/lib/crtendS.o
ld.lld: ./sysroot/lib/crtn.o
ld.lld: error: undefined symbol: clntudp_create
>>> referenced by sigar_util.c
>>>               sigar_util.o:(sigar_rpc_ping) in archive ./libsigar.a
>>> did you mean: clntudp_create
>>> defined in: ./sysroot/lib/libc.so.6

ld.lld: error: undefined symbol: xdr_void
>>> referenced by sigar_util.c
>>>               sigar_util.o:(sigar_rpc_ping) in archive ./libsigar.a
>>> referenced by sigar_util.c
>>>               sigar_util.o:(sigar_rpc_ping) in archive ./libsigar.a
>>> did you mean: xdr_void
>>> defined in: ./sysroot/lib/libc.so.6

ld.lld: error: undefined symbol: clnttcp_create
>>> referenced by sigar_util.c
>>>               sigar_util.o:(sigar_rpc_ping) in archive ./libsigar.a
clang-10: error: linker command failed with exit code 1 (use -v to see
invocation)

-- 
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/20200326/5823638e/attachment-0001.html>


More information about the llvm-bugs mailing list