#7761: Python 2.6.2.p4 faills to build on OpenSolaris
----------------------------------------------------------+-----------------
Reporter: drkirkby | Owner:
drkirkby
Type: defect | Status:
needs_work
Priority: major | Milestone:
sage-4.3.1
Component: solaris | Resolution:
fixed
Keywords: python open solaris | Author:
David Kirkby
Upstream: None of the above - read trac for reasoning. | Reviewer:
Jaap Spies
Merged: | Work_issues:
----------------------------------------------------------+-----------------
Comment(by robertwb):
Replying to [comment:18 drkirkby]:
> I can understand why this was not merged. I'm just in the process of
updating #7818. I just need to double check everything. But the main
change is that
Great.
> Prior to writing this new package, I looked at Python's spkg-install to
see how the 64-bit build has been enabled on OS X, and you can see it
added -m64 to gcc, so "gcc -m64" was used as a compiler. Hence I basically
used a similar method.
Ah, OK. For easy reference:
{{{
if [ `uname` = "Darwin" ]; then
if [ "$SAGE64" = "yes" ]; then
echo "64 bit OSX build enabled"
OPT="-g -O3 -m64 -Wall -Wstrict-prototypes"; export OPT
./configure $EXTRAFLAGS --prefix="$SAGE_LOCAL" --without-
libpng \
--enable-unicode=ucs4 --with-gcc="gcc -m64" --disable-toolbox-
glue
else
./configure $EXTRAFLAGS --prefix="$SAGE_LOCAL" --without-
libpng \
--enable-unicode=ucs4 --disable-toolbox-glue
fi
else
./configure $EXTRAFLAGS --prefix="$SAGE_LOCAL" --without-libpng
--enable-unicode=ucs4 CC="$CC $CFLAGS" CXX="$CXX $CXXFLAGS"
fi
}}}
Interestingly, -m64 gets added to both OPT (used by Python and distutils
in making CFLAGS) and gcc. I wonder if both are necessary, or if this is
redundant (yielding two -m65s in the final command, which shouldn't hurt).
In any case, hopefully we can do this in such a way that all the spkg-
installs that are just "python setup.py install" won't have to have extra
stuff added in there as well.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7761#comment:19>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.