Can't build makefile from 3rd party tool

Can't build makefile from 3rd party tool

Post by pacman002 » Sun, 22 Dec 2002 01:14:32



Elias,
Thanks for your help.  Putting "start" in front the tao_idl command
did help.  However, now it seems like CL is trying to compile the
resulting *S.cpp and *C.cpp files before the tao_idl compiler is
finished.  Is there a way to keep the rest of my make file from being
built until the tao_idl compiler is done?

Thank you very much for the help!

Justin



> Hi,

> One solution is to use 'start tao_idl' and spawn a new
> DOS prompt. That works, but if compilation fails make
> wont know about it. And you end up in a race
> condition, as make spawns a DOS prompt and carries on.

> Justin out of curiocity how Rhapsody executes nmake.
> Do you use system, spawn etc. ??

> Also a que for the TAO experts does tao_idl spawns a
> process/thread?

> Elias



> > Hello,
> > I am currently creating an adapter for Rhapsody (UML
> > design tool that
> > generates IDL code) so that it will work with the
> > TAO IDL compiler.  
> > For some reason I cannot build from the Rhapsody
> > tool.  I get the
> > following:

> > "Building ------------  Server.exe   ------------
> > Executing: "C:\Rhapsody41\Share\etc\msmake.bat"
> > Server.mak build
> > Setting environment for using Microsoft Visual C++
> > tools.
> > tao_idl: preprocessor CL.EXE returned with an error
> > NMAKE : fatal error U1077: 'tao_idl' : return code
> > '0x1'
> > Stop.

> > Build Done"

> > If I take this same exact make file and build it
> > from a DOS window
> > then it builds fine.  I thought the problem might be
> > with environment
> > variables, but I'm not sure.  I also think the
> > problem may be with
> > the temporary files that are created by tao_idl.exe.
> >  Does anyone
> > have any suggestions as to what the problem might
> > be?  Is there
> > something special I should do when calling the
> > tao_idl from another
> > application?

> > Thanks,
> > Justin

> > Also, here is the makefile:

> > ############# Target type (Debug/Release)
> > ##################

> ############################################################
> > CPPCompileDebug= /Zi /Od /D "_DEBUG" /MDd
> > /Fd"$(TARGET_NAME)"
> > CPPCompileRelease= /Ox /D"NDEBUG" /MD
> > /Fd"$(TARGET_NAME)"
> > LinkDebug=
> > LinkRelease=
> > BuildSet=Debug
> > SUBSYSTEM=/SUBSYSTEM:console
> > COM=False
> > RPFrameWorkDll=False

> > ConfigurationCPPCompileSwitches= /D
> > "ACE_AS_STATIC_LIBS" /D "TAO_AS_ST
> > ATIC_LIBS"  /I . /I . /I $(OMROOT)\LangCpp /I
> > $(OMROOT)
> > \LangCpp\oxf /nologo /W3 /GX
> > $(CPPCompileDebug) /D "_AFXDLL" /D "WIN32" /D
> > "_CONSOLE" /D "_MBCS" /D
> >  "_WINDOWS" $(INST_FLAGS) $(INCLUDE_PATH)
> > $(INST_INCLUDES) /c

> > !IF "$(RPFrameWorkDll)" == "True"

> ConfigurationCPPCompileSwitches=$(ConfigurationCPPCompileSwitches)
> > /D
> > "FRAMEWORK_DLL"
> > !ENDIF

> > !IF "$(COM)" == "True"
> > SUBSYSTEM=/SUBSYSTEM:windows
> > !ENDIF

> > !IF "No" == "Yes"
> > !IF "Statement Coverage" == "Statement Coverage"
> > CPP=ctcxx.exe -CTv -CTkeep -CTtag-allocator
> > -CTtag-level=SC
> > !ELSEIF "Statement Coverage" == "Decision Coverage"
> > CPP=ctcxx.exe -CTv -CTkeep -CTtag-allocator
> > -CTtag-level=DC
> > !ELSEIF "Statement Coverage" == "MC/DC"
> > CPP=ctcxx.exe -CTv -CTkeep -CTtag-allocator
> > -CTtag-level=MCDC
> > !ELSE
> > CPP=ctcxx.exe -CTv -CTkeep -CTtag-allocator
> > !ENDIF
> > !ENDIF

> > ################### Compilation flags
> > ######################

> ############################################################
> > INCLUDE_QUALIFIER=/I
> > LIB_PREFIX=MS

> > ################### Commands definition
> > #########################

> #################################################################
> > LIB_CMD=link.exe -lib
> > LINK_CMD=link.exe
> > LIB_FLAGS=$(LinkDebug) /NOLOGO    
> > LINK_FLAGS=$(LinkDebug) /NOLOGO     $(SUBSYSTEM)
> > /MACHINE:I386

> > ############### Generated macros #################
> > ##################################################

> > FLAGSFILE=
> > RULESFILE=
> > OMROOT="C:\Rhapsody41\Share"

> > CPP_EXT=.cpp
> > H_EXT=.h
> > OBJ_EXT=.obj
> > EXE_EXT=.exe
> > LIB_EXT=.lib

> > INSTRUMENTATION=None

> > TIME_MODEL=RealTime

> > TARGET_TYPE=Executable

> > TARGET_NAME=Server

> > all : $(TARGET_NAME)$(EXE_EXT) Server.mak

> > TARGET_MAIN=MainServer

> > LIBS= \

> $(ACE_ROOT)\TAO\tao\PortableServer\TAO_PortableServersd.lib
> > \

> > $(ACE_ROOT)\TAO\orbsvcs\orbsvcs\TAO_Svc_Utilssd.lib
> > \
> >   $(ACE_ROOT)\TAO\tao\IORTable\TAO_IORTablesd.lib \

> > $(ACE_ROOT)\TAO\orbsvcs\orbsvcs\TAO_CosNamingsd.lib
> > \
> >   $(ACE_ROOT)\TAO\tao\TAOsd.lib
> > $(ACE_ROOT)\ace\acesd.lib

> > INCLUDE_PATH= \
> >   $(INCLUDE_QUALIFIER)$(ACE_ROOT)\TAO\ \
> >   $(INCLUDE_QUALIFIER)$(ACE_ROOT)\ \
> >   $(INCLUDE_QUALIFIER)$(ACE_ROOT)\TAO\orbsvcs \

> > $(INCLUDE_QUALIFIER)$(OMROOT)/LangCpp/osconfig/WIN32

> > ADDITIONAL_OBJS=

> > OBJS= \
> >   DisplayS.obj DisplayC.obj  \
> >   Display_i.obj  \
> >   MyPkg.obj

> > ######################## Predefined macros
> > ############################

######################################################################

- Show quoted text -

Quote:> > #
> > $(OBJS) : $(INST_LIBS) $(OXF_LIBS)

> > LIB_POSTFIX=
> > !IF "$(BuildSet)"=="Release"
> > LIB_POSTFIX=R
> > !ENDIF

> > !IF "$(TARGET_TYPE)" == "Executable"
> > LinkDebug=$(LinkDebug) /DEBUG
> > LinkRelease=$(LinkRelease) /OPT:NOREF
> > !ELSEIF "$(TARGET_TYPE)" == "Library"
> > LinkDebug=$(LinkDebug) /DEBUGTYPE:CV
> > !ENDIF

> > !IF "$(INSTRUMENTATION)" == "Animation"
> > INST_FLAGS=/D "OMANIMATOR"
> > INST_INCLUDES=/I $(OMROOT)\LangCpp\aom /I
> > $(OMROOT)\LangCpp\tom
> > !IF "$(RPFrameWorkDll)" == "True"
> > INST_LIBS=

> OXF_LIBS=$(OMROOT)\LangCpp\lib\$(LIB_PREFIX)oxfanimdll$(LIB_POSTFIX)
> > $(LIB_EXT)
> > !ELSE
> > INST_LIBS=

> $(OMROOT)\LangCpp\lib\$(LIB_PREFIX)aomanim$(LIB_POSTFIX)
> > $(LIB_EXT)

> OXF_LIBS=$(OMROOT)\LangCpp\lib\$(LIB_PREFIX)oxfinst$(LIB_POSTFIX)
> > $(LIB_EXT)

> $(OMROOT)\LangCpp\lib\$(LIB_PREFIX)omComAppl$(LIB_POSTFIX)
> > $(LIB_EXT)
> > !ENDIF
> > SOCK_LIB=wsock32.lib

> > !ELSEIF "$(INSTRUMENTATION)" == "Tracing"

> === message truncated ===

> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com

 
 
 

Can't build makefile from 3rd party tool

Post by pacman002 » Sun, 22 Dec 2002 01:26:03


Nevermind.  I figured it out.  If I put a "/W" as an option to
the "start" command then control does not pass back to the window
from which START was invoked until the new window is closed.

This now works.  Again thank you for your help.

Justin

--- In tao-us...@yahoogroups.com, "pacman0028 <jdyer@i...>"

<jdyer@i...> wrote:
> Elias,
> Thanks for your help.  Putting "start" in front the tao_idl command
> did help.  However, now it seems like CL is trying to compile the
> resulting *S.cpp and *C.cpp files before the tao_idl compiler is
> finished.  Is there a way to keep the rest of my make file from
being
> built until the tao_idl compiler is done?

> Thank you very much for the help!

> Justin

> --- In tao-us...@yahoogroups.com, Elias Pipinakis
> <elias_pipinakis@y...> wrote:
> > Hi,

> > One solution is to use 'start tao_idl' and spawn a new
> > DOS prompt. That works, but if compilation fails make
> > wont know about it. And you end up in a race
> > condition, as make spawns a DOS prompt and carries on.

> > Justin out of curiocity how Rhapsody executes nmake.
> > Do you use system, spawn etc. ??

> > Also a que for the TAO experts does tao_idl spawns a
> > process/thread?

> > Elias

> >  --- "pacman0028 <jdyer@i...>"
> > <jdyer@i...> wrote: >
> > > Hello,
> > > I am currently creating an adapter for Rhapsody (UML
> > > design tool that
> > > generates IDL code) so that it will work with the
> > > TAO IDL compiler.  
> > > For some reason I cannot build from the Rhapsody
> > > tool.  I get the
> > > following:

> > > "Building ------------  Server.exe   ------------
> > > Executing: "C:\Rhapsody41\Share\etc\msmake.bat"
> > > Server.mak build
> > > Setting environment for using Microsoft Visual C++
> > > tools.
> > > tao_idl: preprocessor CL.EXE returned with an error
> > > NMAKE : fatal error U1077: 'tao_idl' : return code
> > > '0x1'
> > > Stop.

> > > Build Done"

> > > If I take this same exact make file and build it
> > > from a DOS window
> > > then it builds fine.  I thought the problem might be
> > > with environment
> > > variables, but I'm not sure.  I also think the
> > > problem may be with
> > > the temporary files that are created by tao_idl.exe.
> > >  Does anyone
> > > have any suggestions as to what the problem might
> > > be?  Is there
> > > something special I should do when calling the
> > > tao_idl from another
> > > application?

> > > Thanks,
> > > Justin

> > > Also, here is the makefile:

> > > ############# Target type (Debug/Release)
> > > ##################

> > ############################################################
> > > CPPCompileDebug= /Zi /Od /D "_DEBUG" /MDd
> > > /Fd"$(TARGET_NAME)"
> > > CPPCompileRelease= /Ox /D"NDEBUG" /MD
> > > /Fd"$(TARGET_NAME)"
> > > LinkDebug=
> > > LinkRelease=
> > > BuildSet=Debug
> > > SUBSYSTEM=/SUBSYSTEM:console
> > > COM=False
> > > RPFrameWorkDll=False

> > > ConfigurationCPPCompileSwitches= /D
> > > "ACE_AS_STATIC_LIBS" /D "TAO_AS_ST
> > > ATIC_LIBS"  /I . /I . /I $(OMROOT)\LangCpp /I
> > > $(OMROOT)
> > > \LangCpp\oxf /nologo /W3 /GX
> > > $(CPPCompileDebug) /D "_AFXDLL" /D "WIN32" /D
> > > "_CONSOLE" /D "_MBCS" /D
> > >  "_WINDOWS" $(INST_FLAGS) $(INCLUDE_PATH)
> > > $(INST_INCLUDES) /c

> > > !IF "$(RPFrameWorkDll)" == "True"

> > ConfigurationCPPCompileSwitches=$(ConfigurationCPPCompileSwitches)
> > > /D
> > > "FRAMEWORK_DLL"
> > > !ENDIF

> > > !IF "$(COM)" == "True"
> > > SUBSYSTEM=/SUBSYSTEM:windows
> > > !ENDIF

> > > !IF "No" == "Yes"
> > > !IF "Statement Coverage" == "Statement Coverage"
> > > CPP=ctcxx.exe -CTv -CTkeep -CTtag-allocator
> > > -CTtag-level=SC
> > > !ELSEIF "Statement Coverage" == "Decision Coverage"
> > > CPP=ctcxx.exe -CTv -CTkeep -CTtag-allocator
> > > -CTtag-level=DC
> > > !ELSEIF "Statement Coverage" == "MC/DC"
> > > CPP=ctcxx.exe -CTv -CTkeep -CTtag-allocator
> > > -CTtag-level=MCDC
> > > !ELSE
> > > CPP=ctcxx.exe -CTv -CTkeep -CTtag-allocator
> > > !ENDIF
> > > !ENDIF

