Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Compilation with Ccache and mingw32-make doesn't work #229

Closed
ArkadiuszMichalski opened this issue Jul 10, 2024 · 3 comments
Closed

Compilation with Ccache and mingw32-make doesn't work #229

ArkadiuszMichalski opened this issue Jul 10, 2024 · 3 comments

Comments

@ArkadiuszMichalski
Copy link

ArkadiuszMichalski commented Jul 10, 2024

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++".
@brechtsanders
Copy link
Owner

@ArkadiuszMichalski
Copy link
Author

I'm sure, this is another problem.

@ArkadiuszMichalski
Copy link
Author

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants