steve-cs / gnat-builder

Makefile for downloading and building gnat from github source
2 stars 2 forks source link

gps not working with python3 #33

Open steve-cs opened 3 years ago

steve-cs commented 3 years ago

Changing "python-is-python2" to "python-is-python3", i.e. defaulting to python3 results in link failure of gps-main.adb

   [link]         gps-main.adb
/usr/bin/ld: /home/steve/gnat-builder/gps-build/lal/obj/lal-core_module.o: in function `lal__core_module__get_analysis_unit_shell':
/home/steve/gnat-builder/gps-build/lal/core/lal-core_module.adb:77: undefined reference to `PyInt_FromSize_t'
/usr/bin/ld: /usr/local/lib/gnatcoll_python.relocatable//libgnatcoll_python.so: undefined reference to `PyUnicodeUCS4_FromString'
/usr/bin/ld: /usr/local/lib/gnatcoll_python.relocatable//libgnatcoll_python.so: undefined reference to `PyUnicodeUCS4_AsEncodedString'
/usr/bin/ld: /usr/local/lib/gnatcoll_python.relocatable//libgnatcoll_python.so: undefined reference to `PyFile_FromString'
collect2: error: ld returned 1 exit status
gprbuild: link of gps-main.adb failed
gprbuild: failed command was: /usr/local/bin/gcc gps-main.o @/tmp/GNAT-TEMP-000226.TMP
make[2]: *** [Makefile:46: all] Error 4

First step is to remove all of python2 from Makefile depends. Then look at gnatcoll-bindings and see if we need to change some python3 there.

steve-cs commented 3 years ago

Eliminating all python2 doesn't change anything. Building gnatcoll-bindings python3 submodule instead of python submodule causes a runtime crash after displaying splash screeen.

Unhandled Exception raised
raised STORAGE_ERROR : s-intman.adb:136 explicit raise
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnarl-11.so]
0x7f00b0f65334 system__interrupt_management__notify_exception at ???
[/lib/x86_64-linux-gnu/libpthread.so.0]
0x7f00b21df3be
[/usr/local/lib64/libgcc_s.so.1]
0x7f00b0ad93b6 uw_frame_state_for at ???
0x7f00b0adb0d2 _Unwind_Backtrace at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnat-11.so]
0x7f00b0e59401 __gnat_backtrace at ???
0x7f00b0dd532b system__traceback__call_chain__2 at ???
0x7f00b0dd5373 system__traceback__call_chain at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnarl-11.so]
0x7f00b0f65334 system__interrupt_management__notify_exception at ???
[/lib/x86_64-linux-gnu/libpthread.so.0]
0x7f00b21df3be
[/usr/local/lib64/libgcc_s.so.1]
0x7f00b0ad93b6 uw_frame_state_for at ???
0x7f00b0adb0d2 _Unwind_Backtrace at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnat-11.so]
0x7f00b0e59401 __gnat_backtrace at ???
0x7f00b0dd532b system__traceback__call_chain__2 at ???
0x7f00b0dd5373 system__traceback__call_chain at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnarl-11.so]
0x7f00b0f65334 system__interrupt_management__notify_exception at ???
[/lib/x86_64-linux-gnu/libpthread.so.0]
0x7f00b21df3be
[/usr/local/lib64/libgcc_s.so.1]
0x7f00b0ad93b6 uw_frame_state_for at ???
0x7f00b0adb0d2 _Unwind_Backtrace at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnat-11.so]
0x7f00b0e59401 __gnat_backtrace at ???
0x7f00b0dd532b system__traceback__call_chain__2 at ???
0x7f00b0dd5373 system__traceback__call_chain at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnarl-11.so]
0x7f00b0f65334 system__interrupt_management__notify_exception at ???
[/lib/x86_64-linux-gnu/libpthread.so.0]
0x7f00b21df3be
[/usr/local/lib64/libgcc_s.so.1]
0x7f00b0ad93b6 uw_frame_state_for at ???
0x7f00b0adb0d2 _Unwind_Backtrace at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnat-11.so]
0x7f00b0e59401 __gnat_backtrace at ???
0x7f00b0dd532b system__traceback__call_chain__2 at ???
0x7f00b0dd5373 system__traceback__call_chain at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnarl-11.so]
0x7f00b0f65334 system__interrupt_management__notify_exception at ???
[/lib/x86_64-linux-gnu/libpthread.so.0]
0x7f00b21df3be
[/usr/local/lib64/libgcc_s.so.1]
0x7f00b0ad93b6 uw_frame_state_for at ???
0x7f00b0adb0d2 _Unwind_Backtrace at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnat-11.so]
0x7f00b0e59401 __gnat_backtrace at ???
0x7f00b0dd532b system__traceback__call_chain__2 at ???
0x7f00b0dd5373 system__traceback__call_chain at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnarl-11.so]
0x7f00b0f65334 system__interrupt_management__notify_exception at ???
[/lib/x86_64-linux-gnu/libpthread.so.0]
0x7f00b21df3be
[/usr/local/lib64/libgcc_s.so.1]
0x7f00b0ad93b6 uw_frame_state_for at ???
0x7f00b0adb0d2 _Unwind_Backtrace at ???
0x7f00b0adbede ??? at ???

Unhandled Exception raised
raised PROGRAM_ERROR : adjust/finalize raised GNATCOLL.VFS.VFS_INVALID_FILE_ERROR: gnatcoll-vfs.adb:340
[/usr/local/bin/gnatstudio]
0x17ccdfb ada_main__finalize_library at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnarl-11.so]
0x7f00b0f6e936 system__tasking__stages__finalize_global_tasks at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnat-11.so]
0x7f00b0c67d28 __gnat_last_chance_handler at ???
0x7f00b0c693c6 ada__exceptions__exception_traces__unhandled_exception_terminateXn at ???
0x7f00b0c69182 __gnat_unhandled_except_handler at ???
0x7f00b0e5a04a __gnat_cleanupunwind_handler at ???
[/usr/local/lib64/libgcc_s.so.1]
0x7f00b0ada5df _Unwind_ForcedUnwind_Phase2 at ???
0x7f00b0adac20 _Unwind_ForcedUnwind at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnat-11.so]
0x7f00b0c6912e ada__exceptions__exception_propagation__propagate_gcc_exceptionXn at ???
0x7f00b0c69143 ada__exceptions__exception_propagation__propagate_exceptionXn at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnarl-11.so]
0x7f00b0f65334 system__interrupt_management__notify_exception at ???
[/lib/x86_64-linux-gnu/libpthread.so.0]
0x7f00b21df3be
[/usr/local/lib64/libgcc_s.so.1]
0x7f00b0ad93b6 uw_frame_state_for at ???
0xfffffffffffffffe

Unhandled Exception raised
raised PROGRAM_ERROR : adjust/finalize raised GNATCOLL.VFS.VFS_INVALID_FILE_ERROR: gnatcoll-vfs.adb:340
[/usr/local/lib/libadalang.relocatable/libadalang.so]
0x7f00b87c1ffe adalangmain__finalize_library at ???
0x7f00b87c2025 adalangfinal at ???
[/lib64/ld-linux-x86-64.so.2]
0x7f00b9c43f59
[/lib/x86_64-linux-gnu/libc.so.6]
0x7f00b0920a25
0x7f00b0920bde
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnat-11.so]
0x7f00b0e57307 __gnat_os_exit at ???
0x7f00b0c67e5b __gnat_last_chance_handler at ???
0x7f00b0c693c6 ada__exceptions__exception_traces__unhandled_exception_terminateXn at ???
0x7f00b0c69182 __gnat_unhandled_except_handler at ???
0x7f00b0e5a04a __gnat_cleanupunwind_handler at ???
[/usr/local/lib64/libgcc_s.so.1]
0x7f00b0ada5df _Unwind_ForcedUnwind_Phase2 at ???
0x7f00b0adaea3 _Unwind_Resume at ???
[/usr/local/bin/gnatstudio]
0x17ccdfb ada_main__finalize_library at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnarl-11.so]
0x7f00b0f6e936 system__tasking__stages__finalize_global_tasks at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnat-11.so]
0x7f00b0c67d28 __gnat_last_chance_handler at ???
0x7f00b0c693c6 ada__exceptions__exception_traces__unhandled_exception_terminateXn at ???
0x7f00b0c69182 __gnat_unhandled_except_handler at ???
0x7f00b0e5a04a __gnat_cleanupunwind_handler at ???
[/usr/local/lib64/libgcc_s.so.1]
0x7f00b0ada5df _Unwind_ForcedUnwind_Phase2 at ???
0x7f00b0adac20 _Unwind_ForcedUnwind at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnat-11.so]
0x7f00b0c6912e ada__exceptions__exception_propagation__propagate_gcc_exceptionXn at ???
0x7f00b0c69143 ada__exceptions__exception_propagation__propagate_exceptionXn at ???
[/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/adalib/libgnarl-11.so]
0x7f00b0f65334 system__interrupt_management__notify_exception at ???
[/lib/x86_64-linux-gnu/libpthread.so.0]
0x7f00b21df3be
[/usr/local/lib64/libgcc_s.so.1]
0x7f00b0ad93b6 uw_frame_state_for at ???
[/usr/local/lib/libadalang.relocatable/libadalang.so]
0x7f00b88de956 ??? at ???