ar: undefined symbol: bfd_plugin_set_program_name
I find such a problem when cross compile binutils 2.20; the following are logs in terminal: libtool: link: ar cru .libs/libbfd.a archive.o archures.o bfd.o bfdio.o bfdwin.o cache.o coffgen.o corefile.o format.o init.o libbfd.o opncls.o reloc.o section.o syms.o targets.o hash.o linker.o srec.o binary.o tekhex.o ihex.o stabs.o stab-syms.o merge.o dwarf2.o simple.o compress.o verilog.o elf32-arm.o elf32.o elf-vxworks.o elf.o elflink.o elf-attrs.o elf-strtab.o elf-eh-frame.o dwarf1.o elf32-gen.o cpu-arm.o ar: symbol lookup error: ar: undefined symbol: bfd_plugin_set_program_name make[4]: *** [libbfd.la] Error 127 make[4]: Leaving directory `/work/arm-linux-gnueabi/build/binutils-build/bfd' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/work/arm-linux-gnueabi/build/binutils-build/bfd' make[2]: *** [all] Error 2 make[2]: Leaving directory `/work/arm-linux-gnueabi/build/binutils-build/bfd' make[1]: *** [all-bfd] Error 2 make[1]: Leaving directory `/work/arm-linux-gnueabi/build/binutils-build' make: *** [all] Error 2 ./arm-cross-1.2.sh: 114: Syntax error: "&&" unexpected -- View this message in context: http://old.nabble.com/ar%3A-undefined-symbol%3A-bfd_plugin_set_program_name-tp26404888p26404888.html Sent from the Gnu - Binutils - Bugs mailing list archive at Nabble.com. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
Re: ar: undefined symbol: bfd_plugin_set_program_name
Following is my configure options: AR=ar AS=as ${SRCDIR}/binutils-2.20/configure --prefix=${CLFSCROSSTOOL} \ --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS} \ --disable-nls --enable-shared --disable-multilib make configure-host make Alan Modra wrote: > > On Wed, Nov 18, 2009 at 01:37:55AM -0800, david levis wrote: >> ar: symbol lookup error: ar: undefined symbol: >> bfd_plugin_set_program_name > > Please show the options you passed to configure. > > -- > Alan Modra > Australia Development Lab, IBM > > > ___ > bug-binutils mailing list > bug-binutils@gnu.org > http://lists.gnu.org/mailman/listinfo/bug-binutils > > -- View this message in context: http://old.nabble.com/ar%3A-undefined-symbol%3A-bfd_plugin_set_program_name-tp26404888p26585955.html Sent from the Gnu - Binutils - Bugs mailing list archive at Nabble.com. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
Re: ar: undefined symbol: bfd_plugin_set_program_name
I replaced binutils 2.20 downloaded from gnu.org with kernel.org. Now everything works. david levis wrote: > > I am under Ubuntu 9.10 & gcc version is > Configured with: ../src/configure -v --with-pkgversion='Ubuntu > 4.4.1-4ubuntu8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs > --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr > --enable-shared --enable-multiarch --enable-linker-build-id > --with-system-zlib --libexecdir=/usr/lib --without-included-gettext > --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 > --program-suffix=-4.4 --enable-nls --enable-clocale=gnu > --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all > --disable-werror --with-arch-32=i486 --with-tune=generic > --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu > --target=i486-linux-gnu > Thread model: posix > gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) > > Following is my configure options: > > > AR=ar AS=as ${SRCDIR}/binutils-2.20/configure --prefix=${CLFSCROSSTOOL} \ >--host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS} \ >--disable-nls --enable-shared --disable-multilib > > make configure-host > make > > > Alan Modra wrote: >> >> On Wed, Nov 18, 2009 at 01:37:55AM -0800, david levis wrote: >>> ar: symbol lookup error: ar: undefined symbol: >>> bfd_plugin_set_program_name >> >> Please show the options you passed to configure. >> >> -- >> Alan Modra >> Australia Development Lab, IBM >> >> >> ___ >> bug-binutils mailing list >> bug-binutils@gnu.org >> http://lists.gnu.org/mailman/listinfo/bug-binutils >> >> > > -- View this message in context: http://old.nabble.com/ar%3A-undefined-symbol%3A-bfd_plugin_set_program_name-tp26404888p26897618.html Sent from the Gnu - Binutils - Bugs mailing list archive at Nabble.com. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils