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  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: cross-compiling v7.0.7
From: Pierrick M Hanlet via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 15 Jun 2023 18:56:42 +0000
Greetings Andrew,
Oddly, even "make clean" creates the new file, so it's a bit of a 
nuisance; I have to have one
terminal to run make and another one to update (copy a working version 
of the RELEASE.linux-x86_64.local
file) after the build has started.

Interestingly, the v7.0.5 also has a RELEASE.linux-x86_64.local with 
"EPICS_BASE = ", but
that did not adversely affect the build.

Note that we have no special build locations.

I'm running a test now, and it appears that if I use the v7.0.5 
./configure/RULES_MODULES,
everything works as before.
Cheers,
Pierrick


On 6/15/23 10:49, Andrew Johnson via Tech-talk wrote:
> Hi Pierrick,
>
> On 6/15/23 6:07 AM, Pierrick M Hanlet via Tech-talk wrote:
>> Something broke, or I missed new instructions in building the modules in
>> v7.0.7 for cross-compiled platforms.
>> I'm building for several platforms.  The host build is fine, but when
>> the cross-compiled platforms start building
>> a new RELEASE.linux-x86_64.local is created with "EPICS_BASE = ", i.e.
>> empty.  I did not experience this with
>> v7.0.5.
> Hopefully the fix should be to just delete that file and run 'make' 
> again in that directory, but if you have a more complex local build 
> process (e.g. if you're building on multiple host arch's) that might 
> need some modifications. How were you doing the cross-builds?
>
> Getting the build rules right for generating the 
> modules/RELEASE.<host>.local file was tricky, and there were some 
> changes made to them between 7.0.5 and 7.0.7:
>> $ git log R7.0.5.. -- configure/RULES_MODULES
>> commit 098ee6c063c25c3b4483d7d5a0b6c8c6d8d17769
>> Author: Andrew Johnson <anj at anl.gov>
>> Date:   Sat Sep 3 10:59:26 2022 -0500
>>
>>     Oops: Fix to RULES_MODULES
>>
>> commit efc7cbaf7f93c1bc58f98b30b9d20a27bc0a7f91
>> Author: Andrew Johnson <anj at anl.gov>
>> Date:   Fri Sep 2 14:10:27 2022 -0500
>>
>>     Build system fixes related to INSTALL_LOCATION
>>
>>     * The build can't descend into external submodules when there is no
>>     configure/RULES_TOP file present in $(INSTALL_LOCATION).
>>     * Recreate modules/RELEASE.<host>.local if configure/CONFIG_SITE or
>>     configure/CONFIG_SITE.local have changed.
>>     * Move the distclean of modules/RELEASE.<host>.local to RULES_TOP
>>     * Several comment and white-space changes
>>
>> commit 191ff137f17eecde9e836f0f9aeaec5eecb73b24
>> Author: Andrew Johnson <anj at anl.gov>
>> Date:   Wed Nov 24 21:58:32 2021 -0600
>>
>>     configure: Use GNU Make's abspath instead of fullPathname.pl
>>
>>     Add new INSTALL_ABSOLUTE variable, remove duplicates.
>
> There are some comments at the top of the RULES_MODULES file but they 
> were mostly intended for other applications that want to adopt the 
> submodules scheme (the motor record uses it too).
>
> - Andrew
> -- 
> Complexity is free, it's Simplicity that takes work.

-- 
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


Replies:
Re: cross-compiling v7.0.7 Andrew Johnson via Tech-talk
References:
cross-compiling v7.0.7 Pierrick M Hanlet via Tech-talk
Re: cross-compiling v7.0.7 Andrew Johnson via Tech-talk

Navigate by Date:
Prev: Re: Issue installing asyn on CentOS 7 Brandon Gunn via Tech-talk
Next: Issue installing StreamDevice on CentOS 7 Brandon Gunn 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  <20232024 
Navigate by Thread:
Prev: Re: cross-compiling v7.0.7 Andrew Johnson via Tech-talk
Next: Re: cross-compiling v7.0.7 Andrew Johnson 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  <20232024 
ANJ, 15 Jun 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·