On Wed, Aug 12, 2009 at 7:31 AM, Dr. David Kirkby<david.kir...@onetel.net> wrote: > > When one types 'make', a configure script is run. That checks for > various things (not very much currently), but it does check the gcc > version and the perl version, plus a few other things. > > One issue is that if someone starts a build, stops it, then restarts it > by typing 'make', those checks will not take place a second time. If the > build environment has changed, then this will not be detected. This > seems a bit dangerous to me. > > Consider the following cenerario > > 1) Compiler change. > * Log in and set CC, CXX and SAGE_FORTRAN to the Sun compilers. > * The build fails (as it will now). > * On another day, I type 'make', but this time gcc gets used, as I > forgot to set CC
How does rerunning the prereq script address this problem at all? The only thing it does is make sure that gcc satisfies the prereq, but doesn't do anything else to ensure that CC is compatibly set, etc. It seems like you've described a theoretical problem that so far I've never heard anybody complain about, then a solution that doesn't really solve the problem. > > 2) GCC update > * Start building Sage > * It fails, so we decide to update gcc > * Type make again. Now part of the build is with one version gcc, but > part with another. Likewise, re-running prereq doesn't stop this from happening. The only thing it does is ensure that the new gcc satisfies the prereq. Is that your point though? William > > That seems pretty dangerous to me. > > For the time it takes to run ./spkg/base/prereq-0.3/configure (plus a > few other other .spkg it currently rebuilds) it should be done each time > 'make' is started. i.e. Add to the top of 'makefile' > > rm -f spkg/installed/prereq-0.3 > > Ideally, something should be done if the environment has changed. > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---