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  2014  2015  <20162017  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  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: SNCSEQ error when making MakeBaseApp.pl
From: Andrew Johnson <[email protected]>
To: <[email protected]>
Date: Mon, 3 Oct 2016 15:10:33 -0500
Hello Saeed,

On 10/02/2016 08:18 AM, Saeed Haghtalab wrote:
> I want to create an App using makeBaseApp.pl but I faced the following
> error:

> make[3]: *** No rule to make target `sncExample.o', needed by
> `libtestSupport.a'.  Stop.
> make[3]: Leaving directory
> `/home/ilsfcontrol/Desktop/test/testApp/src/O.linux-x86_64'

> whenever I delete the SNCSEQ environment variable using 'unset SNCSEQ'
> or also if I comment out the following lines in ./testApp/src/MakeFile
> it can be compiled successfuly, but I don't know the reason.

> It should be noticed that I didn’t want to use the sequencer so, both
> SNCSEQ in configure/RELEASE and 'seq sncExample,' line in st.cmd were
> commented out.

The GNUMake program treats environment variables the same as it does
other variables set in a Makefile (or in other files included by the
Makefile such as in your configure/RELEASE file or other files in the
EPICS build system), so this test in the example Makefile will always
pass if you have the environment variable SNCSEQ set (unless it is set
to an empty string):
> ifneq ($(SNCSEQ),)

Thus you have already discovered one solution to your problem, you have
to unset the environment variable for that Makefile to work properly.
You could instead delete that conditionally compiled part of the
Makefile, if you don't want to use the sequencer anyway then it isn't
necessary.

You might want to avoid setting environment variables quite so
prolifically though, why are you setting the SNCSEQ environment variable
in the first place? You may hit similar problems in the future if you
use environment variables to point to other EPICS modules like this.

Hope this helps,

- Andrew

-- 
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon

References:
SNCSEQ error when making MakeBaseApp.pl Saeed Haghtalab

Navigate by Date:
Prev: RE: HTTP access to control systems screens tom.cobb
Next: ioc executable being made corrupted Crisp, Daniel
Index: 1994  1995  1996  1997  1998  1999  2000  2001  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: SNCSEQ error when making MakeBaseApp.pl Saeed Haghtalab
Next: EPICS MODULE palak shimpee
Index: 1994  1995  1996  1997  1998  1999  2000  2001  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 ·