https://sourceware.org/bugzilla/show_bug.cgi?id=21678
Bug ID: 21678 Summary: powerpc-oe-linux-ld.gold: error: invalid STB_LOCAL symbol in external symbols Product: binutils Version: 2.28 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: rwmacleod at gmail dot com CC: ian at airs dot com Target Milestone: --- When building systemd for qemuppc using oe-core/master (http://cgit.openembedded.org/openembedded-core/commit/?id=7c36b4316ad185088c65a4db8a84b5fcba9eef06 specifically), gold will fail to link with an error like: powerpc-oe-linux-libtool: link: powerpc-oe-linux-gcc \ -m32 -mhard-float -mcpu=7400 -mno-spe \ --sysroot=/.../tmp-glibc/work/ppc7400-oe-linux/systemd/1_232-r0/recipe-sysroot \ -shared -fPIC -DPIC \ src/basic/.libs/libsystemd_shared_la-capability-util.o \ src/basic/.libs/libsystemd_shared_la-conf-files.o \ src/basic/.libs/libsystemd_shared_la-hostname-util.o \ ... src/libudev/.libs/libsystemd_shared_la-libudev-queue.o \ src/libudev/.libs/libsystemd_shared_la-libudev-hwdb.o \ -lcap -lrt -lm -lresolv -llzma -lacl \ -m32 -mhard-float -mcpu=7400 -mno-spe \ --sysroot=/.../tmp-glibc/work/ppc7400-oe-linux/systemd/1_232-r0/recipe-sysroot \ -fstack-protector -fstack-protector-strong -flto -fstack-protector -fstack-protector-strong \ -flto -pthread -fstack-protector -fstack-protector-strong -flto -fstack-protector -fstack-protector-strong \ -flto -O2 -g \ -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined \ -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-fuse-ld=gold \ -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -pthread \ -Wl,-soname -Wl,libsystemd-shared-232.so -o .libs/libsystemd-shared-232.so /.../tmp-glibc/work/ppc7400-oe-linux/systemd/1_232-r0/recipe-sysroot-native\ /usr/bin/powerpc-oe-linux/powerpc-oe-linux-ld.gold: error: invalid STB_LOCAL symbol in external symbols error: linker defined: multiple definition of '00000001.plt_call.memcpy+8000' command line: previous definition here ...> 5000 identical lines, with functions/symbols such as: '00000001.plt_call.fflush_and_check+8000' '00000001.plt_call.fileno+8000' '00000001.plt_call.fchmod+8000' | collect2: error: ld returned 1 exit status | Makefile:11575: recipe for target 'libsystemd-shared.la' failed | make[2]: *** [libsystemd-shared.la] Error 1 | Makefile:21970: recipe for target 'all-recursive' failed | make[1]: *** [all-recursive] Error 1 | Makefile:9900: recipe for target 'all' failed | make: *** [all] Error 2 | ERROR: oe_runmake failed I can provide instructions on how to reproduce this using oe-core or if needed, I'll try to create a simpler reproducer as per your guidance. oe-core instructions are here: https://bugzilla.yoctoproject.org/show_bug.cgi?id=11696 This only affects qemuppc and I assume all powerpc targets. A similar error occurs when building webkitgtk version 2.16.1 -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils