I'm trying to make a port for scipy, but there's a problem I cannot solve... error messages like this : <cut> running build_ext building 'scipy_base.fastumath' extension cc -fno-strict-aliasing -DNDEBUG -O -pipe -march=pentium4 -D_THREAD_SAFE -DTHREAD_STACK_SIZE=0x20000 -O -pipe -march=pentium4 -fPIC -I/usr/local/include/python2.3 -c /tmp/py-SciPy/work/SciPy-0.2.0_alpha_200.4161/scipy_core/scipy_base/fastumathmodule.c -o build/temp.freebsd-5.1-CURRENT-i386-2.3/tmp/py-SciPy/work/SciPy-0.2.0_alpha_200.4161/scipy_core/scipy_base/fastumathmodule.o In file included from /tmp/py-SciPy/work/SciPy-0.2.0_alpha_200.4161/scipy_core/scipy_base/fastumathmodule.c:27: /tmp/py-SciPy/work/SciPy-0.2.0_alpha_200.4161/scipy_core/scipy_base/fastumath_unsigned.inc:2785: error: `acosh' undeclared here (not in a function) /tmp/py-SciPy/work/SciPy-0.2.0_alpha_200.4161/scipy_core/scipy_base/fastumath_unsigned.inc:2785: error: initializer element is not constant </cut> btw, I've installed djbfft (in /usr/local/{include/lib}) but scipy cannot detect it... -- KISS : Keep It Simple, Stupid.
On Tue, 28 Oct 2003, Ying-Chieh Liao wrote:
I'm trying to make a port for scipy,
Great! But you should certainly use the CVS version of scipy for that as recent changes in CVS have made packaging scipy much easier. See also PACKAGERS.txt (that I'll soon update again).
but there's a problem I cannot solve... error messages like this : <cut> running build_ext building 'scipy_base.fastumath' extension cc -fno-strict-aliasing -DNDEBUG -O -pipe -march=pentium4 -D_THREAD_SAFE -DTHREAD_STACK_SIZE=0x20000 -O -pipe -march=pentium4 -fPIC -I/usr/local/include/python2.3 -c /tmp/py-SciPy/work/SciPy-0.2.0_alpha_200.4161/scipy_core/scipy_base/fastumathmodule.c -o build/temp.freebsd-5.1-CURRENT-i386-2.3/tmp/py-SciPy/work/SciPy-0.2.0_alpha_200.4161/scipy_core/scipy_base/fastumathmodule.o In file included from /tmp/py-SciPy/work/SciPy-0.2.0_alpha_200.4161/scipy_core/scipy_base/fastumathmodule.c:27: /tmp/py-SciPy/work/SciPy-0.2.0_alpha_200.4161/scipy_core/scipy_base/fastumath_unsigned.inc:2785: error: `acosh' undeclared here (not in a function) /tmp/py-SciPy/work/SciPy-0.2.0_alpha_200.4161/scipy_core/scipy_base/fastumath_unsigned.inc:2785: error: initializer element is not constant </cut>
That is weird as acosh is defined in fastumath_unsigned.inc. Try using -UHAVE_INVERSE_HYPERBOLIC. Let us know if it works or you found another solution for freebsd.
btw, I've installed djbfft (in /usr/local/{include/lib}) but scipy cannot detect it...
You have to follow installation instructions in http://cr.yp.to/djbfft/install.html Yes, they are a bit braindead but "fixing" djbfft installation process is not so simple. Pearu
On Tue, Oct 28, 2003 at 00:03:52 -0600, Pearu Peterson wrote:
On Tue, 28 Oct 2003, Ying-Chieh Liao wrote:
I'm trying to make a port for scipy, Great! But you should certainly use the CVS version of scipy for that as recent changes in CVS have made packaging scipy much easier. See also PACKAGERS.txt (that I'll soon update again).
too bad ... do you have any release plan recently ? :)
That is weird as acosh is defined in fastumath_unsigned.inc. Try using -UHAVE_INVERSE_HYPERBOLIC. Let us know if it works or you found another solution for freebsd.
ok I'll try it
btw, I've installed djbfft (in /usr/local/{include/lib}) but scipy cannot detect it... You have to follow installation instructions in http://cr.yp.to/djbfft/install.html Yes, they are a bit braindead but "fixing" djbfft installation process is not so simple.
hmmm... In the FreeBSD ports system, djbfft is installed into /usr/local/include/djbfft/*.h /usr/local/lib/libdjbfft.a how can I adjust scipy source (or configure) to find it ? -- Allocate four digits for the year part of a date : a new millennium is coming. --- David Huber
On Tue, 28 Oct 2003, Ying-Chieh Liao wrote:
On Tue, Oct 28, 2003 at 00:03:52 -0600, Pearu Peterson wrote:
On Tue, 28 Oct 2003, Ying-Chieh Liao wrote:
I'm trying to make a port for scipy, Great! But you should certainly use the CVS version of scipy for that as recent changes in CVS have made packaging scipy much easier. See also PACKAGERS.txt (that I'll soon update again).
too bad ... do you have any release plan recently ? :)
If you are interested in freebsd binary port then you are probably on your own as, if I am not mistaken, no scipy developer uses freebsd. But getting scipy from CVS is not so complicated. See http://www.scipy.org/site_content/tutorials/CVSInstruct I guess that freebsd has cvs software installed.
That is weird as acosh is defined in fastumath_unsigned.inc. Try using -UHAVE_INVERSE_HYPERBOLIC. Let us know if it works or you found another solution for freebsd.
ok I'll try it
btw, I've installed djbfft (in /usr/local/{include/lib}) but scipy cannot detect it... You have to follow installation instructions in http://cr.yp.to/djbfft/install.html Yes, they are a bit braindead but "fixing" djbfft installation process is not so simple.
hmmm...
In the FreeBSD ports system, djbfft is installed into /usr/local/include/djbfft/*.h /usr/local/lib/libdjbfft.a
how can I adjust scipy source (or configure) to find it ?
You should have seen the following message """ DJBFFT (http://cr.yp.to/djbfft.html) libraries not found. Directories to search for the libraries can be specified in the scipy_distutils/site.cfg file (section [djbfft]) or by setting the DJBFFT environment variable.""" when building scipy but unfortunately this will not work as scipy_distutils/system_info.py is still looking for a file djbfft.a (not libdjbfft.a). You can try fixing this in system_info.py yourself, I'll later fix it also in CVS. Pearu
On Tue, Oct 28, 2003 at 00:47:18 -0600, Pearu Peterson wrote:
On Tue, 28 Oct 2003, Ying-Chieh Liao wrote:
On Tue, Oct 28, 2003 at 00:03:52 -0600, Pearu Peterson wrote:
On Tue, 28 Oct 2003, Ying-Chieh Liao wrote:
I'm trying to make a port for scipy, Great! But you should certainly use the CVS version of scipy for that as recent changes in CVS have made packaging scipy much easier. See also PACKAGERS.txt (that I'll soon update again). too bad ... do you have any release plan recently ? :) If you are interested in freebsd binary port then you are probably on your own as, if I am not mistaken, no scipy developer uses freebsd. But getting scipy from CVS is not so complicated. See http://www.scipy.org/site_content/tutorials/CVSInstruct I guess that freebsd has cvs software installed.
yeah, FreeBSD uses cvs, too but I want to build a "port", something like rpm/srpm so that every FreeBSD user around the world can use this package by simply a "pkg_add" or "make install" that's why I need a source tarball instead of cvs checkout :)
when building scipy but unfortunately this will not work as scipy_distutils/system_info.py is still looking for a file djbfft.a (not libdjbfft.a). You can try fixing this in system_info.py yourself, I'll later fix it also in CVS.
hmmm... ok -- Allocate four digits for the year part of a date : a new millennium is coming. --- David Huber
On Tue, 28 Oct 2003, Ying-Chieh Liao wrote:
but I want to build a "port", something like rpm/srpm so that every FreeBSD user around the world can use this package by simply a "pkg_add" or "make install"
that's why I need a source tarball instead of cvs checkout :)
But it is easy to create a source tarball also from cvs checkout: #checkout scipy to cvs/ cd cvs/scipy python setup.py sdist -f -t blah that will create a source tarball into dist/ directory. Pearu
On Tue, Oct 28, 2003 at 00:59:27 -0600, Pearu Peterson wrote:
but I want to build a "port", something like rpm/srpm so that every FreeBSD user around the world can use this package by simply a "pkg_add" or "make install" that's why I need a source tarball instead of cvs checkout :) But it is easy to create a source tarball also from cvs checkout: #checkout scipy to cvs/ cd cvs/scipy
On Tue, 28 Oct 2003, Ying-Chieh Liao wrote: python setup.py sdist -f -t blah that will create a source tarball into dist/ directory.
I mean, an official one :) -- Allocate four digits for the year part of a date : a new millennium is coming. --- David Huber
On Tue, 28 Oct 2003, Ying-Chieh Liao wrote:
On Tue, Oct 28, 2003 at 00:59:27 -0600, Pearu Peterson wrote:
but I want to build a "port", something like rpm/srpm so that every FreeBSD user around the world can use this package by simply a "pkg_add" or "make install" that's why I need a source tarball instead of cvs checkout :) But it is easy to create a source tarball also from cvs checkout: #checkout scipy to cvs/ cd cvs/scipy
On Tue, 28 Oct 2003, Ying-Chieh Liao wrote: python setup.py sdist -f -t blah that will create a source tarball into dist/ directory.
I mean, an official one :)
Yes, we are all looking forward to it:) On the other hand, note that if we would make the tarball now that should work perfectly under Linux (and may be on other platforms as well) then under freebsd it might not be as smooth as you just discovered. So, to support freebsd in offical tarball someone has to test CVS scipy first and together solve any merging issues. Regards, Pearu
On Tue, 28 Oct 2003, Ying-Chieh Liao wrote:
when building scipy but unfortunately this will not work as scipy_distutils/system_info.py is still looking for a file djbfft.a (not libdjbfft.a). You can try fixing this in system_info.py yourself, I'll later fix it also in CVS.
hmmm... ok
This issue should be now fixed in CVS. Pearu
Pearu Peterson schrieb:
On Tue, 28 Oct 2003, Ying-Chieh Liao wrote:
when building scipy but unfortunately this will not work as scipy_distutils/system_info.py is still looking for a file djbfft.a (not libdjbfft.a). You can try fixing this in system_info.py yourself, I'll later fix it also in CVS.
hmmm... ok
This issue should be now fixed in CVS.
Pearu
_______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.net http://www.scipy.net/mailman/listinfo/scipy-dev
Hi all, I tried to install djbfft-0.76 Hoever make failed ./makelib str.a byte_copy.o byte_cr.o str_len.o ./load auto-str substdio.a error.a str.a substdio.a(substdo.o)(.text+0x31): In function `allwrite': : undefined reference to `errno' collect2: ld returned 1 exit status make: *** [auto-str] Fehler 1 Any idea ? Nils
participants (3)
-
Nils Wagner -
Pearu Peterson -
Ying-Chieh Liao