GSoC 2020: [rtems/rsb]: Error while adding ptp support. This time building for xilinx_zynq_a9_qemu
Mritunjay Sharma
mritunjaysharma394 at gmail.com
Fri Jun 5 23:31:13 UTC 2020
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: 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
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200606/4bc0cdd4/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