Could NOT find LIBBFD
package 'zlib' not found , package 'libcurl' not found
"package" means a package config file e.g. /usr/lib64/pkgconfig/zlib.pc
Please use yum to decide a package name, like :
yum provides */libbfd.so
yum provides */zlib.pc
yum provides */libz.so
yum provides */libcurl.pc
yum provides */libcurl.so
Installing the packages :
# yum install binutils-devel zlib-devel libcurl-devel
Ref. comment about kcov :
"kcov" : # yum install elfutils-devel
cd build/ && cmake .. && make
.
.
[ 98%] Building C object src/CMakeFiles/kcov-system-daemon.dir/version.c.o
Linking CXX executable kcov-system-daemon
[100%] Built target kcov-system-daemon
Answer from Knud Larsen on Stack OverflowGitHub
github.com › bsc-performance-tools › extrae › issues › 25
Configure does not detect libbfd · Issue #25 · bsc-performance-tools/extrae
February 26, 2019 - If you have installed the binutils package by hand from their source code, make sure to add --enable-shared in its configure execution. configure: libiberty library directory: /usr/lib/aarch64-linux-gnu checking bfd.h usability... yes checking bfd.h presence... yes checking for bfd.h... yes checking whether libbfd and libiberty work... no, see config.log for further details configure: error: You can gather call-site information which must be translated using binutils, but either libbfd or libiberty are not found.
Author bsc-performance-tools
Stack Exchange
unix.stackexchange.com › questions › 44441 › libbfd-2-22-so-missing-while-compiling-binutils-glibc-zlib
libraries - libbfd-2.22.so missing while compiling Binutils/Glibc/Zlib - Unix & Linux Stack Exchange
In Ubuntu current version, I need symlink: sudo ln -s /usr/lib/libbfd-2.24.51-system.20140727.so /usr/lib/libbfd-2.24-system.so ... It is not supported in Ubuntu 20.4.
Copyfuture
copyfuture.com › blogs-details › 202202040915179743
Bpftool tool reports an error, no libbfd support
I am using bpftool Tool time , The following error is reported : rose@rose:~$ sudo bpftool prog dump jited id 15Error:No libbfd support After online inquiry , Said it needed to be installed binutils library , therefore apt install This library , But the same error is still reported after the library is installed .
Cdmana
cdmana.com › 2022 › 02 › 202202040915179743.html
Bpftool tool reports an error, no libbfd support
February 4, 2022 - Bpftool tool reports an error, no libbfd support · 2022-02-04 09:15:19 by CSDN Q & A · I am using bpftool Tool time , The following error is reported : · [email protected]:~$ sudo bpftool prog dump jited id 15Error: No libbfd support · After online inquiry , Said it needed to be installed binutils library , therefore apt install This library , But the same error is still reported after the library is installed .
GitHub
github.com › spack › spack › issues › 37004
Installation issue: Scorep - Cannot link libbfd · Issue #37004 · spack/spack
April 18, 2023 - /usr/bin/wget -q --content-disposition 648 configure: info: creating ./config.lt 649 config.lt: info: creating libtool 650 checking bfd.h usability... yes 651 checking bfd.h presence... yes 652 checking for bfd.h... yes >> 653 configure: error: in `/gpfs/scratch/pr28fa/di36pex/di36pex/haswell/spack-stage-scorep-8.0-4hmal65l4m5iwpoyom2xaakilnpnzi6u/spack-src/build-mpi': >> 654 configure: error: Cannot link libbfd (and dependencies). 655 See `config.log' for more details >> 656 configure: error: ./configure failed for build-mpi · spack debug report · Spack: 0.20.0.dev0 (9ea7937) Python: 3.6.15 · Platform: linux-sles15-haswell · Concretizer: clingo · No response ·
Author spack
Red Hat
bugzilla.redhat.com › show_bug.cgi
66222 – linking with libbfd isn't compatible across minor releases
Red Hat Bugzilla – Bug 66222 · This site requires JavaScript to be enabled to function correctly, please enable it · Privacy Contact FAQ Legal
GitHub
github.com › dosemu2 › dosemu2 › issues › 408
fails on ubuntu14.04: cannot load libbfd-2.26.1-system.so · Issue #408 · dosemu2/dosemu2
July 14, 2017 - /usr/bin/dosemu.bin: error while loading shared libraries: libbfd-2.26.1-system.so: cannot open shared object file: No such file or directory
Author dosemu2
The Mail Archive
mail-archive.com › netdev@vger.kernel.org › msg254808.html
[PATCH bpf-next v2] bpftool: make libbfd optional
November 12, 2018 - Make it possible to build bpftool without libbfd. libbfd and libopcodes are typically provided in dev/dbg packages (binutils-dev in debian) which we usually don't have installed on the fleet machines and we'd like a way to have bpftool version that works without installing any additional packages. This excludes support for disassembling jit-ted code and prints an error if the user tries to use these features.
GNU
sourceware.org › pipermail › gdb-patches › 2025-February › 215473.html
[PATCH v2] Fix 64-bit BFD detection causing build failures
July 21, 2025 - targ_extra_libpath="$targ_extra_libpath ... test -n "$ac_init_help"; then --enable-install-libbfd controls installation of libbfd and related headers --disable-nls do not use Native Language Support --disable-rpath do not hardcode runtime library paths - --enable-64-bit-bfd 64-bit ...
Cdmana
cdmana.com › 2021 › 12 › 202112190510559015.html
bpftool工具使用报错,No libbfd support
December 19, 2021 - bpftool工具使用报错,No libbfd support · 2021-12-19 09:52:29 by CSDN问答 · 我在使用bpftool工具时,遇到报错如下: · rose@rose:~$ sudo bpftool prog dump jited id 15Error: No libbfd support · 上网查询后,说是需要安装binutils库,于是apt install这个库,但这个库安装之后仍然报相同的错。 请问这个问题该如何解决? ·
GitHub
github.com › StarRocks › starrocks › issues › 50226
start be and show error while loading shared libraries: libbfd-2.38-system.so: cannot open shared object file: No such file or directory · Issue #50226 · StarRocks/starrocks
August 25, 2024 - Steps to reproduce the behavior (Required) sudo ./be/bin/start_be.sh --daemon Expected behavior (Required) be start Real behavior (Required) be.out: error while loading shared libraries: libbfd-2.38-system.so: cannot open shared object f...
Author StarRocks
Top answer 1 of 3
31
if you use ubuntu install binutils-dev
sudo apt-get install binutils-dev
2 of 3
3
Do you need to statically link your program?
It compiles and runs without error if you dynamically link it instead:
gcc readInfo.c -o readInfo -lbfd
I've run into a new problem when trying to make it statically linked:
$ gcc readInfo.c /usr/lib/libbfd.a /usr/lib/x86_64-linux-gnu/libc.a -o readInfo
/usr/bin/ld.bfd.real: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality
in `/usr/lib/x86_64-linux-gnu/libc.a(strcmp.o)' can not be used when making
an executable; recompile with -fPIE and relink with -pie
collect2: ld returned 1 exit status
$ gcc -fPIE readInfo.c /usr/lib/libbfd.a /usr/lib/x86_64-linux-gnu/libc.a \
-o readInfo
/usr/bin/ld.bfd.real: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality
in `/usr/lib/x86_64-linux-gnu/libc.a(strcmp.o)' can not be used when making
an executable; recompile with -fPIE and relink with -pie
collect2: ld returned 1 exit status
$ gcc -fPIE -pie readInfo.c /usr/lib/libbfd.a /usr/lib/x86_64-linux-gnu/libc.a \
-o readInfo
/usr/bin/ld.bfd.real: /usr/lib/libbfd.a(opncls.o): relocation R_X86_64_32S
against `.rodata' can not be used when making a shared object; recompile with
-fPIC
/usr/lib/libbfd.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
$ gcc -fPIC -fPIE -pie readInfo.c /usr/lib/libbfd.a \
/usr/lib/x86_64-linux-gnu/libc.a -o readInfo
/usr/bin/ld.bfd.real: /usr/lib/libbfd.a(opncls.o): relocation R_X86_64_32S
against `.rodata' can not be used when making a shared object; recompile with
-fPIC
/usr/lib/libbfd.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
GitHub
github.com › b-2-r › pybfd3 › issues › 3
Compile issues · Issue #3 · b-2-r/pybfd3
August 3, 2020 - [+] /usr/lib/libbfd.so [+] /usr/lib/libopcodes.so [+] Detecting libbfd/libopcodes compiled architectures nm: /usr/lib/libopcodes.so: file format not recognized [+] Generating .C files... [+] pybfd3/gen_bfd_archs.c cc -I/usr/include -c pybfd3/gen_bfd_archs.c -o pybfd3/gen_bfd_archs.o cc pybfd3/gen_bfd_archs.o -L/usr/lib -L/usr/lib -lbfd -lopcodes -o pybfd3/gen_bfd_archs [+] Generating .py files... [+] build/lib.linux-x86_64-3.8/pybfd3/bfd_archs.py [-] Error : Unable to determine libopcodes' supported platforms from '/usr/lib/libopcodes.so' Arch Linux has a static binutils with /usr/lib/libopcodes.so a linker script that nm can't parse.
Author b-2-r
GNU
sourceware.org › binutils › docs › bfd.pdf pdf
libbfd The Binary File Descriptor Library
error message followed by a colon and space. The string must not be changed after ... Get the program name used when printing a BFD error. ... Set the BFD assert handler function. Returns the previous function. ... BFD has limited support for thread-safety.
Red Hat
bugzilla.redhat.com › show_bug.cgi
240505 – bfd.h is missing
Red Hat Bugzilla – Bug 240505 · This site requires JavaScript to be enabled to function correctly, please enable it · Privacy Contact FAQ Legal