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  <20212022  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  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS compilation for gcc and clang
From: "J. Lewis Muir via Tech-talk" <tech-talk at aps.anl.gov>
To: Philipp Kampmann <p.kampmann at fz-juelich.de>
Cc: tech-talk at aps.anl.gov
Date: Tue, 20 Jul 2021 11:32:08 -0500
On 07/20, Philipp Kampmann via Tech-talk wrote:
> A corresponding "compiler/clang" path does not exist in my build. I
> would like to compile epics headers with both, g++ and clang. Does
> someone know if it works and how I can build EPICS with both compilers
> supported?

I'm not sure I understand what you're asking.  Are you trying to compile
one library with GCC and a program that links against it with Clang,
or vice versa?  Basically, you can't mix compilers in this situation
when the library is written in C++.  You need to compile all of your
software where C++ libraries are involved with one compiler.  With C,
you could do this, but with C++ you can't because the implementations of
the standard library are typically not ABI compatible, and since parts
of the EPICS Base libraries are C++, you can't mix compilers with EPICS
Base (e.g., in general it would be unsound to compile EPICS Base with
GCC and then compile a program with Clang that links with one of those
GCC-compiled C++ EPICS Base libraries).

Lewis

References:
EPICS compilation for gcc and clang Philipp Kampmann via Tech-talk

Navigate by Date:
Prev: EPICS compilation for gcc and clang Philipp Kampmann via Tech-talk
Next: Re: EPICS compilation for gcc and clang Johnson, Andrew N. 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  <20212022  2023  2024 
Navigate by Thread:
Prev: EPICS compilation for gcc and clang Philipp Kampmann via Tech-talk
Next: Re: EPICS compilation for gcc and clang Johnson, Andrew N. 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  <20212022  2023  2024 
ANJ, 20 Jul 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·