-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Compiling 3.13.1 fails when /usr/local/include/pyconfig.h is outdated #129019
Comments
I don't think we could reliably try and ignore |
The build system should prefer |
Using |
In the above gcc command, shown when entering |
Your compiler output does look a little off. There's no explicit include of
|
The build system does not prefer
I guess there's something bleeding in from your environment. The usual suspects would be |
I run ./configure --with-lto --enable-shared --without-static-libpython --prefix=/root/chroot-n/python --disable-ipv6 --enable-optimizations CFLAGS='--sysroot=/root/chroot-n -Ichr/include -Wl,--dynamic-linker=/chr/lib/ld-linux-x86-64.so.2' It produces the output below. Is it relavant, that this happens for the ./configure output
config.status
|
Is your |
The problem is that the invoked command
explicitly gives directories outside of the python source code priority, over include paths in the python source tree. That is in the above line |
If I understand correctly, this is a combination of a few issues:
So depending on what I think this would be fixed if we generated |
Compiling Python 3.13.1 with
$ ./configure --with-lto --enable-shared --without-static-libpython --prefix=/root/chroot-n/python --disable-ipv6 --enable-optimizations CFLAGS='--sysroot=/root/chroot-n -Ichr/include -Wl,--dynamic-linker=/chr/lib/ld-linux-x86-64.so.2' $ make
prints
My /usr/local/include/pyconfig.h is from 2016! After removing it, the compilation progresses.
The text was updated successfully, but these errors were encountered: