Open worduk opened 1 week ago
When the build is made within the GitHub Actions, we do build binutils without python support, to make the resulting binary work on more systems.
Yes, I already noticed post #8 but the modification is necessary for non GitHub Actions CI builds.
I am quite surprised that you are having issues on Gentoo to be honest. We have the toolchain building and running just fine on many distributions. Are you sure you are not just missing some libraries? What is the error message you are seeing?
As you already know the reason for the --with-python=no
workaround is:
CXX python/py-infevents.o
../../gdb/python/py-gdb-readline.c: In function ‘char* gdbpy_readline_wrapper(FILE*, FILE*, const char*)’:
../../gdb/python/py-gdb-readline.c:59:29: error: ‘_PyOS_ReadlineTState’ was not declared in this scope; did you mean ‘PyOS_Readline’?
59 | PyEval_RestoreThread (_PyOS_ReadlineTState);
| ^~~~~~~~~~~~~~~~~~~~
| PyOS_Readline
CXX python/py-infthread.o
make[2]: *** [Makefile:1897: python/py-gdb-readline.o] Error 1
Removal of -ffat-lto-objects
and -flto
in pthread-embedded is necessary for gcc-stage2 and pspsdk to avoid No LTO compiled in or enabled
messages.
Current build succeeds with disabling
--with-python=no
forbinutils-gdb
and removal of-ffat-lto-objects
and-flto
inpthread-embedded/platform/psp/Makefile