William Stein wrote:
> On Sat, Dec 26, 2009 at 4:52 AM, Dr. David Kirkby
> <david.kir...@onetel.net> wrote:
>> Is there anyone actively working on changing Sage's source so it builds with 
>> gcc
>> 3.4.x?
>>
>> Is there any point in trying, given the 3.4 series is so old and newer 
>> releases
>> of gcc are readily available on any platform?
>>
>> 'prereq' will exit for gcc older than 3.4.0 and also for the buggy 4.0.0, but
>> for 3.4.x it will just issue a warning.
>>
>> I see 3 problems with this myself.
>>
>> 1) The warning flies past so quickly on a fast machine, you would have to be
>> very eagle-eyed to see it.
>>
>> 2) I doubt anyone is trying to fix 3.4 series issues.
>>
>> 3) Solaris does ship with gcc 3.4.3, which means someone can start the build,
>> even though it will ultimately fail.
>>
>> I'd propose I simply update prereq to simply exit for any gcc < 4.0.1.
>>
> 
> Exit, but with a message about setting a specific environment variable
> that will allow the build to continue.
> 
> We should *definitely, definitely* not shut the possibility of
> supporting 3.4, just because nobody is currently fixing ratpoints.
> 
>  -- William

Fair enough. I changed it exits by default:

checking if gcc accepts -dumpversion option... yes
checking gcc version... 3.4.3
checking if g++ accepts -dumpversion option... yes
checking g++ version... 3.4.3
configure: Good, gcc and g++ are the same version (3.4.3)
configure: Later, it will be checked if GCC 3.4.3 is suitable
configure: WARNING: ******************************************************
configure: WARNING: ******************************************************
configure: WARNING: ******************************************************
configure: WARNING: GCC 3.4.3 is too old and can not build Sage.
configure: WARNING: Please use a gcc of at least 4.0.1
configure: WARNING: if you just want Sage to build without problems.
configure: WARNING:
configure: WARNING: If you want to try building Sage with a GCC 3.4.x
configure: WARNING: with a view to debugging the problems which stop it
configure: WARNING: working on a gcc 3.4 series compiler, set the
configure: WARNING: environment variable SAGE_USE_OLD_GCC to something non
configure: WARNING: empty. But if you just want Sage to work, upgrade GCC
configure: WARNING: ******************************************************
configure: WARNING: ******************************************************
configure: error: Exiting due to the use of a version of GCC that is too old
  ERROR: You do not have all of the prerequisites needed


But will allow the build to progress if SAGE_USE_OLD_GCC is exported.

$ export SAGE_USE_OLD_GCC=foobar
$ make

checking for Perl version 5.6.0 or later... yes
checking if gcc accepts -dumpversion option... yes
checking gcc version... 3.4.3
checking if g++ accepts -dumpversion option... yes
checking g++ version... 3.4.3
configure: Good, gcc and g++ are the same version (3.4.3)
configure: Later, it will be checked if GCC 3.4.3 is suitable
configure: WARNING: ******************************************************
configure: WARNING: ******************************************************
configure: WARNING: ******************************************************
configure: WARNING: GCC 3.4.3 is too old and can not build Sage.
configure: WARNING: Please use a gcc of at least 4.0.1
configure: WARNING: if you just want Sage to build without problems.
configure: WARNING:
configure: WARNING: Since the variable SAGE_USE_OLD_GCC was set, the
configure: WARNING: build will continue, but it will fail without changes
configure: WARNING: to the Sage source code. You can be 100% sure of that.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
base/bzip2-1.0.5-install 2>&1
Decompressing bzip2
bzip2-1.0.5/blocksort.c

-- 
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

Reply via email to