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  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  2021  2022  2023  <2024
<== Date ==> <== Thread ==>

Subject: Re: Question about cross compile of epics
From: NICOLE Remi via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 3 Jan 2024 08:01:29 +0000
Hello SeokHo Moon,

from my understanding, the cross-compilation definitions in epics-base
are more an "example" than something which works out of the box.

In epics-base, like Han Lee said, the cross-compiler is defined in the
configure/os directory of epics-base. For your case, epics-base reads
CONFIG.linux-x86_64.linux-arm which includes CONFIG_SITE.linux-
x86.linux-arm which is where it says to use a xilinx toolchain.

What I think should fix your usecase:

In configure/CONFIG.site of epics-base and other EPICS support modules:

    CROSS_COMPILER_TARGET_ARCHS="linux-arm"

In CONFIG.linux-x86_64.linux-arm or CONFIG_SITE.linux-x86.linux-arm:

    GNU_TARGET="arm-linux-gnueabihf"
    # Remove the GNU_DIR assignment:
    # compiler and related are still under /usr/bin
    #GNU_DIR=/usr

To my knowledge, the CROSS_COMPILE environment variable is not used in
epics-base.

Cheers
-- 
Rémi NICOLE <remi.nicole at cea.fr>
CEA/DRF/IRFU/DIS/LDISC

On Thu, 2023-12-28 at 10:35 +0900, 문석호 via Tech-talk wrote:
> Hello epics users,
> 
> These days I try to do the cross compile from linux x86 to linux-arm.
> My host computer uses ubuntu system but the target device use the arm
> architecture so I try to do the cross compile. 
> I used epics in usual x86 system or rasberrypi but I have not used
> the cross compile in epics. Therefore, I can not imagine the sequence
> of the cross compile in epics. 
> 
> If I want to use the cross compile at epics, should I do the cross
> compile for the epics-base and other supporting modules like asyn,
> sequencer, autosave, and etc? 
> 
> If that is right, I also face some other problem in epics-base
> compile. It compiled well but it face some problem when I give cross
> compile option. 
> At first I set the "CROSS_COMPILER_TARGET_ARCHS=linux-arm" at
> /configure/CONFIG_SITE and type  "export CROSS_COMPILE=arm-linux-
> gnueabihf-", "export ARCH=arm" to do make. 
> However, it says they can not found 'arm-xilinx-linux-gnueabi-gcc'. I
> installed the  'arm-linux-gnueabihf' because I heard that the target
> device has hard float. Does the error comes out because of some path?
> or is there any setting, I should do? 
> 
> Best Regards
> SeokHo Moon
> 

Replies:
Re: Question about cross compile of epics Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: Question about cross compile of epics Han Lee via Tech-talk
Next: Re: Question about cross compile of epics Ralph Lange 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: Question about cross compile of epics Han Lee via Tech-talk
Next: Re: Question about cross compile of epics Ralph Lange 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
ANJ, 03 Jan 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·