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?


Yes it needed -m64. As p5 get screwed up by William I put -m64 in at
a place I think was appropriate.

Maybe we have to sort out the p5 question first. David Kirkby had a patch,
which was overwritten by a following patch p5.

I made python build with 64 bit support on my Open Solaris.

Jaap


- Robert




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

Reply via email to