winlibs_mingw icon indicating copy to clipboard operation
winlibs_mingw copied to clipboard

Compilation with Ccache and mingw32-make doesn't work

Open ArkadiuszMichalski opened this issue 1 year ago • 2 comments

I'm trying to compile locally Notepad++ by using WinLibs + Ccache + mingw32-make and get such error:

ccache g++ -DNDEBUG -I ../include -I ../src -I ../../boostregex --std=c++17 -Wpedantic -Wall -Wextra -O3 -DSCI_OWNREGEX -c ../src/AutoComplete.cxx -o ../../PowerEditor/gcc/bin.x86_64.build/_scintilla.build/AutoComplete.occache: error: No such file or directory
mingw32-make[1]: *** [makefile:74: ../../PowerEditor/gcc/bin.x86_64.build/_scintilla.build/AutoComplete.o] Error 1
mingw32-make[1]: *** Waiting for unfinished jobs....

The same code compiles without any problems by using Github Action and Msys2. https://github.com/ArkadiuszMichalski/notepad-plus-plus/actions/runs/8859141894/job/24328608354 image

I tried using the same version of Ccache and mingw32-make.exe as in Msys2, but it didn't help.

Can anyone confirm that also experiencing this problem?

Step to reproduce:

  1. Download WinLibs and set system Path variable to WinLibs/bin.
  2. Download Notepad++ repository.
  3. In Notepad++\PowerEditor\gcc folder invoke mingw32-make CXX="ccache g++".

ArkadiuszMichalski avatar Jul 10 '24 09:07 ArkadiuszMichalski

Are you sure this is not a duplicate of one of these?

  • https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14902
  • https://github.com/brechtsanders/winlibs_mingw/issues/183

brechtsanders avatar Jul 10 '24 09:07 brechtsanders

I'm sure, this is another problem.

ArkadiuszMichalski avatar Jul 10 '24 09:07 ArkadiuszMichalski

I checked it more precisely and determined that I was setting the CCACHE_DIR variable incorrectly (in combination with other commands it unnecessarily added a space at the end, I had to surround the whole thing with ""). Sorry for the confusion.

ArkadiuszMichalski avatar Jul 13 '24 22:07 ArkadiuszMichalski