Bug 439959 - Cannot compile Krita. I was able to compile it before on the same machine.
Summary: Cannot compile Krita. I was able to compile it before on the same machine.
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-16 22:55 UTC by Val
Modified: 2021-07-17 10:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!