ld: error: duplicate symbol:
O. Hartmann
ohartmann at walstatt.org
Mon Aug 17 13:42:24 UTC 2020
On CURRENT 9not necessarily most recent with LLVM11, but since noon of today it
is FreeBSD 13.0-CURRENT #15 r364297: Mon Aug 17 14:39:06 CEST 2020 amd64) I'm
faced with some very sticky and nasty micompilations in several essential
ports, for instance
ports-mgmt/pkg
devel/libunwind
devel/binutils
In most cases somewhere in the (parallel) build the process fails with the error
ld: error: duplicate symbol: xxxxxxxx
As a result, several ports or even the rebuild of the whole installed ports
fail to compile/recompile.
Compiling port devel/binutils, for example, fails with this error message from
linker:
[...]
cc -DHAVE_CONFIG_H -I. -I. -I./../include -I./../elfcpp
-DLOCALEDIR="\"/usr/local/share/locale\"" -DBINDIR="\"/usr/local/bin\""
-DTOOLBINDIR="\"/usr/local/x86_64-portbld-freebsd13.0/bin\""
-DTOOLLIBDIR="\"/usr/local/x86_64-portbld-freebsd13.0/lib\"" -isystem
/usr/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=mremap.o -pthread -O2
-pipe -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing -MT mremap.o -MD -MP -MF .deps/mremap.Tpo -c -o mremap.o
mremap.c mv -f .deps/yyscript.Tpo .deps/yyscript.Po
libtool: link: cc -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -pipe
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-fstack-protector-strong -o coffdump coffdump.o coffgrok.o bucomm.o version.o
filemode.o /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib
../bfd/.libs/libbfd.a -L/usr/local/lib -lz ../libiberty/libiberty.a mv -f
.deps/mremap.Tpo .deps/mremap.Po
ld: error: duplicate symbol: program_name
>>> defined at coffdump.c
>>> coffdump.o:(program_name)
>>> defined at bucomm.c
>>> bucomm.o:(.bss+0x0)
What is going wrong here?
Thanks in advance
oh
More information about the freebsd-current
mailing list