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

junkes junkes at fhi-berlin.mpg.de
Sun Jun 7 04:49:16 UTC 2020


This is an unusually long text for the mailing list. I tried to write a
kind 
of tutorial using an example for a GSOC student. I'm looking forward to
the 
comments from the pros and can write it down completely. 

Hello, Mritunjay

if I understood it correctly, one idea of the rtems source builder is to
make existing 
software packages usable for RTEMS. Most existing software packages do
not work without 
changes in the RTEMS environment. You have already noticed this with
ptpd ;-) 

The most common auto-tools and configure have trouble making the correct

assumptions for the rtems environment. Here you have to intervene. This
can 
be done with the builder-cfg files. 

This is a bit of hard work and you have to approach it with small steps.

You also have to use not so clean tricks in different places. When you
have 
achieved the integration you can/must then try to optimize it so that it
becomes 
generally valid. 

That's my policy. Maybe the others here in the maillist have more ideas,
also for me. 

I have now tried to implement what I mean using a similar example
(openntp). 
Unfortunately, I haven't finished yet, but I hope to clear a few hurdles
for you. 

I was doing some digging around and I came across this: 
https://github.com/openntpd-portable/openntpd-portable 

Here I was then confronted with the same problems as you with autoreconf
etc. Here it 
didn't work, just run autoreconf twice and generate a tar-file for
installation like 
I did with the ptpd from github. 
Then I found this:
https://artfiles.org/openbsd/OpenNTPD/openntpd-6.2p3.tar.gz 

Now I have made a "standard" config file for rsb: 

# 
# OpenNTPd 6.2p3 Version 1. 
# 
# This configuration file configure's, make's and install's OpenNTPd. 
# 

%if %{release} == %{nil} 
%define release 1 
%endif 

Name:      openntpd-%{openntpd_version}-%{_host}-%{release} 
Summary:   NTP is the Network Time Protocol. 
Version:   %{openntpd_version} 
Release:   %{release} 
URL:       https://github.com/openntpd-portable 

# 
# NTP Source 
# 
%source set openntpd
https://artfiles.org/openbsd/OpenNTPD/openntpd-%{openntpd_version}.tar.gz

%hash sha512 openntpd-%{openntpd_version}.tar.gz
56a04bfd8b161b365607673ac80086ff53ae943938fa49bf52edbc541432eca30730a46a4af581fe26ce3bbceb144cb25982a38959b7a3f9304c727fe60f9
f50 

# 
# Prepare the source code. 
# 
%prep
build_top=$(pwd) 

 source_dir_openntpd="openntpd-%{openntpd_version}" 
 %source setup openntpd -q -n openntpd-%{openntpd_version} 
 %patch setup openntpd -p1 

 cd ${build_top} 

%build 
 build_top=$(pwd) 

 %{build_directory} 

 mkdir -p ${build_dir} 
 cd ${build_dir} 

 %{host_build_flags} 

 ../${source_dir_openntpd}/configure \ 
   --host=%{_host} \ 
   --prefix=%{_prefix} \ 
   --bindir=%{_bindir} \ 
   --exec_prefix=%{_exec_prefix} \ 
   --includedir=%{_includedir} \ 
   --libdir=%{_libdir} \ 
   --libexecdir=%{_libexecdir} \ 
   --mandir=%{_mandir} \ 
   --infodir=%{_infodir} \ 
   --datadir=%{_datadir} \ 
   --disable-shared \ 
   --enable-static \ 
   --with-gnu-ld \ 
   --disable-https-constraint 

 %{__make} all 

 cd ${build_top} 

%install 
 build_top=$(pwd) 

 %{__rmdir} $SB_BUILD_ROOT 

cd ${build_dir} 
 %{__make} DESTDIR=$SB_BUILD_ROOT install 
 cd ${build_top} 

Then I "executed" that. 
[h1 at earth rtems (master *)]$ ../source-builder/sb-set-builder --log
log.ntpd.txt --with-rtems-bsp=xilinx_zynq_a9_qemu --host=arm-rtems5
--prefix /home/h1/GSOC/RTEMS/5.0.0-m20
03 net/ntpd 
RTEMS Source Builder - Set Builder, 5 (26e335ca159e modified) 
Build Set: net/ntpd 
config: net/openntpd-6.2p3-1.cfg 
package: openntpd-6.2p3-arm-rtems5-1 
building: openntpd-6.2p3-arm-rtems5-1 
error: building openntpd-6.2p3-arm-rtems5-1 
Build FAILED 
 See error report: rsb-report-openntpd-6.2p3-arm-rtems5-1.txt 
error: building openntpd-6.2p3-arm-rtems5-1 
Build Set: Time 0:00:16.036623 
Build FAILED 

Error! I looked at that one: 
[h1 at earth rtems (master *)]$ tail -20
rsb-report-openntpd-6.2p3-arm-rtems5-1.txt 
 CC       setproctitle.lo 
 CC       bsd-setresgid.lo 
 CC       bsd-setresuid.lo 
 CCLD     libcompat.la 
arm-rtems5-ar: `u' modifier ignored since `D' is the default (see `U') 
 CCLD     libcompatnoopt.la 
arm-rtems5-ar: `u' modifier ignored since `D' is the default (see `U') 
make[1]: Leaving directory
'/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/compat'

Making all in src 
make[1]: Entering directory
'/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src'

 CC       ntpd-client.o 
arm-rtems5-gcc: fatal error:
/home/h1/GSOC/RTEMS/5.0.0-m2003/arm-rtems5/xilinx_zynq_a9_qemu/lib/bsp_specs:
attempt to rename spec 'endfile' to already defined spec 'old_endfi
le' 
compilation terminated. 
Makefile:526: recipe for target 'ntpd-client.o' failed 
make[1]: *** [ntpd-client.o] Error 1 
make[1]: Leaving directory
'/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src'

Makefile:401: recipe for target 'all-recursive' failed 
make: *** [all-recursive] Error 1 
shell cmd failed: /bin/sh -ex 
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/do-build


