Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: vxWorks 6.8 and "#define _VSB_CONFIG_FILE"
From: "Ernest L. Williams Jr." <ernesto@slac.stanford.edu>
To: Jeff Hill <johill@lanl.gov>
Cc: "'EPICS core-talk'" <core-talk@aps.anl.gov>
Date: Mon, 12 Sep 2011 12:43:11 -0700
Jeff Hill wrote:
Ernest,

I think that that change was made by Andrew.
Ah, okay.
Well, the warning messages still appear as shown below:
=======================================================================

/afs/slac/package/vxworks/devel/6.8/gnu/4.1.2-vxworks-6.8/x86-linux2/bin/ccpentium
-c            -DCPU=PENTIUM4 -D_X86_ -D_WRS_KERNEL -D_WRS_VX_SMP -MD
-MP  -DvxWorks -DvxWorks -DBSD=44 -include
/afs/slac/package/vxworks/devel/6.8/vxworks-6.8/target/h/vxWorks.h
-g   -Wall      -mtune=pentium4 -march=pentium4 -fno-defer-pop -nostdlib
-x 'c++'     -fno-builtin -fno-builtin -DBSD=44  -MMD -I. -I../O.Common
-I. -I.. -I../../../../src/cas/generic
-I../../../../src/cas/io/bsdSocket -I../../../../src/cas/generic/st -I../../../../src/cas/../ca -I../../../../include/os/vxWorks
-I../../../../include
-I/afs/slac/package/vxworks/devel/6.8/vxworks-6.8/target/h
-I/afs/slac/package/vxworks/devel/6.8/vxworks-6.8/target/h/wrn/coreip
../../../../src/cas/io/bsdSocket/ipIgnoreEntry.cpp
In file included from
/afs/slac/package/vxworks/devel/6.8/vxworks-6.8/target/h/arch/i86/archI86.h:75,
                from
/afs/slac/package/vxworks/devel/6.8/vxworks-6.8/target/h/types/vxArch.h:147,
                from
/afs/slac/package/vxworks/devel/6.8/vxworks-6.8/target/h/vxWorksCommon.h:219,
                from
/afs/slac/package/vxworks/devel/6.8/vxworks-6.8/target/h/vxWorks.h:85,
                from <command line>:1:
/afs/slac/package/vxworks/devel/6.8/vxworks-6.8/target/h/vsbConfig.h:42:2:
warning: #warning "VxWorks Source Build (VSB) project not specified; using default VxWorks UP configuration under $WIND_BASE/target/lib/h/config"
====================================================================================================================================================

Again, I have resolved this by defining  "_VSB_CONFIG_FILE"

I now get a redefined warning for the source files that were modified Andrew.
Like so,

=======================================================================================================================================================
/afs/slac/package/vxworks/devel/6.8/gnu/4.1.2-vxworks-6.8/x86-linux2/bin/ccpentium -c            -DCPU=PENTIUM4 -D_X86_ -D_WRS_KERNEL -D_WRS_VX_SMP -MD -MP  -D_VSB_CONFIG_FILE=\"/afs/slac/package/vxworks/devel/6.8/vxworks-6.8/target/lib_smp/h/config/vsbConfig.h\"  -DvxWorks -DvxWorks -DBSD=44 -include /afs/slac/package/vxworks/devel/6.8/vxworks-6.8/target/h/vxWorks.h    -g   -Wall      -mtune=pentium4 -march=pentium4 -fno-defer-pop -nostdlib -x 'c++'     -fno-builtin -fno-builtin -DBSD=44  -MMD -I. -I../O.Common -I. -I.. -I../../../../src/cas/generic -I../../../../src/cas/io/bsdSocket -I../../../../src/cas/generic/st -I../../../../src/cas/../ca -I../../../../include/os/vxWorks -I../../../../include       -I/afs/slac/package/vxworks/devel/6.8/vxworks-6.8/target/h -I/afs/slac/package/vxworks/devel/6.8/vxworks-6.8/target/h/wrn/coreip ../../../../src/cas/generic/templateInstances.cpp
In file included from ../../../../include/osiSock.h:21,
                from ../../../../include/aitConvert.h:29,
                from ../../../../include/gdd.h:50,
                from ../../../../src/cas/generic/casdef.h:30,
                from ../../../../src/cas/generic/casPVI.h:37,
                from ../../../../src/cas/generic/casChannelI.h:22,
                from ../../../../src/cas/generic/templateInstances.cpp:12:
../../../../include/os/vxWorks/osdSock.h:22:1: warning: "_VSB_CONFIG_FILE" redefined
<command line>:1:1: warning: this is the location of the previous definition

===============================================================================================================

Cheers,
Ernest






Jeff
______________________________________________________
Jeffrey O. Hill           Email        johill@lanl.gov
LANL MS H820              Voice        505 665 1831
Los Alamos NM 87545 USA   FAX          505 665 5107

Message content: TSPA

With sufficient thrust, pigs fly just fine. However, this is
not necessarily a good idea. It is hard to be sure where they
are going to land, and it could be dangerous sitting under them
as they fly overhead. -- RFC 1925


-----Original Message-----
From: Ernest L. Williams Jr. [mailto:ernesto@slac.stanford.edu]
Sent: Monday, September 12, 2011 11:01 AM
To: Jeff Hill
Cc: EPICS core-talk
Subject: vxWorks 6.8 and "#define _VSB_CONFIG_FILE"

Hi Jeff,

Looks like you added the following to some files in EPICS BASE R3-14-12

#define _VSB_CONFIG_FILE <../lib/h/config/vsbConfig.h>

This did not work globally as I received many warning messages.

====== snippet of src/libCom/osi/os/vxWorks/osdProcess.c ====
/*************************************************************************
\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
*     National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
*     Operator of Los Alamos National Laboratory.
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************
/

/*
 * Revision-Id: anj@aps.anl.gov-20101005192737-disfz3vs0f3fiixd
 *
 * Operating System Dependent Implementation of osiProcess.h
 *
 * Author: Jeff Hill
 *
 */

/* This is needed for vxWorks 6.8 to prevent an obnoxious compiler
warning */
#define _VSB_CONFIG_FILE <../lib/h/config/vsbConfig.h>

==== End snippet src/libCom/osi/os/vxWorks/osdProcess.c ================


++++++++++++++++++++++++++++++++++++++

The best place to put this would be in vxWorksCommon??

For now, I have placed it in one of my target config files.
I have attached for your reference.

===== CONFIG.Common.vxWorks-pentium4 =====
# CONFIG.Common.vxWorks-pentium4
#
# Revision-Id:
# This file is maintained by the build community.
#
# Definitions for vxWorks-pentium4 target archs
# Sites may override these definitions in
CONFIG_SITE.Common.vxWorks-pentium4
#-------------------------------------------------------

# Include definitions common to all vxWorks target archs
include $(CONFIG)/os/CONFIG.Common.vxWorksCommon

#
==========================================================================
============
# Define "VSB_DIR" and "VXB_CONFIG_FILE" to get rid of warning message
in vxWorks 6.8
#
==========================================================================
============
VSB_DIR=$(WIND_BASE)/vxworks-6.8/target/lib
#
==========================================================================
===========

# Vx GNU cross compiler suffix
CMPLR_SUFFIX = pentium

ARCH_CLASS = pentium

ARCH_DEP_CPPFLAGS = -DCPU=PENTIUM4 -D_X86_ -D_WRS_KERNEL -MD -MP
ARCH_DEP_CPPFLAGS += -
D_VSB_CONFIG_FILE=\"$(VSB_DIR)/h/config/vsbConfig.h\"
ARCH_DEP_CFLAGS += -mtune=pentium4 -march=pentium4
ARCH_DEP_CXXFLAGS += -x 'c++'
ARCH_DEP_CFLAGS += -fno-defer-pop -nostdlib
==========================================================================
==================


Cheers,
Ernest




References:
vxWorks 6.8 and "#define _VSB_CONFIG_FILE" Ernest L. Williams Jr.
RE: vxWorks 6.8 and "#define _VSB_CONFIG_FILE" Jeff Hill

Navigate by Date:
Prev: RE: vxWorks 6.8 and "#define _VSB_CONFIG_FILE" Jeff Hill
Next: RE: [Merge] lp:~epics-core/epics-base/rebased-atomics into lp:epics-base Jeff Hill
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: RE: vxWorks 6.8 and "#define _VSB_CONFIG_FILE" Jeff Hill
Next: [Merge] lp:~strauman/epics-base/stacktrace into lp:epics-base Till Straumann
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·