#20777: bfd library not found when building a fresh image for ar71xx
--------------------------+---------------------------------------
  Reporter:  anonymous    |      Owner:  developers
      Type:  defect       |     Status:  closed
  Priority:  high         |  Milestone:  Designated Driver (Trunk)
 Component:  base system  |    Version:  Trunk
Resolution:  no_response  |   Keywords:
--------------------------+---------------------------------------

Comment (by anonymous):

 Just ran into this as well. Doing a cross compile on OSX, installed
 required stuff through homebrew and ran into the same issue with an ar71xx
 build (config copied from the jan 8 2016 nightly snapshot):

 {{{
 make[3]: Entering directory
 `/Volumes/OpenWRT/openwrt/package/devel/oprofile'
 rm -f /Volumes/OpenWRT/openwrt/staging_dir/target-
 mips_34kc_musl-1.1.11/stamp/.oprofile_installed
 (cd /Volumes/OpenWRT/openwrt/build_dir/target-
 mips_34kc_musl-1.1.11/oprofile-1.1.0rc2; rm -f aclocal.m4; if [ -f
 ./configure.ac ] || [ -f ./configure.in ]; then [ -d ./autom4te.cache ] &&
 rm -rf autom4te.cache; [ -e ./config.rpath ] || ln -s
 /Volumes/OpenWRT/openwrt/scripts/config.rpath ./config.rpath; touch NEWS
 AUTHORS COPYING ABOUT-NLS ChangeLog;
 AUTOM4TE=/Volumes/OpenWRT/openwrt/staging_dir/host/bin/autom4te
 AUTOCONF=/Volumes/OpenWRT/openwrt/staging_dir/host/bin/autoconf
 AUTOMAKE=/Volumes/OpenWRT/openwrt/staging_dir/host/bin/automake
 ACLOCAL=/Volumes/OpenWRT/openwrt/staging_dir/host/bin/aclocal
 AUTOHEADER=/Volumes/OpenWRT/openwrt/staging_dir/host/bin/autoheader
 LIBTOOLIZE=/Volumes/OpenWRT/openwrt/staging_dir/host/bin/libtoolize
 LIBTOOL=/Volumes/OpenWRT/openwrt/staging_dir/host/bin/libtool
 M4=/Volumes/OpenWRT/openwrt/staging_dir/host/bin/m4 AUTOPOINT=true
 /Volumes/OpenWRT/openwrt/staging_dir/host/bin/autoreconf -v -f -i -s -B
 /Volumes/OpenWRT/openwrt/staging_dir/host/share/aclocal -I
 /Volumes/OpenWRT/openwrt/staging_dir/target-
 mips_34kc_musl-1.1.11/host/share/aclocal -I
 /Volumes/OpenWRT/openwrt/staging_dir/target-
 mips_34kc_musl-1.1.11/usr/share/aclocal -I m4 -I . . || true; fi; );
 autoreconf: Entering directory `.'
 autoreconf: configure.ac: not using Gettext
 autoreconf: running: /Volumes/OpenWRT/openwrt/staging_dir/host/bin/aclocal
 -I /Volumes/OpenWRT/openwrt/staging_dir/target-
 mips_34kc_musl-1.1.11/host/share/aclocal -I
 /Volumes/OpenWRT/openwrt/staging_dir/target-
 mips_34kc_musl-1.1.11/usr/share/aclocal -I m4 -I . --force -I m4
 autoreconf: configure.ac: tracing
 autoreconf: running:
 /Volumes/OpenWRT/openwrt/staging_dir/host/bin/libtoolize --force
 OpenWrt-libtoolize: putting auxiliary files in `.'.
 OpenWrt-libtoolize: linking file `./ltmain.sh'
 OpenWrt-libtoolize: putting macros in `m4'.
 OpenWrt-libtoolize: linking file `m4/libtool.m4'
 OpenWrt-libtoolize: linking file `m4/ltoptions.m4'
 OpenWrt-libtoolize: linking file `m4/ltsugar.m4'
 OpenWrt-libtoolize: linking file `m4/ltversion.m4'
 OpenWrt-libtoolize: linking file `m4/lt~obsolete.m4'
 OpenWrt-libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to
 configure.ac and
 OpenWrt-libtoolize: rerunning libtoolize, to keep the correct libtool
 macros in-tree.
 OpenWrt-libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'
 autoreconf: running:
 /Volumes/OpenWRT/openwrt/staging_dir/host/bin/autoconf
 --include=/Volumes/OpenWRT/openwrt/staging_dir/target-
 mips_34kc_musl-1.1.11/host/share/aclocal
 --include=/Volumes/OpenWRT/openwrt/staging_dir/target-
 mips_34kc_musl-1.1.11/usr/share/aclocal --include=m4 --include=.
 --prepend-include=/Volumes/OpenWRT/openwrt/staging_dir/host/share/aclocal
 --force
 autoreconf: running:
 /Volumes/OpenWRT/openwrt/staging_dir/host/bin/autoheader
 --include=/Volumes/OpenWRT/openwrt/staging_dir/target-
 mips_34kc_musl-1.1.11/host/share/aclocal
 --include=/Volumes/OpenWRT/openwrt/staging_dir/target-
 mips_34kc_musl-1.1.11/usr/share/aclocal --include=m4 --include=.
 --prepend-include=/Volumes/OpenWRT/openwrt/staging_dir/host/share/aclocal
 --force
 autoreconf: running:
 /Volumes/OpenWRT/openwrt/staging_dir/host/bin/automake --add-missing
 --force-missing
 libutil++/tests/Makefile.am:4: warning: ':='-style assignments are not
 portable
 libutil++/tests/Makefile.am:4: warning: shell $(REALPATH: non-POSIX
 variable name
 libutil++/tests/Makefile.am:4: (probably a GNU make extension)
 autoreconf: Leaving directory `.'
 (cd /Volumes/OpenWRT/openwrt/build_dir/target-
 mips_34kc_musl-1.1.11/oprofile-1.1.0rc2/./; if [ -x ./configure ]; then
 find /Volumes/OpenWRT/openwrt/build_dir/target-
 mips_34kc_musl-1.1.11/oprofile-1.1.0rc2/ -name config.guess | xargs -r
 chmod u+w; find /Volumes/OpenWRT/openwrt/build_dir/target-
 mips_34kc_musl-1.1.11/oprofile-1.1.0rc2/ -name config.guess | xargs -r -n1
 cp --remove-destination /Volumes/OpenWRT/openwrt/scripts/config.guess;
 find /Volumes/OpenWRT/openwrt/build_dir/target-
 mips_34kc_musl-1.1.11/oprofile-1.1.0rc2/ -name config.sub | xargs -r chmod
 u+w; find /Volumes/OpenWRT/openwrt/build_dir/target-
 mips_34kc_musl-1.1.11/oprofile-1.1.0rc2/ -name config.sub | xargs -r -n1
 cp --remove-destination /Volumes/OpenWRT/openwrt/scripts/config.sub; AR
 ="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os
 -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-
 copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-
 float -Wformat -Werror=format-security -fstack-protector
 -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld
 NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC
 ="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB
 ="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip
 OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-
 objdump SIZE=mips-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-
 likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error
 =unused-but-set-variable -Wno-error=unused-result -msoft-float -Wformat
 -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now
 -Wl,-z,relro " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2
 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-
 variable -Wno-error=unused-result -msoft-float -Wformat -Werror=format-
 security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro
 -fpermissive " CPPFLAGS="-I/Volumes/OpenWRT/openwrt/staging_dir/target-
 mips_34kc_musl-1.1.11/usr/include -I/Volumes/OpenWRT/openwrt/staging_dir
 /target-mips_34kc_musl-1.1.11/include
 -I/Volumes/OpenWRT/openwrt/staging_dir/toolchain-
 mips_34kc_gcc-5.2.0_musl-1.1.11/usr/include
 -I/Volumes/OpenWRT/openwrt/staging_dir/toolchain-
 mips_34kc_gcc-5.2.0_musl-1.1.11/include/fortify
 -I/Volumes/OpenWRT/openwrt/staging_dir/toolchain-
 mips_34kc_gcc-5.2.0_musl-1.1.11/include "
 LDFLAGS="-L/Volumes/OpenWRT/openwrt/staging_dir/target-
 mips_34kc_musl-1.1.11/usr/lib -L/Volumes/OpenWRT/openwrt/staging_dir
 /target-mips_34kc_musl-1.1.11/usr/lib
 -L/Volumes/OpenWRT/openwrt/staging_dir/target-mips_34kc_musl-1.1.11/lib
 -L/Volumes/OpenWRT/openwrt/staging_dir/toolchain-
 mips_34kc_gcc-5.2.0_musl-1.1.11/usr/lib
 -L/Volumes/OpenWRT/openwrt/staging_dir/toolchain-
 mips_34kc_gcc-5.2.0_musl-1.1.11/lib -znow -zrelro "   ./configure --target
 =mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-apple-
 darwin15.3.0 --program-prefix="" --program-suffix="" --prefix=/usr --exec-
 prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib
 --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var
 --mandir=/usr/man --infodir=/usr/info     --with-kernel-support --with-
 kernel=/Volumes/OpenWRT/openwrt/build_dir/target-mips_34kc_musl-1.1.11
 /linux-ar71xx_mikrotik/linux-4.1.13/user_headers --without-x ; fi; )
 configure: WARNING: unrecognized options: --with-kernel-support
 configure: loading site script /Volumes/OpenWRT/openwrt/include/site/mips
 checking for a BSD-compatible install... /usr/local/bin/ginstall -c
 checking whether build environment is sane... yes
 checking for mips-openwrt-linux-strip... mips-openwrt-linux-musl-strip
 checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
 checking for gawk... gawk
 checking whether make sets $(MAKE)... yes
 checking whether make supports nested variables... yes
 checking for style of include used by make... GNU
 checking for mips-openwrt-linux-gcc... mips-openwrt-linux-musl-gcc
 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... yes
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether mips-openwrt-linux-musl-gcc accepts -g... yes
 checking for mips-openwrt-linux-musl-gcc option to accept ISO C89... none
 needed
 checking whether mips-openwrt-linux-musl-gcc understands -c and -o
 together... yes
 checking dependency style of mips-openwrt-linux-musl-gcc... gcc3
 checking whether basename is declared... yes
 checking for mips-openwrt-linux-ranlib... mips-openwrt-linux-musl-gcc-
 ranlib
 checking build system type... x86_64-apple-darwin15.3.0
 checking host system type... mips-openwrt-linux-gnu
 checking how to print strings... printf
 checking for a sed that does not truncate output...
 /Volumes/OpenWRT/openwrt/staging_dir/host/bin/sed
 checking for grep that handles long lines and -e...
 /Volumes/OpenWRT/openwrt/staging_dir/host/bin/grep
 checking for egrep... /Volumes/OpenWRT/openwrt/staging_dir/host/bin/grep
 -E
 checking for fgrep... /Volumes/OpenWRT/openwrt/staging_dir/host/bin/grep
 -F
 checking for ld used by mips-openwrt-linux-musl-gcc... mips-openwrt-linux-
 musl-ld
 checking if the linker (mips-openwrt-linux-musl-ld) is GNU ld... yes
 checking for BSD- or MS-compatible name lister (nm)... mips-openwrt-linux-
 musl-gcc-nm
 checking the name lister (mips-openwrt-linux-musl-gcc-nm) interface... BSD
 nm
 checking whether ln -s works... yes
 checking the maximum length of command line arguments... 196608
 checking whether the shell understands some XSI constructs... yes
 checking whether the shell understands "+="... yes
 checking how to convert x86_64-apple-darwin15.3.0 file names to mips-
 openwrt-linux-gnu format... func_convert_file_noop
 checking how to convert x86_64-apple-darwin15.3.0 file names to toolchain
 format... func_convert_file_noop
 checking for mips-openwrt-linux-musl-ld option to reload object files...
 -r
 checking for mips-openwrt-linux-objdump... mips-openwrt-linux-musl-objdump
 checking how to recognize dependent libraries... pass_all
 checking for mips-openwrt-linux-dlltool... no
 checking for dlltool... no
 checking how to associate runtime and link libraries... printf %s\n
 checking for mips-openwrt-linux-ar... mips-openwrt-linux-musl-gcc-ar
 checking for archiver @FILE support... @
 checking for mips-openwrt-linux-strip... (cached) mips-openwrt-linux-musl-
 strip
 checking for mips-openwrt-linux-ranlib... (cached) mips-openwrt-linux-
 musl-gcc-ranlib
 checking command to parse mips-openwrt-linux-musl-gcc-nm output from mips-
 openwrt-linux-musl-gcc object... ok
 checking for sysroot... no
 checking for mips-openwrt-linux-mt... no
 checking for mt... no
 checking if : is a manifest tool... no
 checking how to run the C preprocessor... mips-openwrt-linux-musl-gcc -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking for dlfcn.h... yes
 checking for objdir... .libs
 checking if mips-openwrt-linux-musl-gcc supports -fno-rtti -fno-
 exceptions... no
 checking for mips-openwrt-linux-musl-gcc option to produce PIC... -fPIC
 -DPIC
 checking if mips-openwrt-linux-musl-gcc PIC flag -fPIC -DPIC works... yes
 checking if mips-openwrt-linux-musl-gcc static flag -static works... yes
 checking if mips-openwrt-linux-musl-gcc supports -c -o file.o... yes
 checking if mips-openwrt-linux-musl-gcc supports -c -o file.o... (cached)
 yes
 checking whether the mips-openwrt-linux-musl-gcc linker (mips-openwrt-
 linux-musl-ld) supports shared libraries... yes
 checking whether -lc should be explicitly linked in... no
 checking dynamic linker characteristics... GNU/Linux ld.so
 checking how to hardcode library paths into programs... immediate
 checking whether stripping libraries is possible... yes
 checking if libtool supports shared libraries... yes
 checking whether to build shared libraries... yes
 checking whether to build static libraries... yes
 checking pkg-config is at least version 0.9.0... yes
 checking for mips-openwrt-linux-gcc... (cached) mips-openwrt-linux-musl-
 gcc
 checking whether we are using the GNU C compiler... (cached) yes
 checking whether mips-openwrt-linux-musl-gcc accepts -g... (cached) yes
 checking for mips-openwrt-linux-musl-gcc option to accept ISO C89...
 (cached) none needed
 checking whether mips-openwrt-linux-musl-gcc understands -c and -o
 together... (cached) yes
 checking dependency style of mips-openwrt-linux-musl-gcc... (cached) gcc3
 checking how to run the C preprocessor... mips-openwrt-linux-musl-gcc -E
 checking whether we are using the GNU C++ compiler... yes
 checking whether mips-openwrt-linux-musl-g++ accepts -g... yes
 checking dependency style of mips-openwrt-linux-musl-g++... gcc3
 checking how to run the C++ preprocessor... mips-openwrt-linux-musl-g++ -E
 checking for ld used by mips-openwrt-linux-musl-g++... mips-openwrt-linux-
 musl-ld
 checking if the linker (mips-openwrt-linux-musl-ld) is GNU ld... yes
 checking whether the mips-openwrt-linux-musl-g++ linker (mips-openwrt-
 linux-musl-ld) supports shared libraries... yes
 checking for mips-openwrt-linux-musl-g++ option to produce PIC... -fPIC
 -DPIC
 checking if mips-openwrt-linux-musl-g++ PIC flag -fPIC -DPIC works... yes
 checking if mips-openwrt-linux-musl-g++ static flag -static works... yes
 checking if mips-openwrt-linux-musl-g++ supports -c -o file.o... yes
 checking if mips-openwrt-linux-musl-g++ supports -c -o file.o... (cached)
 yes
 checking whether the mips-openwrt-linux-musl-g++ linker (mips-openwrt-
 linux-musl-ld) supports shared libraries... yes
 checking dynamic linker characteristics... (cached) GNU/Linux ld.so
 checking how to hardcode library paths into programs... immediate
 checking for ld... mips-openwrt-linux-musl-ld
 checking /Volumes/OpenWRT/openwrt/build_dir/target-mips_34kc_musl-1.1.11
 /linux-
 ar71xx_mikrotik/linux-4.1.13/user_headers/include/linux/perf_event.h
 usability... yes
 checking /Volumes/OpenWRT/openwrt/build_dir/target-mips_34kc_musl-1.1.11
 /linux-
 ar71xx_mikrotik/linux-4.1.13/user_headers/include/linux/perf_event.h
 presence... yes
 checking for /Volumes/OpenWRT/openwrt/build_dir/target-
 mips_34kc_musl-1.1.11/linux-
 ar71xx_mikrotik/linux-4.1.13/user_headers/include/linux/perf_event.h...
 yes
 checking kernel supports perf_events... yes
 checking whether PERF_RECORD_MISC_GUEST_KERNEL is defined in
 perf_event.h... yes
 checking whether precise_ip is defined in perf_event.h... yes
 checking whether malloc attribute is understood... no
 checking whether __builtin_expect is understood... yes
 checking for sched_setaffinity... yes
 checking for perfmonctl... no
 checking for poptGetContext in -lpopt... yes
 checking libiberty.h usability... no
 checking libiberty.h presence... no
 checking for libiberty.h... no
 checking for cplus_demangle in -liberty... yes
 checking for xcalloc... yes
 checking for xmemdup... yes
 checking for dlopen in -ldl... yes
 checking for main in -lintl... no
 checking for bfd_openr in -lbfd... no
 checking for compress in -lz... yes
 checking for bfd_fdopenr in -lbfd... no
 configure: error: bfd library not found
 make[3]: *** [/Volumes/OpenWRT/openwrt/build_dir/target-
 mips_34kc_musl-1.1.11/oprofile-1.1.0rc2/.configured_yyyyyyyy] Error 1
 make[3]: Leaving directory
 `/Volumes/OpenWRT/openwrt/package/devel/oprofile'
 make[2]: *** [package/devel/oprofile/compile] Error 2
 make[2]: Leaving directory `/Volumes/OpenWRT/openwrt'
 make[1]: *** [/Volumes/OpenWRT/openwrt/staging_dir/target-
 mips_34kc_musl-1.1.11/stamp/.package_compile] Error 2
 make[1]: Leaving directory `/Volumes/OpenWRT/openwrt'
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/20777#comment:7>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to