[ccache] ccache test failures

Joel Rosdahl joel at rosdahl.net
Thu Mar 15 20:51:04 UTC 2018

On 15 March 2018 at 20:33, Forte, Greg via ccache
<ccache at lists.samba.org> wrote:
> I've run into a few failures with 'make test' after building ccache and I'm
> hoping someone here has insight into what might be causing them, or can
> provide some leads on how to investigate further. [...]

I suspect that you have CCACHE_HASHDIR set in your environment and that

        while read name; do
            unset $name
        done <<EOF
    $(env | sed -n 's/^\(CCACHE_[A-Z0-9_]*\)=.*$/\1/p')

in ccache's test/run doesn't do what it's supposed to (unset all CCACHE_*
environment variables) on your system.

What does

    env | sed -n 's/^\(CCACHE_[A-Z0-9_]*\)=.*$/\1/p'

return for you? If it looks OK, you can try running the test suite like this:

    bash -x test/run debug_prefix_map

I have CCACHE_DIR set in my environment and the output of the above command
includes this:

    + TEST 'Mapping of debug info CWD'
    + CURRENT_TEST='Mapping of debug info CWD'
    ++ env
    ++ sed -n 's/^\(CCACHE_[A-Z0-9_]*\)=.*$/\1/p'
    + read name
    + unset CCACHE_DIR

Note the “unset”.

> IMPORTANT: The information contained in this email and/or its attachments is
> confidential. [...]

Are you sure that you are allowed to post to public lists from your email
address? :-P

-- Joel

More information about the ccache mailing list