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  2016  2017  2018  2019  <20202021  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  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Building with debug information
From: Ben Franksen via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Thu, 13 Aug 2020 14:42:32 +0200
Am 13.08.20 um 14:01 schrieb Ralph Lange via Tech-talk:
> On Thu, 13 Aug 2020 at 13:23, Ben Franksen via Tech-talk < 
> tech-talk at aps.anl.gov> wrote:
> 
>> But what I want is to tweak the configuration in EPICS base so
>> that linux-x86_64 is treated as if it were linux-x86_64-debug, so
>> that building with debug information is the default. What would be
>> the simplest way to achieve that?
> 
> For most architectures, setting HOST_OPT or CROSS_OPT to NO should
> be enough. (Details to be found in the Base configuration files for
> the -debug architectures.)
> 
> Can be done in any configuration (preferably CONFIG_SITE type),
> Makefile, command line...

Thanks, but I don't want to disable optimizations by default!

I found that I can get what I want if I copy the lines

OPT_CFLAGS_YES += -g
OPT_CXXFLAGS_YES += -g

from our CONFIG_SITE.Common.linux-x86_64 to
CONFIG_SITE.linux-x86_64.linux-x86_64.

And then I remembered that I have complained about this before and it
was acknowledged that the inclusion order is wrong here, which is why
adding these lines to CONFIG_SITE.Common.linux-x86_64 didn't have the
desired effect. This might have been fixed or not (I am working with
3.15.6 ATM).

Cheers
Ben

Attachment: signature.asc
Description: OpenPGP digital signature


References:
Building with debug information Ben Franksen via Tech-talk
Re: Building with debug information Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: Building with debug information Ralph Lange via Tech-talk
Next: Re: MVME-162 CPU Boards Amit Chauhan via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Building with debug information Ralph Lange via Tech-talk
Next: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Gofron, Kazimierz via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 13 Aug 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·