Robert Bradshaw wrote:
On Jan 29, 2010, at 1:52 PM, Jaap Spies wrote:
Dr. David Kirkby wrote:
Jaap Spies wrote:
Dr. David Kirkby wrote:
We know from recent discussions over sage-env and the hassles that
http://trac.sagemath.org/sage_trac/ticket/7818
caused, that setting CFLAGS, CXXFLAGS etc globally will cause a build
failure in Sage. It would therefore seem sensible that we exit with an
error message if someone sets CFLAGS when building Sage.
I think it is more sensible that the spkgs involved do an 'unset
CFLAGS', etc..
Laying the resposibilities were they belong.
A lot of spkgs will not built in 64 bit mode unless CFLAGS has a
sensible flag.
Jaap
I would normally agree with you, but think this could be risky.
Risky? What is wrong with cython unset CFLAGS?
I plea to put responsibilities where they belon.
Having had my fingers burnt once over setting CFLAGS globally, I would
avoid that at all costs. Which is why I wondered whether we should check
they are not set, to avoid any surprises later on.
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.
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