Hi: I'm trying to build numpy with python27, 64-bit, on OSX 10.5.8. When I run python setup.py build, only 32-bit binaries get built. I can see what is happening is that not 64-bit flags are getting passed to the c compiler (I don't know about the fortran compiler. So I have two questions; 1) Shouldn't the system be determining that 64-bit nature automatically? I've used the same build process on the same machine (in what I thought were identical situations, apparently not) a number of times in the past, and it has always built correctly as 64 bit. I never needed to set compiler options. 2) How do I set C compiler options for the numpy build process? thanks, Dan
On Wed, Nov 10, 2010 at 13:37, Dan Yamins <dyamins@gmail.com> wrote:
Hi: I'm trying to build numpy with python27, 64-bit, on OSX 10.5.8. When I run python setup.py build, only 32-bit binaries get built. I can see what is happening is that not 64-bit flags are getting passed to the c compiler (I don't know about the fortran compiler.
Are you sure that the python executable that you are using is the 64-bit python executable that you think it is? -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Are you sure that the python executable that you are using is the 64-bit python executable that you think it is?
Hm ... Well, I think so ... It certain is 64bit, or at least: In [1]: import platform In [2]: platform.architecture() Out[2]: ('64bit', '') Should I be checking something else? It is a python installed via macports ... thanks, Dan
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Thu, Nov 11, 2010 at 3:37 AM, Dan Yamins <dyamins@gmail.com> wrote:
Hi: I'm trying to build numpy with python27, 64-bit, on OSX 10.5.8. When I run python setup.py build, only 32-bit binaries get built. I can see what is happening is that not 64-bit flags are getting passed to the c compiler (I don't know about the fortran compiler. So I have two questions; 1) Shouldn't the system be determining that 64-bit nature automatically?
Yes, it should. This was fixed a couple of days ago in commit:435c7262592e94c8519f (master) and commit:8346ba04a5c574441304 (1.5.x). I guess you used an older revision, can you please update and try again?
I've used the same build process on the same machine (in what I thought were identical situations, apparently not) a number of times in the past, and it has always built correctly as 64 bit. I never needed to set compiler options. 2) How do I set C compiler options for the numpy build process?
That shouldn't be necessary. Cheers, Ralf
Yes, it should. This was fixed a couple of days ago in commit:435c7262592e94c8519f (master) and commit:8346ba04a5c574441304 (1.5.x). I guess you used an older revision, can you please update and try again?
Did this, but am having the same problem. This is the relevant output at the beginning of the build process that is showing that the wrong options being used: $python setup.py build .... C compiler: /usr/bin/gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes ... So then when I try to actually use the installed binary, I get this error: In [1]: import numpy --------------------------------------------------------------------------- ImportError Traceback (most recent call last) .... ----> 5 import multiarray 6 import umath 7 import _internal # for freeze programs ImportError: dlopen(numpy/core/multiarray.so, 2): no suitable image found. Did find: numpy/core/multiarray.so: mach-o, but wrong architecture Obviously consistently, $file numpy/core/multiarray.so numpy/core/multiarray.so: Mach-O bundle i386 ... Somehow, the build config script is not picking up the fact that the python interpreter I'm using is 64bit. Dan
I've used the same build process on the same machine (in what I thought were identical situations, apparently not) a number of times in the past, and it has always built correctly as 64 bit. I never needed to set compiler options. 2) How do I set C compiler options for the numpy build process?
That shouldn't be necessary.
Cheers, Ralf _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
This problem has nothing to do with numpy -- somehow, gcc binaries themselves were overwritten by a process that installed just 32-bit versions, ... so the problem is with the c compiler itself, and has been resolved. thanks! Dan On Thu, Nov 11, 2010 at 7:48 AM, Dan Yamins <dyamins@gmail.com> wrote:
Yes, it should. This was fixed a couple of days ago in commit:435c7262592e94c8519f (master) and commit:8346ba04a5c574441304 (1.5.x). I guess you used an older revision, can you please update and try again?
Did this, but am having the same problem. This is the relevant output at the beginning of the build process that is showing that the wrong options being used:
$python setup.py build
....
C compiler: /usr/bin/gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
...
So then when I try to actually use the installed binary, I get this error:
In [1]: import numpy --------------------------------------------------------------------------- ImportError Traceback (most recent call last)
....
----> 5 import multiarray 6 import umath 7 import _internal # for freeze programs
ImportError: dlopen(numpy/core/multiarray.so, 2): no suitable image found. Did find: numpy/core/multiarray.so: mach-o, but wrong architecture
Obviously consistently,
$file numpy/core/multiarray.so numpy/core/multiarray.so: Mach-O bundle i386
...
Somehow, the build config script is not picking up the fact that the python interpreter I'm using is 64bit.
Dan
I've used the same build process on the same machine (in what I thought were identical situations, apparently not) a number of times in the past, and it has always built correctly as 64 bit. I never needed to set compiler options. 2) How do I set C compiler options for the numpy build process?
That shouldn't be necessary.
Cheers, Ralf _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
participants (3)
-
Dan Yamins
-
Ralf Gommers
-
Robert Kern