<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 20, 2020 at 5:42 AM Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</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">On 20/5/20 5:57 am, Mritunjay Sharma wrote:<br>
> On Wed, May 20, 2020 at 1:15 AM Vijay Kumar Banerjee <<a href="mailto:vijay@rtems.org" target="_blank">vijay@rtems.org</a> <br>
> <mailto:<a href="mailto:vijay@rtems.org" target="_blank">vijay@rtems.org</a>>> wrote:<br>
> <br>
> On Wed, May 20, 2020 at 12:52 AM Mritunjay Sharma<br>
> <<a href="mailto:mritunjaysharma394@gmail.com" target="_blank">mritunjaysharma394@gmail.com</a> <mailto:<a href="mailto:mritunjaysharma394@gmail.com" target="_blank">mritunjaysharma394@gmail.com</a>>><br>
> wrote:<br>
> ><br>
> ><br>
> ><br>
> > On Tue, May 19, 2020 at 10:09 PM Vijay Kumar Banerjee<br>
> <<a href="mailto:vijay@rtems.org" target="_blank">vijay@rtems.org</a> <mailto:<a href="mailto:vijay@rtems.org" target="_blank">vijay@rtems.org</a>>> wrote:<br>
> >><br>
> >> On Tue, May 19, 2020 at 7:42 PM Mritunjay Sharma<br>
> >> <<a href="mailto:mritunjaysharma394@gmail.com" target="_blank">mritunjaysharma394@gmail.com</a><br>
> <mailto:<a href="mailto:mritunjaysharma394@gmail.com" target="_blank">mritunjaysharma394@gmail.com</a>>> wrote:<br>
> >> ><br>
> >> > Hello everyone,<br>
> >> ><br>
> >> > Starting this thread to discuss and give a detail of my<br>
> progress in relation to<br>
> >> > my GSoC 2020 project "BSP Buildset for EPICS".<br>
> >> ><br>
> >> > It is to tell that I have worked on adding ptp2 support as<br>
> suggested by mentors<br>
> >> > The implementation that I found could work was ptp2 daemon and<br>
> so worked with<br>
> >> > it.<br>
> >> ><br>
> >> > I added these files:<br>
> >> > rsb/rtems/config/net/ptpd-2.3-1.cfg<br>
> >> > rsb/rtems/config/net/ptpd.bset<br>
> >> > rsb/source-builder/config/ptpd-2.1.cfg<br>
> >> ><br>
> >> > I am attaching the .diff file and the bug that I have<br>
> encountered in the<br>
> >> > respective txt file and will like the help of mentors in<br>
> trying to help me<br>
> >> > fix it.<br>
<br>
I am seeing in the RSB log this ...<br>
<br>
+ pwd<br>
+ <br>
build_top=/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1<br>
+ test x86_64-linux-gnu != sparc-rtems5<br>
+ test -z -o sparc-rtems5 ==<br>
/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/do-build: <br>
102: test: sparc-rtems5: unexpected operator<br>
<br>
Is there a shell script error here?<br>
<br>
It is not clear to me why this error did not stop the build?<br>
<br>
Please add --trace to the RSB command line. It does create lots of <br>
output but it does help debug these things.<br></blockquote><div><br></div><div>Have added and attached. Please have a look. Thanks</div><div>-Mritunjay</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> >> ><br>
> >> Hi Mritrynjay,<br>
> >><br>
> >> The error your are facing is here:<br>
> >> ```<br>
> >> checking whether the C compiler works... no<br>
> >> configure: error: in<br>
> >><br>
> `/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/build-cxc':<br>
> >> configure: error: C compiler cannot create executables<br>
> >> ```<br>
> >> Looks like it's not able to find the CC properly. If I remember<br>
> >> correctly, you had a similar problem before. Do you remember how you<br>
> >> fixed that or what was missing?<br>
> >><br>
> > Thank you so much for the help, Vijay. However, the thing that<br>
> was working last time is not<br>
> > helping me this time. I am attaching the config.log as well. Hope<br>
> it will help with debugging.<br>
> <br>
> Thanks for the log files. From a quick look, there is one obvious<br>
> error, the linker can't find libbsd most probably because it is not<br>
> there. So, you need to remove the -lbsd option from ptpd-2-1.cfg file<br>
> LIBS value. Another thing to be noted is that there are a few errors<br>
> due to failed version checking of the sparc-rtems5-gcc, this can<br>
> probably ignored for now if removing the -lbsd option fixes your<br>
> issue.<br>
> <br>
> Thank you so much! Removing the lbsd from cfg file resloved the earlier<br>
> compiler issue but now another error is coming up and it is somewhat <br>
> like this:<br>
> "Makefile:502: recipe for target 'all-recursive' failed<br>
> make[1]: Leaving directory <br>
> '/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/build-cxc'<br>
<br>
This looks like a Canadian Cross compile and this does not seem right. <br>
It may be related to the shell script error above.<br>
<br>
Chris<br>
</blockquote></div></div>