> > > ################### Compilation flags
> > > ######################

> > ############################################################
> > > INCLUDE_QUALIFIER=/I
> > > LIB_PREFIX=MS

> > > ################### Commands definition
> > > #########################

> > #################################################################
> > > LIB_CMD=link.exe -lib
> > > LINK_CMD=link.exe
> > > LIB_FLAGS=$(LinkDebug) /NOLOGO    
> > > LINK_FLAGS=$(LinkDebug) /NOLOGO     $(SUBSYSTEM)
> > > /MACHINE:I386

> > > ############### Generated macros #################
> > > ##################################################

> > > FLAGSFILE=
> > > RULESFILE=
> > > OMROOT="C:\Rhapsody41\Share"

> > > CPP_EXT=.cpp
> > > H_EXT=.h
> > > OBJ_EXT=.obj
> > > EXE_EXT=.exe
> > > LIB_EXT=.lib

> > > INSTRUMENTATION=None

> > > TIME_MODEL=RealTime

> > > TARGET_TYPE=Executable

> > > TARGET_NAME=Server

> > > all : $(TARGET_NAME)$(EXE_EXT) Server.mak

> > > TARGET_MAIN=MainServer

> > > LIBS= \

> > $(ACE_ROOT)\TAO\tao\PortableServer\TAO_PortableServersd.lib
> > > \

> > > $(ACE_ROOT)\TAO\orbsvcs\orbsvcs\TAO_Svc_Utilssd.lib
> > > \
> > >   $(ACE_ROOT)\TAO\tao\IORTable\TAO_IORTablesd.lib \

> > > $(ACE_ROOT)\TAO\orbsvcs\orbsvcs\TAO_CosNamingsd.lib
> > > \
> > >   $(ACE_ROOT)\TAO\tao\TAOsd.lib
> > > $(ACE_ROOT)\ace\acesd.lib

> > > INCLUDE_PATH= \
> > >   $(INCLUDE_QUALIFIER)$(ACE_ROOT)\TAO\ \
> > >   $(INCLUDE_QUALIFIER)$(ACE_ROOT)\ \
> > >   $(INCLUDE_QUALIFIER)$(ACE_ROOT)\TAO\orbsvcs \

> > > $(INCLUDE_QUALIFIER)$(OMROOT)/LangCpp/osconfig/WIN32

> > > ADDITIONAL_OBJS=

> > > OBJS= \
> > >   DisplayS.obj DisplayC.obj  \
> > >   Display_i.obj  \
> > >   MyPkg.obj

> > > ######################## Predefined macros
> > > ############################

######################################################################

- Show quoted text -

> > > #
> > > $(OBJS) : $(INST_LIBS) $(OXF_LIBS)

> > > LIB_POSTFIX=
> > > !IF "$(BuildSet)"=="Release"
> > > LIB_POSTFIX=R
> > > !ENDIF

> > > !IF "$(TARGET_TYPE)" == "Executable"
> > > LinkDebug=$(LinkDebug) /DEBUG
> > > LinkRelease=$(LinkRelease) /OPT:NOREF
> > > !ELSEIF "$(TARGET_TYPE)" == "Library"
> > > LinkDebug=$(LinkDebug) /DEBUGTYPE:CV
> > > !ENDIF

> > > !IF "$(INSTRUMENTATION)" == "Animation"
> > > INST_FLAGS=/D "OMANIMATOR"
> > > INST_INCLUDES=/I $(OMROOT)\LangCpp\aom /I
> > > $(OMROOT)\LangCpp\tom
> > > !IF "$(RPFrameWorkDll)" == "True"
> > > INST_LIBS=

> > OXF_LIBS=$(OMROOT)\LangCpp\lib\$(LIB_PREFIX)

oxfanimdll$(LIB_POSTFIX)

- Show quoted text -

> > > $(LIB_EXT)
> > > !ELSE
> > > INST_LIBS=

> > $(OMROOT)\LangCpp\lib\$(LIB_PREFIX)aomanim$(LIB_POSTFIX)
> > > $(LIB_EXT)

> > OXF_LIBS=$(OMROOT)\LangCpp\lib\$(LIB_PREFIX)oxfinst$(LIB_POSTFIX)
> > > $(LIB_EXT)

> > $(OMROOT)\LangCpp\lib\$(LIB_PREFIX)omComAppl$(LIB_POSTFIX)
> > > $(LIB_EXT)
> > > !ENDIF
> > > SOCK_LIB=wsock32.lib

> > > !ELSEIF "$(INSTRUMENTATION)" == "Tracing"

> > === message truncated ===

> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.com