#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:  major     |   Milestone:  sage-4.1.1              
Component:  solaris   |    Keywords:  scons SUNWspro SunStudio
 Reviewer:            |      Author:                          
   Merged:            |  
----------------------+-----------------------------------------------------
 This failure was first observed in Sage 4.1.1.alpha0.

 If the Sun Studio compiler suite is installed, the C++ compiler will be at
 /opt/SUNWspro/bin/CC. This causes the failure below. note in particular
 the line, which shows the Sun C++ compiler being used. But only a line or
 two before, the GNU C compiler was used. Mixing object files between the
 two compilers is unlikely to work.

 It might be worth taking note of the error though. The Sun compiler is a
 lot more fussy than g++, so probably picks up bad code that g++ will
 accept.

 {{{
 /opt/SUNWspro/bin/CC -o src/so_ZZ_pylong.o -c -KPIC -fPIC
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/python2.6
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/NTL -Iinclude
 src/ZZ_pylong.cpp
 CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
 otherwise
 "src/ZZ_pylong.cpp", line 47: Error: "ZZ_set_pylong(NTL::ZZ&, _object*)"
 is expected to return a value.
 1 Error(s) detected.

 }}}
 Here's the fuller output. I believe this is a SCons issue again. SCons on
 Solaris looks for /opt/SUNWspro/bin/CC and will use that sometimes.
 PolyBoRi did suffer this problem, but Alexander Dreyer has sorted that
 out.

 {{{
 Deleting the scons target.
 Removed src/so_convert.o
 Removed src/so_interrupt.o
 Removed src/so_mpn_pylong.o
 Removed src/so_mpz_pylong.o
 Removed src/so_mpz_longlong.o
 Removed src/so_stdsage.o
 Removed src/so_gmp_globals.o
 scons: Reading SConscript files ...
 scons: done reading SConscript files.
 scons: Cleaning targets ...
 scons: done cleaning targets.

 ----------------------------------------------------------
 sage: Building and installing modified Sage library files.


 Installing c_lib
 gcc -o src/so_convert.o -c -fPIC
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/python2.6
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/NTL -Iinclude
 src/convert.c
 gcc -o src/so_interrupt.o -c -fPIC
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/python2.6
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/NTL -Iinclude
 src/interrupt.c
 gcc -o src/so_mpn_pylong.o -c -fPIC
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/python2.6
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/NTL -Iinclude
 src/mpn_pylong.c
 gcc -o src/so_mpz_pylong.o -c -fPIC
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/python2.6
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/NTL -Iinclude
 src/mpz_pylong.c
 gcc -o src/so_mpz_longlong.o -c -fPIC
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/python2.6
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/NTL -Iinclude
 src/mpz_longlong.c
 gcc -o src/so_stdsage.o -c -fPIC
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/python2.6
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/NTL -Iinclude
 src/stdsage.c
 gcc -o src/so_gmp_globals.o -c -fPIC
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/python2.6
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/NTL -Iinclude
 src/gmp_globals.c
 /opt/SUNWspro/bin/CC -o src/so_ZZ_pylong.o -c -KPIC -fPIC
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/python2.6
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/NTL -Iinclude
 src/ZZ_pylong.cpp
 CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
 otherwise
 "src/ZZ_pylong.cpp", line 47: Error: "ZZ_set_pylong(NTL::ZZ&, _object*)"
 is expected to return a value.
 1 Error(s) detected.
 scons: *** [src/so_ZZ_pylong.o] Error 1
 ERROR: There was an error building c_lib.


 real    0m39.279s
 user    0m33.652s
 sys     0m4.841s
 Error building new version of SAGE.
 You might try typing 'sage -ba' or write to sage-support with as much
 information as possible.

 real    2m21.275s
 user    2m2.010s
 sys     0m16.789s
 sage: An error occurred while installing sage-4.1.1.alpha0
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6595>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to