Robert Bradshaw wrote:
On Jan 29, 2010, at 2:59 PM, Jaap Spies wrote:
Robert Bradshaw wrote:
On Jan 29, 2010, at 1:52 PM, Jaap Spies wrote:
Quite a few spkg-install are a simply: python setup.py install.
They fail on Open Solaris x64 if CFLAGS does not include -m64.
There's nothing special about Cython, it basically is just another
"python setup.py install" package. Are you saying we should unset
CFLAGS
for all of those? I seems extensions should be compiled with -m64 iff
Python is compiled with -m64 (is it?).
Can you try running
>>> import distutils.sysconfig
>>> distutils.sysconfig.get_config_var('CFLAGS')
in your build of Python?
j...@opensolaris:~/Downloads/sage-4.3.2.alpha0$ ./sage -python
Python 2.6.4 (r264:75706, Jan 27 2010, 22:37:41)
[GCC 4.4.2] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import distutils.sysconfig
>>> distutils.sysconfig.get_config_var('CFLAGS')
'-fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes'
>>>
As you see no -m64 as would be appropriate.
Hmm.... did Python not need an -m64 to build in 64-bit mode then?
Perhaps it is put in some other variable (like CC). Perhaps try to look
around in all of distutils.sysconfig. get_config_vars() for the -m64
anywhere.
Dag Sverre
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org