[GRASS-user] GRASS-7svn: Build Errors [RESOLVED]

Glynn Clements glynn at gclements.plus.com
Mon May 12 15:11:46 PDT 2014


Nikos Alexandris wrote:

> > Nikos,
> >
> >   1) wxpython-config specifies 2.7.5.
> >
> >   2) User error: I had neglected to run 'make clean' before building 
> > the new
> > code. Normally, I do this immediately after 'make install'. Sigh.
> 
> Nice to know that it works for you.  Note, though, `make clean` != 
> `make distclean` but the latter includes the first one and is always 
> "safer" in the sense that is also cleans all configuration instructions, 
> created after `.configure`, which could also lead in to an erroneous 
> future (re-)compilation attempt.

Just to clarify:

"make clean" deletes the files generated by compilation ("make"),
returning the source tree to the state it was in after running
"configure".

"make distclean" executes "make clean" and also deletes the files
generated by running "configure", returning the source tree to its
original state (although it won't remove files which were added by
means other than the GRASS configuration and build process).

Consequently,

	make clean && configure ... && make
and
	make distclean && configure ... && make

should be equivalent. Running "configure" overwrites the files which
"make distclean" would delete, so it doesn't really matter about
deleting them first.

Similarly,

	make clean && make
and
	make distclean && configure ... && make

should be equivalent, provided that the neither the configure script
nor its templates (Platform.make.in, config.h.in, etc) have changed,
the system's configuration hasn't changed, and configure is run with
the same arguments as the previous build.

"make distclean" (as opposed to "make clean") is only actually
required if you need to restore the source tree to its original state. 
But it has the advantage of forcing you to run configure prior to the
next build, preventing you from accidentally using a stale
configuration (one which either doesn't account for any changes to the
configure script or its templates, or doesn't match your current
system configuration).

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list