Bug 1898158 - mod_wsgi fails to build with Python 3.10: fatal error: node.h: No such file or directory
Summary: mod_wsgi fails to build with Python 3.10: fatal error: node.h: No such file o...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: mod_wsgi
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Runge
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2020-11-16 14:43 UTC by Miro Hrončok
Modified: 2021-02-09 16:23 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description Miro Hrončok 2020-11-16 14:43:38 UTC
mod_wsgi fails to build with Python 3.10.0a2.

+ /usr/bin/make -O -j2 V=1 VERBOSE=1
/usr/lib64/httpd/build/vendor-apxs -Wl,-export-symbols-regex -Wl,wsgi_module -c -I/usr/include/python3.10 -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -D_GNU_SOURCE -D_GNU_SOURCE -D_GNU_SOURCE  -Wc,-O2 -Wc,-flto=auto -Wc,-ffat-lto-objects -Wc,-fexceptions -Wc,-g -Wc,-grecord-gcc-switches -Wc,-pipe -Wc,-Wall -Wc,-Werror=format-security -Wc,-Wp,-D_FORTIFY_SOURCE=2 -Wc,-Wp,-D_GLIBCXX_ASSERTIONS -Wc,-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wc,-fstack-protector-strong -Wc,-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wc,-m64 -Wc,-mtune=generic -Wc,-fasynchronous-unwind-tables -Wc,-fstack-clash-protection -Wc,-fcf-protection -Wc,-fno-strict-aliasing  src/server/mod_wsgi.c src/server/wsgi_*.c -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld  -L/usr/lib64 -L/usr/lib64 -L/usr/lib64/python3.10/config  -lpython3.10 -lcrypt -lpthread -ldl  -lutil -lm -lm
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -I/usr/include/python3.10 -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -D_GNU_SOURCE -D_GNU_SOURCE -D_GNU_SOURCE  -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch src/server/mod_wsgi.slo
In file included from src/server/mod_wsgi.c:22:
src/server/wsgi_python.h:44:10: fatal error: node.h: No such file or directory
   44 | #include "node.h"
      |          ^~~~~~~~
compilation terminated.

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01757168-mod_wsgi/

For all our attempts to build mod_wsgi with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/mod_wsgi/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2020-11-16 15:02:23 UTC
This seem to be related to the removal of the old parser: https://bugs.python.org/issue40939

Comment 2 Ben Cotton 2021-02-09 15:25:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.


Note You need to log in before you can comment on or make changes to this bug.