EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Problem in 3.14.12.5 with osd/WIN32/osdTime.h with latest version of MinGW
From: Mark Rivers <[email protected]>
To: Ralph Lange <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 27 Sep 2016 14:02:43 +0000
Hi Ralph,

It does look like the 3.15 patch.

I was originally going to send only to core-talk, but I then I thought that it could be useful to the larger tech-talk community to know that the problem exists and that there is a simple fix until 3.14.12.6 is released.

Mark

________________________________
From: [email protected] [[email protected]] on behalf of Ralph Lange [[email protected]]
Sent: Tuesday, September 27, 2016 8:42 AM
To: EPICS Tech-Talk
Subject: Re: Problem in 3.14.12.5 with osd/WIN32/osdTime.h with latest version of MinGW


Hi Mark,

On 27/09/2016 15:23, Mark Rivers wrote:
I found a problem compiling 3.14.12.5 (with the msvs-timespec.patch) when building with the latest version of MinGW on Windows, which is gcc 5.3.0.

This is the error:
****************************************************
g++ -c              -D_MINGW     -O3   -Wall       -m32    -D_DLL   -MMD -I. -I../O.Common -I. -I../../../src/libCom/osi/os/WIN32 -I../../../src/libCom/osi/os/posix -I../../../src/
libCom/osi/os/default -I.. -I../../../src/libCom/bucketLib -I../../../src/libCom/ring -I../../../src/libCom/calc -I../../../src/libCom/cvtFast -I../../../src/libCom/cppStd -I../../
../src/libCom/cxxTemplates -I../../../src/libCom/dbmf -I../../../src/libCom/ellLib -I../../../src/libCom/env -I../../../src/libCom/error -I../../../src/libCom/fdmgr -I../../../src/
libCom/freeList -I../../../src/libCom/gpHash -I../../../src/libCom/iocsh -I../../../src/libCom/logClient -I../../../src/libCom/macLib -I../../../src/libCom/misc -I../../../src/libC
om/osi -I../../../src/libCom/taskwd -I../../../src/libCom/timer -I../../../src/libCom/tsDefs -I../../../include/os/WIN32 -I../../../include         ../../../src/libCom/fdmgr/fdmgr.
cpp
In file included from ../../../src/libCom/osi/epicsTime.h:19:0,
                 from ../../../src/libCom/fdmgr/fdManager.h:27,
                 from ../../../src/libCom/fdmgr/fdmgr.cpp:29:
../../../src/libCom/osi/os/WIN32/osdTime.h:26:8: error: redefinition of 'struct timespec'
struct timespec {
        ^
In file included from ../../../src/libCom/osi/epicsTime.h:15:0,
                 from ../../../src/libCom/fdmgr/fdManager.h:27,
                 from ../../../src/libCom/fdmgr/fdmgr.cpp:29:
c:\mingw\include\time.h:102:8: error: previous definition of 'struct timespec'
struct timespec
        ^
../../../configure/RULES_BUILD:218: recipe for target 'fdmgr.o' failed
make[1]: *** [fdmgr.o] Error 1
make[1]: Leaving directory 'P:/epics/epics/base-3.14.12.5/src/libCom/O.win32-x86-mingw'
../../configure/RULES_ARCHS:64: recipe for target 'install.win32-x86-mingw' failed
make: *** [install.win32-x86-mingw] Error 2
****************************************************

I was able to fix the problem by using the version of osdTime.h from base-3.15.4.

That looks like a request to apply the patch from
    http://bazaar.launchpad.net/~epics-core/epics-base/3.15/revision/12717
to the 3.14 branch, is that right?

Cheers,
~Ralph

ps. Wouldn't that rather be a core-talk subject?


Navigate by Date:
Prev: Time issues on Linux Ralph Lange
Next: Jenkins build is back to stable : epics-base-3.14 #199 APS Jenkins
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Time issues on Linux Andrew Johnson
Next: EPICS 3.15.5 planning Ralph Lange
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 03 Oct 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·