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  2016  2017  <20182019  2020  2021  2022  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022 
<== Date ==> <== Thread ==>

Subject: RE: Problem building base with parallel make on Visual Studio 2010
From: Mark Rivers <[email protected]>
To: 'Andrew Johnson' <[email protected]>, "'[email protected]'" <[email protected]>
Date: Wed, 3 Jan 2018 17:27:49 +0000

I figured out the problem without rebooting.  There was a perl process still running on my Windows system when I was no longer building anything.  That perl process must have had a file open in modules/pvData/testApp/O.windows-x64-static.  So even though that directory no longer appeared to exist, Windows was not allowing access to it, either to delete it, create it, or add its Makefile.

 

Once I killed that perl process then I was able to build with windows-x64-static with no problem.

 

Mark

 

 

From: Mark Rivers
Sent: Wednesday, January 03, 2018 11:14 AM
To: 'Andrew Johnson'; '[email protected]'
Subject: RE: Problem building base with parallel make on Visual Studio 2010

 

It is some sort of file permission problem.

 

On the windows-x64 arch it builds fine:

 

H:\epics-devel\base-7.0.1\modules\pvData\testApp>make -sj8

testThread.cpp

testEvent.cpp

Finished generating code

Finished generating code

Finished generating code

Finished generating code

 

H:\epics-devel\base-7.0.1\modules\pvData\testApp>set EPICS_HOST_ARCH=windows-x64-static

 

H:\epics-devel\base-7.0.1\modules\pvData\testApp>make -sj clean

 

H:\epics-devel\base-7.0.1\modules\pvData\testApp>make -sj8

Cannot create O.windows-x64-static/Makefile at H:/epics-devel/base-7.0.1/bin/windows-x64-static/makeMakefile.pl line 41.

H:/epics-devel/base-7.0.1/configure/RULES_ARCHS:67: recipe for target 'O.windows-x64-static' failed

make: *** [O.windows-x64-static] Error 2

make: *** Waiting for unfinished jobs....

 

There does not appear to be an O.windows-x764-static directory there, either as viewed by Linux or Windows:

 

H:\epics-devel\base-7.0.1\modules\pvData\testApp>dir

Volume in drive H is local_rw

Volume Serial Number is 6DDD-530A

 

Directory of H:\epics-devel\base-7.0.1\modules\pvData\testApp

 

01/03/2018  11:07 AM    <DIR>          .

12/04/2017  11:41 AM    <DIR>          ..

12/04/2017  11:41 AM               797 Makefile

12/04/2017  11:41 AM    <DIR>          copy

12/04/2017  11:41 AM    <DIR>          misc

12/04/2017  11:41 AM    <DIR>          property

12/04/2017  11:41 AM    <DIR>          pv

12/04/2017  11:41 AM             2,034 pvDataAllTests.c

12/04/2017  11:41 AM               183 qemuRunTest.sh

12/04/2017  11:41 AM             2,706 rtemsConfig.c

12/04/2017  11:41 AM               988 rtemsTestHarness.c

12/30/2017  09:04 AM    <DIR>          O.vxWorks-ppc32

12/30/2017  09:04 AM    <DIR>          O.linux-x86

12/30/2017  09:02 AM    <DIR>          O.linux-x86_64

12/21/2017  08:12 AM    <DIR>          O.win32-x86-static

12/28/2017  10:49 AM    <DIR>          O.windows-x64-static-vs2017

01/03/2018  11:02 AM    <DIR>          O.windows-x64

01/03/2018  11:07 AM    <DIR>          O.Common

               5 File(s)          6,708 bytes

              13 Dir(s)  721,399,201,792 bytes free

 

corvette:modules/pvData/testApp>ls -l

total 92

-rw-rw-r-- 1 epics domain users  797 Dec  4 11:41 Makefile

drwxrwxrwx 2 epics domain users    6 Jan  3 11:07 O.Common

drwxrwxr-x 2 epics domain users 8192 Dec 30 09:04 O.linux-x86

drwxrwxr-x 2 epics domain users 8192 Dec 30 09:02 O.linux-x86_64

drwxrwxr-x 2 epics domain users 4096 Dec 30 09:04 O.vxWorks-ppc32

drwxrwxrwx 2 epics domain users 8192 Dec 21 08:12 O.win32-x86-static

drwxrwxrwx 2 epics domain users 8192 Jan  3 11:02 O.windows-x64