In build/openntpd-6.2p3-arm-rtems5-1/openntpd-6.2p3/src/Makefile.am I
found that CFLAGS gets includes twice which leads to this error "attempt
to rename..." 
... 
ntpd_CFLAGS = $(CFLAGS) 
ntpd_CFLAGS += -DSYSCONFDIR=\"$(sysconfdir)\" 
ntpd_CFLAGS += -DLOCALSTATEDIR=\"$(localstatedir)\" 
... 

Then I changed the cfg-file: 

... 
%{host_build_flags} 

# src/Makefile.am includes CFLAGS twice? 
# this leads to : bsp_specs: attempt to rename spec 'endfile' to already
defined spec 'old_endfile' 
# 
 sed -i 's/ntpd_CFLAGS = $(CFLAGS)/ntpd_CFLAGS = $(CFLAGS)/g'
../${source_dir_openntpd}/src/Makefile.am 
 sed -i 's/ntpd_CFLAGS += -DSYSCONFDIR=/ntpd_CFLAGS = -DSYSCONFDIR=/g'
../${source_dir_openntpd}/src/Makefile.am 

 ../${source_dir_openntpd}/configure \ 
   --host=%{_host} \ 
... 

Now I've come a long way, but 

[h1 at earth rtems (master *)]$ tail -20
rsb-report-openntpd-6.2p3-arm-rtems5-1.txt 
      asnprintf 
 CC       ntpd-ntp.o 
 CC       ntpd-ntp_dns.o 
../../openntpd-6.2p3/src/ntp_dns.c: In function 'ntp_dns': 
../../openntpd-6.2p3/src/ntp_dns.c:58:6: warning: implicit declaration
of function 'setpriority'; did you mean 'setprotoent'?
[-Wimplicit-function-declaration] 
 if (setpriority(PRIO_PROCESS, 0, 0) == -1) 
     ^~~~~~~~~~~ 
     setprotoent 
../../openntpd-6.2p3/src/ntp_dns.c:58:18: error: 'PRIO_PROCESS'
undeclared (first use in this function); did you mean 'EINPROGRESS'? 
 if (setpriority(PRIO_PROCESS, 0, 0) == -1) 
                 ^~~~~~~~~~~~ 
                 EINPROGRESS 
../../openntpd-6.2p3/src/ntp_dns.c:58:18: note: each undeclared
identifier is reported only once for each function it appears in 
Makefile:624: recipe for target 'ntpd-ntp_dns.o' failed 
make[1]: *** [ntpd-ntp_dns.o] Error 1 
make[1]: Leaving directory
'/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src'

make: *** [all-recursive] Error 1
Makefile:401: recipe for target 'all-recursive' failed 
shell cmd failed: /bin/sh -ex 
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/do-build


Now a little bit of searching... 

Adding "#include <rtems/bsd/sys/resource.h>" solves the problem. 

But the next one arises: 

make[1]: Entering directory
'/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src'

 CC       ntpd-ntpd.o 
 CC       ntpd-parse.o 
parse.y: In function 'yyerror': 
parse.y:473:6: warning: implicit declaration of function 'vasprintf';
did you mean 'vasnprintf'? [-Wimplicit-function-declaration] 
parse.y: In function 'yylex': 
parse.y:686:22: warning: implicit declaration of function 'strtonum';
did you mean 'strtoul'? [-Wimplicit-function-declaration] 
 CC       ntpd-fake-sensors.o 
 CC       ntpd-server.o 
../../openntpd-6.2p3/src/server.c: In function 'setup_listeners': 
../../openntpd-6.2p3/src/server.c:65:21: error: 'struct if_data' has no
member named 'ifi_rdomain'; did you mean 'ifi_addrlen'? 
     rdomain = ifd->ifi_rdomain; 
                    ^~~~~~~~~~~ 
                    ifi_addrlen 
Makefile:708: recipe for target 'ntpd-server.o' failed 

That looks a little more complicated. It uses an if_data structure that
is probably only available in openbsd? 

But also here google helps ;-) 
Here I found a patch :
https://github.com/freebsd/freebsd-ports/tree/master/net/openntpd/files 

[h1 at earth build-cxc (master *)]$ patch ../openntpd-6.2p3/src/server.c
/tmp/openntp/openntpd-6.2p3/patch-src_server.c 

And it's gotten me this far: 

[h1 at earth build-cxc (master *)]$ make 
Making all in include 
make[1]: Entering directory
'/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/include'

make[1]: Nothing to be done for 'all'. 
make[1]: Leaving directory
'/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/include'

Making all in compat 
make[1]: Entering directory
'/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/compat'

make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory
'/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/compat'

Making all in src 
make[1]: Entering directory
'/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src'

 CC       ntpd-server.o 
 CC       ntpd-util.o 
 CCLD     ntpd 
/home/h1/GSOC/RTEMS/5.0.0-m2003/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
ntpd-ntp_dns.o: in function `ntp_dns': 
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src/../../openntpd-6.2p3/src/ntp_dns.c:59:
undefined reference to `setpriority' 
/home/h1/GSOC/RTEMS/5.0.0-m2003/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
ntpd-ntpd.o: in function `main': 
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src/../../openntpd-6.2p3/src/ntpd.c:243:
undefined reference to `setpriority' 
/home/h1/GSOC/RTEMS/5.0.0-m2003/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/b
uild-cxc/src/../../openntpd-6.2p3/src/ntpd.c:251: undefined reference to
`daemon' 
/home/h1/GSOC/RTEMS/5.0.0-m2003/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/b
uild-cxc/src/../../openntpd-6.2p3/src/ntpd.c:330: undefined reference to
`daemon' 
/home/h1/GSOC/RTEMS/5.0.0-m2003/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
ntpd-ntpd.o: in function `dispatch_imsg': 
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src/../../openntpd-6.2p3/src/ntpd.c:435:
undefined reference to `daemon' 
/home/h1/GSOC/RTEMS/5.0.0-m2003/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
ntpd-ntpd.o: in function `ntpd_adjtime': 
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src/../../openntpd-6.2p3/src/ntpd.c:487:
undefined reference to `update_time_sy
nc_status' 
/home/h1/GSOC/RTEMS/5.0.0-m2003/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
ntpd-ntpd.o: in function `ntpd_adjfreq': 
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src/../../openntpd-6.2p3/src/ntpd.c:498:
undefined reference to `adjfreq' 
/home/h1/GSOC/RTEMS/5.0.0-m2003/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/b
uild-cxc/src/../../openntpd-6.2p3/src/ntpd.c:522: undefined reference to
`adjfreq' 
/home/h1/GSOC/RTEMS/5.0.0-m2003/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
ntpd-ntpd.o: in function `ntpd_settime': 
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src/../../openntpd-6.2p3/src/ntpd.c:542:
undefined reference to `settimeofday' 
/home/h1/GSOC/RTEMS/5.0.0-m2003/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
ntpd-ntpd.o: in function `readfreq': 
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src/../../openntpd-6.2p3/src/ntpd.c:565:
undefined reference to `adjfreq' 
/home/h1/GSOC/RTEMS/5.0.0-m2003/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/b
uild-cxc/src/../../openntpd-6.2p3/src/ntpd.c:574: undefined reference to
`adjfreq' 
collect2: error: ld returned 1 exit status 
Makefile:476: recipe for target 'ntpd' failed 
make[1]: *** [ntpd] Error 1 
make[1]: Leaving directory
'/home/h1/GSOC/RTEMS_DEV/rtems-source-builder/rtems/build/openntpd-6.2p3-arm-rtems5-1/build-cxc/src'

