Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392227 - sci-libs/scipy-0.9-r2 doesn't like sci-libs/superlu-4.3
Summary: sci-libs/scipy-0.9-r2 doesn't like sci-libs/superlu-4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-28 02:40 UTC by François Bissey
Modified: 2011-12-13 14:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description François Bissey 2011-11-28 02:40:27 UTC
Trying to rebuild scipy after updating to the latest superlu. I got the following:

x86_64-pc-linux-gnu-gcc: scipy/sparse/linalg/dsolve/_superlu_utils.c
x86_64-pc-linux-gnu-gcc: scipy/sparse/linalg/dsolve/_superluobject.c
scipy/sparse/linalg/dsolve/_superluobject.c: In function 'SciPyLU_getattr':
scipy/sparse/linalg/dsolve/_superluobject.c:151:29: warning: initialization from incompatible pointer type
scipy/sparse/linalg/dsolve/_superluobject.c:153:26: warning: assignment from incompatible pointer type
scipy/sparse/linalg/dsolve/_superluobject.c:155:5: warning: return from incompatible pointer type
scipy/sparse/linalg/dsolve/_superluobject.c:158:29: warning: initialization from incompatible pointer type
scipy/sparse/linalg/dsolve/_superluobject.c:160:26: warning: assignment from incompatible pointer type
scipy/sparse/linalg/dsolve/_superluobject.c:162:5: warning: return from incompatible pointer type
scipy/sparse/linalg/dsolve/_superluobject.c: In function 'iterrefine_cvt':
scipy/sparse/linalg/dsolve/_superluobject.c:592:5: error: 'SINGLE' undeclared (first use in this function)
scipy/sparse/linalg/dsolve/_superluobject.c:592:5: note: each undeclared identifier is reported only once for each function it appears in
scipy/sparse/linalg/dsolve/_superluobject.c:593:5: error: 'DOUBLE' undeclared (first use in this function)
scipy/sparse/linalg/dsolve/_superluobject.c:594:5: error: 'EXTRA' undeclared (first use in this function)
scipy/sparse/linalg/dsolve/_superluobject.c: In function 'SciPyLU_getattr':
scipy/sparse/linalg/dsolve/_superluobject.c:151:29: warning: initialization from incompatible pointer type
scipy/sparse/linalg/dsolve/_superluobject.c:153:26: warning: assignment from incompatible pointer type
scipy/sparse/linalg/dsolve/_superluobject.c:155:5: warning: return from incompatible pointer type
scipy/sparse/linalg/dsolve/_superluobject.c:158:29: warning: initialization from incompatible pointer type
scipy/sparse/linalg/dsolve/_superluobject.c:160:26: warning: assignment from incompatible pointer type
scipy/sparse/linalg/dsolve/_superluobject.c:162:5: warning: return from incompatible pointer type
scipy/sparse/linalg/dsolve/_superluobject.c: In function 'iterrefine_cvt':
scipy/sparse/linalg/dsolve/_superluobject.c:592:5: error: 'SINGLE' undeclared (first use in this function)
scipy/sparse/linalg/dsolve/_superluobject.c:592:5: note: each undeclared identifier is reported only once for each function it appears in
scipy/sparse/linalg/dsolve/_superluobject.c:593:5: error: 'DOUBLE' undeclared (first use in this function)
scipy/sparse/linalg/dsolve/_superluobject.c:594:5: error: 'EXTRA' undeclared (first use in this function)
error: Command "x86_64-pc-linux-gnu-gcc -pthread -O1 -march=native -pipe -ggdb -fPIC -DNO_ATLAS_INFO=1 -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c scipy/sparse/linalg/dsolve/_superluobject.c -o build-2.7/temp.linux-x86_64-2.7/scipy/sparse/linalg/dsolve/_superluobject.o" failed with exit status 1
 * ERROR: sci-libs/scipy-0.9.0-r2 failed (compile phase):
 *   Building failed with CPython 2.7 in distutils_building() function


I am guessing superlu has changed in a non-trivial way since we patched scipy with jlec. 

Reproducible: Always
Comment 1 Jacques Kvam 2011-11-30 03:46:36 UTC
There may be more to it than this but superlu changed some of their definitions. It should compile if you add these lines to superlu.patch.

--- scipy/sparse/linalg/dsolve/_superluobject.c.orig 2011-11-28 19:20:47.190117191 -0800
+++ scipy/sparse/linalg/dsolve/_superluobject.c  2011-11-28 19:21:11.034117954 -0800
@@ -589,9 +589,9 @@
 {
     ENUM_CHECK_INIT;
     ENUM_CHECK(NOREFINE);
-    ENUM_CHECK(SINGLE);
-    ENUM_CHECK(DOUBLE);
-    ENUM_CHECK(EXTRA);
+    ENUM_CHECK(SLU_SINGLE);
+    ENUM_CHECK(SLU_DOUBLE);
+    ENUM_CHECK(SLU_EXTRA);
     ENUM_CHECK_FINISH("invalid value for 'IterRefine' parameter");
 }
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2011-12-03 15:46:26 UTC
THanks for that tip. I will fix that soonish.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2011-12-13 14:16:03 UTC
+*scipy-0.9.0-r3 (13 Dec 2011)
+
+  13 Dec 2011; Justin Lecher <jlec@gentoo.org> +scipy-0.9.0-r3.ebuild,
+  +files/scipy-0.9.0-superlu-4.3.patch:
+  Add fix for changes in superlu-4.3, #392227
+