https://bugzilla.redhat.com/show_bug.cgi?id=1717013
Bug ID: 1717013 Summary: blender fails to build with Python 3.8 Product: Fedora Version: rawhide Status: NEW Component: blender Severity: high Assignee: luya_tfz@thefinalzone.net Reporter: mhroncok@redhat.com QA Contact: extras-qa@fedoraproject.org CC: design-devel@lists.fedoraproject.org, kwizart@gmail.com, luya_tfz@thefinalzone.net, negativo17@gmail.com, promac@gmail.com Blocks: 1686977 (PYTHON38) Target Milestone: --- Classification: Fedora
bledner 1:2.79b-17.fc30 fails to build with Python 3.8.0a4+,
[ 71%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/gpu.c.o cd /builddir/build/BUILD/blender-2.79b/cmake-make/source/blender/python/intern && /usr/bin/cc -DBUILD_DATE -DNDEBUG -DWITH_ALEMBIC -DWITH_AUDASPACE -DWITH_AVI -DWITH_BULLET -DWITH_CINEON -DWITH_COLLADA -DWITH_COMPOSITOR -DWITH_CYCLES -DWITH_DDS -DWITH_FRAMESERVER -DWITH_FREESTYLE -DWITH_GAMEENGINE -DWITH_GLU -DWITH_GL_PROFILE_COMPAT -DWITH_HDR -DWITH_INPUT_NDOF -DWITH_INTERNATIONAL -DWITH_JACK -DWITH_LIBMV -DWITH_MOD_BOOLEAN -DWITH_MOD_FLUID -DWITH_MOD_REMESH -DWITH_OCEANSIM -DWITH_OCIO -DWITH_OPENAL -DWITH_OPENEXR -DWITH_OPENIMAGEIO -DWITH_OPENJPEG -DWITH_PLAYER -DWITH_PYTHON_SAFETY -DWITH_SDL -DWITH_SMOKE -DWITH_SNDFILE -DWITH_TIFF -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2__ -D__SSE__ -I/builddir/build/BUILD/blender-2.79b/source/blender/python -I/builddir/build/BUILD/blender-2.79b/source/blender/blenkernel -I/builddir/build/BUILD/blender-2.79b/source/blender/blenlib -I/builddir/build/BUILD/blender-2.79b/source/blender/blenloader -I/builddir/build/BUILD/blender-2.79b/source/blender/blentranslation -I/builddir/build/BUILD/blender-2.79b/source/blender/editors/include -I/builddir/build/BUILD/blender-2.79b/source/blender/gpu -I/builddir/build/BUILD/blender-2.79b/source/blender/imbuf -I/builddir/build/BUILD/blender-2.79b/source/blender/makesdna -I/builddir/build/BUILD/blender-2.79b/source/blender/makesrna -I/builddir/build/BUILD/blender-2.79b/source/blender/windowmanager -I/builddir/build/BUILD/blender-2.79b/intern/cycles/blender -I/builddir/build/BUILD/blender-2.79b/intern/opencolorio -I/builddir/build/BUILD/blender-2.79b/intern/guardedalloc -I/builddir/build/BUILD/blender-2.79b/source/blender/freestyle/intern/python -I/builddir/build/BUILD/blender-2.79b/source/blender/alembic -I/builddir/build/BUILD/blender-2.79b/source/blender/imbuf/intern/oiio -isystem /usr/include/python3.8 -isystem /usr/include/SDL2 -Wall -Wcast-align -Werror=implicit-function-declaration -Werror=return-type -Werror=vla -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wlogical-op -Wundef -Winit-self -Wnonnull -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wformat-signedness -Wuninitialized -Wredundant-decls -Wshadow -Wno-error=unused-but-set-variable -Wimplicit-fallthrough=5 -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 -fuse-ld=gold -fopenmp -std=gnu11 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -msse2 -DNDEBUG -o CMakeFiles/bf_python.dir/gpu.c.o -c /builddir/build/BUILD/blender-2.79b/source/blender/python/intern/gpu.c /builddir/build/BUILD/blender-2.79b/source/blender/python/intern/gpu.c: In function 'GPU_initPython': /builddir/build/BUILD/blender-2.79b/source/blender/python/intern/gpu.c:326:53: error: dereferencing pointer to incomplete type 'PyInterpreterState' {aka 'struct _is'} 326 | PyObject *sys_modules = PyThreadState_GET()->interp->modules; | ^~ make[2]: *** [source/blender/python/intern/CMakeFiles/bf_python.dir/build.make:66: source/blender/python/intern/CMakeFiles/bf_python.dir/gpu.c.o] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/blender-2.79b/cmake-make' make[1]: *** [CMakeFiles/Makefile2:6532: source/blender/python/intern/CMakeFiles/bf_python.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/builddir/build/BUILD/blender-2.79b/cmake-make'
I've seen this error fixed in another project(s) before, will just need to remember where.
Logs and mock config at:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/blender/ https://copr.fedorainfracloud.org/coprs/g/python/python3.8/
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1686977 [Bug 1686977] Python 3.8
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
--- Comment #1 from Miro Hrončok mhroncok@redhat.com --- See https://github.com/psycopg/psycopg2/issues/854 for the same bug with fix.
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
--- Comment #2 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- Can someone propose a patch for that purpose? I am not familiar with that line
/builddir/build/BUILD/blender-2.79b/source/blender/python/intern/gpu.c: In function 'GPU_initPython': /builddir/build/BUILD/blender-2.79b/source/blender/python/intern/gpu.c:326:53: error: dereferencing pointer to incomplete type 'PyInterpreterState' {aka 'struct _is'} 326 | PyObject *sys_modules = PyThreadState_GET()->interp->modules;
Thanks
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
Miro Hrončok mhroncok@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mplch@redhat.com Flags| |needinfo?(mplch@redhat.com)
--- Comment #3 from Miro Hrončok mhroncok@redhat.com --- Marcel maybe?
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
Marcel Plch mplch@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(mplch@redhat.com) |
--- Comment #4 from Marcel Plch mplch@redhat.com --- Investigating.
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
Marcel Plch mplch@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1718837
--- Comment #5 from Marcel Plch mplch@redhat.com --- This is currently blocked by vtk.
Problem: package OpenImageIO-2.0.8-1.fc31.x86_64 requires libopencv_core.so.3.4()(64bit), but none of the providers can be installed - package OpenImageIO-2.0.8-1.fc31.x86_64 requires libopencv_imgproc.so.3.4()(64bit), but none of the providers can be installed - package OpenImageIO-2.0.8-1.fc31.x86_64 requires libopencv_videoio.so.3.4()(64bit), but none of the providers can be installed - package opencv-core-3.4.6-5.fc31.x86_64 requires libvtkCommonCore.so.1()(64bit), but none of the providers can be installed
...
- package opencv-core-3.4.4-10.fc31.x86_64 requires libvtkRenderingGL2PSOpenGL2.so.1()(64bit), but none of the providers can be installed - package opencv-core-3.4.4-10.fc31.x86_64 requires libvtkRenderingLOD.so.1()(64bit), but none of the providers can be installed - package opencv-core-3.4.4-10.fc31.x86_64 requires libvtkRenderingOpenGL2.so.1()(64bit), but none of the providers can be installed - package vtk-8.2.0-4.fc31.x86_64 requires libpython3.7m.so.1.0()(64bit), but none of the providers can be installed
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1718837 [Bug 1718837] vtk fails to build with Python 3.8
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
--- Comment #6 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- Blender will release 2.80 in a few days. We will try testing again.
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
Ben Cotton bcotton@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|rawhide |31
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
--- Comment #7 from Ben Cotton bcotton@redhat.com --- This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle. Changing version to 31.
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
--- Comment #8 from Miro Hrončok mhroncok@redhat.com --- The coordinated rebuild of Python 3.8 has started in the `f32-python` side tag.
If you figure out how to rebuild this package, please don't rebuild it in regular rawhide, but use the side tag instead:
on branch master: $ fedpkg build --target=f32-python
To wait for a build to show up in the side tag, do:
$ koji wait-repo f32-python --build=<nvr>
Where <nvr> is name-version-release of the source package, e.g. python-foo-1.1-2.fc32.
An updated mock config is posted at: http://copr.fedorainfracloud.org/coprs/g/python/python3.8/
Note that it will take a while before the essential packages are rebuilt, so don't expect all your dependencies to be available right away.
Thanks. Let us know if you need up to date info, or if you have any questions.
PS this message is mass posted to all the bugs that block the PYTHON38 bug. If this is also a Fedora 31 FTBFS bug and you manage to fix it, you can do a f31 build as usual:
on branch f31: $ fedpkg build
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
--- Comment #9 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- Rawhide was broken due to failed glibc dependency. Blender 2.80 is pushed to rawhide branch for trying out: https://src.fedoraproject.org/rpms/blender/blob/master/f/blender.spec
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
--- Comment #10 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- Blender 2.80 is now updated on the source. The build is successfully on x86_64 but failed on secondary architectures. https://koji.fedoraproject.org/koji/taskinfo?taskID=37046677
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
--- Comment #11 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- Failure on secondary architecture: ppc64le and s390x.
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
--- Comment #12 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- And now rebuilding is on https://koji.fedoraproject.org/koji/taskinfo?taskID=37047556
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
Jan ONDREJ ondrejj@salstar.sk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ondrejj@salstar.sk
--- Comment #13 from Jan ONDREJ ondrejj@salstar.sk --- (In reply to Luya Tshimbalanga from comment #12)
And now rebuilding is on https://koji.fedoraproject.org/koji/taskinfo?taskID=37047556
Trying to rebuild and use this on Fedora 30. Builds OK, starts OK, but menus are missing and unable to do anything. Just lot's of these messages on console:
WARN (wm.keymap): /builddir/build/BUILD/blender-2.80/source/blender/windowmanager/intern/wm_keymap.c:467 WM_keymap_poll: empty keymap 'Window' WARN (wm.keymap): /builddir/build/BUILD/blender-2.80/source/blender/windowmanager/intern/wm_keymap.c:467 WM_keymap_poll: empty keymap 'Screen'
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
--- Comment #14 from Miro Hrončok mhroncok@redhat.com --- The f32-python side tag has been merged. In order to rebuild the package, do it in regular rawhide, but please wait until python3-3.8 is tagged:
$ koji wait-repo f32-build --build python3-3.8.0~b3-3.fc32
If your built already started in f32-python, after it is finished, please tag it to rawhide with:
$ koji tag-build f32-pending <nvr>
For example:
$ koji tag-build f32-pending libreoffice-6.3.0.4-3.fc32
Thanks!
(This comment is mass posted to all bugzillas blocking the PYTHON38 tracking bug.)
https://bugzilla.redhat.com/show_bug.cgi?id=1717013 Bug 1717013 depends on bug 1718837, which changed state.
Bug 1718837 Summary: vtk fails to build with Python 3.8 https://bugzilla.redhat.com/show_bug.cgi?id=1718837
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |RAWHIDE
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
--- Comment #16 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- (In reply to Jan ONDREJ from comment #13)
(In reply to Luya Tshimbalanga from comment #12)
And now rebuilding is on https://koji.fedoraproject.org/koji/taskinfo?taskID=37047556
Trying to rebuild and use this on Fedora 30. Builds OK, starts OK, but menus are missing and unable to do anything. Just lot's of these messages on console:
WARN (wm.keymap): /builddir/build/BUILD/blender-2.80/source/blender/windowmanager/intern/ wm_keymap.c:467 WM_keymap_poll: empty keymap 'Window' WARN (wm.keymap): /builddir/build/BUILD/blender-2.80/source/blender/windowmanager/intern/ wm_keymap.c:467 WM_keymap_poll: empty keymap 'Screen'
The issue related to the menu should be fixed with the latest update.
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
Luya Tshimbalanga luya_tfz@thefinalzone.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Blocks| |1734980
--- Comment #17 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- Added dependent report which include information about the fix.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1734980 [Bug 1734980] blender: FTBFS in Fedora rawhide/f31
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
Luya Tshimbalanga luya_tfz@thefinalzone.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Fixed In Version| |2.8.0-11 Resolution|--- |RAWHIDE Last Closed| |2019-10-17 09:02:07
--- Comment #18 from Luya Tshimbalanga luya_tfz@thefinalzone.net --- Closing this report as the built was successful. https://bodhi.fedoraproject.org/updates/FEDORA-2019-4efb262af9
https://bugzilla.redhat.com/show_bug.cgi?id=1717013
--- Comment #19 from Miro Hrončok mhroncok@redhat.com --- Thank you!
design-devel@lists.fedoraproject.org