I have no idea if this is a fault of SCons, or in the many programs in Sage that use SCons, but the combination does not seem to work too well on Solaris.
SCons seems determined to use the Sun compilers in some situations. Below the varaible CC was clearly defined to be /usr/sfw/bin/gcc. It is probably that is too old to build Sage, but that is not relavent here. Note how the C compiler 'cc' is called, despite the environment variable CC is set elsewhere. In this case 'cc' is not a command, as the Sun studio compiler is not installed. But still Sage tries to build with 'cc -KPIC' which is the Sun compiler name, with a Sun flag. The only issue is that the Sun compiler is not installed. This issues seems to crop up in many Sage packages using SCons. It would be really good if a SCons developer could take a look and hopefully sort out why the SCons+Sage+Solaris combo is working badly together. It seems SCons will try to use the Sun compiler, even if we don't want it to, even if it is not installed. This particular build is on an old Sun of mine, running the first release of Solaris 10. It has no optional software installed - I purposely left it unchanged, so see if Sage would build on the first release of Solaris 10. Packages which I know have various issues on Sage with SCons and Solaris are: * PolyBoRi http://sagetrac.org/sage_trac/ticket/6582 (just bad programming) http://sagetrac.org/sage_trac/ticket/6177 * cliquer http://sagetrac.org/sage_trac/ticket/6852 * modified sage library code http://sagetrac.org/sage_trac/ticket/6595 For whatever reason, this combo is not working well. It is perhaps a fault of SCons, or perhaps badly written code using SCons, but for whatever reason, the combo is hassle. Here's the cliquer code, for which I have just created trac #6852 x cliquer-1.2/.hg/dirstate, 147 bytes, 1 tape blocks x cliquer-1.2/.hg/undo.dirstate, 147 bytes, 1 tape blocks x cliquer-1.2/SConstruct, 301 bytes, 1 tape blocks Finished extraction **************************************************** Host system uname -a: SunOS goose 5.10 Generic sun4u sparc SUNW,Ultra-80 **************************************************** **************************************************** CC Version /usr/sfw/bin/gcc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs Configured with: /gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) **************************************************** scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... cc -o src/so_cl.o -c -KPIC src/cl.c sh: cc: not found scons: *** [src/so_cl.o] Error 1 scons: building terminated because of errors. real 0m11.561s user 0m9.580s sys 0m1.532s sage: An error occurred while installing cliquer-1.2 Please email sage-devel http://groups.google.com/group/sage-devel explaining the problem and send the relevant part of of /export/home/drkirkby/sage-4.1.1/install.log. Describe your computer, operating system, etc. If you want to try to fix the problem, yourself *don't* just cd to /export/home/drkirkby/sage-4.1.1/spkg/build/cliquer-1.2 and type 'make'. Instead type "/export/home/drkirkby/sage-4.1.1/sage -sh" in order to set all environment variables correctly, then cd to /export/home/drkirkby/sage-4.1.1/spkg/build/cliquer-1.2 (When you are done debugging, you can type "exit" to leave the subshell.) make[1]: *** [installed/cliquer-1.2] Error 1 make[1]: Leaving directory `/export/home/drkirkby/sage-4.1.1/spkg' real 23m21.646s user 18m45.421s sys 4m33.002s Error building Sage. $ echo $CC /usr/sfw/bin/gcc --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---