On 9/13/23 18:08, timesir via Tech-talk wrote:
Is it possible to modify the compiler version only when compiling a specific package is. I.e., the compiler version in the Makefile for a specific package overrides the version in the epics-base.
It is generally recommended to use the same compiler version, configuration, and CLI arguments
when building a set of modules meant to be used together.
Be aware that differing compiler version, configuration, or arguments could produce
incompatible binaries.
Andrew Johnson <anj at anl.gov <mailto:anj at anl.gov>> 于2023年9月13日周三 23:57写道:
__
On 9/13/23 10:43 AM, Soliday, Robert T. via Tech-talk wrote:
I set the version in configure/CONFIG
CC=/usr/local/gcc-11.3.0/bin/gcc
CCC=/usr/local/gcc-11.3.0/bin/g++
AR=/usr/local/gcc-11.3.0/bin/gcc-ar -rc
CPP = /usr/local/gcc-11.3.0/bin/gcc -x c -E
RANLIB=/usr/local/gcc-11.3.0/bin/gcc-ranlib
That would work (if you put those at the end of the file) as long as you are only building for the host architecture. If you will need to be able to cross-build for IOCs of other architectures and/or operating systems the settings for your particular host target should be added to the file configure/os/CONFIG_SITE.Common.<host-arch> or configure/os/CONFIG_SITE.<host-arch>.<host-arch> where <host-arch> would be linux-x86_64 for 64-bit Linux on Intel or amd64 hosts. Configuring builds for any cross architectures is more complicated.
- Andrew
-----Original Message-----
From: Tech-talk<tech-talk-bounces at aps.anl.gov> <mailto:tech-talk-bounces at aps.anl.gov> On Behalf Of timesir via Tech-talk
Sent: Wednesday, September 13, 2023 10:38 AM
To: epics community<tech-talk at aps.anl.gov> <mailto:tech-talk at aps.anl.gov>
Subject: how to configure compiler version
Dear all,
If there are three versions of gcc installed on the OS, how should I
set up epics to use a particular version of gcc. Right now I find that
/usr/bin/gcc is always used.
--
Complexity comes for free, Simplicity you have to work for.
- References:
- how to configure compiler version timesir via Tech-talk
- RE: how to configure compiler version Soliday, Robert T. via Tech-talk
- Re: how to configure compiler version Andrew Johnson via Tech-talk
- Re: how to configure compiler version timesir via Tech-talk
- Navigate by Date:
- Prev:
ADSpinnaker Grasshopper 3 NIR crashes on acquire Benjamin Stripe via Tech-talk
- Next:
Re: ADSpinnaker Grasshopper 3 NIR crashes on acquire Mark Rivers 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
<2023>
2024
- Navigate by Thread:
- Prev:
Re: how to configure compiler version Pierrick M Hanlet via Tech-talk
- Next:
ADSpinnaker Grasshopper 3 NIR crashes on acquire Benjamin Stripe 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
<2023>
2024
|