[Olsr-dev] [PATCH] fix infinite recursion problem when running make

John Hay (spam-protected)
Sun Nov 4 08:01:48 CET 2007


On Sat, Nov 03, 2007 at 10:22:21PM +0100, Bernd Petrovitsch wrote:
> On Sat, 2007-11-03 at 18:00 +0100, Felix Fietkau wrote:
> [....]
> > with certain make versions, running make in the olsr directory loops
> 
> Which version(s)? On which OS/systems/...?
> 
> > forever rebuilding a dependency file. This is caused by a bogus .PHONY
> 
> That sounds quite strange. Rebuilding it 2 times (or so) may be possible
> (due to multiple dependency resolutions) but I doubt that it will last
> infinitely?
> Any log file?
> 
> > statement (which is erroneously used on a real file target).
> 
> Actually this file purposely always generated to reflect the build time
> of the daemon (and compiling the beast from CVS-HEAD several times a day
> requires to put the time and build host in).
> 
> > This patch fixes it:
> > https://svn.openwrt.org/openwrt/packages/net/olsrd/patches/110-build_fix.patch
> 
> That defeats the purpose of that file as such and consequently we can
> kill that file completely and remove the variables there or think of
> another way to get that info in.
> I'm open to alternative solutions of the "problem".

Just an observation from the FreeBSD side. I have not really looked into
it yet. In our olsrd port (our framework to create packages) we use gmake.
It works on my i386 box. What I have seen on my arm box, is that it will
build fine, but when I do the install part, it seems to go in a loop
trying to recreate the builddata* stuff. One thing that is different on
my arm, is that it does not have local disks. It is nfs mounted from one
of my i386 boxes. My temp workaround was to delete builddata.c between
building and installing.

John
-- 
John Hay -- (spam-protected) / (spam-protected)




More information about the Olsr-dev mailing list