[GRASS5] End-of-compilation message

Glynn Clements glynn.clements at virgin.net
Mon Oct 7 16:23:30 EDT 2002


Paul Kelly wrote:

> GRASS GIS source code compiled successfully.
> 
> * Check file error.log for modules not been compiled due to error.
> 
> * Install GRASS with (possibly as root)
>     make install
> 
> Hello
> I was just thinking that the above message, which appears at the end of
> compilation, is very misleading, as it always appears whether or not there
> are any errors in error.log. The first line says compilation was
> successful, but the next line tells the user to check if there were any
> errors. But they may assume that there are none because the source code
> was 'compiled successfully', and not bother looking at the error.log file.
> The first few times I compiled GRASS that was exactly what I did.
> 
> Perhaps the message 'Compiled successfully' should only appear if there
> are no errors in the error.log file, otherwise its contents should be
> output to the screen to warn the user?

OK, I've removed the word "successfully", so it now says:

	GRASS GIS source code compiled.

I'm open to suggestions as to how to handle errors. One option is to
just run:

	grep 'Compilation error' error.log

which should dump any error messages to the same place as the
completion messages, i.e. the user's terminal, unless they've
redirected stdout (which they probably should; if there *are* any
errors, we often need to see the actual error messages).

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list