EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: 3.13 Install question
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Fri, 20 Mar 1998 10:26:59 +0100
Can someone working on 3.13 respond to this guy please, I can't help him
just at the moment.

-- Andrew

   ___
 .'   `.        Andrew Johnson, Head of Electronics
/ Royal )       Royal Greenwich Observatory
\ Greenwich     Madingley Road, Cambridge, CB3 0EZ
| Observatory   Tel: +44 1223 374823   Fax: 374700
+----------     WWW: http://www.ast.cam.ac.uk/~anj

  ------- Forwarded message follows -------

-----------------------------(+DS(6N(0Dy)-----------------------------

Return-Path: <[email protected]>
Received: from relay-5.mail.demon.net ([194.217.242.5])
 by rgotsg-mf.demon.co.uk with SMTP
 id <[email protected]> for <[email protected]>
 ; Fri, 20 Mar 1998 08:40:07 +0100
Received: from punt-2.mail.demon.net by mailstore for [email protected]
          id 890367984:05:01736:0; Fri, 20 Mar 98 04:26:24 GMT
Received: from lilac.csi.cam.ac.uk ([131.111.8.44]) by punt-2.mail.demon.net
           id aa0501709; 20 Mar 98 4:26 GMT
Received: from cass41.ast.cam.ac.uk [131.111.69.186] 
	by lilac.csi.cam.ac.uk with esmtp (Exim 1.82 #1)
	id 0yFtNt-0004ht-00; Fri, 20 Mar 1998 04:26:21 +0000
Received: from Garkbit.ast.cam.ac.uk (garkbit.ast.cam.ac.uk [131.111.69.222])
	by cass41.ast.cam.ac.uk (8.8.8+Sun/8.8.8) with SMTP id EAA20467
	for <[email protected]>; Fri, 20 Mar 1998 04:26:20 GMT
Received: from cass41.ast.cam.ac.uk by Garkbit.ast.cam.ac.uk (SMI-8.6/SMI-SVR4-anj-4)
Received: from lilac.csi.cam.ac.uk (lilac.csi.cam.ac.uk [131.111.8.44])
	by cass41.ast.cam.ac.uk (8.8.8+Sun/8.8.8) with SMTP id EAA20464
	for <[email protected]>; Fri, 20 Mar 1998 04:26:18 GMT
Received: from codia.postech.ac.kr [141.223.100.111] 
	by lilac.csi.cam.ac.uk with esmtp (Exim 1.82 #1)
	id 0yFtNg-0004hR-00; Fri, 20 Mar 1998 04:26:10 +0000
Received: (from root@localhost)
	by codia.postech.ac.kr (8.8.8H1/8.8.8) id NAA01533
	for [email protected]; Fri, 20 Mar 1998 13:23:33 +0900 (KST)
Date: Fri, 20 Mar 1998 13:23:33 +0900 (KST)
From: Super-User <[email protected]>
Message-Id: <[email protected]>
Content-Type: text
Apparently-To: <[email protected]>
Bcc:

Dear Sir

I am a graduate student of POSTECH in Korea.
( POSTECH and POSCO built Pohang Accelerator Laboratory [PAL] )
I must install EPICS in my machine to develope the longitudinal feedback system.
But I can't install EPICS in my machine. Some errors happened. 

My machine is SUN Enterprise Server 450. 
OS is Solaris2.6
VxWorks is the Tornado-1.0.1 which is located at /usr/local/tornado-1.0.1
EPICS  is the EPICS-3.13.0.b11 which is located at /usr/local/epics
GCC for HOST (Solaris) is  gcc-2.7.2.3 which is located /usr/local/gcc-2.7.2.3
GCC for sun3 is gcc-2.7.2.3 wihich is localted at /usr/local/hideos/gnu/gcc-2.7.2.3

GCC BIN for HOST is located at /usr/local/bin
GCC BIN for sun3 is located at /usr/local/hideos/gnu/bin

GCC BIN for Vx-Works (i.e cc68k, as68k etc...) is located 
	at /usr/local/tornado-1.0.1/host/sun4-solaris2/bin

Sun Compiler is located /opt/SUNWspro/

I must compile EPICS for the target boards which are the mv162 and mv166.

first, I Compiled EPICS for HOST :

After editing  /usr/local/epics/base/config/CONFIG, CONFIG.SITE, CONFIG.solaris
		CONFIG.mv162, CONFIG_SITE.solaris, CONFIG.Vx.68k, CONFIG_COMMON
		,CONFIG_BASE. 

Question[1] : Are they the right files to edit ? 
---------------------------------------------

	after editing such files;
	
	make clean
	make depends.solaris
	make solaris
	make install.solaris

	in order to install EPICS for HOST 

Question[2] : Are they the right processes ?
--------------------------------------------

and Installation for HOST had no any error.

So I tried to install mv162.

	make depends.mv162
	make mv162

But in making mv162, Some errors happened:

Question[3] do you know why those errors happened ?  
----------------------------------------------------



------ Error Messages in making mv162 ----------------------------
make[2]: Entering directory `/usr/local/epics-3.13.0.b11/base/src/libCom'
make -C O.mv162 -f ../Makefile.Vx T_A=mv162
make[3]: Entering directory `/usr/local/epics-3.13.0.b11/base/src/libCom/O.mv162'
rm -f calcPerform.o
/usr/local/tornado-1.0.1/host/sun4-solaris2/bin/cc68k -B/usr/local/tornado-1.0.1/host/sun4-solaris2/lib/gcc-lib/ -nostdinc   -DCPU=MC68040 -m68040 -DCPU_FAMILY=MC680X0 -O -Wall -pedantic -ansi -I. -I.. -I../../../src/include/os/vxWorks -I../../../include -I../../../include -I../../../include/os/vxWorks -I/usr/local/tornado-1.0.1/target/h -DvxWorks -DV5_vxWorks   -c ../calcPerform.c
In file included from ../calcPerform.c:109:
/usr/local/tornado-1.0.1/target/h/string.h:39: warning: conflicting types for built-in function `memcmp'
/usr/local/tornado-1.0.1/target/h/string.h:40: warning: conflicting types for built-in function `memcpy'
as: unrecognized option `-m68040'
make[3]: *** [calcPerform.o] Error 1
make[3]: Leaving directory `/usr/local/epics-3.13.0.b11/base/src/libCom/O.mv162'
make[2]: *** [mv162] Error 2
make[2]: Leaving directory `/usr/local/epics-3.13.0.b11/base/src/libCom'
make[1]: *** [libCom.mv162] Error 2
make[1]: Leaving directory `/usr/local/epics-3.13.0.b11/base/src'
make: *** [src.mv162] Error 2
codia[146]# 
-------------------------------------------------------------------------------

So I can't install EPICS anymore.
If do you know the reason making errors. Please help me.

My CONFIG files are:


1) /base/config/CONFIG
--------------------------------------------------------------------------------
#
#  $Id: CONFIG,v 1.11 1997/06/25 00:48:06 jhill Exp $
#
#  The developer may edit this file.

# assume T_A is the host arch if not specified
ifndef T_A
T_A = $(HOST_ARCH)
endif

#  EPICS base definitions
#
include $(EPICS_BASE)/config/CONFIG_COMMON
 
#  Site-specific build options
#
include $(EPICS_BASE)/config/CONFIG_SITE

#  Architecture specific definitions
#
include $(EPICS_BASE)/config/CONFIG.$(T_A)
#
-include $(EPICS_BASE)/config/CONFIG_SITE.$(T_A)
 
#  User specific definitions
#
-include $(HOME)/EPICS_CONFIG
-include $(HOME)/EPICS_CONFIG.$(HOST_ARCH)

#  All EPICS options other than BUILD_TYPE
#   may be overridden here.
#
# EXAMPLES
# --------
#  Build client objects statically ?  must be either YES or NO
#STATIC_BUILD=NO
#  Unix Optimization,   must be either YES or NO
#UNIX_OPT=YES
#  VxWorks Optimization,  must be either YES or NO
#VX_OPT=YES
#  Generate Verbose Compiler Warnings for Unix,  must be either YES or NO
#UNIX_WARN=YES
#  Generate Verbose Compiler Warnings for VxWorks,  must be either YES or NO
#VX_WARN=YES
#etc.
#


2) /base/config/CONFIG.Vx.68k
-----------------------------------------------------------------------------
# $Id: CONFIG.Vx.68k,v 1.17 1997/05/05 17:56:58 jba Exp $
#
# This file is maintained by the EPICS community.

AR = $(VX_GNU_BIN)/ar68k
RANLIB = $(VX_GNU_BIN)/ranlib68k
YACC = $(EYACC)
LEX = $(ELEX)
CC = $(VX_GNU_BIN)/cc68k -B$(VX_GNU_LIB)/gcc-lib/ -nostdinc
CPP = $(VX_GNU_BIN)/cpp68k -nostdinc
#CPP = $(CC) -E
GCC = $(CC)
LD = $(VX_GNU_BIN)/ld68k -r
EPICS_LDLIBS =
MV=mv
RM=rm -f
MKDIR = mkdir
RMDIR=rm -rf
WHAT = what

#----------------------------
# Only G++ currently supported
CPLUSPLUS = G++
CXXCMPLR = NORMAL
VX_OPT = YES
BOARD = $(subst mv,MV,$(T_A))
CPU = 68000
OS = VXWORKS
#----------------------------

CCC = $(VX_GNU_BIN)/cc68k -B$(VX_GNU_LIB)/gcc-lib/ -nostdinc
AR_CCC = $(VX_GNU_BIN)/ar68k
CPP_CCC = $(VX_GNU_BIN)/cpp68k -nostdinc
RANLIB_CCC = $(VX_GNU_BIN)/ranlib68k
LD_CCC = $(VX_GNU_BIN)/ld68k
CCC_CCFLAGS =
CCC_ARCH_DEP_CCFLAGS =
CCC_ARCH_DEP_LDFLAGS =

G++ = $(GNU_BIN)/sun3-g++ -B$(GNU_LIB)/gcc-lib/ -nostdinc -DEXPL_TEMPL
AR_G++ = $(GNU_BIN)/sun3-ar
CPP_G++ = $(GNU_BIN)/sun3-c++
RANLIB_G++ = $(GNU_BIN)/sun3-ranlib
LD_G++ = $(GNU_BIN)/sun3-ld
G++_ARCH_DEP_CCFLAGS = --no-builtin -Wa,"-m68040" -DOS_EQ_$(OS) \
	-DBOARD_EQ_$(BOARD) -DCPU_EQ_$(CPU) -DBOARD=$(BOARD)
G++_ARCH_DEP_LDFLAGS = -Ur -N -T$(EPICS_BASE_BIN)/vxldscript.MRI

CCC_NORMAL = $(CCC)
CCC_STRICT = $(CCC) -ansi -pedantic -Wtraditional \
      -Wmissing-prototypes -Woverloaded-virtual \
      -Wwrite-strings -Wconversion -Wstrict-prototypes\
      -Wpointer-arith -Winline
G++_NORMAL = $(G++) 
G++_STRICT = $(G++) -ansi -pedantic -Wtraditional

CXX = $($(CPLUSPLUS)_$(CXXCMPLR))
AR_CXX = $(AR_$(CPLUSPLUS))
CPP_CXX = $(CPP_$(CPLUSPLUS))
RANLIB_CXX = $(RANLIB_$(CPLUSPLUS))
LD_CXX = $(LD_$(CPLUSPLUS))

ARCH_DEP_CXXFLAGS += $($(CPLUSPLUS)_ARCH_DEP_CCFLAGS) $(ARCH_DEP_CFLAGS)
ARCH_DEP_CXXLDFLAGS =  $($(CPLUSPLUS)_ARCH_DEP_LDFLAGS) $(ARCH_DEP_LDFLAGS)


# special c library requirements
SPECIAL_LANG =

# Compiler flags, don't mess with this
#    Optimization flags
VX_OPT_YES = -O
VX_OPT_NO =
VX_OPT_FLAGS = $(VX_OPT_$(VX_OPT))
 
#    Include files
VX_INCLUDES = -I. -I.. $(USR_INCLUDES) -I$(INSTALL_INCLUDE) -I$(EPICS_BASE_INCLUDE) \
	-I$(EPICS_BASE_INCLUDE)/os/vxWorks -I$(VX_INCLUDE)

#    Warnings
#At some time we should turn on pedantic
VX_WARN_YES = -Wall -pedantic -ansi
#VX_WARN_YES = -Wall
VX_WARN_NO =
VX_WARN_FLAGS = $(VX_WARN_$(VX_WARN))
 
#    Operating system flags
VX_OP_SYS_FLAGS = -DvxWorks -DV5_vxWorks
 
#    Arch dependent flags are set in CONFIG_ARCH.*
VX_CFLAGS = $(VX_OPT_FLAGS) $(VX_WARN_FLAGS) \
        $(VX_INCLUDES) $(VX_OP_SYS_FLAGS)
VX_CXXFLAGS += $(VX_CFLAGS)
 
TARGET_CFLAGS = $($(basename $@)_CFLAGS)
TARGET_CXXFLAGS = $($(basename $@)_CXXFLAGS)
TARGET_LDFLAGS = $($(basename $@)_LDFLAGS)
TARGET_CPPFLAGS = $($(basename $@)_CPPFLAGS)
TARGET_SNCFLAGS = $($(basename $@)_SNCFLAGS)

CFLAGS = $(TARGET_CFLAGS) $(USR_CFLAGS) $(ARCH_DEP_CFLAGS) $(VX_CFLAGS)
CXXFLAGS = $(TARGET_CXXFLAGS) $(USR_CXXFLAGS) $(ARCH_DEP_CXXFLAGS) $(VX_CXXFLAGS)
LDFLAGS =    $(TARGET_LDFLAGS) $(USR_LDFLAGS) $(ARCH_DEP_LDFLAGS) $(VX_LDFLAGS)
LDLIBS = $(TARGET_LDLIBS) $(USR_LDLIBS) $(ARCH_DEP_LDLIBS) $(VX_LDLIBS)
CXXLDLIBS = $(TARGET_LDLIBS) $(USR_CXXLDLIBS) $(ARCH_DEP_LDLIBS) $(VX_LDLIBS)
CXXLDFLAGS = $(TARGET_LDFLAGS) $(USR_CXXLDFLAGS) $(ARCH_DEP_CXXLDFLAGS) $(VX_LDFLAGS)
CPPFLAGS += $(TARGET_CPPFLAGS) $(USR_CPPFLAGS)
# Build compile line here
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c
LINK.c = $(LD) $(LDFLAGS) -o
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
LINK.cc = $(LD_CXX) $(CXXLDFLAGS) -o

CPPSNCFLAGS = $(VX_INCLUDES)

DEPENDS_RULE.c = -$(COMPILE.c) -M $(SRCS.c) >> .DEPENDS
DEPENDS_RULE.cc = -$(COMPILE.cc) -M $(SRCS.cc) >> .DEPENDS 

# Allow site host architecture specific overrides
-include $(EPICS_BASE)/config/CONFIG_SITE.$(BUILD_TYPE).$(ARCH_CLASS).$(HOST_ARCH)


3) /base/config/CONFIG.mv162
------------------------------------------------------------------------------
# $Id: CONFIG.mv162,v 1.1 1996/07/11 19:16:25 jba Exp $
#
# This file is maintained by the EPICS community.

# BUILD_TYPE
BUILD_TYPE = Vx

# For Vx directories of form:
#   $(VX_DIR)/$(HOST_ARCH).$(ARCH_CLASS)/bin
ARCH_CLASS = 68k

include $(EPICS_BASE)/config/CONFIG.$(BUILD_TYPE).$(ARCH_CLASS)

# Architecture specific build flags
ARCH_DEP_CFLAGS = -DCPU=MC68040 -m68040 -DCPU_FAMILY=MC680X0


4) /base/config/CONFIG.solaris
--------------------------------------------------------------------------------
#
# $Id: CONFIG.solaris,v 1.14 1997/04/23 16:55:23 jhill Exp $
#
#  This file is maintained by the EPICS community.

