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  2020  2021  2022  <20232024  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  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: External: changing compiler versions
From: Niko Kivel via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Pierrick M Hanlet <hanlet at fnal.gov>
Date: Fri, 7 Jul 2023 19:36:16 +0000
Hi Pierrick

This works for me on Alma 9.2 and Debian 12

```
# CONFIG_SITE.Common.linuxCommon
# ...
CODE_CPPFLAGS += -fno-strict-aliasing
USR_CXXFLAGS += $(STD_CXXFLAGS)
STD_CXXFLAGS = -std=c++20
```

HTH Niko

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Pierrick M Hanlet via Tech-talk <tech-talk at aps.anl.gov>
Sent: Friday, July 7, 2023 1:12 PM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: External: changing compiler versions
 
Greetings all,
I'd like to build our EPICS software (starting on an Alma Linux 9 platform) for
C++17 or even C++20.  I'm presently building with C++11 by adding
-std=c++11 to the USR_CXXFLAGS in  configure/CONFIG_COMMON.  However,
when I tried c++20/c++17/c++14 and it failed in every case with:
  • g++: error: unrecognized command line option ‘-std=c++20’
somewhere in the middle of building libcom - after the compilation call to
resourceLib.

A colleague of mine played with the configure/CONFIG.gnuCommon and
had a different level of success and failure.

Any help, even pointing me to the correct documentation would be
greatly appreciated.
Cheers,
Pierrick


-- 
Pierrick Hanlet
Fermi National Accelerator
Accelerator Front End Controls
+1-630-840-5555 -- lab
+1-312-687-4980 -- mobile

"Whether you think you can or think you can't, you're right" -- Henry Ford

Replies:
Re: External: changing compiler versions Pierrick M Hanlet via Tech-talk
References:
changing compiler versions Pierrick M Hanlet via Tech-talk

Navigate by Date:
Prev: Re: changing compiler versions Michael Davidsaver via Tech-talk
Next: Question on Accessing Data in Custom PV Structures Srinivas, Dhruv 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  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: Re: changing compiler versions Michael Davidsaver via Tech-talk
Next: Re: External: changing compiler versions Pierrick M Hanlet 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  2020  2021  2022  <20232024 
ANJ, 07 Jul 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·