* [Buildroot] still trusting ccache ? @ 2013-11-25 21:13 Sagaert Johan 2013-11-26 22:11 ` Arnout Vandecappelle 0 siblings, 1 reply; 4+ messages in thread From: Sagaert Johan @ 2013-11-25 21:13 UTC (permalink / raw) To: buildroot Hi all; Last weekend I had an strange build error building libglib when ccache was enabled: (something thread related) - A clean build with ccache on -> Failed - A clean build with ccache off -> Ok - Deleted the whole buildroot-ccache directory tree - A clean build with ccache on -> Ok !! In my build I only gain 3 minutes (10%) in time. I have some doubts on trusting ccache after this experience. So I think that some un-reproducable build errors could be ccache related as well. PS I noticed that besides .buildroot-ccache there is also a .ccache created when building. Regards Sagaert Johan ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] still trusting ccache ? 2013-11-25 21:13 [Buildroot] still trusting ccache ? Sagaert Johan @ 2013-11-26 22:11 ` Arnout Vandecappelle 2013-11-26 23:01 ` Yann E. MORIN 2013-11-27 9:43 ` Sagaert Johan 0 siblings, 2 replies; 4+ messages in thread From: Arnout Vandecappelle @ 2013-11-26 22:11 UTC (permalink / raw) To: buildroot On 25/11/13 22:13, Sagaert Johan wrote: > > Hi all; > > Last weekend I had an strange build error building libglib when ccache was enabled: > (something thread related) > > - A clean build with ccache on -> Failed > - A clean build with ccache off -> Ok > - Deleted the whole buildroot-ccache directory tree > - A clean build with ccache on -> Ok !! Is it possible that you changed compiler? We have disabled hashing the compiler in ccache about a year ago, but the result of that is that the cached results are wrong when you switch to a different compiler. One big problem is that in the current situation, changing the compiler isn't even detected if you switch output directory. Fortunately, ccache still hashes the basename of the compiler, so when you switch architectures, ccache will not use the wrong object files. There has been a discussion about this a couple of weeks ago [1] so the situation will hopefully change again in the near future. [1] http://lists.busybox.net/pipermail/buildroot/2013-November/083028.html > In my build I only gain 3 minutes (10%) in time. If you don't gain anything, there's certainly no point to use ccache of course. Other people have reported much larger gains. > I have some doubts on trusting ccache after this experience. > > So I think that some un-reproducable build errors could be ccache related as well. I don't think that any of the autobuilders use ccache. Though perhaps they should, so we would detect these problems. But at the moment it wouldn't be a good idea because we know it would fail :-) > > PS I noticed that besides .buildroot-ccache there is also a .ccache created when building. Hm, that's strange... Regards, Arnout > > Regards > Sagaert Johan > > > > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot > > -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] still trusting ccache ? 2013-11-26 22:11 ` Arnout Vandecappelle @ 2013-11-26 23:01 ` Yann E. MORIN 2013-11-27 9:43 ` Sagaert Johan 1 sibling, 0 replies; 4+ messages in thread From: Yann E. MORIN @ 2013-11-26 23:01 UTC (permalink / raw) To: buildroot Arnout, Sagaert, All, On 2013-11-26 23:11 +0100, Arnout Vandecappelle spake thusly: > On 25/11/13 22:13, Sagaert Johan wrote: > >PS I noticed that besides .buildroot-ccache there is also a .ccache created when building. > > Hm, that's strange... I confirm that a ~/.ccache dir is created. However, the only files there are 'stat' files: $ find ~/.ccache -type f .ccache/0/stats .ccache/2/stats .ccache/3/stats .ccache/4/stats .ccache/5/stats .ccache/6/stats .ccache/7/stats .ccache/8/stats .ccache/9/stats .ccache/CACHEDIR.TAG .ccache/a/stats .ccache/b/stats .ccache/c/stats .ccache/d/stats .ccache/e/stats .ccache/f/stats $ du -hs ~/.ccache 132K /home/ymorin/.ccache I do not know why it would not store its statistics in ~/.buildroot-ccache although it looks like harmless. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] still trusting ccache ? 2013-11-26 22:11 ` Arnout Vandecappelle 2013-11-26 23:01 ` Yann E. MORIN @ 2013-11-27 9:43 ` Sagaert Johan 1 sibling, 0 replies; 4+ messages in thread From: Sagaert Johan @ 2013-11-27 9:43 UTC (permalink / raw) To: buildroot Hi Arnout, Could be GCC version related, I have some projects that use other GCC versions and I did'nt clean the cache the last year I think. Another problem is that is that : make distclean make someconfig_defconfig ( <-------- one with ccache enabled ) make uclibc-menuconfig ( <-- not working ) Regards, Johan -----Oorspronkelijk bericht----- Van: Arnout Vandecappelle [mailto:arnout at mind.be] Verzonden: dinsdag 26 november 2013 23:11 Aan: Sagaert Johan CC: buildroot@busybox.net Onderwerp: Re: [Buildroot] still trusting ccache ? On 25/11/13 22:13, Sagaert Johan wrote: > > Hi all; > > Last weekend I had an strange build error building libglib when ccache was enabled: > (something thread related) > > - A clean build with ccache on -> Failed > - A clean build with ccache off -> Ok > - Deleted the whole buildroot-ccache directory tree > - A clean build with ccache on -> Ok !! Is it possible that you changed compiler? We have disabled hashing the compiler in ccache about a year ago, but the result of that is that the cached results are wrong when you switch to a different compiler. One big problem is that in the current situation, changing the compiler isn't even detected if you switch output directory. Fortunately, ccache still hashes the basename of the compiler, so when you switch architectures, ccache will not use the wrong object files. There has been a discussion about this a couple of weeks ago [1] so the situation will hopefully change again in the near future. [1] http://lists.busybox.net/pipermail/buildroot/2013-November/083028.html > In my build I only gain 3 minutes (10%) in time. If you don't gain anything, there's certainly no point to use ccache of course. Other people have reported much larger gains. > I have some doubts on trusting ccache after this experience. > > So I think that some un-reproducable build errors could be ccache related as well. I don't think that any of the autobuilders use ccache. Though perhaps they should, so we would detect these problems. But at the moment it wouldn't be a good idea because we know it would fail :-) > > PS I noticed that besides .buildroot-ccache there is also a .ccache created when building. Hm, that's strange... Regards, Arnout > > Regards > Sagaert Johan > > > > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot > > -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-27 9:43 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-11-25 21:13 [Buildroot] still trusting ccache ? Sagaert Johan 2013-11-26 22:11 ` Arnout Vandecappelle 2013-11-26 23:01 ` Yann E. MORIN 2013-11-27 9:43 ` Sagaert Johan
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.