# BUILD_TYPE
#   Currently either Vx or Host
BUILD_TYPE = Host

ARCH_CLASS = solaris
 
# Compiler and utility invocation (supply path to compiler here)
#   (with warning flags built in)
#  Paths to compilers
GCC = /usr/local/bin/gcc 
ACC = $(SPARCWORKS)/bin/cc
# SUNCC doesn't exist under Solaris

#
# required by sun's C++ compiler
#
AR = ar
_AR = $(AR) $(ARFLAGS)
G++_AR = $(_AR)
CCC_AR = $(CCC) -xar -o
ARCMD = $($(CPLUSPLUS)_AR)

RANLIB =
YACC = $(EYACC)
LEX = $(ELEX)
G++ = /usr/local/bin/g++
CCC = /opt/SUNWspro/bin/CC

CP=cp
MV=mv
RM=rm -f
MKDIR=mkdir
RMDIR=rm -rf
CHMOD = "/bin/chmod"
WHAT = what

EXE=
OBJ=.o

ACC_ANSI_INVOKE_W_NO = $(ACC) -Xa -w
ACC_ANSI_INVOKE_W_YES = $(ACC) -Xa
ACC_STRICT_INVOKE_W_YES = $(ACC) -Xc -v
ACC_TRAD_INVOKE_W_NO = $(ACC) -Xs -w
ACC_TRAD_INVOKE_W_YES = $(ACC) -Xs
ACC_LD_FLAGS = 
ACC_LD_LIBS =
SUNCC_TRAD_INVOKE_W_NO = $(ACC_TRAD_INVOKE_W_NO)
SUNCC_TRAD_INVOKE_W_YES = $(ACC_TRAD_INVOKE_W_YES)
GCC_ANSI_INVOKE_W_NO = $(GCC) -ansi -w
GCC_ANSI_INVOKE_W_YES = $(GCC) -ansi
GCC_STRICT_INVOKE_W_YES = $(GCC) -ansi -Wall -pedantic
GCC_TRAD_INVOKE_W_NO = $(GCC) -traditional -w
GCC_TRAD_INVOKE_W_YES = $(GCC) -traditional
GCC_LD_LIBS = 
GCC_LD_FLAGS =

C_OLD = $($(STANDARD)_TRAD_INVOKE_W_$(UNIX_WARN))
C_ANSI = $($(ANSI)_ANSI_INVOKE_W_$(UNIX_WARN))
C_STRICT = $($(ANSI)_STRICT_INVOKE_W_YES)
CC = $(C_$(CMPLR))

LD_LIBS_OLD = $($(STANDARD)_LD_LIBS)
LD_LIBS_ANSI = $($(ANSI)_LD_LIBS)
LD_LIBS_STRICT = $($(ANSI)_LD_LIBS)
CCOMPILER_LDLIBS = $(LD_LIBS_$(CMPLR))
LD_FLAGS_OLD = $($(STANDARD)_LD_FLAGS)
LD_FLAGS_ANSI = $($(ANSI)_LD_FLAGS)
LD_FLAGS_STRICT = $($(ANSI)_LD_FLAGS)
CCOMPILER_LDFLAGS = $(LD_FLAGS_$(CMPLR))

CCC_NORMAL_INVOKE_W_NO = $(CCC) +p
CCC_NORMAL_INVOKE_W_YES = $(CCC) +p +w
CCC_STRICT_INVOKE_W_YES = $(CCC) +p +w
CCC_LD_FLAGS = -L$(SPECIAL_LANG)
CCC_LD_LIBS =
CCC_TEMPL_INST_FLAG =
G++_NORMAL_INVOKE_W_NO = $(G++) -ansi -pedantic -w
G++_NORMAL_INVOKE_W_YES = $(G++) -ansi -pedantic -Wall
G++_STRICT_INVOKE_W_YES = $(G++) -ansi -pedantic -Wtraditional -Wall \
      -Wmissing-prototypes -Woverloaded-virtual \
      -Wwrite-strings -Wconversion -Wstrict-prototypes\
      -Wpointer-arith -Winline
