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

junkes junkes at fhi-berlin.mpg.de
Thu Jun 4 15:23:11 UTC 2020


On 2020-06-04 16:22, Gedare Bloom wrote:
> On Thu, Jun 4, 2020 at 7:58 AM Mritunjay Sharma
> <mritunjaysharma394 at gmail.com> wrote:
>> 
>> 
>> 
>> On Thu, Jun 4, 2020 at 10:39 AM Chris Johns <chrisj at rtems.org> wrote:
>>> 
>>> On 4/6/20 2:31 pm, Gedare Bloom wrote:
>>> > 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':
>>> 
>>> Is this from sourceforge?
>> 
>> 
>> Earlier I used from debian, today I tried with Sourceforge, but same 
>> error still :(
>>> 
>>> 
>>> How does the ptpd-2.3.1 source code relate to the github repo
>>> https://github.com/ptpd/ptpd ?
>>> 
>>> I have been referencing the github repo.
>> 
>> 
>> Yes, that's the repo that we are working with.
>> 
>> Mritunjay
>>> 
>>> 
>>> >> ../../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...
>>> 
>>> In the github version this code is conditional on sys/cpuset.h being 
>>> present.
>>> 
> 
> Well, we do have a sys/cpuset.h in newlib. It doesn't have these BSD
> definitions though. Probably either:
> 1. Add more stuff to sys/cpuset.h to make it support BSDisms. This
> would mean adding cpuset_setaffinity support in rtems, I guess.
> 2. Figure out how to disable the conditional code using the
> cpuset_setaffinity function.
> 
>>> 
>>> Chris

I changed the reference now to the github.
wget https://github.com/ptpd/ptpd/archive/master.zip

But using autoreconf just every second call works???

h1 at earth lall]$ cd ptpd-master/
[h1 at earth ptpd-master]$ autoreconf -i -v
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: creating directory build-aux
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/h1/GSOC/RTEMS/5.0.0-m2003/bin/autoconf
configure.ac:28: error: possibly undefined macro: AC_PROG_LIBTOOL
       If this token and others are legitimate, please use 
m4_pattern_allow.
       See the Autoconf documentation.
autoreconf: /home/h1/GSOC/RTEMS/5.0.0-m2003/bin/autoconf failed with 
exit status: 1
[h1 at earth ptpd-master]$ autoreconf -i -v
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/h1/GSOC/RTEMS/5.0.0-m2003/bin/autoconf
autoreconf: running: /home/h1/GSOC/RTEMS/5.0.0-m2003/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:29: installing 'build-aux/compile'
configure.ac:17: installing 'build-aux/install-sh'
configure.ac:17: installing 'build-aux/missing'
src/Makefile.am: installing 'build-aux/depcomp'
autoreconf: Leaving directory `.'
[h1 at earth ptpd-master]$ autoreconf -i -v
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/h1/GSOC/RTEMS/5.0.0-m2003/bin/autoconf
configure.ac:28: error: possibly undefined macro: AC_PROG_LIBTOOL
       If this token and others are legitimate, please use 
m4_pattern_allow.
       See the Autoconf documentation.
autoreconf: /home/h1/GSOC/RTEMS/5.0.0-m2003/bin/autoconf failed with 
exit status: 1
[h1 at earth ptpd-master]$ autoreconf -i -v
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/h1/GSOC/RTEMS/5.0.0-m2003/bin/autoconf
autoreconf: running: /home/h1/GSOC/RTEMS/5.0.0-m2003/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
autoreconf: Leaving directory `.'


More information about the devel mailing list