Bug 8396 - CCACHE initialization
Summary: CCACHE initialization
Status: RESOLVED WORKSFORME
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All All
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-13 07:50 UTC by sv99
Modified: 2015-10-13 08:06 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
patch (460 bytes, patch)
2015-10-13 07:55 UTC, sv99
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sv99 2015-10-13 07:50:54 UTC
In the Makefile 

372: ifeq ($(BR2_CCACHE),y)
373    CCACHE := $(HOST_DIR)/usr/bin/ccache

$(HOST_DIR) ???
Comment 1 sv99 2015-10-13 07:52:27 UTC
ccache worked, but wery long output - in each line full path to the
Comment 2 sv99 2015-10-13 07:55:57 UTC
Created attachment 6181 [details]
patch
Comment 3 Thomas Petazzoni 2015-10-13 08:06:20 UTC
Thanks for your bug report.

However, your patch is incorrect: we don't want to use /usr/bin/ccache, but the ccache that Buildroot builds in $(HOST_DIR). So the current code is perfectly correct.

HOST_DIR is defined in the main Makefile:

HOST_DIR := $(BASE_DIR)/host

If you have an issue with the ccache support, could you instead report 1/ the Buildroot configuration you've used and 2/ the last ~100 lines of build output. This way we can see if there is indeed something broken in Buildroot or some other issue.