Open drahnr opened 3 years ago
Just tried running a simple compilation with -E
and it seems that both of my gcc and clang are happy, versions:
gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0
Ubuntu clang version 11.0.0-2
And I can confirm that this fails with ccache version 3.7.11
when running
xanewok@faerun-dev:~$ ccache -E file.c
ccache: invalid option -- 'E'
Whenever
ccache
is present in fedora, running aC
orC++
unittest, it fails consistently. I assumeCC
is set, and for testcases we should probably unset it - that interferes with sccache.Not sure if we need detection logic for that or not.
command=
"/media/supersonic1t/projects/sccache/target/debug/sccache" "/usr/bin/ccache" "-c" "test.c" "-o" "test.o"
code=2 stdout=``` stderr=
sccache: error: failed to execute compile sccache: caused by: Compiler not supported: "/usr/bin/ccache: invalid option -- \'E\'\nUsage:\n ccache [options]\n ccache compiler [compiler options]\n compiler [compiler options] (via symbolic link)\n\nCommon options:\n -c, --cleanup delete old files and recalculate size counters\n (normally not needed as this is done\n automatically)\n -C, --clear clear the cache completely (except configuration)\n --config-path PATH operate on configuration file PATH instead of the\n default\n -d, --directory PATH operate on cache directory PATH instead of the\n default\n --evict-older-than AGE remove files older than AGE (unsigned integer\n with a d (days) or s (seconds) suffix)\n -F, --max-files NUM set maximum number of files in cache to NUM (use\n 0 for no limit)\n -M, --max-size SIZE set maximum size of cache to SIZE (use 0 for no\n limit); available suffixes: k, M, G, T (decimal)\n and Ki, Mi, Gi, Ti (binary); default suffix: G\n -X, --recompress LEVEL recompress the cache to level LEVEL (integer or\n \"uncompressed\") using the Zstandard algorithm;\n see \"Cache compression\" in the manual for details\n -o, --set-config KEY=VAL set configuration item KEY to value VAL\n -x, --show-compression show compression statistics\n -p, --show-config show current configuration options in\n human-readable format\n -s, --show-stats show summary of configuration and statistics\n counters in human-readable format\n -z, --zero-stats zero statistics counters\n\n -h, --help print this help text\n -V, --version print version and copyright information\n\nOptions for scripting or debugging:\n --checksum-file PATH print the checksum (64 bit XXH3) of the file at\n PATH\n --dump-manifest PATH dump manifest file at PATH in text format\n --dump-result PATH dump result file at PATH in text format\n --extract-result PATH extract data stored in result file at PATH to the\n current working directory\n -k, --get-config KEY print the value of configuration key KEY\n --hash-file PATH print the hash (160 bit BLAKE3) of the file at\n PATH\n --print-stats print statistics counter IDs and corresponding\n values in machine-parsable format\n\nSee also the manual on https://ccache.dev/documentation.html.\n"