[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
warning with recursive gmakes and -j<integer> option
From: |
Asperheim, Eric |
Subject: |
warning with recursive gmakes and -j<integer> option |
Date: |
Mon, 11 Jun 2001 12:18:55 -0700 |
Hi,
1. There seems to be some issue when using recursive gmakes in parallel (-j
switch) with a limit on the parallelism (-j <integer>). If I use just the -j
option (no integer - unlimited parallelism), I get the following (test case
has 3 targets: a.db, b.db, and c.db)
fhc2349:easperhe gmake -j
gmake[1]: Entering directory
`/pcd/s139/syncap_env/ASICsyn/proj_syn/work/syn/easperhe/a/v23'
gmake[1]: `dbs/a.db' is up to date.
gmake[1]: Leaving directory
`/pcd/s139/syncap_env/ASICsyn/proj_syn/work/syn/easperhe/a/v23'
gmake[1]: Entering directory
`/pcd/s139/syncap_env/ASICsyn/proj_syn/work/syn/easperhe/b/v23'
gmake[1]: `dbs/b.db' is up to date.
gmake[1]: Leaving directory
`/pcd/s139/syncap_env/ASICsyn/proj_syn/work/syn/easperhe/b/v23'
gmake[1]: Entering directory
`/pcd/s139/syncap_env/ASICsyn/proj_syn/work/syn/easperhe/c/v23'
gmake[1]: `dbs/c.db' is up to date.
gmake[1]: Leaving directory
`/pcd/s139/syncap_env/ASICsyn/proj_syn/work/syn/easperhe/c/v23'
But if I supply an integer to the -j option, I get
warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
fhc2349:easperhe gmake -j10
gmake[1]: Entering directory
`/pcd/s139/syncap_env/ASICsyn/proj_syn/work/syn/easperhe/a/v23'
gmake[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make
rule.
gmake[1]: `dbs/a.db' is up to date.
gmake[1]: Leaving directory
`/pcd/s139/syncap_env/ASICsyn/proj_syn/work/syn/easperhe/a/v23'
gmake[1]: Entering directory
`/pcd/s139/syncap_env/ASICsyn/proj_syn/work/syn/easperhe/c/v23'
gmake[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make
rule.
gmake[1]: Entering directory
`/pcd/s139/syncap_env/ASICsyn/proj_syn/work/syn/easperhe/b/v23'
gmake[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make
rule.
gmake[1]: `dbs/c.db' is up to date.
gmake[1]: Leaving directory
`/pcd/s139/syncap_env/ASICsyn/proj_syn/work/syn/easperhe/c/v23'
gmake[1]: `dbs/b.db' is up to date.
gmake[1]: Leaving directory
`/pcd/s139/syncap_env/ASICsyn/proj_syn/work/syn/easperhe/b/v23'
I read about this warning in the gmake docs. I don't know why the parent
gmake wouldn't know that a child is a gmake with -j10 option and it would
know the child is a gmake with -j option. I'm using the (MAKE) variable to
launch the child gmake:
# @ $(MAKE) $(DB)$(notdir $@) -C $(subst $(DB)$(notdir $@),,$@)
+@ cd $(subst $(DB)$(notdir $@),,$@) && $(MAKE) $(DB)$(notdir $@)
I've tried both forms (with cd and -C option) and neither works.
Any ideas or is this a known bug with gmake?
Thanks,
Eric
Eric Asperheim - GCD Design
phone: (916) 356-4624
Intel Corporation, FM6-81
fax: (916) 356-3051
1900 Prairie City Rd, Folsom, CA 95630
address@hidden
----------------------------------------------------------------------------
---------------------------------
- warning with recursive gmakes and -j<integer> option,
Asperheim, Eric <=