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  <20132014  2015  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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Should Linux C++ builds have debug symbols by default in R3.14.12.3?
From: Andrew Johnson <[email protected]>
To: <[email protected]>
Cc: [email protected]
Date: Wed, 14 Aug 2013 10:19:44 -0500
Hi Tom,

On 08/14/2013 05:40 AM, [email protected] wrote:
We're starting to move IOCs from R3.14.11 to R3.14.12.3 and I've
noticed that C++ builds with host arch linux-x86_64 no longer have
debugging symbols by default, but C builds do. In R3.14.11 we used to
have debugging symbols on C and C++ builds even when NOT using the
linux-x86_64-debug architecture.

The change seems to be that in
R3.14.11/base/configure/os/CONFIG_SITE.Common.linux-x86_64 we have:

OP_SYS_CFLAGS += -g

But in R3.14.12.3/base/configure/os/CONFIG_SITE.Common.linux-x86_64
we have:

OPT_CFLAGS_YES += -g

My guess is that the change was probably made for a good reason, so
we should add the following line to
configure/os/CONFIG_SITE.Common.linux-x86_64:

OPT_CXXFLAGS_YES += -g

Is that the correct way to fix this?

Yes, Janet committed the fix below to the 3.14 branch just a few weeks ago:

=== modified file 'configure/os/CONFIG_SITE.Common.linux-x86'
--- configure/os/CONFIG_SITE.Common.linux-x86   2011-12-07 19:56:04 +0000
+++ configure/os/CONFIG_SITE.Common.linux-x86   2013-07-25 15:49:26 +0000
@@ -38,3 +38,4 @@ COMMANDLINE_LIBRARY = READLINE
 # This does cost disk space, but not memory as debug symbols are not
 # loaded into RAM when the binary is loaded.
 OPT_CFLAGS_YES += -g
+OPT_CXXFLAGS_YES += -g

=== modified file 'configure/os/CONFIG_SITE.Common.linux-x86_64'
--- configure/os/CONFIG_SITE.Common.linux-x86_64 2011-12-07 19:56:04 +0000 +++ configure/os/CONFIG_SITE.Common.linux-x86_64 2013-07-25 15:49:26 +0000
@@ -38,3 +38,4 @@ COMMANDLINE_LIBRARY = READLINE
 # This does cost disk space, but not memory as debug symbols are not
 # loaded into RAM when the binary is loaded.
 OPT_CFLAGS_YES += -g
+OPT_CXXFLAGS_YES += -g


- Andrew

--
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock

References:
Should Linux C++ builds have debug symbols by default in R3.14.12.3? tom.cobb

Navigate by Date:
Prev: Re: AW: [asyn] link already open! Dirk Zimoch
Next: [MailServer Resend] Resending quarantined email -- use caution when opening.Re: AW: [asyn] link already open! cismailadmins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Should Linux C++ builds have debug symbols by default in R3.14.12.3? tom.cobb
Next: [MailServer Resend] Resending quarantined email -- use caution when opening.Re: AW: [asyn] link already open! cismailadmins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·