Hello Paul,

        It has nothing to do with permissions. If i turn off the -j switch
        then everything goes fine. When i turn it on, then according to
        my rule.

        all: $(ODIR) $(LIB)

        causes make to run the two commands simultaneously.
        The $(ODIR) target is used to creating a "depend" directory
        which is used by the $(LIB) target. Since those two commands
        are run simultaneously. the dependency check fails to create
        the file.

        It has nothing to do with permissions.....

        Has anyone seen such problems...

        Jagdish

Quoting Paul D. Smith:
> 
> %% [EMAIL PROTECTED] (Jagadish Prasad) writes:
> 
>   jp> GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
>   jp> Built for sparc-sun-solaris2.6
>  
>   jp> $(ODIR)/%.o : %.C
>   jp>         @$(CC) -xM1 $(INCLUDES) $< | sed 's.^.$(ODIR)/.' > $(ODIR)/depend/$*.d
>   jp>         $(CC) $(FLAGS) $(INCLUDES) -c $< -o $@
> 
>   jp> IN SUBSYSTEM  `/ossvobs/oss/Coss/src/CossSmsTomWorld/intg'
>   jp> make[1]: Entering directory `/ossvobs/oss/Coss/src/CossSmsTomWorld/intg'
>   jp> mkdir -p /export/home/localbuild_depend_merge_view/smstomworld/depend
>   jp> /bin/sh: 
>/export/home/localbuild_depend_merge_view/smstomworld/depend/SmsAppConfigOptions.d: 
>cannot create
> 
> But this isn't the error you reported last time; that had something to
> do with "*** Waiting for unfinished jobs...." messages.
> 
> This is simply some kind of permissions problem or something, it has
> nothing to do with make at all, it's a shell error (see how it says
> "/bin/sh" at the beginning of the message? :).
> 
> Use "ls -l" to look at the permissions on the above directory and the .d
> file you're trying to write, and you'll probably find the answer.
> 
> -- 
> -------------------------------------------------------------------------------
>  Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
>  http://www.gnu.org                      http://www.ultranet.com/~pauld/gmake/
>  "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
> 
> 


-- 
A window of opportunity won't open itself.
 
****************************************************************************
Jagadish Prasad                                                 650-637-4794
Cosine Communications
RedwoodCity, CA
****************************************************************************

Reply via email to