Package Details: sccache 0.2.13-4

Git Clone URL: (read-only, click to copy)
Package Base: sccache
Description: Shared compilation cache
Upstream URL:
Licenses: Apache
Submitter: flacks
Maintainer: Chocobo1
Last Packager: Chocobo1
Votes: 5
Popularity: 0.003188
First Submitted: 2018-08-12 04:58
Last Updated: 2020-03-23 15:17

Latest Comments

Trollwut commented on 2020-01-20 17:12

I too have failed compiles when having ccache aktivated in /etc/makepkg.conf. Disabling it makes it compile as intended. (Thanks to @marmistrz for finding out!)

Is this a known problem and is there a way to fix it?

jgerecke commented on 2019-11-07 23:13

This package builds the "sccache-dist" binary (used for setting up your own servers), but does not install it. The following line needs to be added to the package() section of the PKGBUILD file:

install -D target/release/sccache-dist -t "$pkgdir"/usr/bin

EDIT: Also, this package does not mark itself as conflicting with the sccache-bin or sccache-git packages...

flacks commented on 2019-07-08 05:27

marmistrz, I'm building sccache as-is in a clean chroot without issue. I've also built pkgrel 1 on my system with the ccache flag for makepkg enabled without issue. Also, removing selenium-rs breaks the build. For sccache tests, there is a hard dependency on an older version of the openssl crate, hence the makedepends of openssl-1.0. I suggest trying to build in a clean chroot to see if you can replicate your error, because I can't. Post a patch if possible, and I'll investigate further.

marmistrz commented on 2019-07-07 18:24

Btw. the tests fail for me, probably because I have enabled ccache in makepkg.conf:

running 1 test
Starting sccache server...
test test_sccache_command ... FAILED


---- test_sccache_command stdout ----
thread 'test_sccache_command' panicked at 'Unexpected failure.
stderr=```error: failed to execute compile
caused by: Compiler not supported

command="/home/marcin/.cache/yay/sccache/src/sccache-0.2.9/target/x86_64-unknown-linux-gnu/release/sccache" "/usr/bin/ccache" "-c" "test.c" "-o" "test.o" code=2 stdout=``` stderr=error: failed to execute compile caused by: Compiler not supported

', /home/marcin/.cargo/registry/src/
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.


test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--test system'
==> ERROR: A failure occurred in check().
Error making: sccache

marmistrz commented on 2019-07-07 18:16

The only reason sccache doesn't build now without the openssl-1.0 tweaks is the dependency on selenium-rs, which is required only for tests. Thus, instead of depending on openssl-1.0 we could patch Cargo.toml to remove selenium-rs.