[Buildroot] Suspected ccache Issue With wireshark

Dan Ambrosio dambrosio at outrider.ai
Thu Mar 24 15:38:04 UTC 2022


Hello,
I recently upgraded my buildroot project from 2021.02.6 to the latest
LTS (2022.02) and ran into a compilation error with the wireshark
package when BR2_CCACHE is enabled.

It seems like a cmake argument is being passed through to ccache.

>>> wireshark 3.4.12 Building
PATH="/home/builder/output/oc_general/host/bin:/home/builder/output/oc_general/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
 /usr/bin/make -j17  -C
/home/builder/output/oc_general/build/wireshark-3.4.12/
[  0%] Building C object tools/lemon/CMakeFiles/lemon.dir/lemon.c.o
/home/builder/output/oc_general/host/bin/ccache: invalid option -- 'D'
Usage:
    ccache [options]
    ccache compiler [compiler options]
    compiler [compiler options]          (via symbolic link)

Common options:
    -c, --cleanup             delete old files and recalculate size counters
                              (normally not needed as this is done
                              automatically)
    -C, --clear               clear the cache completely (except configuration)
    -F, --max-files=N         set maximum number of files in cache to N (use 0
                              for no limit)
    -M, --max-size=SIZE       set maximum size of cache to SIZE (use 0 for no
                              limit); available suffixes: k, M, G, T (decimal)
                              and Ki, Mi, Gi, Ti (binary); default suffix: G
    -p, --show-config         show current configuration options in
                              human-readable format
    -s, --show-stats          show summary of configuration and statistics
                              counters in human-readable format
    -z, --zero-stats          zero statistics counters

    -h, --help                print this help text
    -V, --version             print version and copyright information

Options for scripting or debugging:
        --dump-manifest=PATH  dump manifest file at PATH in text format
    -k, --get-config=K        print the value of configuration key K
        --hash-file=PATH      print the hash (<MD4>-<size>) of the file at PATH
        --print-stats         print statistics counter IDs and corresponding
                              values in machine-parsable format
    -o, --set-config=K=V      set configuration item K to value V

See also <https://ccache.dev>.
[  0%] Built target cli_main
make[4]: *** [tools/lemon/CMakeFiles/lemon.dir/build.make:66:
tools/lemon/CMakeFiles/lemon.dir/lemon.c.o] Error 1
make[3]: *** [CMakeFiles/Makefile2:10914:
tools/lemon/CMakeFiles/lemon.dir/all] Error 2

FYI, 2021.02.6 did not exhibit this behavior.

Thanks,

Dan Ambrosio



More information about the buildroot mailing list