Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: SynApps build error : win32-x86
From: "S. Stein" <stein@aps.anl.gov>
To: Mark Rivers <rivers@cars.uchicago.edu>
Cc: tech-talk@aps.anl.gov
Date: Tue, 26 Jun 2012 12:58:29 -0500 (CDT)
It is the details of "make" which cause me much head-scratching...

Here are details on my version of make:


----- Original Message -----
From: "Mark Rivers" <rivers@cars.uchicago.edu>
To: "S. Stein" <stein@aps.anl.gov>
Cc: tech-talk@aps.anl.gov, "Jeffrey Gebhardt" <gebhardt@aps.anl.gov>
Sent: Tuesday, June 26, 2012 10:55:27 AM
Subject: RE: SynApps build error : win32-x86

OK, so what is different when the command is executed  by "make" versus doing it interactively?

Are you sure you are running the GnuWin32 version of make?  That's what I am using.  Can you send the output of "make --version".

Mark


________________________________________
From: S. Stein [stein@aps.anl.gov]
Sent: Tuesday, June 26, 2012 12:13 PM
To: Mark Rivers
Cc: tech-talk@aps.anl.gov; Jeffrey Gebhardt
Subject: Re: SynApps build error : win32-x86

I had done this before and it worked without error - to verify, I just did it again with identical results as yours Mark:

C:\synApps_5_6\support\seq-2-1-3\src\snc\O.win32-x86>dir ..\O.Common
 Volume in drive C is OS
 Volume Serial Number is 0E2D-6055

 Directory of C:\synApps_5_6\support\seq-2-1-3\src\snc\O.Common

06/26/2012  10:09 AM    <DIR>          .
06/26/2012  10:09 AM    <DIR>          ..
               0 File(s)              0 bytes
               2 Dir(s)  112,097,034,240 bytes free

C:\synApps_5_6\support\seq-2-1-3\src\snc\O.win32-x86>..\\..\\..\\bin\\win32-x86\
\lemon.exe o=. -g ../snl.lem > ../O.Common/snl.bnf.tmp

C:\synApps_5_6\support\seq-2-1-3\src\snc\O.win32-x86>dir ..\O.Common
 Volume in drive C is OS
 Volume Serial Number is 0E2D-6055

 Directory of C:\synApps_5_6\support\seq-2-1-3\src\snc\O.Common

06/26/2012  10:10 AM    <DIR>          .
06/26/2012  10:10 AM    <DIR>          ..
06/26/2012  10:10 AM             8,708 snl.bnf.tmp
               1 File(s)          8,708 bytes
               2 Dir(s)  112,097,021,952 bytes free

C:\synApps_5_6\support\seq-2-1-3\src\snc\O.win32-x86>




----- Original Message -----
From: "Mark Rivers" <rivers@cars.uchicago.edu>
To: "S. Stein" <stein@aps.anl.gov>, "Jeffrey Gebhardt" <gebhardt@aps.anl.gov>
Cc: tech-talk@aps.anl.gov
Sent: Tuesday, June 26, 2012 9:48:52 AM
Subject: RE: SynApps build error : win32-x86

Hi Josh,

I don't think that is from a previous portion of the build.

Please try just manually entering that command using cut and paste.  I just did that on my system.  I did a cd to the seq-2-1-7\src\snc\O.win32-x86 directory and then manually executed the "lemon.exe" command, using cut-and-paste from my build screen.   First deleted the snl.bnf.tmp file to make sure the command actually worked.

It worked fine, no error.

**********************************************************
J:\epics\devel\seq-2-1-7\src\snc\O.win32-x86>del ..\O.Common\snl.bnf.tmp

J:\epics\devel\seq-2-1-7\src\snc\O.win32-x86>dir ..\O.Common\
 Volume in drive J is people_rw
 Volume Serial Number is 1FC2-CD09

 Directory of J:\epics\devel\seq-2-1-7\src\snc\O.Common

06/26/2012  11:46 AM    <DIR>          .
06/26/2012  09:44 AM    <DIR>          ..
06/26/2012  09:45 AM             5,556 bnf.inc
               1 File(s)          5,556 bytes
               2 Dir(s)  645,751,332,864 bytes free

J:\epics\devel\seq-2-1-7\src\snc\O.win32-x86>..\\..\\..\\bin\\win32-x86\\lemon.exe o=. -g ../snl.lem > ../O.Common/snl.bnf.tmp

J:\epics\devel\seq-2-1-7\src\snc\O.win32-x86>dir ..\O.Common\
 Volume in drive J is people_rw
 Volume Serial Number is 1FC2-CD09

 Directory of J:\epics\devel\seq-2-1-7\src\snc\O.Common

06/26/2012  11:46 AM    <DIR>          .
06/26/2012  09:44 AM    <DIR>          ..
06/26/2012  09:45 AM             5,556 bnf.inc
06/26/2012  11:47 AM             8,708 snl.bnf.tmp
               2 File(s)         14,264 bytes
               2 Dir(s)  645,751,316,480 bytes free

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

If you get an error then there is something different with your environment.

Mark


-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of S. Stein
Sent: Tuesday, June 26, 2012 11:34 AM
To: Jeffrey Gebhardt
Cc: tech-talk@aps.anl.gov
Subject: Re: SynApps build error : win32-x86

Hi Jeff,

I have no idea where the /usr/bin/sh is coming from; perhaps it is an 'out of phase' error from a previous portion of the build(?).

I am not using cygwin, so \cygwin\bin is not in my path.



----- Original Message -----
From: "Jeffrey Gebhardt" <gebhardt@aps.anl.gov>
To: "S. Stein" <stein@aps.anl.gov>
Cc: tech-talk@aps.anl.gov
Sent: Tuesday, June 26, 2012 9:19:46 AM
Subject: Re: SynApps build error : win32-x86

Hi Josh,

/usr/bin/sh: ......binwin32-x86lemon.exe: command not found


where is the /usr/bin/sh: coming from in your error?  I don't think you
should get that from the cmd shell.  Do you have C:\cygwin\bin in your path?

Jeff


On 6/26/2012 10:46 AM, S. Stein wrote:
> Lewis:
>
> I'm doing my best to not build "a la carte" and use the support modules which come with the synApps tarball. If I can get that to build properly, I will then have the confidence to move on and upgrade individual components.
>
> Mark:
>
>    I am also using the 'cmd' shell.
>
>    It isn't clear to me what is happening here in my build on the last line - it appears the path is corrupted(?):
> perl -MExtUtils::Command -e rm_f ../O.Common/snl.bnf
> ..\\..\\..\\bin\\win32-x86\\lemon.exe o=. -g ../snl.lem>  ../O.Common/snl.bnf.tmp
> /usr/bin/sh: ......binwin32-x86lemon.exe: command not found
>
> --J
>
> ----- Original Message -----
> From: "Mark Rivers"<rivers@cars.uchicago.edu>
> To: "stein@aps.anl.gov"<stein@aps.anl.gov>, tech-talk@aps.anl.gov
> Sent: Tuesday, June 26, 2012 7:48:13 AM
> Subject: RE: SynApps build error : win32-x86
>
> Hi Josh,
>
> I just rebuilt the sequencer on my Windows machine.  Here is the output from the same place where you are getting an error:
>
> "Installing created file ../../../bin/win32-x86/snc.exe"
> perl -MExtUtils::Command -e rm_f ../O.Common/snl.bnf
> ..\\..\\..\\bin\\win32-x86\\lemon.exe o=. -g ../snl.lem>  ../O.Common/snl.bnf.tmp
> perl -MExtUtils::Command -e mv ../O.Common/snl.bnf.tmp ../O.Common/snl.bnf
> perl -MExtUtils::Command -e rm_f ../O.Common/bnf.inc
> perl ../bnf2txt.pl ../snl.re ../O.Common/snl.bnf>  ../O.Common/bnf.inc
> make[3]: Leaving directory `J:/epics/devel/seq-2-1-7/src/snc/O.win32-x86'
> make[2]: Leaving directory `J:/epics/devel/seq-2-1-7/src/snc'
> make[1]: Leaving directory `J:/epics/devel/seq-2-1-7/src'
> make -C ./test install
> make[1]: Entering directory `J:/epics/devel/seq-2-1-7/test'
> make -C ./compiler install
> make[2]: Entering directory `J:/epics/devel/seq-2-1-7/test/compiler'
> perl H:/epics/base-3.14.12.2/bin/win32-x86/makeMakefile.pl O.win32-x86 ../../..
> perl -MExtUtils::Command -e mkpath O.Common
> make -C O.win32-x86 -f ../Makefile TOP=../../.. T_A=win32-x86 install
> make[3]: Entering directory `J:/epics/devel/seq-2-1-7/test/compiler/O.win32-x86'
> make[3]: Leaving directory `J:/epics/devel/seq-2-1-7/test/compiler/O.win32-x86'
> make[2]: Leaving directory `J:/epics/devel/seq-2-1-7/test/compiler'
> make -C ./pv install
> make[2]: Entering directory `J:/epics/devel/seq-2-1-7/test/pv'
> perl H:/epics/base-3.14.12.2/bin/win32-x86/makeMakefile.pl O.win32-x86 ../../..
>
>
> The command that failed for you was:
> ..\\..\\..\\bin\\win32-x86\\lemon.exe o=. -g ../snl.lem>  ../O.Common/snl.bnf.tmp
>
> The command that worked for me was:
> ..\\..\\..\\bin\\win32-x86\\lemon.exe o=. -g ../snl.lem>  ../O.Common/snl.bnf.tmp
>
> They look identical to me.
>
> What shell are you running in when you build?  I am running in the standard Windows "cmd" shell.
>
> Mark
>
>
> -----Original Message-----
> From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of stein@aps.anl.gov
> Sent: Tuesday, June 26, 2012 7:49 AM
> To: tech-talk@aps.anl.gov
> Subject: SynApps build error : win32-x86
>
> Greetings all,
>
>    I'm having a maddening error attempting to build synApps_5_6 on a windows machine. Visual Studio 10, GnuWin32 Make (3.81), Strawberry Perl. The following is generated while attempting to build the sequencer support. Note the somewhat crazy mix of forward and backward slashes, the apparent use of double slashes within path names, and (the portion that appears to generate the failure) the lack of any slashes within the path to the "lemon" executable causing the "command not found" error.
>
>
> Generating code
> Finished generating code
> Installing created file ../../../bin/win32-x86/snc.exe
> perl -MExtUtils::Command -e rm_f ../O.Common/snl.bnf
> ..\\..\\..\\bin\\win32-x86\\lemon.exe o=. -g ../snl.lem>  ../O.Common/snl.bnf.tmp
> /usr/bin/sh: ......binwin32-x86lemon.exe: command not found
> make[4]: *** [../O.Common/snl.bnf] Error 127
> make[4]: Leaving directory `c:/synApps_5_6/support/seq-2-1-3/src/snc/O.win32-x86'
> make[3]: *** [install.win32-x86] Error 2
> make[3]: Leaving directory `c:/synApps_5_6/support/seq-2-1-3/src/snc'
> make[2]: *** [snc.install] Error 2
> make[2]: Leaving directory `c:/synApps_5_6/support/seq-2-1-3/src'
> make[1]: *** [src.install] Error 2
> make[1]: Leaving directory `c:/synApps_5_6/support/seq-2-1-3'
> make: *** [c:/synApps_5_6/support/seq-2-1-3.install] Error 2
> make: Leaving directory `C:/synApps_5_6/support'
>
> C:\synApps_5_6\support>
>
>
> Does anyone have an idea what is happening here?
>
> TIA,
> --Josh


--
Jeffrey Gebhardt
Beamline Controls and Data Acquisition
APS Engineering Support Division
630-252-5026

References:
RE: SynApps build error : win32-x86 Mark Rivers

Navigate by Date:
Prev: RE: SynApps build error : win32-x86 Mark Rivers
Next: Re: SynApps build error : win32-x86 S. Stein
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: RE: SynApps build error : win32-x86 Mark Rivers
Next: Re: SynApps build error : win32-x86 S. Stein
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·