bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

different behavior with -j2 on solaris


From: Peter Kurpis
Subject: different behavior with -j2 on solaris
Date: Wed, 16 May 2001 12:11:20 -1000 (HST)

With all things being equal, -j2 causes an apparent failure of
the $(wildcard ...) function for us.  Specifically, it does not
expand to a file (util.o in the example below) thus showing
the failure mode when

        (.) -j2 is used at the top of the build tree

and does expand (i.e. to util.o) showing expected behavior when

        (1) -j2 is not used
        (2) -j2 is used in a make call in the subdirectory (as
            contrasted with the top of the build tree)

Some cut-and-pasted details follow.

(Note:  I could not locate the bug report archive and would appreciate
knowing where it is, so I am not being redundant.  Also, I would 
appreciate an ack on this email.  Thanks!)


Rule:
=====
kofe_server: $(OBJECT) $(wildcard ../common/*.o)
        $(ORB_LINK.cc) -o $@ $^                         \
        $(KROOT)/coke/server/cokeKeyword.o              \
        $(KROOT)/coke/server/cokeService.o              \
        $(KROOT)/coke/server/cokeRegistration.o         \
        $(KROOT)/coke/server/cokeMonitor_Thread.o       \
        $(KROOT)/coke/server/cokeEventSupplier.o        \
        -L$(LIBDIR) -lktlkey $(KTL_LIBS) $(COKE_LIBS)   \
                $(ORB_LIBS) $(DL_LIBS) $(LIBS)


Output from gmake -j2 in "top" directory  (failure mode)
========================================================
/usr/local/bin/g++ -R/home/filer/johng/johng2/ACE/dist/ACE_wrappers/TAO/tao 
-R/home/filer/johng/johng2/ACE/dist/ACE_wrappers/ace -R/usr/local/lib 
-L/home/filer/johng/johng2/ACE/dist/ACE_wrappers/TAO/tao 
-L/home/filer/johng/johng2/ACE/dist/ACE_wrappers/ace -L/usr/local/lib -o 
kofe_server EventSupplier_impl.o main.o kofeService.o keyword.o 
KTL_Monitor_Thread.o                        \  <--- FILE MISSING...
/home/johng/kroot/coke/server/cokeKeyword.o             \
/home/johng/kroot/coke/server/cokeService.o             \
/home/johng/kroot/coke/server/cokeRegistration.o        \
/home/johng/kroot/coke/server/cokeMonitor_Thread.o      \
/home/johng/kroot/coke/server/cokeEventSupplier.o       \
-L/home/johng/kroot/rel/default/lib/ -lktlkey 
-R/home/johng/kroot/rel/default/lib -L/home/johng/kroot/rel/default/lib -lktl 
-lktlker -R/home/johng/kroot/rel/default/lib 
-L/home/johng/kroot/rel/default/lib -lcoke     \
        -lTAO -lTAO_RTEvent -lTAO_CosNaming -lTAO_Svc_Utils -lACE -lposix4 
-lthread -ldl -lsocket -lnsl


Output from gmake -j2 in target directory (expected behavior, same as for no 
-j2)
=================================================================================
/usr/local/bin/g++ -R/home/filer/johng/johng2/ACE/dist/ACE_wrappers/TAO/tao 
-R/home/filer/johng/johng2/ACE/dist/ACE_wrappers/ace -R/usr/local/lib 
-L/home/filer/johng/johng2/ACE/dist/ACE_wrappers/TAO/tao 
-L/home/filer/johng/johng2/ACE/dist/ACE_wrappers/ace -L/usr/local/lib -o 
kofe_server EventSupplier_impl.o main.o kofeService.o keyword.o 
KTL_Monitor_Thread.o ../common/util.o       \  <--- ...NOW IT APPEARS
/home/johng/kroot/coke/server/cokeKeyword.o             \
/home/johng/kroot/coke/server/cokeService.o             \
/home/johng/kroot/coke/server/cokeRegistration.o        \
/home/johng/kroot/coke/server/cokeMonitor_Thread.o      \
/home/johng/kroot/coke/server/cokeEventSupplier.o       \
-L/home/johng/kroot/rel/default/lib/ -lktlkey 
-R/home/johng/kroot/rel/default/lib -L/home/johng/kroot/rel/default/lib -lktl 
-lktlker -R/home/johng/kroot/rel/default/lib 
-L/home/johng/kroot/rel/default/lib -lcoke     \
        -lTAO -lTAO_RTEvent -lTAO_CosNaming -lTAO_Svc_Utils -lACE -lposix4 
-lthread -ldl -lsocket -lnsl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]