Created attachment 1568353 [details] Full build log from COPR python3-typed_ast-1.3.1-1.fc31 fails to build in Fedora rawhide with Python 3.8. The problem is a missing header file so it might be caused by a missing dependency: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -Iast27/Include -I/usr/include/python3.8 -c ast27/Parser/acceler.c -o build/temp.linux-x86_64-3.8/ast27/Parser/acceler.o BUILDSTDERR: ast27/Parser/acceler.c:13:10: fatal error: pgenheaders.h: No such file or directory BUILDSTDERR: 13 | #include "pgenheaders.h" BUILDSTDERR: | ^~~~~~~~~~~~~~~ BUILDSTDERR: compilation terminated. BUILDSTDERR: error: command 'gcc' failed with exit status 1 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.ZaMfkv (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.ZaMfkv (%build) Child return code was: 1 EXCEPTION: [Error()]
Hello. Unfortunately, disabling tests is not a proper fix here because, as you can see in the build log, the problem is in the build phase and it's (probably) caused by missing header file. Could you please take a look on it again?
I've dived into this problem deeper and it seems that it's caused by missing pgenhearders.h file which was entirely removed from Python 3.8. Upstream issue: https://bugs.python.org/issue36623 Upstream issue about pgen itself: https://bugs.python.org/issue35808 Upstream commit: https://github.com/python/cpython/commit/f2cf1e3e2892a6326949c2570f1bb6d6c95715fb I am going to check how this change is handled in the upstream of typed_ast.
pgenheaders.h file was removed in 3.8a4 - in previous 3.8a3 it's still present
Looks like this is fixed upstream: https://github.com/python/typed_ast/commit/2c1b6c4e0d83f4f1ef3035af03beead614b912d2
1.3.5 seems to do the trick.
JFYI you enabled tests back but the command you have in the %check section actually runs zero tests. https://kojipkgs.fedoraproject.org//packages/python3-typed_ast/1.3.5/1.fc31/data/logs/x86_64/build.log
Odd. I'll look into that.