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.

Title: Build error with option "--with-pydebug" on Mac OS 10.13.6
Type: compile error Stage: resolved
Components: Build Versions: Python 3.8
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: matrixise, xiang.zhang, yuwu
Priority: normal Keywords:

Created on 2018-08-01 17:38 by yuwu, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg322877 - (view) Author: Yu Wu (yuwu) Date: 2018-08-01 17:38
I'm encountering a build error from the master branch of CPython (heads/master-dirty:d17fe275a3) on Mac OS 10.13.6, with "--with-pydebug" turned on. 

The error message:

./python.exe -E -S -m sysconfig --generate-posix-vars ;\
	if test $? -ne 0 ; then \
		echo "generate-posix-vars failed" ; \
		rm -f ./pybuilddir.txt ; \
		exit 1 ; \
Assertion failed: (TYPE(ch) == test || TYPE(ch) == test_nocond || TYPE(ch) == star_expr), function seq_for_testlist, file Python/ast.c, line 1205.
/bin/sh: line 1: 34527 Abort trap: 6           ./python.exe -E -S -m sysconfig --generate-posix-vars
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1
msg323138 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2018-08-05 08:47
I could not find the specific commit you mentioned on master branch. Maybe you are on a customized branch(what is master-dirty)?
msg323140 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2018-08-05 08:55
Could you retry with a make distclean && ./configure --with-debug && make ?

To be sure.
msg323141 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2018-08-05 09:08
Hi Yu,

I am going to close this issue because

1. there is no master-dirty branch
2. your hash commit: d17fe275a3 does not exist in the CPython repository
3. I just downloaded the last revision of CPython and compile it on a 10.13.4 OSX and I don't have your issue.

Maybe you should clean your working directory with make distclean and restart with ./configure --with-debug && make

Thank you for your feedback, and re-open this issue if you have again the problem with the master branch.
Date User Action Args
2022-04-11 14:59:04adminsetgithub: 78491
2018-08-05 09:22:16xiang.zhangsetresolution: rejected -> not a bug
2018-08-05 09:08:11matrixisesetstatus: open -> closed
resolution: rejected
messages: + msg323141

stage: resolved
2018-08-05 08:55:43matrixisesetnosy: + matrixise
messages: + msg323140
2018-08-05 08:47:41xiang.zhangsetnosy: + xiang.zhang
messages: + msg323138
2018-08-01 17:38:45yuwucreate