Bug 1102773 - FTBFS with Python3 >= 3.4
Summary: FTBFS with Python3 >= 3.4
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-scikit-learn
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sergio Pascual
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-29 14:15 UTC by Björn Esser (besser82)
Modified: 2014-06-04 08:37 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-06-04 08:37:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Björn Esser (besser82) 2014-05-29 14:15:06 UTC
FTBFS with the following log output [1]:

building 'sklearn.cluster._k_means' extension
compiling C sources
C compiler: gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC
compile options: '-DATLAS_INFO="\"3.10.1\"" -I/usr/lib64/python3.4/site-packages/numpy/core/include -I/usr/include -I/usr/lib64/python3.4/site-packages/numpy/core/include -I/usr/include/python3.4m -c'
gcc: sklearn/cluster/_k_means.c
In file included from /usr/lib64/python3.4/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0,
                 from /usr/lib64/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/lib64/python3.4/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from sklearn/cluster/_k_means.c:315:
/usr/lib64/python3.4/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
sklearn/cluster/_k_means.c: In function '__Pyx_TraceSetupAndCall':
sklearn/cluster/_k_means.c:7955:17: error: 'PyFrameObject' has no member named 'f_tstate'
         (*frame)->f_tstate = tstate;
                 ^
In file included from /usr/lib64/python3.4/site-packages/numpy/core/include/numpy/ufuncobject.h:327:0,
                 from sklearn/cluster/_k_means.c:316:
sklearn/cluster/_k_means.c: At top level:
/usr/lib64/python3.4/site-packages/numpy/core/include/numpy/__ufunc_api.h:241:1: warning: '_import_umath' defined but not used [-Wunused-function]
 _import_umath(void)
 ^
Partial import of sklearn during the build process.
In file included from /usr/lib64/python3.4/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0,
                 from /usr/lib64/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/lib64/python3.4/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from sklearn/cluster/_k_means.c:315:
/usr/lib64/python3.4/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
sklearn/cluster/_k_means.c: In function '__Pyx_TraceSetupAndCall':
sklearn/cluster/_k_means.c:7955:17: error: 'PyFrameObject' has no member named 'f_tstate'
         (*frame)->f_tstate = tstate;
                 ^
In file included from /usr/lib64/python3.4/site-packages/numpy/core/include/numpy/ufuncobject.h:327:0,
                 from sklearn/cluster/_k_means.c:316:
sklearn/cluster/_k_means.c: At top level:
/usr/lib64/python3.4/site-packages/numpy/core/include/numpy/__ufunc_api.h:241:1: warning: '_import_umath' defined but not used [-Wunused-function]
 _import_umath(void)
 ^
error: Command "gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC -DATLAS_INFO="\"3.10.1\"" -I/usr/lib64/python3.4/site-packages/numpy/core/include -I/usr/include -I/usr/lib64/python3.4/site-packages/numpy/core/include -I/usr/include/python3.4m -c sklearn/cluster/_k_means.c -o build/temp.linux-x86_64-3.4/sklearn/cluster/_k_means.o" failed with exit status 1
error: Bad exit status from /var/tmp/rpm-tmp.QmYtJ0 (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.QmYtJ0 (%build)
Child return code was: 1


[1]  http://koji.fedoraproject.org/koji/buildinfo?buildID=520315

Comment 1 Sergio Pascual 2014-06-04 08:37:29 UTC
Now it works

https://koji.fedoraproject.org/koji/buildinfo?buildID=520824


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