On 6/08/12 03:00, Alexander Hansen wrote:
> I get the following failure:
[]
> gcc: build/src.macosx-10.7-x86_64-3.2/numpy/core/src/scalarmathmodule.c
> numpy/core/src/scalarmathmodule.c.src:1626:5: error: non-void function
> 'PyInit_scalarmath' should return a value [-Wreturn-type]
> import_umath();
> ^
> build/src.macosx-10.7-x86_64-3.2/numpy/core/include/numpy/__ufunc_api.h:265:152:
> note: expanded from macro 'import_umath'
> #define import_umath() { UFUNC_NOFPE if (_import_umath() < 0)
> {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.umath
> failed to import"); return; }}
The workaround is given right there: One has to place the flag
"-Wreturn-type" on the compiler line. Then the error is transformed into
a warning that can be ignored.
--
Martin
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users