Python3 API no longer includes the functions refered in `python_run_simple_file()` and the build fails when compiling with `_WIN32` (mingw-w64 in my case). I could not find a simple workaround, I guess the function needs to be rewritten.
Could you post the exact error message, or perhaps try building the gdb 8.3 release branch? I think there were some changes in this area but I don't recall exactly what.
The errors are like 'PyFile_FromString: symbol not found'. Actually several such references are reported as missing. See the 'python_run_simple_file()' function in 'python.c', the 'else' part: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gdb/python/python.c;hb=HEAD#l342 I used the headers from the 3.7.2 Python 3 distribution. This is a known API incompatibility introduced by Python 3.
(In reply to Liviu Ionescu from comment #0) > Python3 API no longer includes the functions refered in > `python_run_simple_file()` and the build fails when compiling with `_WIN32` > (mingw-w64 in my case). > > I could not find a simple workaround, I guess the function needs to be > rewritten. I think this was fixed with: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=272044897e178835f596c96740c5a1800ec6f9fb
Thanks for pointing that out. I'm going to close this.