https://sourceware.org/bugzilla/show_bug.cgi?id=29987
--- Comment #1 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee dot org> --- linking ld.bfd also fails, when using ld.bfd 2.39.50.20220817: make V=1 make[1]: Entering directory '/root/binutils/ld' Making all in po make[2]: Entering directory '/root/binutils/ld/po' make[2]: Nothing to be done for 'all' make[2]: Leaving directory '/root/binutils/ld/po' make[2]: Entering directory '/root/binutils/ld' /bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror -DELF_LIST_OPTIONS=true -DELF_SHLIB_LIST_OPTIONS=true -DELF_PLT_UNWIND_LIST_OPTIONS=true -I/usr/local/include -O2 -pipe -g -o ld-new ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o plugin.o ldbuildid.o eelf_x86_64.o eelf32_x86_64.o eelf_i386.o eelf_iamcu.o ldelf.o ldelfgen.o ../bfd/libbfd.la ../libctf/libctf.la ../libiberty/libiberty.a -lz -L/usr/local/lib64 -lzstd libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror -DELF_LIST_OPTIONS=true -DELF_SHLIB_LIST_OPTIONS=true -DELF_PLT_UNWIND_LIST_OPTIONS=true -I/usr/local/include -O2 -pipe -g -o ld-new ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o plugin.o ldbuildid.o eelf_x86_64.o eelf32_x86_64.o eelf_i386.o eelf_iamcu.o ldelf.o ldelfgen.o ../bfd/.libs/libbfd.a -L/usr/local/lib64 ../libctf/.libs/libctf.a -L/root/binutils/libctf/../libiberty /root/binutils/bfd/.libs/libbfd.a /root/binutils/libsframe/.libs/libsframe.a -liberty ../libiberty/libiberty.a -lz -lzstd /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../libiberty/libiberty.a(concat.o): in function `concat_length': /git/binutils-gdb/libiberty/concat.c:91: multiple definition of `concat_length'; /usr/local/lib64/libiberty.a(concat.o):concat.c:(.text+0x0): first defined here /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../libiberty/libiberty.a(concat.o): in function `concat_copy': /git/binutils-gdb/libiberty/concat.c:106: multiple definition of `concat_copy'; /usr/local/lib64/libiberty.a(concat.o):concat.c:(.text+0xb0): first defined here /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../libiberty/libiberty.a(concat.o): in fu[89/1980]oncat_copy2': /git/binutils-gdb/libiberty/concat.c:130: multiple definition of `concat_copy2'; /usr/local/lib64/libiberty.a(concat.o):concat.c:(.text+0x180): first defined here /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../libiberty/libiberty.a(concat.o): in function `concat': /git/binutils-gdb/libiberty/concat.c:141: multiple definition of `concat'; /usr/local/lib64/libiberty.a(concat.o):concat.c:(.text+0x250): first defined here /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../libiberty/libiberty.a(concat.o): in function `reconcat': /git/binutils-gdb/libiberty/concat.c:178: multiple definition of `reconcat'; /usr/local/lib64/libiberty.a(concat.o):concat.c:(.text+0x3e0): first defined here /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../libiberty/libiberty.a(filename_cmp.o): in function `filename_cmp': /git/binutils-gdb/libiberty/filename_cmp.c:57: multiple definition of `filename_cmp'; /usr/local/lib64/libiberty.a(filename_cmp.o):filename_cmp.c:(.text+0x0): first defined here /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../libiberty/libiberty.a(hashtab.o): in function `htab_size': /git/binutils-gdb/libiberty/hashtab.c:216: multiple definition of `htab_size'; /usr/local/lib64/libiberty.a(hashtab.o):hashtab.c:(.text+0x2c0): first defined here /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../libiberty/libiberty.a(hashtab.o): in function `htab_elements': /git/binutils-gdb/libiberty/hashtab.c:226: multiple definition of `htab_elements'; /usr/local/lib64/libiberty.a(hashtab.o):hashtab.c:(.text+0x2d0): first defined here /usr/local/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ../libiberty/libiberty.a(hashtab.o): in function `htab_create_alloc_ex': /git/binutils-gdb/libiberty/hashtab.c:297: multiple definition of `htab_create_alloc_ex'; /usr/local/lib64/libiberty.a(hashtab.o):hashtab.c:(.text+0x420): first defined here (and so on) -- You are receiving this mail because: You are on the CC list for the bug.