I disable usage of ccache. app-editors/neovim-0.9.0-r1 build process use ccache forcibly. Reproducible: Always Actual Results: Build failed. ccache: error: Failed to create temporary file for /???/ccache/7/8/215ba950u5mjkt7qsh6ja0mkpovs18sR.tmp.XXXXXX.tmp: Permission denied Expected Results: Build process MUST NOT USE ccache, if ccache is switched off.
Created attachment 861388 [details] emerge --info neovim
Created attachment 861389 [details] build log
@Bogdan, can you please share how you disabled usage of ccache/what changes did you make?
(In reply to listout from comment #3) > @Bogdan, can you please share how you disabled usage of ccache/what changes > did you make? FEATURES="-ccache" I think, then they saw neovim try to use it because ccache is simply installed.
ccache-config --remove-link FEATURES="-ccache" CCACHE_USE="NO" USE="-ccache" emerge -1 app-editors/neovim
I do a trick: remove ccache binary from system. Than neovim rebuilds success. Example: 1) mv /usr/bin/ccache /usr/bin/ccache1 2) emerge -1 neovim 3) --- success Next Example: 1) mv /usr/bin/ccache1 /usr/bin/ccache 2) FEATURES="-ccache" USE="-ccache" emerge -1 neovim 3) --- fail
Adding `-DCACHE_PRG=""` to `mycmakeargs` disables ccache.
ping!
Created attachment 905877 [details, diff] Patch to disable forced ccache I was hitting the same issue with neovim using ccache installed on the system, even if it wasn't configured to do so. This patch removes the code that makes cmake use ccache if it's installed.
I think patching out the ccache code it might be too much. The upstream has a way to disable it: https://github.com/neovim/neovim/blob/master/BUILD.md?plain=1#L21
Also I would change the title to "automagic ccache use".
(In reply to Filip Kobierski from comment #10) > I think patching out the ccache code it might be too much. > The upstream has a way to disable it: > https://github.com/neovim/neovim/blob/master/BUILD.md?plain=1#L21 No, that variable is from ccache itself.
I'm closing this issue as neovim 0.9.0 doesn't exist in our tree anymore. But if you are able to reproduce it with newer neovim's feel free to reopen.
(In reply to Brahmajit Das from comment #13) > I'm closing this issue as neovim 0.9.0 doesn't exist in our tree anymore. > But if you are able to reproduce it with newer neovim's feel free to reopen. Please don't close just because an old version is referenced. The automagic ccache use is clearly still there: https://github.com/neovim/neovim/blob/9d114b720514b0bde96dbdd9b6ef328d232a1589/cmake/Deps.cmake#L21.