Diane Holt | 19 May 2011 23:21
Picon

Craig McPheeters' JAM_SEMAPHORE

Has anyone ever tried using this? I have a number of targets that are just tarfile extractions. When I run the build -jN, I get N number of extractions happening at the same time. Which would be fine, if tar didn't sometimes error out with a "No such file or directory" (which doesn't make any sense, since the directory certainly exists, and the file will exist once tar extracts it). So I thought I'd give Craig's semaphore stuff a try, see if I could get Jam to serialize these targets so only one tar happens at a time. But I still get N number of tars happening at the same time. So either I'm not using it right, or it doesn't actually work the way I'd hoped it would.

Here's Craig's original mail about it: http://maillist.perforce.com/pipermail/jamming/2002-April/000927.html

As mentioned in there, I added a:

JAM_SEMAPHORE on $(target) = nodeName ;

but I don't see it having any affect on anything.

Thanks,
Diane

_______________________________________________
jamming mailing list  -  jamming <at> maillist.perforce.com
http://maillist.perforce.com/mailman/listinfo/jamming
Diane Holt | 19 May 2011 23:36
Picon

Re: Craig McPheeters' JAM_SEMAPHORE

Never mind -- this massive head-cold has turned me into a moron.... I managed to forget to pass in the -DOPT_SEMAPHORE on my recompile.

It works exactly as expected. (Thank you Craig, if you're still out there.)

D.

On Thu, May 19, 2011 at 2:21 PM, Diane Holt <holt.diane <at> gmail.com> wrote:
Has anyone ever tried using this? I have a number of targets that are just tarfile extractions. When I run the build -jN, I get N number of extractions happening at the same time. Which would be fine, if tar didn't sometimes error out with a "No such file or directory" (which doesn't make any sense, since the directory certainly exists, and the file will exist once tar extracts it). So I thought I'd give Craig's semaphore stuff a try, see if I could get Jam to serialize these targets so only one tar happens at a time. But I still get N number of tars happening at the same time. So either I'm not using it right, or it doesn't actually work the way I'd hoped it would.

Here's Craig's original mail about it: http://maillist.perforce.com/pipermail/jamming/2002-April/000927.html

As mentioned in there, I added a:

JAM_SEMAPHORE on $(target) = nodeName ;

but I don't see it having any affect on anything.

Thanks,
Diane

_______________________________________________
jamming mailing list  -  jamming <at> maillist.perforce.com
http://maillist.perforce.com/mailman/listinfo/jamming

Gmane