I was able to compile Python 3.12 from source code on openBSD 7.4. However,
after upgrade to 7.5 the compile process crashes with core dump:

cc -pthread   -g  -Wl,--export-dynamic -o Programs/_testembed
Programs/_testembed.o -L. -lpython3.12 -lpthread  -lutil
     -lm
_testembed.c:1848
(./Programs/_testembed.c:1848)(Programs/_testembed.o:(test_init_use_frozen_modules)):
warning: wcscpy() is almost always misused, please use wcslcpy()
sed -e "s,/usr/bin/env
python3,/home/kabiraatmonallabs/Execution/Runtime/bin/python3.12," <
./Tools/scripts/2to3 > build/scripts-3.12/2to3-3.12
sed -e "s,/usr/bin/env
python3,/home/kabiraatmonallabs/Execution/Runtime/bin/python3.12," <
./Tools/scripts/idle3 > build/scripts-3.12/idle3.12
sed -e "s,/usr/bin/env
python3,/home/kabiraatmonallabs/Execution/Runtime/bin/python3.12," <
./Tools/scripts/pydoc3 > build/scripts-3.12/pydoc3.12
Illegal instruction (core dumped)
gmake[2]: *** [Makefile:1142: checksharedmods] Error 132
gmake[2]: Leaving directory
'/home/kabiraatmonallabs/Execution/Runtime/Python-3.12.2'
gmake[1]: *** [Makefile:793: profile-gen-stamp] Error 2
gmake[1]: Leaving directory
'/home/kabiraatmonallabs/Execution/Runtime/Python-3.12.2'
gmake: *** [Makefile:805: profile-run-stamp] Error 2

  I am unable to find a proper debugger into which to load the python.core
generated after core dump, so can't provide any useful debug info.
I don't think this is due to some changes in Python code that is creating
the core dump. Any ideas would be helpful.

Thanks
Sandeep

Reply via email to