-
-
Notifications
You must be signed in to change notification settings - Fork 117
Description
https://github.com/SimonKagstrom/kcov/releases/tag/v43 assets does not have a compiled binary, but v42 has it https://github.com/SimonKagstrom/kcov/releases/download/v42/kcov-amd64.tar.gz
Was this an oversight or compiled binaries are no longer uploaded as assets?
Workaround
Compile from source
KCOV_VERSION=v43 && \
sudo apt install -y git cmake g++ libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev binutils-dev && \
git clone https://github.com/SimonKagstrom/kcov.git && \
cd kcov && git checkout ${KCOV_VERSION} && mkdir build && cd build && \
cmake .. && make && sudo make install && \
kcov --versionMajor side effect in GitHub Actions
For v42, installing kcov in GitHub Actions was as simple as
wget https://github.com/SimonKagstrom/kcov/releases/download/v42/kcov-amd64.tar.gz && tar -xf kcov-amd64.tar.gz && sudo mv ./usr/local/bin/kcov /usr/local/bin/kcov && kcov --version
But with ubuntu-latest now moved to 24.04, the v42 no longer works (fails with kcov: error while loading shared libraries: libopcodes-2.38-system.so: cannot open shared object file: No such file or directory, because 24.04 comes with a newer version of libopcodes).
This means, that all repos that were using the wget method should now build from sources with v43 instead of just changing v42 to v43 in the wget's download URL. Not critical, but it adds to the CI build time, as each run the kcov binary must be compiled.