<div dir="ltr"><font face="arial, sans-serif">[UPDATE]: The error was actually a mismatch of names which was fixed with the following</font><div><font face="arial, sans-serif">changes:</font></div><div><font face="arial, sans-serif">-----------------------------------------------</font></div><div><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">diff --git a/source-builder/config/epics-7-1.cfg b/source-builder/config/epics-7-1.cfg
index fe1fb458..ea25f284 100644
--- a/source-builder/config/epics-7-1.cfg
+++ b/source-builder/config/epics-7-1.cfg
@@ -10,7 +10,7 @@
 
 %define epics_version 3afec267ab08568ea454789e562450b00feea5c0
 
-Name:      epics-%{epics_version}-%{_host}-%{release}
+Name:      epicsBaseOwnPlayground-%{epics_version}-%{_host}-%{release}
 Summary:   EPICS v%{epics_version} for target %{_target} on host %{_host}
 Version:   %{epics_version}
 Release:   %{release}
@@ -19,7 +19,8 @@ URL:    <a href="https://epics.mpg.de/" target="_blank">https://epics.mpg.de/</a>
 #
 # Source
 #
-%source set epics --rsb-file=epics-%{epics_version}.zip <a href="https://github.com/hjunkes/epicsBaseOwnPlayground/archive/%%7Bepics_version%7D.zip" target="_blank">https://github.com/hjunkes/epicsBaseOwnPlayground/archive/%{epics_version}.zip</a>
+%source set epics --rsb-file=epicsBaseOwnPlayground-%{epics_version}.tar.gz <a href="https://github.com/hjunkes/epicsBaseOwnPlayground/archive/%%7Bepics_version%7D.tar.gz" target="_blank">https://github.com/hjunkes/epicsBaseOwnPlayground/archive/%{epics_version}.tar.gz</a>
+
 
 #
 # Prepare the source code.
@@ -27,25 +28,20 @@ URL:          <a href="https://epics.mpg.de/" target="_blank">https://epics.mpg.de/</a>
 %prep
   build_top=$(pwd)
 
-  source_dir_epics="epics-%{epics_version}"
+  source_dir_epics="epicsBaseOwnPlayground-%{epics_version}"
 
-  %source setup epics -q -n epics-%{epics_version}
+  %source setup epics -q -n epicsBaseOwnPlayground-%{epics_version}
 
   cd ${build_top}
 
 %build
   build_top=$(pwd)
 
-    
-
-  %{build_directory}
-
-  mkdir -p ${build_dir}
-  cd ${build_dir}
+  cd ${source_dir_epics}
 
-  %{host_build_flags}
+  %{build_build_flags}
 
-  #cd ${source_dir_epics}
+  %{__make} PREFIX=%{_prefix}
 
   ./configure \
     --prefix=%{_prefix}</font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif"><br></font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">------------------------------</font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">After this, I ran the command </font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">`../source-builder/sb-builder --prefix=/home/mritunjay/<span style="color:rgb(34,34,34)">development  --log=log_epics epics-7-1 --trace`</span></font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif"><span style="color:rgb(34,34,34)">again. The error that has come now was expected because the changes I made in </span>epicsBaseOwnPlayground/configure file</font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">were done manually and here it has to be done through a script. The changes that I did manually were; </font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="arial, sans-serif">in epics-base/configure/CONFIG_SITE<br>set<br>CROSS_COMPILER_TARGET_ARCHS=  <br></font></blockquote><div><font face="arial, sans-serif">   What I entered:</font></div><div><font face="arial, sans-serif">   CROSS_COMPILER_TARGET_ARCHS=  RTEMS-pc386-qemu</font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="arial, sans-serif">e.g. RTEMS-pc386<br>or RTEMS-xilinx_zynq_a9_qemu<br><br>in epics-base/configure/os there must be a file for the target used,<br>e.g.<br>CONFIG.Common.RTEMS-xilinx_zynq_a9_qemu<br>or<br>CONFIG.Common.RTEMS-pc386<br></font></blockquote><div><font face="arial, sans-serif">Checked.  CONFIG.Common.RTEMS-pc386 was there</font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="arial, sans-serif"><br>Then you have to set in configure/os/CONFIG_SITE.Common.RTEMS<br>where to find RTEMS:<span style="color:rgb(80,0,80)"><br><br># Where to find RTEMS<br>#<br># APS:<br>#RTEMS_VERSION = 4.10.2<br>#RTEMS_BASE = /usr/local/vw/rtems/rtems-$(RTEMS_VERSION)</span></font></blockquote><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">In my system, I entered this: </font></div><div><font face="arial, sans-serif">#FHI</font></div><font face="arial, sans-serif">RTEMS_VERSION = 5<br>RTEMS_BASE = /home/mritunjay/development/rtems/$(RTEMS_VERSION)</font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">I have a doubt on how to implement the above changes in the `source-builder/config/epics-7-1.cfg` to make it work. </font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">Do we have to write a patch? And what will be the best way to do it? </font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">The latest error looks somewhat like this which is because I have to change the configurations in epics directory. </font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">The question is how to accomplish it through the script. </font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">../../configure/os/CONFIG.Common.RTEMS:36: /Users/junkes/MVME6100/RTEMS/rtems-5/powerpc-rtems5/beatnik/Makefile.inc: No such file or directory</font></pre><br><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif"><br></font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">Thanks</font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">Mritunjay </font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><div><br style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;white-space:normal"></div></pre></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 21, 2020 at 4:09 AM Mritunjay Sharma <<a href="mailto:mritunjaysharma394@gmail.com" target="_blank">mritunjaysharma394@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello all, <br><div><br></div><div>I went through the <a href="https://docs.rtems.org/branches/master/user/rsb/index.html" target="_blank">https://docs.rtems.org/branches/master/user/rsb/index.html</a></div><div>and started writing a recipe for building EPICS 7. </div><div><br></div><div>The code is based on a very raw idea just now and</div><div>so was expected to give errors. </div><div><br></div><div>The code can be found here: <a href="https://github.com/mritunjaysharma394/rtems-source-builder/blob/epics-support/source-builder/config/epics-7-1.cfg" target="_blank">https://github.com/mritunjaysharma394/rtems-source-builder/blob/epics-support/source-builder/config/epics-7-1.cfg</a></div><div><br></div><div>After this, just to check, what errors it might gave,  </div><div>I ran the following command: </div><div><br></div><div>../source-builder/sb-builder --prefix=/home/mritunjay/development      --log=log_epics epics-7-1 --trace<br></div><div><br></div><div>This gave me the following error:</div><div><br></div><div>`+ cd epics-3afec267ab08568ea454789e562450b00feea5c0</div>/home/mritunjay/development/rtems/src/rsb_GSoC/rtems/build/epics-3afec267ab08568ea454789e562450b00feea5c0-x86_64-linux-gnu-1/do-build: 90: cd: can't cd to epics-3afec267ab08568ea454789e562450b00feea5c0<br>shell cmd failed: /bin/sh -ex  /home/mritunjay/development/rtems/src/rsb_GSoC/rtems/build/epics-3afec267ab08568ea454789e562450b00feea5c0-x86_64-linux-gnu-1/do-build<br>error: building epics-3afec267ab08568ea454789e562450b00feea5c0-x86_64-linux-gnu-1`<div><br></div><div>I think there seems to be some problem with naming the directory.</div><div>I request you all to kindly help with the error as well as please check the code</div><div>to see if I am on the right path. </div><div>I am attaching the log and trace file as well. </div><div><br></div><div>Thanks,</div><div>Mritunjay</div><div><div><br></div><div><br></div></div></div>
</blockquote></div>