Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1717013 - blender fails to build with Python 3.8
Summary: blender fails to build with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: blender
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Luya Tshimbalanga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1718837
Blocks: F32FTBFS F32FailsToInstall PYTHON38 1734980
TreeView+ depends on / blocked
 
Reported: 2019-06-04 14:27 UTC by Miro Hrončok
Modified: 2019-10-17 09:21 UTC (History)
7 users (show)

Fixed In Version: 2.8.0-11
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-17 09:02:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2019-06-04 14:27:18 UTC
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/

Comment 1 Miro Hrončok 2019-06-04 14:28:33 UTC
See https://github.com/psycopg/psycopg2/issues/854 for the same bug with fix.

Comment 2 Luya Tshimbalanga 2019-06-08 16:04:28 UTC
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

Comment 3 Miro Hrončok 2019-07-10 14:33:17 UTC
Marcel maybe?

Comment 4 Marcel Plch 2019-07-15 13:47:07 UTC
Investigating.

Comment 5 Marcel Plch 2019-07-15 14:40:31 UTC
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

Comment 6 Luya Tshimbalanga 2019-07-22 08:56:31 UTC
Blender will release 2.80 in a few days. We will try testing again.

Comment 7 Ben Cotton 2019-08-13 18:58:37 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 8 Miro Hrončok 2019-08-14 22:24:54 UTC
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

Comment 9 Luya Tshimbalanga 2019-08-15 01:27:06 UTC
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

Comment 10 Luya Tshimbalanga 2019-08-15 03:19:15 UTC
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

Comment 11 Luya Tshimbalanga 2019-08-15 03:20:23 UTC
Failure on secondary architecture: ppc64le and s390x.

Comment 12 Luya Tshimbalanga 2019-08-15 04:14:14 UTC
And now rebuilding is on https://koji.fedoraproject.org/koji/taskinfo?taskID=37047556

Comment 13 Jan ONDREJ 2019-08-16 10:51:08 UTC
(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'

Comment 14 Miro Hrončok 2019-08-21 16:35:41 UTC
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.)

Comment 15 Miro Hrončok 2019-08-21 17:29:38 UTC
(Python 3.8 has landed in the rawhide buildroot.)

Comment 16 Luya Tshimbalanga 2019-10-05 17:37:14 UTC
(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.

Comment 17 Luya Tshimbalanga 2019-10-17 03:40:35 UTC
Added dependent report which include information about the fix.

Comment 18 Luya Tshimbalanga 2019-10-17 09:02:07 UTC
Closing this report as the built was successful.
https://bodhi.fedoraproject.org/updates/FEDORA-2019-4efb262af9

Comment 19 Miro Hrončok 2019-10-17 09:21:09 UTC
Thank you!


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