Bug 16951 - Python 3.5: include/pyatomic.h is incompatible with OpenMP (compilation of blender fails)
Summary: Python 3.5: include/pyatomic.h is incompatible with OpenMP (compilation of bl...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Philippe Makowski
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-13 10:26 CEST by David GEIGER
Modified: 2015-10-13 22:06 CEST (History)
0 users

See Also:
Source RPM: python3-3.5.0-4.mga6.src.rpm
CVE:
Status comment:


Attachments
upstream_pyatomic-2.patch (1.83 KB, text/plain)
2015-10-13 10:32 CEST, David GEIGER
Details

Description David GEIGER 2015-10-13 10:26:23 CEST
I tried to build blender 2.75a and now 2.76 on BS but compilation fails due to an upstream known issue in new python 3.5.0 package:

https://bugs.python.org/issue25150

on BS I get:
-------------------------------------------
In file included from /usr/include/python3.5m/Python.h:53:0,
                 from /home/iurt/rpmbuild/BUILD/blender-2.76/source/blender/python/intern/gpu.c:40:
/usr/include/python3.5m/pyatomic.h:35:5: sorry, unimplemented: '_Atomic' with OpenMP
     _Atomic void *_value;
     ^
source/blender/python/intern/CMakeFiles/bf_python.dir/build.make:62: recipe for target 'source/blender/python/intern/CMakeFiles/bf_python.dir/gpu.c.o' failed
make[2]: *** [source/blender/python/intern/CMakeFiles/bf_python.dir/gpu.c.o] Error 1
CMakeFiles/Makefile2:6615: recipe for target 'source/blender/python/intern/CMakeFiles/bf_python.dir/all' failed
make[1]: *** [source/blender/python/intern/CMakeFiles/bf_python.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
--------------------------------------------

I opened a new bug in upstream blender bug tracker and they confirm that this build issue come from python 3.5.0:

https://developer.blender.org/T46464

So 2 solutions for now: 
- in a first time patching 'Python 3.5.0' 
- and in a second time upgrading to' Python 3.5.1' which will include this fix.

 

Reproducible: 

Steps to Reproduce:
David GEIGER 2015-10-13 10:26:38 CEST

Assignee: bugsquad => makowski.mageia

Comment 1 David GEIGER 2015-10-13 10:32:54 CEST
Created attachment 7120 [details]
upstream_pyatomic-2.patch

attached upstream proposed patch for python 3.5.0
Comment 2 David GEIGER 2015-10-13 10:36:10 CEST
archlinux already applied this patch in their python 3.5.0 package:

https://projects.archlinux.org/svntogit/packages.git/tree/trunk/issue25150.patch?h=packages/python
Comment 3 Philippe Makowski 2015-10-13 11:10:53 CEST
Link to upstream bug :
http://bugs.python.org/issue25150

Link to upstream patch :
https://hg.python.org/cpython/rev/d4fcb362f7c6
Comment 4 Philippe Makowski 2015-10-13 14:17:48 CEST
done in python3-3.5.0-5.mga6

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 5 David GEIGER 2015-10-13 22:06:06 CEST
Thanks Philippe!

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