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.