drwxrwxrwx 2 epics domain users 8192 Dec 28 10:49 O.windows-x64-static-vs2017

drwxrwxr-x 2 epics domain users   70 Dec  4 11:41 copy

drwxrwxr-x 2 epics domain users 4096 Dec  4 11:41 misc

drwxrwxr-x 2 epics domain users   44 Dec  4 11:41 property

drwxrwxr-x 2 epics domain users 4096 Dec  4 11:41 pv

-rw-rw-r-- 1 epics domain users 2034 Dec  4 11:41 pvDataAllTests.c

-rwxrwxr-x 1 epics domain users  183 Dec  4 11:41 qemuRunTest.sh

-rw-rw-r-- 1 epics domain users 2706 Dec  4 11:41 rtemsConfig.c

-rw-rw-r-- 1 epics domain users  988 Dec  4 11:41 rtemsTestHarness.c

 

Trying to delete a really non-existent directory leads to this error:

H:\epics-devel\base-7.0.1\modules\pvData\testApp>rmdir junk

The system cannot find the file specified.

 

Trying to delete O.windows-x64-static leads to this error:

H:\epics-devel\base-7.0.1\modules\pvData\testApp>rmdir O.windows-x64-static

Access is denied.

 

Time to reboot I guess. J

 

Mark

 

 

From: Mark Rivers
Sent: Wednesday, January 03, 2018 8:56 AM
To: 'Andrew Johnson'; '[email protected]'
Subject: RE: Problem building base with parallel make on Visual Studio 2010

 

I then ran make –sj8 again and most things built, but there was still an error in modules\pvData\testApp.

 

I then went to than directory and did make clean and make, but there are errors in both make and and make clean.

 

*************************************

H:\epics-devel\base-7.0.1>cd modules\pvData\testApp

 

H:\epics-devel\base-7.0.1\modules\pvData\testApp>make

make -C O.windows-x64-static -f ../Makefile TOP=../.. \

    T_A=windows-x64-static install

make[1]: *** O.windows-x64-static: Permission denied.  Stop.

H:/epics-devel/base-7.0.1/configure/RULES_ARCHS:58: recipe for target 'install.windows-x64-static' failed

make: *** [install.windows-x64-static] Error 2

 

H:\epics-devel\base-7.0.1\modules\pvData\testApp>make clean

perl -CSD -MExtUtils::Command -e rm_rf O.windows-x64-static O.Common

cannot chdir to child for O.windows-x64-static: No such file or directory at C:/Perl64/lib/ExtUtils/Command.pm line 134

 

H:\epics-devel\base-7.0.1\modules\pvData\testApp>make

perl -CSD -MExtUtils::Command -e mkpath O.Common

make -C O.windows-x64-static -f ../Makefile TOP=../.. \

    T_A=windows-x64-static install

make[1]: *** O.windows-x64-static: Permission denied.  Stop.

H:/epics-devel/base-7.0.1/configure/RULES_ARCHS:58: recipe for target 'install.windows-x64-static' failed

make: *** [install.windows-x64-static] Error 2

 

H:\epics-devel\base-7.0.1\modules\pvData\testApp>dir

Volume in drive H is local_rw

Volume Serial Number is 6DDD-530A

 

Directory of H:\epics-devel\base-7.0.1\modules\pvData\testApp

 

01/03/2018  08:50 AM    <DIR>          .

12/04/2017  11:41 AM    <DIR>          ..

12/04/2017  11:41 AM               797 Makefile

12/04/2017  11:41 AM    <DIR>          copy

12/04/2017  11:41 AM    <DIR>          misc

12/04/2017  11:41 AM    <DIR>          property

12/04/2017  11:41 AM    <DIR>          pv

12/04/2017  11:41 AM             2,034 pvDataAllTests.c

12/04/2017  11:41 AM               183 qemuRunTest.sh

12/04/2017  11:41 AM             2,706 rtemsConfig.c

12/04/2017  11:41 AM               988 rtemsTestHarness.c

12/30/2017  09:04 AM    <DIR>          O.vxWorks-ppc32

12/30/2017  09:04 AM    <DIR>          O.linux-x86

12/30/2017  09:02 AM    <DIR>          O.linux-x86_64

12/30/2017  08:09 AM    <DIR>          O.windows-x64

12/21/2017  08:12 AM    <DIR>          O.win32-x86-static

