ci: use compiler version in ccache compiler check #24500

pull div72 wants to merge 1 commits into bitcoin:master from div72:ci-specify-compilercheck changing 1 files +1 −0
  1. div72 commented at 5:12 AM on March 8, 2022: none

    compiler_check (CCACHE_COMPILERCHECK) By default, ccache includes the modification time (“mtime”) and size of the compiler in the hash to ensure that results retrieved from the cache are accurate. If compiler plugins are used, these plugins will also be added to the hash. This option can be used to select another strategy.

    https://ccache.dev/manual/latest.html#_configuration_options

    Since platforms like CI install toolchains on every run, ccache's default option for using mtime causes ccache to not utilize the cache. This PR uses a several years old environment variable to use the version output from the compiler instead.

  2. ci: use compiler version in ccache compiler check 628bf62ad2
  3. DrahtBot added the label Tests on Mar 8, 2022
  4. hebasto commented at 7:16 AM on March 8, 2022: member

    @div72

    Since platforms like CI install toolchains on every run, ccache's default option for using mtime causes ccache to not utilize the cache.

    Why do you think so? Logs are ok, for example:

    ccache version 4.5.1
    Summary:
      Hits:             701 /  703 (99.72 %)
        Direct:         701 /  703 (99.72 %)
        Preprocessed:     0 /    2 (0.00 %)
      Misses:             2
        Direct:           2
        Preprocessed:     2
      Uncacheable:       15
    Primary storage:
      Hits:            1403 / 1406 (99.79 %)
      Misses:             3
      Cache size (GB): 0.18 / 0.20 (88.81 %)
    
  5. div72 commented at 2:25 PM on March 8, 2022: none

    @hebasto Extremely low hit rates of https://cirrus-ci.com/task/4649004356075520?logs=ci#L3253 and https://cirrus-ci.com/task/5211954309496832?logs=ci#L2946 irked me but considering other tasks do not share this issue, it's probably unrelated. Closing.

  6. div72 closed this on Mar 8, 2022

  7. hebasto commented at 2:52 PM on April 7, 2022: member

    @hebasto Extremely low hit rates of https://cirrus-ci.com/task/4649004356075520?logs=ci#L3253 and https://cirrus-ci.com/task/5211954309496832?logs=ci#L2946 irked me but considering other tasks do not share this issue, it's probably unrelated. Closing.

    For macOS cross-compiling builds see #24620.

  8. DrahtBot locked this on Apr 7, 2023
Contributors
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-02 03:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me