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

Compiled assets missing from v43 #471

Open
AlexSkrypnyk opened this issue Jan 7, 2025 · 1 comment
Open

Compiled assets missing from v43 #471

AlexSkrypnyk opened this issue Jan 7, 2025 · 1 comment

Comments

@AlexSkrypnyk
Copy link

AlexSkrypnyk commented Jan 7, 2025

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.

@SimonKagstrom
Copy link
Owner

Well, the binary builds are in general prone to breakage (like when the distro is bumped), so might not be so good to depend on anyway.

I actually forgot there even was this functionality before :-). The CI stuff in kcov has seen a lot of cleanup (by other), so this was probably lost there.

While it probably doesn't help with github actions, there are docker images build for tags and master.

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