[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

2285.0. "(Fwd) C++ ODE build" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Thu May 16 1996 16:29

Date Of Receipt: 	16-MAY-1996 15:09:11.40
From: 	WASTED::"[email protected]"
To: 	odehelp@DEC:.zko.wasted
CC: 	
Subj: 	(Fwd) C++ ODE build

------- Forwarded Message Follows -------
Date:          Thu, 16 May 1996 14:54:01 -0400
From:          Damon Weinstein <[email protected]>
Organization:  Digital Equipment Corporation, DECthreads
To:            [email protected]
Subject:       C++ ODE build

Hi,

I am having some degree of difficulty using the ODE system to make my
C++ files.  I have tried to use hiprof as an example and it just is not
working out.  No matter what I do, I seem to get multiple sets of rules
for my build, and somehow the "extraneous" rule set seems to be for c -
and overriding my rules.  Here is my Makefile (followed by the output
from a build:

***********************************************************************
quench_10$ cat Makefile
#
# Static Library test makefile
#

LIBPTHREAD      = ${MAKETOP}usr/ccs/lib/libpthread
VPATH           = ${target_machine}:COMMON

#
# Include the list of test programs.  (This list is common between
shared and
# static test builds.)
#
include ${MAKETOP}usr/ccs/lib/libpthread/test/alpha/makefile.common

PROGRAMS        = mybench

CFLAGS          =
LINTFLAGS                       = $(_CCDEFS_) -U -X
CXXFLAGS                        = -noinline_auto

USE_STATIC_LIBRARIES =

icpb_thd_001.o_INCFLAGS = -I${LIBPTHREAD}/COMMON
-I${LIBPTHREAD}/${target_machine}
icsb_obj_001.o_INCFLAGS = -I${LIBPTHREAD}/COMMON
-I${LIBPTHREAD}/${target_machine}
icvb_err_001.o_INCFLAGS = -I${LIBPTHREAD}/COMMON
-I${LIBPTHREAD}/${target_machine}
icvb_err_002.o_INCFLAGS = -I${LIBPTHREAD}/COMMON
-I${LIBPTHREAD}/${target_machine}
icvb_err_003.o_INCFLAGS = -I${LIBPTHREAD}/COMMON
-I${LIBPTHREAD}/${target_machine}

pcvb_dbg_001_LIBSARGS = -lpthreaddebug

#
# Targets to allow tests to be built by suite
#

icpb: ${ICPB}
icsb: ${ICSB}
icvb: ${ICVB}
pcpb: ${PCPB}
pcsb: ${PCSB}
pcvb: ${PCVB}
pcvi: ${PCVI}
puvb: ${PUVB}
puvi: ${PUVI}

mybench: mybench.o
        $(_LD_) $(LDFLAGS) $(_CC_LIBDIRS_) -r -o $@ $*.o -lcxx

mybench.o: mybench.C
        ${CXX} -o $* -c ${_CXXFLAGS_} $*.C

include ${MAKEFILEPATH}/standard.mk
include ${MAKEFILEPATH}/programs.mk
include ${MAKEFILEPATH}/objects.mk
include ${MAKEFILEPATH}/compiler.mk
include ${MAKEFILEPATH}/datafiles.mk

CXX                     = ${_CC_EXEC_PREFIX_}cxx
_CXXFLAGS_              = ${_CCFLAGS_}
-I${_CC_EXEC_PREFIX_}/usr/include/cxx \
                          ${CXXFLAGS}

.SUFFIXES: .C

.C.o:
        ${CXX} -c ${_CXXFLAGS_} $*.C






*******************************************************************
Output from build :

 build mybench
relative path: ./usr/ccs/lib/libpthread/test.
string passed to
/usr/sde/osf1/build/ptos.nightly/tools/alpha_OSF1/alpha/hostbin/make:
   make -cF mybench
cd ../../../../../../obj/alpha/usr/ccs/lib/libpthread/test
Multiple rules lines for `mybench'
Too many command lines for `mybench'
/usr/sde/osf1/build/ptos.nightly/tools/alpha_OSF1/alpha/acc/ld
-L/usr/users/damon/sb/private/export/alpha/usr/shlib
-L/usr/proj/cma/latest_sandbox/export/alpha/usr/shlib
-L/usr/sde/osf1/build/ptos.nightly/export/alpha/usr/shlib
-L/usr/users/damon/sb/private/export/alpha/usr/ccs/lib/cmplrs/cc
-L/usr/proj/cma/latest_sandbox/export/alpha/usr/ccs/lib/cmplrs/cc
-L/usr/sde/osf1/build/ptos.nightly/export/alpha/usr/ccs/lib/cmplrs/cc -L/usr/sde/osf1/build/ptos.nightly/export/alpha/usr/ccs/lib/cmplrs/cc/cmplrs/cc
-L/usr/users/damon/sb/private/export/alpha/usr/ccs/lib
-L/usr/proj/cma/latest_sandbox/export/alpha/usr/ccs/lib
-L/usr/sde/osf1/build/ptos.nightly/export/alpha/usr/ccs/lib
-L/usr/sde/osf1/build/ptos.nightly/export/alpha/usr/ccs/lib/cmplrs/cc -r
-o mybench mybench.c.o -lcxx
/usr/sde/osf1/build/ptos.nightly/tools/alpha_OSF1/alpha/acc/ld:
Can't open: mybench.c.o (No such file or directory)
*** Exit 1
Stop.
quench_14$

T.RTitleUserPersonal
Name
DateLines