#6595: 'modified sage library code' fails at c_lib if /opt/SUNWspro/bin/CC can
be
found. (SCons issue)
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: tbd
Type: defect | Status: new
Priority: blocker | Milestone: sage-4.3.1
Component: solaris | Keywords: scons SUNWspro SunStudio
Work_issues: | Author:
Upstream: N/A | Reviewer:
Merged: |
------------------------+---------------------------------------------------
Comment(by drkirkby):
Hi William,
Using 't2' set the following environment up before starting to build sage.
{{{
kir...@t2:[~] $ echo $SAGE_FORTRAN_LIB
/usr/local/gcc-4.4.1-sun-linker/lib/libgfortran.so
kir...@t2:[~] $ echo $SAGE_FORTRAN
/usr/local/gcc-4.4.1-sun-linker/bin/gfortran
kir...@t2:[~] $ echo $LD_LIBRARY_PATH
/usr/local/gcc-4.4.1-sun-linker/lib:/usr/local/lib
kir...@t2:[~] $ echo $PATH
/usr/local/gcc-4.4.1-sun-
linker/bin:/usr/local/bin2:/usr/bin:/usr/ccs/bin:/usr/local/bin:/usr/sfw/bin:/bin:/usr/sbin
}}}
note, if you try to run the Sun C or C++ compilers, you will find they do
'''not''' work, since they are not in your path.
{{{
kir...@t2:[~] $ cc
-bash: cc: command not found
kir...@t2:[~] $ CC
-bash: CC: command not found
}}}
That is intensional, since for now at least, Sage will only build with
gcc, so the Sun compilers are not in the path.
Type 'make' and you will find it fails at the point indicated, as the Sun
C++ compiler (/opt/SUNWspro/bin/CC) will be used to try to compile the C++
files. This is despite your path does not include /opt/SUNWspro/bin/. The
path /opt/SUNWspro/bin/ is hard-coded into SCons - it looks for the Sun
tools there. Why the hell it uses the GNU C compiler, but the Sun C++
compiler is beyond me.
I'm just about to go to bed, but will hang around for 20 minutes or so,
therefore if you have any questions, get them to me asap.
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6595#comment:6>
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.