Yes, that's the beauty of the nested build system. Each package has its own XXX/configure directory and these files
can override settings in your base/configuration/ files. Specifically, you should create a XXX/configure/CONFIG_SITE.local
file with your specific needs.
Cheers,
Pierrick
On 9/13/23 11: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.
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> On Behalf Of timesir via Tech-talk
Sent: Wednesday, September 13, 2023 10:38 AM
To: epics community <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.
--
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
- 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:
Re: how to configure compiler version timesir 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
- Navigate by Thread:
- Prev:
Re: how to configure compiler version timesir via Tech-talk
- Next:
Re: how to configure compiler version Michael Davidsaver 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
|