G++_TEMPL_INST_FLAG = -DEXPL_TEMPL

CXX_NORMAL = $($(CPLUSPLUS)_NORMAL_INVOKE_W_$(UNIX_WARN))
CXX_STRICT = $($(CPLUSPLUS)_STRICT_INVOKE_W_YES)
TEMPL_INST_CXXFLAG = $($(CPLUSPLUS)_TEMPL_INST_FLAG)

# GNU make likes CXX instead of CCC
CXX = $(CXX_$(CXXCMPLR))

# Static Build options
#ACC_SFLAGS_YES= -dn
ACC_SFLAGS_YES= -Bstatic
ACC_SLIBS_YES= -lw -lintl -Bdynamic -ldl -Bstatic -lXext -lX
ACC_SLIBS_NO=
ACC_SFLAGS_NO=
CC_SFLAGS_YES= -dn
CC_SFLAGS_NO=
GCC_SFLAGS_YES= -static
GCC_SFLAGS_NO=

SF_OLD = $($(STANDARD)_SFLAGS_$(STATIC_BUILD))
SF_ANSI = $($(ANSI)_SFLAGS_$(STATIC_BUILD))
SF_STRICT = $(SF_ANSI)
UNIX_SFLAGS = $(SF_$(CMPLR))
 
SL_OLD = $($(STANDARD)_SLIBS_$(STATIC_BUILD))
SL_ANSI = $($(ANSI)_SLIBS_$(STATIC_BUILD))
SL_STRICT = $(SL_ANSI)
UNIX_SLIBS = $(SL_$(CMPLR))
 
