https://sourceware.org/bugzilla/show_bug.cgi?id=30281
Bug ID: 30281 Summary: error: multiple definition of `pwrite at GLIBC_2 dot 2'; on i586-linux-gnu Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: gprofng Assignee: vladimir.mezentsev at oracle dot com Reporter: mliska at suse dot cz Target Milestone: --- The following happens if I build binutils on i586, likely since 66f76c545b293f8b89fef0f996a3a48fa59fae61: [ 35s] + ../configure 'CFLAGS=-fomit-frame-pointer -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -Wno-error' 'CXXFLAGS=-fomit-frame-pointer -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -Wno-error' --prefix=/usr --libdir=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-bugurl=https://bugs.opensuse.org/ '--with-pkgversion=GNU Binutils; devel:gcc:next / openSUSE_Tumbleweed' --with-separate-debug-dir=/usr/lib/debug --with-pic --with-system-zlib --build=i586-suse-linux --enable-targets=aarch64-suse-linux,alpha-suse-linux,armv5l-suse-linux,armv6l-suse-linux,armv7l-suse-linux,armv8l-suse-linux,avr-suse-linux,pru-suse-linux,epiphany-suse-linux,hppa-suse-linux,hppa64-suse-linux,i686-suse-linux,ia64-suse-linux,m68k-suse-linux,mips-suse-linux,powerpc-suse-linux,powerpc64-suse-linux,powerpc64le-suse-linux,riscv64-suse-linux,rx-suse-linux,s390-suse-linux,s390x-suse-linux,sh4-suse-linux,sparc-suse-linux,sparc64-suse-linux,x86_64-suse-linux,xtensa-suse-linux,powerpc-macos,powerpc-macos10,spu-elf,x86_64-pep,bpf-none --enable-plugins --enable-gold --enable-threads --enable-compressed-debug-sections=gas --enable-new-dtags --enable-default-hash-style=both --enable-shared --enable-pgo-build=lto --enable-colored-disassembly --enable-obsolete --enable-warn-execstack=yes --enable-warn-rwx-segments=yes ... [ 652s] libtool: link: gcc -shared -fPIC -DPIC .libs/iotrace.o -fprofile-generate -Wl,--version-script -Wl,../../../gprofng/libcollector/libgprofng.ver -Wl,--no-as-needed -Wl,-lrt -Wl,-ldl -Wl,-soname -Wl,libgp-iotrace.so -o .libs/libgp-iotrace.so [ 652s] /usr/lib/gcc/i586-suse-linux/13/../../../../i586-suse-linux/bin/ld: /tmp/ccAGQBAo.ltrans1.ltrans.o: in function `pwrite': [ 652s] <artificial>:(.text+0x0): multiple definition of `pwrite@GLIBC_2.2'; /tmp/ccAGQBAo.ltrans0.ltrans.o:<artificial>:(.text+0xc620): first defined here [ 652s] collect2: error: ld returned 1 exit status [ 652s] make[5]: *** [Makefile:576: libgp-iotrace.la] Error 1 [ 652s] make[5]: Leaving directory '/home/abuild/rpmbuild/BUILD/binutils-2.40.50/build-dir/gprofng/libcollector' [ 652s] make[4]: *** [Makefile:478: all] Error 2 [ 652s] make[3]: *** [Makefile:472: all-recursive] Error 1 [ 652s] make[2]: *** [Makefile:404: all] Error 2 [ 652s] make[1]: *** [Makefile:7781: all-gprofng] Error 2 [ 652s] make[1]: *** Waiting for unfinished jobs.... -- You are receiving this mail because: You are on the CC list for the bug.