On Sat, May 23, 2020 at 12:57 AM Vijay Kumar Banerjee <vi...@rtems.org> wrote:
> > > On Sat, May 23, 2020, 12:26 AM Mritunjay Sharma < > mritunjaysharma...@gmail.com> wrote: > >> >> >> On Thu, May 21, 2020 at 1:07 AM Mritunjay Sharma < >> mritunjaysharma...@gmail.com> wrote: >> >>> >>> >>> On Wed, May 20, 2020 at 1:46 AM Vijay Kumar Banerjee <vi...@rtems.org> >>> wrote: >>> >>>> On Wed, May 20, 2020 at 1:27 AM Mritunjay Sharma >>>> <mritunjaysharma...@gmail.com> wrote: >>>> > >>>> >> Thanks for the log files. From a quick look, there is one obvious >>>> >> error, the linker can't find libbsd most probably because it is not >>>> >> there. So, you need to remove the -lbsd option from ptpd-2-1.cfg file >>>> >> LIBS value. Another thing to be noted is that there are a few errors >>>> >> due to failed version checking of the sparc-rtems5-gcc, this can >>>> >> probably ignored for now if removing the -lbsd option fixes your >>>> >> issue. >>>> >> >>>> > Thank you so much! Removing the lbsd from cfg file resloved the >>>> earlier >>>> > compiler issue but now another error is coming up and it is somewhat >>>> like this: >>>> > "Makefile:502: recipe for target 'all-recursive' failed >>>> > make[1]: Leaving directory >>>> '/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/build-cxc' >>>> > make[1]: *** [all-recursive] Error 1 >>>> > Makefile:412: recipe for target 'all' failed >>>> > make: *** [all] Error 2 >>>> > shell cmd failed: /bin/sh -ex >>>> /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/do-build >>>> > error: building ptpd-2.3.1-sparc-rtems5-1" >>>> > >>>> >>>> The error is generally at the end of the log file. In this case, it is: >>>> ``` >>>> >>>> In file included from ../../ptpd-2.3.1/src/arith.c:53:0: >>>> ../../ptpd-2.3.1/src/ptpd.h:93:10: fatal error: netinet/ip.h: No such >>>> file or directory >>>> #include <netinet/ip.h> >>>> ^~~~~~~~~~~~~~ >>>> compilation terminated. >>>> ``` >>>> This header file isn't there in the include directory. Is netinet a >>>> dependency fo ptpd? If so, you'll have to find the package that >>>> provides netinet, and add that to rsb in a similar manner as in ptpd, >>>> then you'll have to add it in the ptpd.bset . >>>> >>> >> Hi, I am attaching netinet/ip.h file, do we need to add entire netinet >> package as ptpd? >> > We can't just pull one file and add it to rsb, this will make it almost > impossible to track with the upstream. It would be better to add the whole > package. Did you find the official source? > > To add the package, we need to add a separate set of cfg for netinet and > then add a reference in the ptpd cfg so that it builds before ptpd. qemu or > qemu-couverture can be examples of how to add a github repository to rsb > and build it. Please have a look at them and feel free to ask if you don't > understand something (maybe in a separate thread :) ) > > Also, please post the source of the package that you want to add, so that > there's no objection with the source later. > > > Chris commented about possible errors in the script, you might have to > follow up with him to fix the issue so that you don't face any problems > later. > > Best regards, > Vijay > > Thank you so much for your help and guidance. I will work out as told and revert. Sure, I will discuss once I am done adding netinet Thanks Mritunjay > Or there's way to add just this file. I have tried finding netinet tar >> package but have to satisfy myself with >> just a github repo? Can it be added as source in cfg file? >> >> Thanks, >> Mritunjay >> >>> >>> I have tried in this course. Have to still execute. Chris is telling >>> there is a problem with Canadian Cross >>> Compiling this. Is it allowed here to implement? >>> >>>> >>>> > Attaching the log file as well. >>>> > - Mritunjay >>>> >>>
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel