I was trying to add py311 compatibility for the Gentoo 0.20.2 package. FreeCAD itself builds with Python 3.11, but the runtime testing framework won't even start, so I decided against adding this option for the first 0.20.2 release.
The error I get is like
Code: Select all
>>> Test phase: media-gfx/freecad-0.20.2
unknown option --run-test
usage: ./bin/FreeCADCmd [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
Program received signal SIGSEGV, Segmentation fault.
#0 /usr/lib64/libc.so.6(+0x38a10) [0x7f524ba55a10]
#1 /usr/lib64/libc.so.6(+0x15d1f9) [0x7f524bb7a1f9]
#2 /usr/lib64/libpython3.11.so.1.0(+0x29ad77) [0x7f524b49ad77]
#3 /usr/lib64/libpython3.11.so.1.0(Py_EncodeLocale+0x49) [0x7f524b49b989]
#4 ./bin/FreeCADCmd(+0x350d) [0x55fc5fb0d50d]
#5 /usr/lib64/libc.so.6(+0x234a4) [0x7f524ba404a4]
#6 /usr/lib64/libc.so.6(__libc_start_main+0x94) [0x7f524ba40574]
#7 ./bin/FreeCADCmd(+0x3a61) [0x55fc5fb0da61]
>>> Completed testing media-gfx/freecad-0.20.2
which looks, without having done any research first, like python is being called without a version qualifier, i.e. like
python and not
python3.11, but could also be related to FC being not yet ready for Python 3.11.