# Optimization
OPTIM_YES = -O
OPTIM_NO =
UNIX_OPT_FLAGS = $(OPTIM_$(UNIX_OPT))

# Include files
UNIX_INCLUDES = -I. -I.. $(USR_INCLUDES) -I$(INSTALL_INCLUDE) -I$(EPICS_BASE_INCLUDE) \
                -I$(EPICS_BASE_INCLUDE)/os/$(T_A)
 
# Operating system flags
OP_SYS_FLAGS = -DUNIX
 
UNIX_LDFLAGS = -L$(EPICS_BASE_LIB) $(CCOMPILER_LDFLAGS)
UNIX_LDLIBS = $(UNIX_SLIBS) -lm $(CCOMPILER_LDLIBS)
 
# Architecture specific build flags
ARCH_DEP_CFLAGS = -DSOLARIS 
ARCH_DEP_CXXFLAGS = $(ARCH_DEP_CFLAGS)
ARCH_DEP_LDLIBS = -lsocket -lnsl
# -lsocket     needed by libca.a
# -lnsl        needed by libca.a 
 
UNIX_CFLAGS = $(UNIX_SFLAGS) $(UNIX_INCLUDES) $(OP_SYS_FLAGS)
 
UNIX_CXXFLAGS = $(UNIX_CFLAGS)
 
# Target specific flags
TARGET_CFLAGS = $($(basename $@)_CFLAGS)
TARGET_CXXFLAGS = $($(basename $@)_CXXFLAGS)
TARGET_CPPFLAGS = $($(basename $@)_CPPFLAGS)
TARGET_LDFLAGS = $($(basename $@)_LDFLAGS)
TARGET_LDLIBS = $($(basename $@)_LDLIBS)
TARGET_SNCFLAGS = $($(basename $@)_SNCFLAGS)

CFLAGS = $(UNIX_OPT_FLAGS) $(TARGET_CFLAGS) $(USR_CFLAGS) $(ARCH_DEP_CFLAGS) $(UNIX_CFLAGS)
CXXFLAGS = $(UNIX_OPT_FLAGS) $(TARGET_CXXFLAGS) $(USR_CXXFLAGS) \
	$(ARCH_DEP_CXXFLAGS) $(UNIX_CXXFLAGS) $(TEMPL_INST_CXXFLAG)
CPPFLAGS += $(TARGET_CPPFLAGS) $(USR_CPPFLAGS)

LDFLAGS = $(SPECIAL_LDFLAGS) $(TARGET_LDFLAGS) $(USR_LDFLAGS) $(ARCH_DEP_LDFLAGS) $(UNIX_LDFLAGS)
LDLIBS = $(TARGET_LDLIBS) $(USR_LDLIBS) $(ARCH_DEP_LDLIBS) $(UNIX_LDLIBS)
 
# Override SUN defaults
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
# Unlike the 'Unix' makesystem, output flags -o .. are now part of LINK.c[c]
LINK.c = $(CC) -o $@ $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
LINK.cc = $(CXX) -o $@ $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)

DEPENDS_RULE.c = -$(COMPILE.c) -xM $(SRCS.c) > .DEPENDS
DEPENDS_RULE.cc = -$(COMPILE.cc) -xM $(SRCS.cc) >> .DEPENDS


5) /base/config/CONFIG_BASE
-------------------------------------------------------------------------------
#  $Id: CONFIG_BASE,v 1.14 1997/06/25 06:40:24 jhill Exp $
#

# the order of following list is important

#
# for c++ build add the dirs gdd and cas after ca
# (and uncomment the c++ files in src/lbCom/Makefile.Unix)
#
DIRS = tools 
DIRS += include 
DIRS += cxxTemplates 
DIRS += toolsComm
DIRS += libCom 
DIRS += libvxWorks
DIRS += cvtDctsdr 
DIRS += dbStatic 
DIRS += db 
DIRS += bpt 
DIRS += ca 
DIRS += util 
DIRS += misc 
DIRS += sequencer 
DIRS += dbtools 
DIRS += rsrv
DIRS += rec
DIRS += as 
DIRS += drv
DIRS += dev
DIRS += devOpt
DIRS += iocCore

#
# if CPLUSPLUS isnt empty then include C++ src codes
#
DIRS += $(patsubst %,gdd,$(strip $(CPLUSPLUS)))
DIRS += $(patsubst %,cas,$(strip $(CPLUSPLUS)))

EPICS_BASE = $(TOP)

# EPICS include config file
include $(EPICS_BASE)/config/CONFIG

EPICS_BASE = $(INSTALL_LOCATION)

#
# this speeds up the build by turning off implicit rules search
# for EPICS Makefiles (which are not created from other files)
.PHONY:: $(TOP)/config/CONFIG
.PHONY:: $(TOP)/config/CONFIG.* $(TOP)/config/CONFIG_* 
.PHONY:: $(TOP)/config/RULES.* $(TOP)/config/RULES_* .DEPENDS
.PHONY:: $(HOME)/EPICS_CONFIG $(HOME)/EPICS_CONFIG.$(HOST_ARCH)
.PHONY:: ../Makefile.Vx ../Makefile.Unix ../Makefile.Host Makefile


6) /base/config/CONFIG_COMMON
-------------------------------------------------------------------------------
#
#  $Id: CONFIG_COMMON,v 1.9 1997/06/25 06:37:23 jhill Exp $
#
#  CONFIG_COMMON - Another EPICS BASE config file
#	by Matthew Needes and Mike Bordua
#
#  This file is to be maintained by the EPICS community.
#

# Common Configuration Information 

# CROSS1 will be defined only when CROSS_COMPILER_HOST_ARCHS is NOT defined
CROSS1 = $(CROSS_COMPILER_TARGET_ARCHS$(word 1,$(CROSS_COMPILER_HOST_ARCHS)))
 
# CROSS2 will be defined only when CROSS_COMPILER_HOST_ARCHS is defined
# and HOST_ARCH is one of it's words  
CROSS2 = $(CROSS_COMPILER_TARGET_ARCHS$(filter-out 1,$(words $(filter $(HOST_ARCH),$(CROSS_COMPILER_HOST_ARCHS)))))
 
BUILD_ARCHS = $(HOST_ARCH) $(CROSS1) $(CROSS2)
 
INSTALL_LOCATION = $(TOP)
 
INSTALL_LOCATION_LIB        = $(INSTALL_LOCATION)/lib
INSTALL_LOCATION_BIN        = $(INSTALL_LOCATION)/bin

INSTALL_INCLUDE             = $(INSTALL_LOCATION)/include
INSTALL_DOC                 = $(INSTALL_LOCATION)/doc
INSTALL_MAN                 = $(INSTALL_LOCATION)/man
INSTALL_TEMPLATES           = $(INSTALL_LOCATION)/templates
INSTALL_DBD                 = $(INSTALL_LOCATION)/dbd
INSTALL_CONFIG              = $(INSTALL_LOCATION)/config

EPICS_BASE_INCLUDE      = $(EPICS_BASE)/include
EPICS_BASE_DBD          = $(EPICS_BASE)/dbd

EPICS_EXTENSIONS_INCLUDE      = $(EPICS_EXTENSIONS)/include
EPICS_EXTENSIONS_TEMPLATES    = $(EPICS_EXTENSIONS)/templates

DIVIDER = .

EPICS_BASE_HOST_BIN = $(EPICS_BASE)/bin/$(HOST_ARCH)


# private versions of lex/yacc from EPICS
EYACC = $(EPICS_BASE_HOST_BIN)/antelope$(EXE)
ELEX = $(EPICS_BASE_HOST_BIN)/e_flex$(EXE) -S$(EPICS_BASE_INCLUDE)/flex.skel.static

# Default for perl if it's on the PATH,
# otherwise override this in e.g. CONFIG_SITE
PERL=perl

# install from EPICS
INSTALL = $(PERL) $(EPICS_BASE_HOST_BIN)/installEpics.pl
INSTALL_PRODUCT = $(INSTALL)

# dbtools from EPICS

# state notation language compiler (installed from base/src/sequencer)
SNC = $(EPICS_BASE_HOST_BIN)/snc

# vxWorks definitions
VX_CONFIG_DIR = $(VX_DIR)/config
VX_INCLUDE = $(VX_DIR)/h
#VX_GNU_BIN = $(VX_GNU)/$(HOST_ARCH).$(ARCH_CLASS)/bin
VX_GNU_BIN = /usr/local/tornado-1.0.1/host/sun4-solaris2/bin
#VX_GNU_LIB = $(VX_GNU)/$(HOST_ARCH).$(ARCH_CLASS)/lib
VX_GNU_LIB = /usr/local/tornado-1.0.1/host/sun4-solaris2/lib

ifdef T_A

INSTALL_LIB                 = $(INSTALL_LOCATION_LIB)/$(T_A)
INSTALL_TCLLIB              = $(INSTALL_LOCATION_LIB)/$(T_A)
INSTALL_BIN                 = $(INSTALL_LOCATION_BIN)/$(T_A)

EPICS_BASE_LIB          = $(EPICS_BASE)/lib/$(T_A)
EPICS_BASE_BIN          = $(EPICS_BASE)/bin/$(T_A)

EPICS_EXTENSIONS_LIB          = $(EPICS_EXTENSIONS)/lib/$(T_A)
EPICS_EXTENSIONS_BIN          = $(EPICS_EXTENSIONS)/bin/$(T_A)

VX_IMAGE = $(VX_CONFIG_DIR)/$(T_A)/vxWorks
VX_IMAGE_SYM = $(VX_CONFIG_DIR)/$(T_A)/vxWorks.sym

# location of installed vxWorks image
EPICS_VX_IMAGE = $(EPICS_BASE_BIN)/vxWorks
EPICS_VX_IMAGE_SYM = $(EPICS_BASE_BIN)/vxWorks.sym

endif


7) base/config/CONFIG_SITE
-------------------------------------------------------------------------------
#
#  $Id: CONFIG_SITE,v 1.12 1997/06/25 14:09:40 jba Exp $
#
#  CONFIG_SITE  - EPICS BASE config file
#	by Matthew Needes and Mike Bordua
#
#  This file is to be modified by the EPICS system manager
#	only.
#
#  The host architecture performing the build,
#	i.e.: the arch running DCT/getrel/etc.
#
#  Currently Supporting:
#	sun4
#	hp700
#	alpha
#	solaris
#	sgi
#	Linux
#	WIN32
#
#  HOST_ARCH now an environment variable
HOST_ARCH=$(shell /usr/local/epics/startup/HostArch)
ifndef HOST_ARCH
	HOST_ARCH=unsupported
endif

#  The architectures to build EPICS for
#
#  Currently Supporting:
#       mv167
#       mv162
#       mv162lc
#       mv147
#       hkv2f
#	niCpu030
#	pc486
#
#CROSS_COMPILER_TARGET_ARCHS=mv167
CROSS_COMPILER_TARGET_ARCHS=mv162

#  If only a subset of the host architectures perform
#  the build for the CROSS_COMPILER_TARGET_ARCHS 
#  uncomment the following line and specify them.
#
CROSS_COMPILER_HOST_ARCHS=solaris

#  VxWorks directory
#VX_DIR=$(VW)
VX_DIR=/usr/local/tornado-1.0.1/target

#  Gnu directory for gcc
#VX_GNU = $(VX_GNU)
VX_GNU = /usr/local/tornado-1.0.1/host/sun4-solaris2

#  Gnu directory for g++
#GNU_DIR = $(LOCAL_GNU)
GNU_DIR = /usr/local/hideos/gnu
GNU_BIN = $(GNU_DIR)/bin
GNU_LIB = $(GNU_DIR)/lib

#  Client ANSI Compiler
#   GCC     (gcc -ansi)
#   ACC     (acc)
#   HPACC   (cc -Aa)
#ANSI=HPACC
ANSI=ACC
 
#  Client Standard C Compiler choice
#   GCC     (gcc -traditional)
#   ACC     (acc -Xs)
#   SUNCC   (cc)
#   HPCC    (cc -Ac)
#STANDARD=HPCC
STANDARD=ACC
 
#  C++ Compiler 
#   G++     (g++)   GNU C++
#   CCC     (CC)    OS VENDOR C++
#CPLUSPLUS=G++
#Note: if CPLUSPLUS is empty then C++ src codes are not built
#CPLUSPLUS=	# use this if site does not have C++ compiler
CPLUSPLUS=CCC

#  Build client objects statically ?
#        must be either YES or NO
STATIC_BUILD=NO

#  Unix Optimization
#	must be either YES or NO
UNIX_OPT=YES

#  VxWorks Optimization
#	must be either YES or NO
VX_OPT=YES
 
#  Generate Verbose Compiler Warnings for Unix
#	must be either YES or NO
UNIX_WARN=YES

#  Generate Verbose Compiler Warnings for VxWorks
#	must be either YES or NO
VX_WARN=YES

# adl2dl 
ADL2DL = $(EPICS_EXTENSIONS)/bin/$(HOST_ARCH)/adl2dl

# sch2edif compiler and flags
SCH2EDIF = sch2edif
SCH2EDIF_PATH =
SCH2EDIF_SYSFLAGS = -n -ap -p.+..+$(SCH2EDIF_PATH)+$(EPICS_EXTENSIONS)/templates/capfast/sym+
SCH2EDIF_FLAGS =
 
# e2db and flags
#    - again there is an assumption where edb.def is installed.
E2DB = $(EPICS_EXTENSIONS)/bin/$(HOST_ARCH)/e2db
E2DB_SYSFLAGS = -ate -d $(EPICS_EXTENSIONS)/templates/capfast/edb.def
E2DB_FLAGS =

8) /base/config/CONFIG_SITE.solaris
--------------------------------------------------------------------------------
#
# $Id: CONFIG_SITE.solaris,v 1.3 1996/08/14 20:46:24 jba Exp $
#
# Site Specific Configuration Information
# Only the local epics system manager should modify this file

# Default SUN compiler, individual Makefiles will override
#  if they cannot support ANSI compilation.
#   STRICT -  ANSI C - force warning flags
#   ANSI   -  ANSI C
#   OLD    -  Standard C - Not appropriate here.
CMPLR=ANSI

# Default SUN C++ compiler, individual Makefiles will override
#  if they are coded to a higher standard.
#   STRICT -  ANSI C++ force strict warning flags
#   NORMAL -  ANSI C++ optional warning flags
CXXCMPLR=NORMAL
#CXXCMPLR=STRICT

# Unbundled C compiler stuff
SPARCWORKS = /opt/SUNWspro
#SPECIAL_LANG = $(SPARCWORKS)/lib
SPECIAL_LANG = .



Question[4] Are settings of above files right ? 
-----------------------------------------------

Question[5] Where is the site(=URL) which I can obtain the information 
                          about installin of EPICS-3.13.0.b11 ?
----------------------------------------------------------------

Question[6] In Compiling EPICS for mv162, must I make mv162 turn on ? 
	    i.e) Solaris2.6 machine must communicate with mv162 target 
		 through Tornado-1.0.1 in compiling EPICS for mv162 ?
----------------------------------------------------------------------

Question[7] I want to know how I can built mv166 target. 
		Would you tell me the way ? 
---------------------------------------------------------

Question[8] I want to know the right compiling processes  in making mv162 and
		mv166. Would you tell me the way  ? 

Question[9] I can't obtain documentations about compiling of EPICS-3.13.0.b11
 	Every documentaions about EPICS installation are about old version EPICS	-3.12. Where can I obtain the new version install documentations ? 


Thank you for your help

I hope to receive your answer soon r answer soon.



from Yujong Kim

[email protected]
TEL/+82-562-279-1982
FAX/+82-562-279-1699


>From - Fri Mar 20 11:43:34 1998
X-Mozilla-Status: 0001
Message-ID: <[email protected]>
Date: Fri, 20 Mar 1998 11:43:27 +0900
From: System Administrator of Codia <[email protected]>
Organization: POSTECH
X-Mailer: Mozilla 3.04Gold (X11; I; SunOS 5.6 sun4u)
MIME-Version: 1.0
To: [email protected]
Subject: (no subject)
Content-Type: text/plain; charset=euc-kr
Content-Transfer-Encoding: 7bit

-- 
 -----------------------------------------------------
  PAL Computational Server Codia System Administrator
        Yujong Kim   [email protected] 
     TEL/ +82-562-279-1982 FAX/ +82-562-279-1699


-----------------------------(+DS(6N(0Dy)-----------------------------

Replies:
Re: 3.13 Install question Ralph Lange

Navigate by Date:
Prev: BUG in Record Reference Manual R3.13 Ralph Lange
Next: Re: 3.13 Install question Ralph Lange
Index: 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: BUG in Record Reference Manual R3.13 Bob Dalesio
Next: Re: 3.13 Install question Ralph Lange
Index: 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·