Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on Ubuntu 21.04 #378

Open
ksaito1125 opened this issue Apr 25, 2022 · 1 comment
Open

Doesn't work on Ubuntu 21.04 #378

ksaito1125 opened this issue Apr 25, 2022 · 1 comment

Comments

@ksaito1125
Copy link

I installed kcov by following the steps below.

apt update && apt install -y curl binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev
curl -fsSL https://github.com/SimonKagstrom/kcov/releases/download/v40/kcov-amd64.tar.gz -o /tmp/kcov.tar.gz
tar xvfz /tmp/kcov.tar.gz -C /

It worked correctly on Ubuntu20.04.
However, on Ubuntu21.04, I get the following error:

root@4479b2cac632:/# curl -fsSL https://github.com/SimonKagstrom/kcov/releases/download/v40/kcov-amd64.tar.gz -o /tmp/kcov.tar.gz
root@4479b2cac632:/# tar xvfz /tmp/kcov.tar.gz -C /
usr/local/bin/kcov
usr/local/bin/kcov-system-daemon
usr/local/share/doc/kcov/COPYING
usr/local/share/doc/kcov/COPYING.externals
usr/local/share/doc/kcov/ChangeLog
usr/local/share/man/man1/kcov.1
root@4479b2cac632:/# kcov --help
kcov: error while loading shared libraries: libopcodes-2.34-system.so: cannot open shared object file: No such file or directory
root@4479b2cac632:/# cat /etc/os-release
NAME="Ubuntu"
VERSION="21.04 (Hirsute Hippo)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 21.04"
VERSION_ID="21.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=hirsute
UBUNTU_CODENAME=hirsute
root@4479b2cac632:/#
@SimonKagstrom
Copy link
Owner

The binary is built via github actions, which I believe uses the latest Ubuntu LTS as a build target. However, probably ubuntu 21.04 has an incompatible binutils library (since I guess you did install binutils-dev first?), so in that case you probably have to built it from source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants