Skip to content

Compiled assets missing from v43 #471

@AlexSkrypnyk

Description

@AlexSkrypnyk

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 --version

Major 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions