Subject: |
Re: EPICS Base 3.14.12.5 build failure for VxWorks 6.9.4 ppc604 with -O2 optimization |
From: |
Andrew Johnson <[email protected]> |
To: |
<[email protected]> |
Date: |
Tue, 3 Nov 2015 17:18:33 -0600 |
Hi Lewis,
On 11/03/2015 04:49 PM, J. Lewis Muir wrote:
> EPICS Base 3.14.12.15 (+ Known Problems patches) fails to build
> fdmgr.cpp for ppc604 with the -O2 optimization flag using VxWorks 6.9.4,
> Workbench 3.3, and Utilities 1.0. If I change the optimization flag to
> -O1, the build succeeds.
Have you tried compiling your IOCs for the vxWorks-ppc32 target instead
of vxWorks-ppc604? That is a universal 32-bit PowerPC target introduced
in VxWorks 6.x, the binaries of which can be loaded by any MVME2100,
MVME2700, MVME5100 and MVME6100 board (basically all the PowerPC boards
I support here except for the MVME3100 which needs the vxWorks-ppc32sf
target instead). That's the target which the APS Controls and BCDA
groups now use for VxWorks 6.9.4 targets, and we don't see this build
problem.
However if you really do need to build that target, it is possible to
change the compiler optimization settings for just one source file, take
a look at the base/src/cas/build/Makefile for an example where we had to
do that in the past. In your case you would edit
base/src/libCom/Makefile and add the line
fdmgr_CXXFLAGS_vxWorks-ppc604 = -O1
to it somewhere between the two include lines. The result should compile
everything else with default optimization, and the fdmgr.cpp file with -O1.
HTH,
- Andrew
--
Light thinks it travels faster than anything but it is wrong.
No matter how fast light travels, it finds the darkness has
always got there first, and is waiting for it.
-- Terry Pratchett, Reaper Man
- References:
- EPICS Base 3.14.12.5 build failure for VxWorks 6.9.4 ppc604 with -O2 optimization J. Lewis Muir
- Navigate by Date:
- Prev:
EPICS Base 3.14.12.5 build failure for VxWorks 6.9.4 ppc604 with -O2 optimization J. Lewis Muir
- Next:
RE: How to update CSS version 3.x to 4.x ? Patard Charles-Henri
- Index:
1994
1995
1996
1997
1998
1999
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:
EPICS Base 3.14.12.5 build failure for VxWorks 6.9.4 ppc604 with -O2 optimization J. Lewis Muir
- Next:
EPICS love module moves to GitHub Pete Jemian
- Index:
1994
1995
1996
1997
1998
1999
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
|