01/03/2018  08:30 AM    <DIR>          O.windows-x64-static

12/28/2017  10:49 AM    <DIR>          O.windows-x64-static-vs2017

01/03/2018  08:50 AM    <DIR>          O.Common

               5 File(s)          6,708 bytes

              14 Dir(s)  721,399,009,280 bytes free

 

H:\epics-devel\base-7.0.1\modules\pvData\testApp>dir O.windows-x64-static

Volume in drive H is local_rw

Volume Serial Number is 6DDD-530A

 

Directory of H:\epics-devel\base-7.0.1\modules\pvData\testApp

 

01/03/2018  08:30 AM    <DIR>          O.windows-x64-static

               0 File(s)              0 bytes

               1 Dir(s)  721,399,009,280 bytes free

*************************************

 

It seems to be complaining that there is no O.windows-x64-static directory, but there is?

 

What could be wrong?

 

Thanks,

Mark

 

 

From: Mark Rivers
Sent: Wednesday, January 03, 2018 8:45 AM
To: 'Andrew Johnson'; '[email protected]'
Subject: Problem building base with parallel make on Visual Studio 2010

 

I sometimes get the following error when building base 7.0.1.1 on Visual Studio (2010, 2017)

 

I do the following:

 

make –sj clean

make –sj8

 

Appending PVScalar.obj

Appending PVField.obj

Appending FieldCreateFactory.obj

Appending TypeFunc.obj

Appending valueBuilder.obj

Appending pvdVersion.obj

Appending reftrack.obj

Appending debugPtr.obj

Appending pvUnitTest.obj

Appending parseToPOD.obj

Appending typeCast.obj

Appending localStaticLock.obj

Appending status.obj

Appending timer.obj

Appending timeFunction.obj

Appending executor.obj

Appending event.obj

Appending serializeHelper.obj

Appending epicsException.obj

Appending bitSet.obj

Appending byteBuffer.obj

make[4]: *** O.windows-x64-static: Permission denied.  Stop.

H:/epics-devel/base-7.0.1/configure/RULES_ARCHS:58: recipe for target 'install.windows-x64-static' failed

make[3]: *** [install.windows-x64-static] Error 2

H:/epics-devel/base-7.0.1/configure/RULES_DIRS:84: recipe for target 'testApp.install' failed

make[2]: *** [testApp.install] Error 2

make[2]: *** Waiting for unfinished jobs....

unittest.cpp

H:\epics-devel\base-7.0.1\include\pv/pvData.h(534) : warning C4800: 'char' : forcing value to bool 'true' or 'false' (performance warning)

H:\epics-devel\base-7.0.1\include\pv/pvData.h(583) : warning C4250: 'epics::pvData::PVString' : inherits 'epics::pvData::PVScalarValue<T>::epics::pvData::PVScalarValue<T>::deserial

ize' via dominance

        with

        [

            T=std::string

        ]

        H:\epics-devel\base-7.0.1\include\pv/pvData.h(488) : see declaration of 'epics::pvData::PVScalarValue<T>::deserialize'

        with

        [

            T=std::string

        ]

../configure/RULES_DIRS:84: recipe for target 'pvData.install' failed

make[1]: *** [pvData.install] Error 2

make[1]: *** Waiting for unfinished jobs....

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when deleting temporary action file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file♪◙H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_fle

x.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file♪◙H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_fle

x.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

H:/epics-devel/base-7.0.1/bin/windows-x64-static/e_flex.exe: fatal internal error, error occurred when closing skeleton file

 

It looks like perhaps 2 make threads are trying to access the same temporary file?

 

Mark

 


Replies:
Re: Problem building base with parallel make on Visual Studio 2010 Ralph Lange
References:
Problem building base with parallel make on Visual Studio 2010 Mark Rivers
RE: Problem building base with parallel make on Visual Studio 2010 Mark Rivers
RE: Problem building base with parallel make on Visual Studio 2010 Mark Rivers

Navigate by Date:
Prev: RE: Problem building base with parallel make on Visual Studio 2010 Mark Rivers
Next: Re: Problem building base with parallel make on Visual Studio 2010 Ralph Lange
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022 
Navigate by Thread:
Prev: RE: Problem building base with parallel make on Visual Studio 2010 Mark Rivers
Next: Re: Problem building base with parallel make on Visual Studio 2010 Ralph Lange
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022 
ANJ, 03 Jan 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·