On 09/19/2011 05:02 AM, Rubén Berenguel wrote:
But numpy is a probable dependence. I
need numpy! But it won't install natively without a little too much
trouble for my second installment of OpenWRT (I need a local toolchain
with gcc, probably also a gnu fortran compiler). Is there any reason
for numpy not available as a standard package?

the last error I got is, I have no idea how to fix it. attach is the patche for 
openwrt
makefile, and the '001-fix-fenv.h-path.patch' should be copy to 
'feeds/packages/lang/numpy/patches'


~~~~
mipsel-openwrt-linux-uclibc-gcc: 
build/src.linux-x86_64-2.6/numpy/core/src/npymath/ieee754.c
cc1: note: someone does not honour COPTS correctly, passed 2 times
{standard input}: Assembler messages:
{standard input}:18: Error: unrecognized opcode `fnstenv 8($sp)'
{standard input}:29: Error: unrecognized opcode `fldenv 8($sp)'
{standard input}:32: Error: unrecognized opcode `fwait'
cc1: note: someone does not honour COPTS correctly, passed 2 times
{standard input}: Assembler messages:
{standard input}:18: Error: unrecognized opcode `fnstenv 8($sp)'
{standard input}:29: Error: unrecognized opcode `fldenv 8($sp)'
{standard input}:32: Error: unrecognized opcode `fwait'
~~~~

if your system is 64bit, you can try use this SDK:
 
http://downloads.qi-hardware.com/software/images/NanoNote/Ben/latest/OpenWrt-SDK-xburst-for-Linux-x86_64-gcc-linaro_uClibc-0.9.32.tar.bz2

Index: Makefile
===================================================================
--- Makefile	(revision 28186)
+++ Makefile	(working copy)
@@ -8,11 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=numpy
-PKG_VERSION:=1.0.4
+PKG_VERSION:=1.6.1
 PKG_RELEASE:=1
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/numpy
-PKG_MD5SUM:=8f011e9d7697da570efaac61c51725e0
+PKG_MD5SUM:=2bce18c08fc4fce461656f0f4dd9103e
+#8f011e9d7697da570efaac61c51725e0
 
 include $(INCLUDE_DIR)/package.mk
 $(call include_mk, python-package.mk)
@@ -23,15 +24,18 @@
   CATEGORY:=Languages
   TITLE:=numpy
   URL:=http://numpy.sf.net
-  DEPENDS:=+python-mini @TARGET_x86||TARGET_olpc||TARGET_uml @BROKEN
+  DEPENDS:=+python-mini 
+#@TARGET_x86||TARGET_olpc||TARGET_uml @BROKEN
 endef
 
 define Package/numpy/description
   API to GTK and glade library from python
 endef
 
+CFLAGS += -I $(PKG_BUILD_DIR)/numpy/core/include/numpy/fenv/
+
 define Build/Compile
-	cd $(PKG_BUILD_DIR) ; $(CONFIGURE_VARS) $(MAKE_VARS) python2.5 ./setup.py install --prefix="$(PKG_INSTALL_DIR)/usr"
+	cd $(PKG_BUILD_DIR) ; $(CONFIGURE_VARS) $(MAKE_VARS) python ./setup.py install --prefix="$(PKG_INSTALL_DIR)/usr"
 endef
 
 define Package/numpy/install
@@ -43,9 +47,9 @@
 [ -e /usr/include/python2.5/pyconfig.h ]
 endef
 
-$(eval $(call Require,python25-dev, \
-	Please install Python 2.5 (including development headers and libraries) \
-))
+#$(eval $(call Require,python25-dev, \
+#	Please install Python 2.5 (including development headers and libraries) \
+#))
 
 $(eval $(call BuildPackage,numpy))
 
diff --git a/numpy/core/include/numpy/ufuncobject.h b/numpy/core/include/numpy/ufuncobject.h
index 34cd727..92b9c68 100644
--- a/numpy/core/include/numpy/ufuncobject.h
+++ b/numpy/core/include/numpy/ufuncobject.h
@@ -229,7 +229,7 @@ typedef struct _loop1d_info {
 
 #if defined(__GLIBC__) || defined(__APPLE__) || \
     defined(__MINGW32__) || defined(__FreeBSD__)
-#include <fenv.h>
+#include "fenv/fenv.h"
 #elif defined(__CYGWIN__)
 #include "fenv/fenv.c"
 #endif
diff --git a/numpy/core/src/npymath/ieee754.c.src b/numpy/core/src/npymath/ieee754.c.src
index 71be7b8..7ec36b5 100644
--- a/numpy/core/src/npymath/ieee754.c.src
+++ b/numpy/core/src/npymath/ieee754.c.src
@@ -585,7 +585,7 @@ void npy_set_floatstatus_invalid(void)
 
 # if defined(__GLIBC__) || defined(__APPLE__) || \
      defined(__MINGW32__) || defined(__FreeBSD__)
-#  include <fenv.h>
+#  include "numpy/fenv/fenv.h"
 # elif defined(__CYGWIN__)
 #  include "fenv/fenv.c"
 # endif
diff --git a/numpy/numarray/_capi.c b/numpy/numarray/_capi.c
index 446594d..678a010 100644
--- a/numpy/numarray/_capi.c
+++ b/numpy/numarray/_capi.c
@@ -10,7 +10,7 @@
 #endif
 
 #if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
-#include <fenv.h>
+#include "numpy/fenv/fenv.h"
 #elif defined(__CYGWIN__)
 #include "numpy/fenv/fenv.h"
 #include "numpy/fenv/fenv.c"
_______________________________________________
Qi Hardware Discussion List
Mail to list (members only): [email protected]
Subscribe or Unsubscribe: 
http://lists.en.qi-hardware.com/mailman/listinfo/discussion

Reply via email to