GSoC 2020: [rtems/rsb]: Error while adding ptp support. This time building for xilinx_zynq_a9_qemu

Gedare Bloom gedare at rtems.org
Thu Jun 4 04:31:31 UTC 2020


On Wed, Jun 3, 2020 at 1:53 PM Mritunjay Sharma
<mritunjaysharma394 at gmail.com> wrote:
>
> Hello everyone,
>
> As suggested by Heinz, I started building for xilinx_zynq_a9_qemu
> with a little modification in ptp cfg file.
>
> The netinet is no longer a problem here but another problem has come as follows:
>
> ../../ptpd-2.3.1/src/dep/startup.c: In function 'ptpdStartup':
> ../../ptpd-2.3.1/src/dep/startup.c:948:29: error: 'CPU_LEVEL_WHICH' undeclared (first use in this function)
>        if(cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
>                              ^~~~~~~~~~~~~~~
> ../../ptpd-2.3.1/src/dep/startup.c:948:46: error: 'CPU_WHICH_PID' undeclared (first use in this function)
>        if(cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
>                                               ^~~~~~~~~~~~~

These are from BSD. This probably needs to be compiled with libbsd
somehow? or picking up its header files...

> Makefile:629: recipe for target 'dep/startup.o' failed
> make[2]: Leaving directory '/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-arm-rtems5-1/build-cxc/src'
> make[2]: *** [dep/startup.o] Error 1
> Makefile:502: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-arm-rtems5-1/build-cxc'
> 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-arm-rtems5-1/do-build
> error: building ptpd-2.3.1-arm-rtems5-1
>   See error report: rsb-report-ptpd-2.3.1-arm-rtems5-1.txt
> Build Set: Time 0:00:21.081476
>
> I am also attaching the log file and trace report.
>
> Thanks,
> Mritunjay


More information about the devel mailing list