[llvm-bugs] [Bug 32008] New: lld: duplicate symbols on OpenBSD/i386

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 18 20:48:41 PST 2017


http://bugs.llvm.org/show_bug.cgi?id=32008

            Bug ID: 32008
           Summary: lld: duplicate symbols on OpenBSD/i386
           Product: lld
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: brad at comstyle.com
                CC: llvm-bugs at lists.llvm.org

Testing lld on OpenBSD/i386 I am seeing duplicate symbol errors not seen when
testing lld on OpenBSD/amd64..

clang -fuse-ld=lld -Wno-unused-command-line-argument   -o ftp cmds.o cmdtab.o
complete.o cookie.o domacro.o fetch.o ftp.o list.o main.o ruserpass.o small.o
stringlist.o util.o -ledit -lcurses -lutil -ltls -lssl -lcrypto
/usr/local/bin/ld.lld: error: /usr/src/lib/libc/quad/fixunssfdi.c:52: duplicate
symbol '__fixunssfdi'
/usr/local/bin/ld.lld: error:
/usr/obj/ports/gcc-4.9.4/gcc-4.9.4/libgcc/libgcc2.c:1434: previous definition
was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libc/quad/fixunsdfdi.c:48: duplicate
symbol '__fixunsdfdi'
/usr/local/bin/ld.lld: error:
/usr/obj/ports/gcc-4.9.4/gcc-4.9.4/libgcc/libgcc2.c:1405: previous definition
was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libc/quad/moddi3.c:44: duplicate
symbol '__moddi3'
/usr/local/bin/ld.lld: error:
/usr/obj/ports/gcc-4.9.4/gcc-4.9.4/libgcc/libgcc2.c:1252: previous definition
was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libc/quad/udivdi3.c:42: duplicate
symbol '__udivdi3'
/usr/local/bin/ld.lld: error:
/usr/obj/ports/gcc-4.9.4/gcc-4.9.4/libgcc/libgcc2.c:1287: previous definition
was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libc/quad/umoddi3.c:42: duplicate
symbol '__umoddi3'
/usr/local/bin/ld.lld: error:
/usr/obj/ports/gcc-4.9.4/gcc-4.9.4/libgcc/libgcc2.c:1275: previous definition
was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libc/quad/divdi3.c:43: duplicate
symbol '__divdi3'
/usr/local/bin/ld.lld: error:
/usr/obj/ports/gcc-4.9.4/gcc-4.9.4/libgcc/libgcc2.c:1228: previous definition
was here


clang -fuse-ld=lld -Wno-unused-command-line-argument -O2 -pipe 
-I/home/brad/src/usr.bin/ssh/ssh/.. -fstack-protector-all -DWITH_OPENSSL
-DENABLE_PKCS11 -DHAVE_DLOPEN -I/home/brad/src/usr.bin/ssh/ssh/..
-fstack-protector-all -DWITH_OPENSSL -DENABLE_PKCS11 -DHAVE_DLOPEN -Wall
-Wchar-subscripts -Wcomment -Wextra -Wformat -Wformat-security -Wimplicit
-Winline -Wmissing-declarations -Wmissing-prototypes -Wparentheses
-Wpointer-arith -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing
-Wstrict-prototypes -Wswitch -Wtrigraphs -Wuninitialized -Wunused
-Wold-style-definition -Wno-unused-parameter    -c
/home/brad/src/usr.bin/ssh/ssh/../mux.c
clang -fuse-ld=lld -Wno-unused-command-line-argument   -o ssh ssh.o readconf.o
clientloop.o sshtty.o sshconnect.o sshconnect2.o mux.o
-L/home/brad/src/usr.bin/ssh/ssh/../lib -lssh -lutil
-L/home/brad/src/usr.bin/ssh/ssh/../lib -lssh -lutil -lcrypto -lutil -lz
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/logout.c:46: duplicate
symbol 'logout'
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/logout.c:46: previous
definition was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/uucplock.c:62: duplicate
symbol 'uu_lock'
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/uucplock.c:62: previous
definition was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/uucplock.c:124: duplicate
symbol 'uu_lock_txfr'
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/uucplock.c:124: previous
definition was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/uucplock.c:154: duplicate
symbol 'uu_lockerr'
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/uucplock.c:154: previous
definition was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/uucplock.c:145: duplicate
symbol 'uu_unlock'
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/uucplock.c:145: previous
definition was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/ohash.c:45: duplicate symbol
'ohash_create_entry'
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/ohash.c:45: previous
definition was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/ohash.c:224: duplicate
symbol 'ohash_lookup_interval'
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/ohash.c:224: previous
definition was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/ohash.c:170: duplicate
symbol 'ohash_first'
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/ohash.c:170: previous
definition was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/ohash.c:137: duplicate
symbol 'ohash_find'
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/ohash.c:137: previous
definition was here
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/ohash.c:315: duplicate
symbol 'ohash_qlookup'
/usr/local/bin/ld.lld: error: /usr/src/lib/libutil/ohash.c:315: previous
definition was here

-- 
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/20170219/ed2d16b4/attachment-0001.html>


More information about the llvm-bugs mailing list