Bug 439959

Summary: Cannot compile Krita. I was able to compile it before on the same machine.
Product: [Applications] krita Reporter: Val <val.hoffman>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Val 2021-07-16 22:55:52 UTC
SUMMARY
Cannot compile Krita. Getting the following error:


[ 71%] Linking CXX executable kis_embedded_pattern_manager_test
sip: Py_ssize_t is undefined
make[2]: *** [plugins/extensions/pykrita/sip/CMakeFiles/python_module_PyKrita_krita.dir/build.make:98: plugins/extensions/pykrita/sip/krita/sipkritapart0.cpp] Error 1
make[2]: *** Deleting file 'plugins/extensions/pykrita/sip/krita/sipkritapart0.cpp'
make[1]: *** [CMakeFiles/Makefile2:31308: plugins/extensions/pykrita/sip/CMakeFiles/python_module_PyKrita_krita.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


STEPS TO REPRODUCE
1. Follow instructions on https://docs.krita.org/en/untranslatable_pages/building_krita.html until and including the running of `make` command.


OBSERVED RESULT
I'm getting the described error which seems to be related to sip. At the end of the log the following lines appear:
[ 71%] Built target kritatooltransform
make: *** [Makefile:141: all] Error 2


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2021-07-17 08:26:01 UTC
That's not a bug in Krita. You got an update to the latest version of sip 4, which is broken. And sip 4 is unmaintained, too.
Comment 2 Val 2021-07-17 10:35:46 UTC
Struggling a lot and trying to install different versions of sip with pyenv and pip  and recompiling doesn't seem to help.

Anyway any help / suggestions will be greatly appreciated!