Makefile:401: recipe for target 'all-recursive' failed 
make: *** [all-recursive] Error 1 

This is where I am now. From now on, it's gonna be exciting. Now it's
all about anchoring the daemon process in RTEMS. 
But that is nice work now. I still have to do it. 

But I wanted to show you this step-by-step so you can get over the first
hurdles. 
I hope this helps you and it was not too long. 
Heinz

On 2020-06-06 01:31, Mritunjay Sharma wrote:

> Thank you so much Heinz for such a detailed response.  
> It really helped me a lot. 
> As advised by you and Heinz, I changed the source to https://github.com/mritunjaysharma394/ptpd/archive/master.zip 
> with suggested changes. However, I have encountered few bugs again related to autoreconf.  
> It looks somewhat like this:  
> 
> + autoreconf -i -v
> autoreconf: Entering directory `.'
> autoreconf: configure.ac [1]: not using Gettext
> autoreconf: running: aclocal -I m4
> autoreconf: configure.ac [1]: tracing
> autoreconf: configure.ac [1]: creating directory build-aux
> autoreconf: configure.ac [1]: not using Libtool
> autoreconf: running: /home/mritunjay/development/rtems/5/bin/autoconf
> configure.ac:28 [2]: 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/mritunjay/development/rtems/5/bin/autoconf failed with exit status: 1
> shell cmd failed: /bin/sh -ex  /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1/do-build
> error: building ptpd-master-arm-rtems5-1 
> 
> I have attached the error report as well and changes in cfg files can be found here: 
> https://github.com/mritunjaysharma394/rtems-source-builder/commit/6b6bb2b3bd778ebe56e9a1bf3aec1747b078fd39 
> 
> Thanks, 
> Mritunjay 
> 
> On Fri, Jun 5, 2020 at 2:53 AM Gedare Bloom <gedare at rtems.org> wrote: 
> 
>> On Thu, Jun 4, 2020 at 1:38 PM junkes <junkes at fhi-berlin.mpg.de> wrote:
>>> 
>>> Hallo Mritunjay,
>>> 
>>> You can't just take the github ptpd sources and make them work in RTEMS. You have to make some configuration
>>> and sources changes before you can build the with the rsb.
>>> 
>>> Some things like the sys/cpuset.h seems not to be fully compatible yet and so the configure simply makes
>>> "wrong" decisions. E.g. defines HAVE_SYS_CPUSET_H = 1 as sys/cpuset.h exists.I played a little bit with it and reset
>>> the definition in ptpd-master/src/ptpd.h  (quick and dirty) and could reduce the error messages because there is a query for
>>> this variable in the code (src/dep/sys.c):
>>> 
>>> in ptpd.h after the include of the created configs :
>>> 
>>> ...
>>> #ifdef HAVE_CONFIG_H
>>> # include <config.h>
>>> #endif /* HAVE_CONFIG_H */
>>> 
>>> #undef HAVE_NTP_GETTIME
>>> #undef HAVE_SYS_CPUSET_H
>>> 
>>> #ifdef linux
>>> ...
>>> 
>>> in src/dep/sys.c
>>> 
>>> ...
>>> #ifdef HAVE_SYS_CPUSET_H
>>> cpuset_t mask;
>>> CPU_ZERO(&mask);
>>> if(cpu >= 0) {
>>> CPU_SET(cpu,&mask);
>>> } else {
>>> int i;
>>> for(i = 0;  i < CPU_SETSIZE; i++) {
>>> CPU_SET(i, &mask);
>>> }
>>> }
>>> return(cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
>>> -1, sizeof(mask), &mask));
>>> #endif /* HAVE_SYS_CPUSET_H */
>>> 
>>> In src/dep/constants_dep.h  one can find:
>>> 
>>> * platform dependent */
>>> 
>>> #if !defined(linux) && !defined(__NetBSD__) && !defined(__FreeBSD__) && \
>>> !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__sun) && !defined(__QNXNTO__)
>>> #error PTPD hasn't been ported to this OS - should be possible \
>>> if it's POSIX compatible, if you succeed, report it to ptpd-devel at sourceforge.net
>>> #endif
>>> 
>>> here I added "&& !defined(__rtems__)
>>> 
>>> and here:
>>> ...
>>> #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__sun) || defined(__QNXNTO__) || defined(__rtems__)
>>> # include <sys/types.h>
>>> # include <sys/socket.h>
>>> #ifdef HAVE_SYS_SOCKIO_H
>>> #include <sys/sockio.h>
>>> #endif /* HAVE_SYS_SOCKIO_H */
>>> # include <netinet/in.h>
>>> # include <net/if.h>
>>> # include <net/if_dl.h>
>>> # include <net/if_types.h>
>>> #ifdef HAVE_NET_IF_ETHER_H
>>> #  include <net/if_ether.h>
>>> ...
>>> 
>>> and so on... You'd have to bite through it once and then you will surely get it compiled.
>>> 
>> Great start Heinz! Mritunjay, I think this definitely the way forward.
>> Later, you might try to circle back and fix the hacks in nicer ways by
>> learning how to make the autoconf stuff work correctly, and contribute
>> those fixes back upstream to ptpd project.
>> 
>>> HTH Heinz
>>> 
>>> 
>>> 
>>> On 2020-06-04 20:29, Mritunjay Sharma wrote:
>>> 
>>> 
>>> 
>>> On Thu, Jun 4, 2020 at 11:07 PM Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:
>>> 
>>> On 04/06/2020 16:22, Gedare Bloom wrote:
>>> 
>>>>>> 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.
>>> The <sys/cpuset.h> is already as compatible as possible to glibc and
>>> FreeBSD. There is always room for improvement, however, in this area it
>>> will be difficult.
>>> 
>>> 
>>> Please it would be kind of you all to guide on what is the best thing I can do next. It is looking
>>> a little difficult. If something similar has been done earlier, sharing it can be a lot helpful to take a cue.
>>> 
>>> Mritunjay
>>> 
>>> _______________________________________________
>>> devel mailing list
>>> devel at rtems.org
>>> http://lists.rtems.org/mailman/listinfo/devel
>>> 
>>> 
>>> _______________________________________________
>>> devel mailing list
>>> devel at rtems.org
>>> http://lists.rtems.org/mailman/listinfo/devel

 

Links:
------
[1] http://configure.ac
[2] http://configure.ac:28
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200607/97c72b09/attachment-0001.html>
-------------- next part --------------
RTEMS Tools Project - Source Builder Error Report
 Build: error: building ptpd-master-arm-rtems5-1
 Command Line: ../source-builder/sb-set-builder --log=log --prefix=/home/mritunjay/development/rtems/5 --with-tools=/home/mritunjay/development/rtems/5 --host=arm-rtems5 --with-rtems-bsp=xilinx_zynq_a9_qemu net/ptpd
 Python: 2.7.17 (default, Apr 15 2020, 17:20:14) [GCC 7.5.0]
 git://git.rtems.org/rtems-source-builder.git/origin/855818015a378a8333754625296f3b15ce52aadd-modified
 Linux mritunjay-XPS-15-9570 5.3.0-51-generic #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020 x86_64
Tail of the build log:
script:143:   LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
script:144:   CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
script:145:   CC_FOR_BUILD=$(echo "gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
script:146:   CXX_FOR_BUILD=$(echo "g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
script:147: else
script:148:   LDFLAGS="${SB_BUILD_LDFLAGS}"
script:149:   LDLIBS="${SB_BUILD_LIBS}"
script:150:   LIBS="${SB_BUILD_LIBS}"
script:151:   CC=$(echo "gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
script:152:   CXX=$(echo "g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
script:153:   CC_FOR_BUILD=${CC}
script:154:   CXX_FOR_BUILD=${CXX}
script:155: fi
script:156: export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
script:157: export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
script:158: export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
script:159: ../${source_dir_ptpd}/configure  --host=arm-rtems5  --prefix=/home/mritunjay/development/rtems/5  --bindir=/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/bin  --exec_prefix=/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu  --includedir=/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include  --libdir=/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib  --libexecdir=/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/libexec  --mandir=/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/share/man  --infodir=/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/share/info  --datadir=/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/share  --disable-shared  --disable-statistics  --enable-slave-only  --disable-posix-timers  --with-max-unicast-destinations=2048  --enable-experimental-options  --enable-pcap  --enable-daemon
script:160: make all
script:161: cd ${build_top}
script:162: echo "==> %install:"
script:163: build_top=$(pwd)
script:164: /bin/rm -rf $SB_BUILD_ROOT
script:165: cd ${build_dir}
script:166: make DESTDIR=$SB_BUILD_ROOT install
script:167: cd ${build_top
script:  1: #!/bin/sh
script:  2: # ___build_pre as set up in defaults.py
script:  3: # Save the original path away.
script:  4: export SB_ORIG_PATH=${PATH}
script:  5: # Directories
script:  6: SB_PREFIX="/home/mritunjay/development/rtems/5"
script:  7: SB_PREFIX_CLEAN=$(echo "/home/mritunjay/development/rtems/5" | /bin/sed -e 's/^\///')
script:  8: SB_SOURCE_DIR="/home/mritunjay/development/rtems/rsb/rtems/sources"
script:  9: SB_BUILD_DIR="/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1"
script: 10: # host == build, use build; host != build, host uses host and build uses build
script: 11: SB_HOST_CPPFLAGS="-I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include"
script: 12: # Optionally do not add includes to c/cxx flags as newer configure's complain
script: 13: SB_HOST_CFLAGS="-qrtems -B/home/mritunjay/development/rtems/5/arm-rtems5/lib/ -B/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/ --specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O0 -g -ffunction-sections -fdata-sections "
script: 14: SB_HOST_CXXFLAGS="-qrtems -B/home/mritunjay/development/rtems/5/arm-rtems5/lib/ -B/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/ --specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O0 -g -ffunction-sections -fdata-sections "
script: 15: SB_HOST_LDFLAGS="-L/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib $(echo "-qrtems -B/home/mritunjay/development/rtems/5/arm-rtems5/lib/ -B/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/ --specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O0 -g -ffunction-sections -fdata-sections" | awk '{for (i=1;i<NF;++i) if ($i ~ /\-m/) printf("%s ",$i);}') -L/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/${SB_PREFIX_CLEAN}/lib"
script: 16: SB_HOST_LIBS="-lbsd -lm -lz -lrtemsdefaultconfig"
script: 17: SB_BUILD_CFLAGS="-O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/${SB_PREFIX_CLEAN}/include"
script: 18: SB_BUILD_CXXFLAGS="-O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/${SB_PREFIX_CLEAN}/include"
script: 19: SB_BUILD_LDFLAGS=" -L/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/${SB_PREFIX_CLEAN}/lib"
script: 20: SB_BUILD_LBS=""
script: 21: SB_CFLAGS="${SB_BUILD_CFLAGS} "
script: 22: SB_CXXFLAGS="${SB_BUILD_CXXFLAGS} "
script: 23: SB_ARCH="arm"
script: 24: SB_OS="linux"
script: 25: export SB_SOURCE_DIR SB_BUILD_DIR SB_ARCH SB_OS
script: 26: export SB_HOST_CPPFLAGS SB_HOST_CFLAGS SB_HOST_CXXFLAGS SB_HOST_LDFLAGS SB_HOST_LIBS
script: 27: export SB_BUILD_CFLAGS SB_BUILD_CXXFLAGS SB_BUILD_LDFLAGS SB_BUILD_LIBS
script: 28: export SB_CFLAGS SB_CXXFLAGS
script: 29: # Documentation
script: 30: SB_DOC_DIR="/home/mritunjay/development/rtems/5/share/doc"
script: 31: export SB_DOC_DIR
script: 32: # Packages
script: 33: SB_PACKAGE_NAME="ptpd-master-arm-rtems5-1"
script: 34: SB_PACKAGE_BUILDNAME="ptpd-master-arm-rtems5-1"
script: 35: SB_PACKAGE_VERSION="master"
script: 36: SB_PACKAGE_RELEASE="1"
script: 37: export SB_PACKAGE_NAME SB_PACKAGE_VERSION SB_PACKAGE_RELEASE
script: 38: # Build directories
script: 39: export SB_PREFIX
script: 40: SB_BUILD_DIR="/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1"
script: 41: SB_BUILD_ROOT="/home/mritunjay/development/rtems/rsb/rtems/build/tmp/ptpd-master-arm-rtems5-1-1000"
script: 42: SB_BUILD_ROOT_BINDIR="/home/mritunjay/development/rtems/rsb/rtems/build/tmp/ptpd-master-arm-rtems5-1-1000/${SB_PREFIX_CLEAN}/bin"
script: 43: export SB_BUILD_ROOT SB_BUILD_DIR SB_BUILD_ROOT_BINDIR
script: 44: SB_BUILD_CXC_DIR="/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1-cxc"
script: 45: SB_BUILD_CXC_ROOT="/home/mritunjay/development/rtems/rsb/rtems/build/tmp/ptpd-master-arm-rtems5-1-1000-cxc"
script: 46: SB_BUILD_CXC_ROOT_BINDIR="/home/mritunjay/development/rtems/rsb/rtems/build/tmp/ptpd-master-arm-rtems5-1-1000-cxc/${SB_PREFIX_CLEAN}/bin"
script: 47: export SB_BUILD_CXC_ROOT SB_BUILD_CXC_DIR SB_BUILD_CXC_ROOT_BINDIR
script: 48: SB_TMPROOT="/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd"
script: 49: SB_TMPPREFIX="/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/${SB_PREFIX_CLEAN}"
script: 50: SB_TMPBINDIR="/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/${SB_PREFIX_CLEAN}/bin"
script: 51: export SB_TMPROOT SB_TMPPREFIX SB_TMPBINDIR
script: 52: SB_TMPCXCROOT="/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd"
script: 53: SB_TMPCXCPREFIX="/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000-cxc/net/ptpd/${SB_PREFIX_CLEAN}"
script: 54: SB_TMPCXCBINDIR="/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000-cxc/net/ptpd/${SB_PREFIX_CLEAN}/bin"
script: 55: export SB_TMPCXCROOT SB_TMPCXCPREFIX SB_TMPCXCBINDIR
script: 56: # Extra path support
script: 57: SB_EXTRAPATH="/home/mritunjay/development/rtems/rsb/source-builder"
script: 58: # The compiler flags
script: 59: 
script: 60: 
script: 61: export CFLAGS_FOR_TARGET
script: 62: export CXXFLAGS_FOR_TARGET
script: 63: # Set up the path. Put the CXC path first.
script: 64: if test -n "${SB_TMPBINDIR}" ; then
script: 65:  PATH="${SB_TMPBINDIR}:$PATH"
script: 66: fi
script: 67: if test -n "${SB_TMPCXCBINDIR}" ; then
script: 68:  PATH="${SB_TMPCXCBINDIR}:$PATH"
script: 69: fi
script: 70: if test -n "${SB_EXTRAPATH}" ; then
script: 71:  PATH="${SB_EXTRAPATH}:$PATH"
script: 72: fi
script: 73: PATH="/home/mritunjay/development/rtems/5/bin:$PATH"
script: 74: 
script: 75: export PATH
script: 76: # Default environment set up.
script: 77: LANG=C
script: 78: export LANG
script: 79: unset DISPLAY || :
script: 80: umask 022
script: 81: cd "/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1"
script: 82: echo "=> ptpd-master-arm-rtems5-1: CLEAN"
script: 83: echo "==> %clean:"
removing: /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1
making dir: /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1
write script: /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1/do-build
write script: /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1/do-clean
building: ptpd-master-arm-rtems5-1
run: /bin/sh -ex  /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1/do-build
+ export SB_ORIG_PATH=/home/mritunjay/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ SB_PREFIX=/home/mritunjay/development/rtems/5
+ echo /home/mritunjay/development/rtems/5
+ /bin/sed -e s/^\///
+ SB_PREFIX_CLEAN=home/mritunjay/development/rtems/5
+ SB_SOURCE_DIR=/home/mritunjay/development/rtems/rsb/rtems/sources
+ SB_BUILD_DIR=/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1
+ SB_HOST_CPPFLAGS=-I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include
+ SB_HOST_CFLAGS=-qrtems -B/home/mritunjay/development/rtems/5/arm-rtems5/lib/ -B/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/ --specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O0 -g -ffunction-sections -fdata-sections 
+ SB_HOST_CXXFLAGS=-qrtems -B/home/mritunjay/development/rtems/5/arm-rtems5/lib/ -B/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/ --specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O0 -g -ffunction-sections -fdata-sections 
+ echo -qrtems -B/home/mritunjay/development/rtems/5/arm-rtems5/lib/ -B/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/ --specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O0 -g -ffunction-sections -fdata-sections
+ awk {for (i=1;i<NF;++i) if ($i ~ /\-m/) printf("%s ",$i);}
+ SB_HOST_LDFLAGS=-L/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9  -L/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/lib
+ SB_HOST_LIBS=-lbsd -lm -lz -lrtemsdefaultconfig
+ SB_BUILD_CFLAGS=-O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/include
+ SB_BUILD_CXXFLAGS=-O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/include
+ SB_BUILD_LDFLAGS= -L/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/lib
+ SB_BUILD_LBS=
+ SB_CFLAGS=-O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/include 
+ SB_CXXFLAGS=-O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/include 
+ SB_ARCH=arm
+ SB_OS=linux
+ export SB_SOURCE_DIR SB_BUILD_DIR SB_ARCH SB_OS
+ export SB_HOST_CPPFLAGS SB_HOST_CFLAGS SB_HOST_CXXFLAGS SB_HOST_LDFLAGS SB_HOST_LIBS
+ export SB_BUILD_CFLAGS SB_BUILD_CXXFLAGS SB_BUILD_LDFLAGS SB_BUILD_LIBS
+ export SB_CFLAGS SB_CXXFLAGS
+ SB_DOC_DIR=/home/mritunjay/development/rtems/5/share/doc
+ export SB_DOC_DIR
+ SB_PACKAGE_NAME=ptpd-master-arm-rtems5-1
+ SB_PACKAGE_BUILDNAME=ptpd-master-arm-rtems5-1
+ SB_PACKAGE_VERSION=master
+ SB_PACKAGE_RELEASE=1
+ export SB_PACKAGE_NAME SB_PACKAGE_VERSION SB_PACKAGE_RELEASE
+ export SB_PREFIX
+ SB_BUILD_DIR=/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1
=> ptpd-master-arm-rtems5-1: BUILD
+ SB_BUILD_ROOT=/home/mritunjay/development/rtems/rsb/rtems/build/tmp/ptpd-master-arm-rtems5-1-1000
+ SB_BUILD_ROOT_BINDIR=/home/mritunjay/development/rtems/rsb/rtems/build/tmp/ptpd-master-arm-rtems5-1-1000/home/mritunjay/development/rtems/5/bin
==> %prep:
+ export SB_BUILD_ROOT SB_BUILD_DIR SB_BUILD_ROOT_BINDIR
+ SB_BUILD_CXC_DIR=/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1-cxc
+ SB_BUILD_CXC_ROOT=/home/mritunjay/development/rtems/rsb/rtems/build/tmp/ptpd-master-arm-rtems5-1-1000-cxc
+ SB_BUILD_CXC_ROOT_BINDIR=/home/mritunjay/development/rtems/rsb/rtems/build/tmp/ptpd-master-arm-rtems5-1-1000-cxc/home/mritunjay/development/rtems/5/bin
+ export SB_BUILD_CXC_ROOT SB_BUILD_CXC_DIR SB_BUILD_CXC_ROOT_BINDIR
+ SB_TMPROOT=/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd
+ SB_TMPPREFIX=/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5
+ SB_TMPBINDIR=/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/bin
+ export SB_TMPROOT SB_TMPPREFIX SB_TMPBINDIR
+ SB_TMPCXCROOT=/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd
+ SB_TMPCXCPREFIX=/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000-cxc/net/ptpd/home/mritunjay/development/rtems/5
+ SB_TMPCXCBINDIR=/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000-cxc/net/ptpd/home/mritunjay/development/rtems/5/bin
+ export SB_TMPCXCROOT SB_TMPCXCPREFIX SB_TMPCXCBINDIR
+ SB_EXTRAPATH=/home/mritunjay/development/rtems/rsb/source-builder
+ export CFLAGS_FOR_TARGET
+ export CXXFLAGS_FOR_TARGET
+ test -n /home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/bin
+ PATH=/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/bin:/home/mritunjay/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ test -n /home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000-cxc/net/ptpd/home/mritunjay/development/rtems/5/bin
+ PATH=/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000-cxc/net/ptpd/home/mritunjay/development/rtems/5/bin:/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/bin:/home/mritunjay/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ test -n /home/mritunjay/development/rtems/rsb/source-builder
+ PATH=/home/mritunjay/development/rtems/rsb/source-builder:/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000-cxc/net/ptpd/home/mritunjay/development/rtems/5/bin:/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/bin:/home/mritunjay/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ PATH=/home/mritunjay/development/rtems/5/bin:/home/mritunjay/development/rtems/rsb/source-builder:/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000-cxc/net/ptpd/home/mritunjay/development/rtems/5/bin:/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/bin:/home/mritunjay/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ export PATH
+ LANG=C
+ export LANG
+ unset DISPLAY
+ umask 022
+ cd /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1
+ echo => ptpd-master-arm-rtems5-1: BUILD
+ echo ==> %prep:
+ pwd
+ build_top=/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1
+ source_dir_ptpd=ptpd-master
+ cd /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1
+ /bin/rm -rf ptpd-master
+ /usr/bin/unzip -u /home/mritunjay/development/rtems/rsb/rtems/sources/master.zip
Archive:  /home/mritunjay/development/rtems/rsb/rtems/sources/master.zip
daa0fb20dac9df10adc030df232be49f20792746
   creating: ptpd-master/
  inflating: ptpd-master/.gitignore  
  inflating: ptpd-master/.travis.yml  
  inflating: ptpd-master/COPYRIGHT   
  inflating: ptpd-master/ChangeLog   
  inflating: ptpd-master/INSTALL     
  inflating: ptpd-master/Makefile.am  
  inflating: ptpd-master/Makefile.old  
  inflating: ptpd-master/README.md   
  inflating: ptpd-master/README.repocheckout  
  inflating: ptpd-master/TODO        
  inflating: ptpd-master/configure.ac  
   creating: ptpd-master/doc/
  inflating: ptpd-master/doc/IEEE1588v1_vs_IEEE1588v2.pdf  
  inflating: ptpd-master/doc/PTPBASE-MIB.txt  
  inflating: ptpd-master/doc/draft-ietf-tictoc-ptp-mib-01.txt  
  inflating: ptpd-master/doc/index.html  
  inflating: ptpd-master/doc/ptpd-2.3.0-migration-guide.html  
  inflating: ptpd-master/doc/ptpd_2005_1588_conference_paper.pdf  
   creating: ptpd-master/m4/
  inflating: ptpd-master/m4/version.m4  
   creating: ptpd-master/packagebuild/
   creating: ptpd-master/packagebuild/rpm-rh/
  inflating: ptpd-master/packagebuild/rpm-rh/README.RH  
  inflating: ptpd-master/packagebuild/rpm-rh/ptpd.conf  
  inflating: ptpd-master/packagebuild/rpm-rh/ptpd.init  
  inflating: ptpd-master/packagebuild/rpm-rh/ptpd.service  
  inflating: ptpd-master/packagebuild/rpm-rh/ptpd.spec  
  inflating: ptpd-master/packagebuild/rpm-rh/ptpd.sysconfig  
  inflating: ptpd-master/packagebuild/rpm-rh/rpmbuild.sh  
   creating: ptpd-master/src/
  inflating: ptpd-master/src/Doxyfile  
  inflating: ptpd-master/src/Makefile.am  
  inflating: ptpd-master/src/Makefile.old  
  inflating: ptpd-master/src/arith.c  
  inflating: ptpd-master/src/bmc.c   
  inflating: ptpd-master/src/constants.h  
  inflating: ptpd-master/src/datatypes.h  
   creating: ptpd-master/src/def/
  inflating: ptpd-master/src/def/README  
   creating: ptpd-master/src/def/derivedData/
  inflating: ptpd-master/src/def/derivedData/clockQuality.def  
  inflating: ptpd-master/src/def/derivedData/faultRecord.def  
  inflating: ptpd-master/src/def/derivedData/physicalAddress.def  
  inflating: ptpd-master/src/def/derivedData/portAddress.def  
  inflating: ptpd-master/src/def/derivedData/portIdentity.def  
  inflating: ptpd-master/src/def/derivedData/ptpText.def  
  inflating: ptpd-master/src/def/derivedData/timeInterval.def  
  inflating: ptpd-master/src/def/derivedData/timePropertiesDS.def  
  inflating: ptpd-master/src/def/derivedData/timestamp.def  
  inflating: ptpd-master/src/def/derivedData/tlv.def  
   creating: ptpd-master/src/def/managementTLV/
  inflating: ptpd-master/src/def/managementTLV/announceReceiptTimeout.def  
  inflating: ptpd-master/src/def/managementTLV/clockAccuracy.def  
  inflating: ptpd-master/src/def/managementTLV/clockDescription.def  
  inflating: ptpd-master/src/def/managementTLV/currentDataSet.def  
  inflating: ptpd-master/src/def/managementTLV/defaultDataSet.def  
  inflating: ptpd-master/src/def/managementTLV/delayMechanism.def  
  inflating: ptpd-master/src/def/managementTLV/domain.def  
  inflating: ptpd-master/src/def/managementTLV/errorStatus.def  
  inflating: ptpd-master/src/def/managementTLV/initialize.def  
  inflating: ptpd-master/src/def/managementTLV/logAnnounceInterval.def  
  inflating: ptpd-master/src/def/managementTLV/logMinPdelayReqInterval.def  
  inflating: ptpd-master/src/def/managementTLV/logSyncInterval.def  
  inflating: ptpd-master/src/def/managementTLV/managementTLV.def  
  inflating: ptpd-master/src/def/managementTLV/parentDataSet.def  
  inflating: ptpd-master/src/def/managementTLV/portDataSet.def  
  inflating: ptpd-master/src/def/managementTLV/priority1.def  
  inflating: ptpd-master/src/def/managementTLV/priority2.def  
  inflating: ptpd-master/src/def/managementTLV/slaveOnly.def  
  inflating: ptpd-master/src/def/managementTLV/time.def  
  inflating: ptpd-master/src/def/managementTLV/timePropertiesDataSet.def  
  inflating: ptpd-master/src/def/managementTLV/timescaleProperties.def  
  inflating: ptpd-master/src/def/managementTLV/traceabilityProperties.def  
  inflating: ptpd-master/src/def/managementTLV/unicastNegotiationEnable.def  
  inflating: ptpd-master/src/def/managementTLV/userDescription.def  
  inflating: ptpd-master/src/def/managementTLV/utcProperties.def  
  inflating: ptpd-master/src/def/managementTLV/versionNumber.def  
   creating: ptpd-master/src/def/message/
  inflating: ptpd-master/src/def/message/header.def  
  inflating: ptpd-master/src/def/message/management.def  
  inflating: ptpd-master/src/def/message/signaling.def  
   creating: ptpd-master/src/def/signalingTLV/
  inflating: ptpd-master/src/def/signalingTLV/acknowledgeCancelUnicastTransmission.def  
  inflating: ptpd-master/src/def/signalingTLV/cancelUnicastTransmission.def  
  inflating: ptpd-master/src/def/signalingTLV/grantUnicastTransmission.def  
  inflating: ptpd-master/src/def/signalingTLV/requestUnicastTransmission.def  
  inflating: ptpd-master/src/def/signalingTLV/signalingTLV.def  
   creating: ptpd-master/src/dep/
  inflating: ptpd-master/src/dep/alarms.c  
  inflating: ptpd-master/src/dep/alarms.h  
  inflating: ptpd-master/src/dep/configdefaults.c  
  inflating: ptpd-master/src/dep/configdefaults.h  
  inflating: ptpd-master/src/dep/constants_dep.h  
  inflating: ptpd-master/src/dep/daemonconfig.c  
  inflating: ptpd-master/src/dep/daemonconfig.h  
  inflating: ptpd-master/src/dep/datatypes_dep.h  
  inflating: ptpd-master/src/dep/eventtimer.c  
  inflating: ptpd-master/src/dep/eventtimer.h  
  inflating: ptpd-master/src/dep/eventtimer_itimer.c  
  inflating: ptpd-master/src/dep/eventtimer_posix.c  
   creating: ptpd-master/src/dep/iniparser/
  inflating: ptpd-master/src/dep/iniparser/AUTHORS  
  inflating: ptpd-master/src/dep/iniparser/LICENSE  
  inflating: ptpd-master/src/dep/iniparser/README  
  inflating: ptpd-master/src/dep/iniparser/dictionary.c  
  inflating: ptpd-master/src/dep/iniparser/dictionary.h  
  inflating: ptpd-master/src/dep/iniparser/iniparser.c  
  inflating: ptpd-master/src/dep/iniparser/iniparser.h  
  inflating: ptpd-master/src/dep/ipv4_acl.c  
  inflating: ptpd-master/src/dep/ipv4_acl.h  
  inflating: ptpd-master/src/dep/msg.c  
  inflating: ptpd-master/src/dep/net.c  
   creating: ptpd-master/src/dep/ntpengine/
  inflating: ptpd-master/src/dep/ntpengine/ntp_isc_md5.c  
  inflating: ptpd-master/src/dep/ntpengine/ntp_isc_md5.h  
  inflating: ptpd-master/src/dep/ntpengine/ntpdcontrol.c  
  inflating: ptpd-master/src/dep/ntpengine/ntpdcontrol.h  
  inflating: ptpd-master/src/dep/outlierfilter.c  
  inflating: ptpd-master/src/dep/outlierfilter.h  
  inflating: ptpd-master/src/dep/ptpd_dep.h  
  inflating: ptpd-master/src/dep/servo.c  
  inflating: ptpd-master/src/dep/snmp.c  
  inflating: ptpd-master/src/dep/startup.c  
  inflating: ptpd-master/src/dep/statistics.c  
  inflating: ptpd-master/src/dep/statistics.h  
  inflating: ptpd-master/src/dep/sys.c  
  inflating: ptpd-master/src/display.c  
  inflating: ptpd-master/src/leap-seconds.list  
  inflating: ptpd-master/src/management.c  
  inflating: ptpd-master/src/protocol.c  
  inflating: ptpd-master/src/ptp_datatypes.h  
  inflating: ptpd-master/src/ptp_primitives.h  
  inflating: ptpd-master/src/ptp_timers.c  
  inflating: ptpd-master/src/ptp_timers.h  
  inflating: ptpd-master/src/ptpd.c  
  inflating: ptpd-master/src/ptpd.h  
  inflating: ptpd-master/src/ptpd2.8.in  
  inflating: ptpd-master/src/ptpd2.conf.5.in  
  inflating: ptpd-master/src/ptpd2.conf.default-full  
  inflating: ptpd-master/src/ptpd2.conf.minimal  
  inflating: ptpd-master/src/signaling.c  
  inflating: ptpd-master/src/templates.conf  
  inflating: ptpd-master/src/timingdomain.c  
  inflating: ptpd-master/src/timingdomain.h  
   creating: ptpd-master/test/
  inflating: ptpd-master/test/client-e2e-8023.conf  
  inflating: ptpd-master/test/client-e2e-pcap.conf  
  inflating: ptpd-master/test/client-e2e-socket.conf  
  inflating: ptpd-master/test/testing.org  
   creating: ptpd-master/tools/
  inflating: ptpd-master/tools/README.md  
  inflating: ptpd-master/tools/cleanup.sed  
  inflating: ptpd-master/tools/cleanup_sf2.sed  
  inflating: ptpd-master/tools/compare.R  
  inflating: ptpd-master/tools/filter_response.m  
  inflating: ptpd-master/tools/graph.R  
   creating: ptpd-master/tools/ntplib/
  inflating: ptpd-master/tools/ntplib/DESCRIPTION  
  inflating: ptpd-master/tools/ntplib/NAMESPACE  
   creating: ptpd-master/tools/ntplib/R/
  inflating: ptpd-master/tools/ntplib/R/ntplib.R  
   creating: ptpd-master/tools/ntplib/man/
  inflating: ptpd-master/tools/ntplib/man/ntpGraph.Rd  
  inflating: ptpd-master/tools/ntplib/man/ntpHistogram.Rd  
  inflating: ptpd-master/tools/ntplib/man/ntpLoopRead.Rd  
  inflating: ptpd-master/tools/ntplib/man/ntpLoopStats.Rd  
  inflating: ptpd-master/tools/ntplib/man/ntpPeerRead.Rd  
  inflating: ptpd-master/tools/ntpoffset.R  
  inflating: ptpd-master/tools/offset.R  
  inflating: ptpd-master/tools/offset_stats.m  
   creating: ptpd-master/tools/ptplib/
  inflating: ptpd-master/tools/ptplib/DESCRIPTION  
  inflating: ptpd-master/tools/ptplib/NAMESPACE  
   creating: ptpd-master/tools/ptplib/R/
  inflating: ptpd-master/tools/ptplib/R/ptplib.R  
   creating: ptpd-master/tools/ptplib/man/
  inflating: ptpd-master/tools/ptplib/man/ptpCompare.Rd  
  inflating: ptpd-master/tools/ptplib/man/ptpGraph.Rd  
  inflating: ptpd-master/tools/ptplib/man/ptpHistogram.Rd  
  inflating: ptpd-master/tools/ptplib/man/ptpHistogramCompare.Rd  
  inflating: ptpd-master/tools/ptplib/man/ptpLogRead.Rd  
  inflating: ptpd-master/tools/ptplib/man/ptpOffsetStats.Rd  
  inflating: ptpd-master/tools/ptplib/man/ptpQualityGraph.Rd  
  inflating: ptpd-master/tools/ptplib/man/ptpQualityGraphCompare.Rd  
  inflating: ptpd-master/tools/ptplib/man/ptpQualityRead.Rd  
  inflating: ptpd-master/tools/ptplib/man/ptpQualityStats.Rd  
  inflating: ptpd-master/tools/ptplib/man/ptpStats.Rd  
  inflating: ptpd-master/tools/snmptpq  
  inflating: ptpd-master/tools/stats.R  
+ tar_exit=0
+ cd ptpd-master
+ /bin/chmod -R a+rX,g-w,o-w .
+ PTPD_XPATH=/home/mritunjay/development/rtems/5/bin:/home/mritunjay/development/rtems/rsb/source-builder:/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000-cxc/net/ptpd/home/mritunjay/development/rtems/5/bin:/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/bin:/home/mritunjay/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ 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/mritunjay/development/rtems/5/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/mritunjay/development/rtems/5/bin/autoconf failed with exit status: 1
shell cmd failed: /bin/sh -ex  /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-master-arm-rtems5-1/do-build
error: building ptpd-master-arm-rtems5-1


More information about the devel mailing list