Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] numpy-1.3.0 problems with freebsd-7.2
Date: Sun, 26 Jul 2009 09:31:22
Message-Id: 20090726093052.GA23537@gentoo.org
In Reply to: [gentoo-alt] numpy-1.3.0 problems with freebsd-7.2 by Michael Yang
1 On 25-07-2009 19:30:22 -0400, Michael Yang wrote:
2 > Hi guys,
3 >
4 > I'm using freebsd-7.2 Release/i386. Bootstrapped successfully
5 > (gcc/gfortran built with USE="fortran") and I ran into problems
6 > emerging dev-python/numpy-1.3.0:
7 >
8 > $ emerge numpy-1.3.0
9 > ...
10 > build/src.freebsd-7.2-RELEASE-i386-2.6/numpy/core/src/umathmodule.c
11 > /usr/include/fenv.h: Assembler messages:
12 > /usr/include/fenv.h:156: Error: suffix or operands invalid for `fnstsw'
13 > ----------------------------------------------------------------------------------------------------------
14 > I think what's happening is that gcc is somehow pulling in
15 > /usr/include/fenv.h into the ebuild process. I can successfully build
16 > directly from the var/tmp/.../work directory:
17 >
18 > $ python setup.py build
19 >
20 > build/temp.freebsd-7.2-RELEASE-i386-2.6/build/src.freebsd-7.2-RELEASE-i386-2.6/numpy/core/src/umathmodule.o
21 > -Lbuild/temp.freebsd-7.2-RELEASE-i386-2.6 -lnpymath -lm -lpython2.6 -o
22 > build/lib.freebsd-7.2-RELEASE-i386-2.6/numpy/core/umath.so
23 > ...
24 >
25 > So I don't know where in the ebuild the /usr/include/fenv.h is getting
26 > sucked in instead of telling python to use the
27 > numpy/core/include/numpy/fenv/fenv.h (which is newer)
28 > This may be related to the numpy issue on
29 > http://projects.scipy.org/numpy/ticket/811.
30
31 either your manual build uses the host compiler/linker, or it includes
32 an -Ipath/to/var/tmp/portage/numpy/work/include
33
34 > A workaround is to copy the numpy/core/include/numpy/fenv/fenv.h to
35 > /usr/include/ as root but that's obviously cheating :)
36
37 That's for most of us not even an option, let alone about the possible
38 damage that can do to your system.
39
40 We need to know what setup.py is doing exactly to find out what's going
41 on here.
42
43
44 --
45 Fabian Groffen
46 Gentoo on a different level

Replies

Subject Author
Re: [gentoo-alt] numpy-1.3.0 problems with freebsd-7.2 Michael Yang <yangofzeal@×××××.com>