[SciPy-dev] build scipy on freebsd

Pearu Peterson pearu at scipy.org
Tue Oct 28 00:03:52 CST 2003

On Tue, 28 Oct 2003, Ying-Chieh Liao wrote:

> I'm trying to make a port for scipy,

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.
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


Yes, they are a bit braindead but "fixing" djbfft installation process 
is not so simple.


More information about the Scipy-dev mailing list