This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Regenerating the configure script fails even if dependencies are satisfied
Type: compile error Stage: resolved
Components: Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: christian.heimes Nosy List: brett.cannon, christian.heimes, miss-islington, pablogsal
Priority: normal Keywords: patch

Created on 2021-05-04 16:58 by pablogsal, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 29935 merged christian.heimes, 2021-12-06 08:31
PR 29937 merged miss-islington, 2021-12-06 12:19
PR 29938 merged christian.heimes, 2021-12-06 12:21
PR 30117 merged christian.heimes, 2021-12-15 10:59
Messages (15)
msg392920 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-05-04 16:58
I have installed autoconf-archive and autoconf 2.69 and tried to regenerate the configure script and it fails:


$ ls /share/aclocal/ax_* | wc -l
572

$ autoconf --version
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

$ autoreconf -v -f -i
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /opt/bb/bin/autoconf --force
autoreconf: running: /opt/bb/bin/autoheader --force
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `.'

$ ./configure
configure: error: Please install autoconf-archive package and re-run autoreconf
msg392921 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-05-04 16:59
Reverting https://github.com/python/cpython/commit/5d6e8c1c1a5f667cdce99cb3c563ac922198678d works
msg392922 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-05-04 17:06
Also:

grep -r AX_C_FLOAT_WORDS_BIGENDIAN /share/aclocal/
ax_c_float_words_bigendian.m4:#   AX_C_FLOAT_WORDS_BIGENDIAN([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN])
ax_c_float_words_bigendian.m4:AC_DEFUN([AX_C_FLOAT_WORDS_BIGENDIAN],
ax_c_float_words_bigendian.m4:])# AX_C_FLOAT_WORDS_BIGENDIAN
msg392924 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-05-04 17:24
Dpes /opt/bb/bin/autoconf pick up the files in /share/aclocal? Both are rather unusual file locations.
msg392930 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-05-04 17:44
Yep, I am also setting ACLOCAL_PATH to make sure it picks it up. 

To be honest I think this has to be something about the weird setup in this machine but I think more people may run into this so it may be worth to include this in the News entry and close the issue once I figure it out
msg392931 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-05-04 17:59
I got you covered:

$ podman run -v.:/src:Z tiran/cpython_autoconf
$ docker run -v.:/src tiran/cpython_autoconf
msg392932 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-05-04 18:08
Container image definition is at https://github.com/tiran/cpython_autoconf

I propose to test this a bit, get feedback, and then move the code and image to python infrastructure. I chose Alpine because it's the least controversial one.
msg393276 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-05-08 18:32
Pablo, could you please give the container a try?
msg393281 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-05-08 19:28
Seems to work like a charm:

❯ docker run -v`pwd`:/src tiran/cpython_autoconf
Rebuilding configure script
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `.'
Done
msg407794 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-12-06 12:19
New changeset 98fac8bc183c113903403793ffe411358ee40d8a by Christian Heimes in branch 'main':
bpo-44035: Check autoconf files thoroughly (GH-29935)
https://github.com/python/cpython/commit/98fac8bc183c113903403793ffe411358ee40d8a
msg407797 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-12-06 12:47
New changeset 1528d249a5f8492801d09755f402618688337006 by Miss Islington (bot) in branch '3.10':
[3.10] bpo-44035: Check autoconf files thoroughly (GH-29935) (GH-29937)
https://github.com/python/cpython/commit/1528d249a5f8492801d09755f402618688337006
msg407798 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-12-06 12:48
New changeset f147248795bf22be05bbc891053d60ef6a2f035d by Christian Heimes in branch '3.9':
[3.9] bpo-44035: Check autoconf files thoroughly (GH-29935) (GH-29938)
https://github.com/python/cpython/commit/f147248795bf22be05bbc891053d60ef6a2f035d
msg408789 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-12-17 15:17
New changeset da8cf8a74714f4cc34fb768345cb1caf9dcddd62 by Christian Heimes in branch 'main':
bpo-44035: Show git diff after autoreconf and regen (GH-30117)
https://github.com/python/cpython/commit/da8cf8a74714f4cc34fb768345cb1caf9dcddd62
msg414114 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2022-02-26 20:01
For me it took `docker run -v (pwd):/src quay.io/tiran/cpython_autoconf` (on fish and didn't run `docker pull` ahead of time).

@tiran are you  okay if we document your image and how to run it at https://devguide.python.org/setup/?highlight=autoconf#regenerate-configure ?
msg414833 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2022-03-10 09:04
PS: You have to use the "269" tag to get the correct container image. The "latest" image was outdated and I removed it.

    docker run -v (pwd):/src quay.io/tiran/cpython_autoconf:269
History
Date User Action Args
2022-04-11 14:59:45adminsetgithub: 88201
2022-03-10 09:04:38christian.heimessetmessages: + msg414833
2022-02-26 20:01:19brett.cannonsetnosy: + brett.cannon
messages: + msg414114
2021-12-17 15:17:59christian.heimessetmessages: + msg408789
2021-12-15 10:59:37christian.heimessetpull_requests: + pull_request28339
2021-12-06 12:50:28christian.heimessetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: + Python 3.9
2021-12-06 12:48:58christian.heimessetmessages: + msg407798
2021-12-06 12:47:51christian.heimessetmessages: + msg407797
2021-12-06 12:21:33christian.heimessetpull_requests: + pull_request28162
2021-12-06 12:19:30christian.heimessetmessages: + msg407794
2021-12-06 12:19:14miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request28161
2021-12-06 08:31:51christian.heimessetkeywords: + patch
stage: patch review
pull_requests: + pull_request28159
2021-05-08 19:28:40pablogsalsetmessages: + msg393281
2021-05-08 18:32:54christian.heimessetmessages: + msg393276
2021-05-04 18:08:19christian.heimessetassignee: christian.heimes
type: compile error
messages: + msg392932
versions: + Python 3.10, Python 3.11
2021-05-04 17:59:33christian.heimessetmessages: + msg392931
2021-05-04 17:44:35pablogsalsetmessages: + msg392930
2021-05-04 17:24:20christian.heimessetmessages: + msg392924
2021-05-04 17:06:07pablogsalsetmessages: + msg392922
2021-05-04 16:59:06pablogsalsetmessages: + msg392921
2021-05-04 16:58:34pablogsalcreate