Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bring back jumbo-build to qtwebengine please
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sitquietly
Apprentice
Apprentice


Joined: 23 Oct 2010
Posts: 150
Location: On the Wolf River, Tennessee

PostPosted: Tue Mar 02, 2021 8:48 am    Post subject: Reply with quote

DaggyStyle wrote:
...
have you considered using ccache?


If anyone here has experience using ccache with portage please let us know if it works out well -- I use ccache when building FreeBSD ports (using clang) and it's a life-saver for webengine. Building webengine the first time takes forever (about 18 hours as I recall -- on my Ivy Bridge i5 with 32 GB ddr3 ram), and a rebuild with ccache finished in as little as 18 minutes (but typically several hours).

Do you recommend I use ccache on Gentoo?
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Thu Mar 04, 2021 6:28 am    Post subject: Reply with quote

sitquietly wrote:
DaggyStyle wrote:
...
have you considered using ccache?


If anyone here has experience using ccache with portage please let us know if it works out well -- I use ccache when building FreeBSD ports (using clang) and it's a life-saver for webengine. Building webengine the first time takes forever (about 18 hours as I recall -- on my Ivy Bridge i5 with 32 GB ddr3 ram), and a rebuild with ccache finished in as little as 18 minutes (but typically several hours).

Do you recommend I use ccache on Gentoo?

look here: https://wiki.gentoo.org/wiki/Ccache

I don't use ccache, I prefer compiling anything from scratch even if it means the output will be the same.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Hund
Apprentice
Apprentice


Joined: 18 Jul 2016
Posts: 218
Location: Sweden

PostPosted: Thu Mar 04, 2021 9:15 am    Post subject: Reply with quote

DaggyStyle wrote:
sitquietly wrote:
DaggyStyle wrote:
...
have you considered using ccache?


If anyone here has experience using ccache with portage please let us know if it works out well -- I use ccache when building FreeBSD ports (using clang) and it's a life-saver for webengine. Building webengine the first time takes forever (about 18 hours as I recall -- on my Ivy Bridge i5 with 32 GB ddr3 ram), and a rebuild with ccache finished in as little as 18 minutes (but typically several hours).

Do you recommend I use ccache on Gentoo?

look here: https://wiki.gentoo.org/wiki/Ccache

I don't use ccache, I prefer compiling anything from scratch even if it means the output will be the same.


Why's that? I don't use ccache myself, but it looks interesting if you can save time and money.
_________________
Collect memories, not things.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22626

PostPosted: Thu Mar 04, 2021 5:31 pm    Post subject: Reply with quote

ccache is great when it works, but leads to weird problems when it fails. Unfortunately, enough high-profile packages misbehave with it that standard doctrine now is that you only use ccache on packages which are specifically known to work, rather than using it everywhere.

As a complication, ccache works best when the same files are rebuilt regularly. If you build too many packages with ccache before coming back to one that has been done before, the cached files you need may have expired, and you get no benefit. Regardless of whether you get any benefit, there is always a small cost to maintaining the cache.
Back to top
View user's profile Send private message
Hund
Apprentice
Apprentice


Joined: 18 Jul 2016
Posts: 218
Location: Sweden

PostPosted: Thu Mar 04, 2021 6:26 pm    Post subject: Reply with quote

Hu wrote:
ccache is great when it works, but leads to weird problems when it fails. Unfortunately, enough high-profile packages misbehave with it that standard doctrine now is that you only use ccache on packages which are specifically known to work, rather than using it everywhere.

As a complication, ccache works best when the same files are rebuilt regularly. If you build too many packages with ccache before coming back to one that has been done before, the cached files you need may have expired, and you get no benefit. Regardless of whether you get any benefit, there is always a small cost to maintaining the cache.


Thank you for the information!
_________________
Collect memories, not things.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum