Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error. #1

Open
yujie6 opened this issue Mar 5, 2020 · 3 comments
Open

Build error. #1

yujie6 opened this issue Mar 5, 2020 · 3 comments

Comments

@yujie6
Copy link

yujie6 commented Mar 5, 2020

Thanks for your work. But I encountered some problems😭.

./python/python.c:1757:45: error: too few arguments to function ‘int _PyImport_FixupBuiltin(PyObject*, const char*, PyObject*)’
 1757 |   _PyImport_FixupBuiltin (gdb_module, "_gdb");

Btw, the toolchain I'm using is

gcc version 9.2.1 20200130 (Arch Linux 9.2.1+20200130-2)
@danirod
Copy link
Contributor

danirod commented Mar 5, 2020

Hi, thank you for your bug report. By looking at a Google search, it seems this is an issue with gdb using a private Python API that has been removed from recent Python 3 versions.

I think I'll be able to have a look at this over the weekend. Unfortunately I'm a little busy at this moment with other projects, plus I need to bootstrap a VM with Arch Linux as I haven't used Arch in a long time.

Until then, I'd like to know: what version if i386-elf-gdb are you trying to build? My PKGBUILD is pinned to version 7.12, but there have been releases since then (I should update my PKGBUILDs anyway). My equivalent Homebrew formula is pinned to version 8.1. Do you find any success if you replace the pkgver and sha256sums present in my PKGBUILD over those present in the formula (version and sha256).

@yujie6
Copy link
Author

yujie6 commented Mar 5, 2020

Thanks for your quick response!!

I'm trying to build version higher than 7.9.1. I tried replacing pkgver and sha256sums, but still got
exactly the same error. Would it be ok if I try the newest version?

@yujie6
Copy link
Author

yujie6 commented Mar 5, 2020

It seems that this problem was fixed in gdb-8.1.50 link
So I tried version 8.2 and it works well! Thanks again for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants