EPICS Controls 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  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: synApps_5_7 build error on Windows 8.1 x64
From: Mark Rivers <[email protected]>
To: "'Alireza Panna'" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Fri, 29 Aug 2014 15:00:51 +0000

What version of EPICS base are you using?  I am using 3.14.12.4.  Note that prior to version 3.14.12.3 the stack size on Windows was very small and that could be the problem.

 

When you get the popup dialog about lemon.exe can you then debug it in the Visual Studio debugger?  That may tell you if the problem is an access violation, missing DLL, stack overflow, etc.

 

Mark

 

 

From: Alireza Panna [mailto:[email protected]]
Sent: Friday, August 29, 2014 9:52 AM
To: Mark Rivers
Cc: Benjamin Franksen; [email protected]
Subject: Re: synApps_5_7 build error on Windows 8.1 x64

 

Hello Benjamin and Mark,

 

I tried doing make clean in C:\Epics\support\seq-2-1-13\src\snc\O.windows-x64 and then ..\\..\\..\\bin\\windows-x64\\lemon.exe o=. ../snl.lem, However I get the same error with the pop-up saying lemon.exe has stopped working.

Even doing make clean in the windows-x64 dir gives me the same pop-up. 

 

I have previously compiled seq on Windows 7 x64 and I know that seq 2-1.13 gives an error in UserfuncEf..c and I think I had to use seq-2.1.16 which worked well.

 

Also I am using MS Visual Studio Express 2013 when I set the environment I call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat". May be i try and switch to 2010 and see if it works

 

Thank you 

 

Regards,

Alireza Panna

 


 

------------------------------------------------------

Alireza Panna

University of Maryland, College Park

 

On Fri, Aug 29, 2014 at 7:27 AM, Mark Rivers <[email protected]> wrote:

I just tried building the following versions of the sequencer on windows-x64 (Windows 7, Visual Studio 2010, GNUWin32 make).

seq-2.1.10
seq-2.1.13
seq-2.2.0.1


2.1.10 built with no errors.


2.1.13 did not have the error with lemon.exe that was the subject of this thread.  Here is the output when lemon.exe is being used:


make -C O.windows-x64 -f ../Makefile TOP=../../.. T_A=windows-x64 install

make[3]: Entering directory `J:/epics/devel/seq-2-1-13/src/snc/O.windows-x64'

..\\..\\..\\bin\\windows-x64\\lemon.exe o=. ../snl.lem

3 parsing conflicts.

re2c.exe -s -b -o lexer.c ../snl.re 

make[3]: Leaving directory `J:/epics/devel/seq-2-1-13/src/snc/O.windows-x64'
make[3]: Entering directory `J:/epics/devel/seq-2-1-13/src/snc/O.windows-x64'

However, 2.1.13 did fail much later in the build with the following error:

"converting userfuncEf.i"
../../../bin/windows-x64/snc.exe   +m -i  userfuncEf.i -o userfuncEf.c.tmp
perl -MExtUtils::Command -e mv userfuncEf.c.tmp userfuncEf.c
cl -c             /favor:blend   /nologo /D__STDC__=0 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE   /Ox /GL   /W3 /w44355       /MT -DEPICS_DLL_NO    -I. -I..\\O.Common
-I. -I.. -I..\\..\\..\\include\\os\\WIN32 -I..\\..\\..\\include -IH:\\epics\\base-3.14.12.4\\include\\os\\WIN32 -IH:\\epics\\base-3.14.12.4\\include       userfuncEf.c
userfuncEf.c
userfuncEf.c(13) : error C2016: C requires that a struct or union has at least one member
../userfuncEf.st(26) : error C2059: syntax error : '}'
make[3]: *** [userfuncEf.obj] Error 2
make[3]: Leaving directory `J:/epics/devel/seq-2-1-13/test/validate/O.windows-x64'
make[2]: *** [install.windows-x64] Error 2
make[2]: Leaving directory `J:/epics/devel/seq-2-1-13/test/validate'
make[1]: *** [validate.install] Error 2
make[1]: Leaving directory `J:/epics/devel/seq-2-1-13/test'
make: *** [test.install] Error 2


2.2.0.1 failed very early in the build with the following error:

"Installing generic include file ../../../include/seq_prim_types.h"
cl -c             /favor:blend   /nologo /D__STDC__=0 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE   /Ox /GL   /W3 /w44355       /MT -DEPICS_DLL_NO    -I. -I..\\O.Common
-I. -I.. -I..\\..\\..\\include\\os\\WIN32 -I..\\..\\..\\include -IH:\\epics\\base-3.14.12.4\\include\\os\\WIN32 -IH:\\epics\\base-3.14.12.4\\include       ..\\seq_main.c
seq_main.c
..\seq_main.c(282) : error C2124: divide or mod by zero
make[3]: *** [seq_main.obj] Error 2
make[3]: Leaving directory `J:/epics/devel/seq-2-2-0-1/src/seq/O.windows-x64'
make[2]: *** [install.windows-x64] Error 2
make[2]: Leaving directory `J:/epics/devel/seq-2-2-0-1/src/seq'
make[1]: *** [seq.install] Error 2
make[1]: Leaving directory `J:/epics/devel/seq-2-2-0-1/src'
make: *** [src.install] Error 2


Mark


























































-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Benjamin Franksen
Sent: Friday, August 29, 2014 4:56 AM
To: [email protected]
Cc: Alireza Panna
Subject: Re: synApps_5_7 build error on Windows 8.1 x64

On Thursday 28 August 2014 16:54:00 Alireza Panna wrote:
> Hello all,
>
> I am having trouble building the sequencer module. base compiles fine
> under windows-x64, however when i try to build the sequencer module
> in synApps-5-7, I get the following error:
>
> make[3]: Entering directory `C:/Epics/support/seq-2-1-13/src/snc'
> make -C O.windows-x64 -f ../Makefile TOP=../../.. T_A=windows-x64
> install make[4]: Entering directory
> `C:/Epics/support/seq-2-1-13/src/snc/O.windows-x64'
> ..\\..\\..\\bin\\windows-x64\\lemon.exe o=. ../snl.lem
> re2c.exe -s -b -o lexer.c ../snl.re 
> make[4]: Leaving directory
> `C:/Epics/support/seq-2-1-13/src/snc/O.windows-x64'
> make[4]: Entering directory
> `C:/Epics/support/seq-2-1-13/src/snc/O.windows-x64'
> ..\\..\\..\\bin\\windows-x64\\lemon.exe o=. ../snl.lem
> cl -c             /favor:blend   /nologo /D__STDC__=0
> /D_CRT_SECURE_NO_DEPRECATE
>  /D_CRT_NONSTDC_NO_DEPRECATE   /Ox /GL   /W3 /w44355       /MD     -I.
> -I..\\O.C
> ommon -I. -I.. -I..\\..\\..\\include\\os\\WIN32 -I..\\..\\..\\include
> -IC:\\Epic
> s\\base\\include\\os\\WIN32 -IC:\\Epics\\base\\include       lexer.c
> lexer.c
> ../snl.re (16) : fatal error C1083: Cannot open include file: 'snl.h':
> No such fi
> le or directory
> make[4]: *** [lexer.obj] Error 2
> make[4]: Leaving directory
> `C:/Epics/support/seq-2-1-13/src/snc/O.windows-x64'
> make[3]: *** [install.windows-x64] Error 2
> make[3]: Leaving directory `C:/Epics/support/seq-2-1-13/src/snc'
> make[2]: *** [snc.install] Error 2
> make[2]: Leaving directory `C:/Epics/support/seq-2-1-13/src'
> make[1]: *** [src.install] Error 2
> make[1]: Leaving directory `C:/Epics/support/seq-2-1-13'
> make: *** [C:/Epics/support/seq-2-1-13.install] Error 2
>
> Before this error occurs, I get a pop up saying lemon.exe has stopped
> working.

Hm, that sounds like the bundled version of lemon crashes (or otherwise
misbehaves) when compiled as a win64 executable. In this case it would
not generate snl.h which is what the error message says.

To clarify this, please

> cd C:/Epics/support/seq-2-1-13/src/snc/O.windows-x64
> make clean

and then

> ..\\..\\..\\bin\\windows-x64\\lemon.exe o=. ../snl.lem

It should say "3 parsing conflicts." and there should now exist files
named snl.c, snl.h, and snl.out in this directory. If not (or if one of
these files is empty), then lemon is broken on win64 and I will see
whether the upstream version has a fix for the problem.

Cheers
Ben
--
"Make it so they have to reboot after every typo." ― Scott Adams


________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de 

 


Replies:
Re: synApps_5_7 build error on Windows 8.1 x64 Alireza Panna
References:
synApps_5_7 build error on Windows 8.1 x64 Alireza Panna
Re: synApps_5_7 build error on Windows 8.1 x64 Benjamin Franksen
RE: synApps_5_7 build error on Windows 8.1 x64 Mark Rivers
Re: synApps_5_7 build error on Windows 8.1 x64 Alireza Panna

Navigate by Date:
Prev: Re: synApps_5_7 build error on Windows 8.1 x64 Alireza Panna
Next: Re: synApps_5_7 build error on Windows 8.1 x64 Alireza Panna
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: synApps_5_7 build error on Windows 8.1 x64 Alireza Panna
Next: Re: synApps_5_7 build error on Windows 8.1 x64 Alireza Panna
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·