[rtems/rsb]: Adding PTP support to RSB [GSoC 2020]

Mritunjay Sharma mritunjaysharma394 at gmail.com
Wed May 20 19:35:42 UTC 2020


On Wed, May 20, 2020 at 5:42 AM Chris Johns <chrisj at rtems.org> wrote:

> On 20/5/20 5:57 am, Mritunjay Sharma wrote:
> > On Wed, May 20, 2020 at 1:15 AM Vijay Kumar Banerjee <vijay at rtems.org
> > <mailto:vijay at rtems.org>> wrote:
> >
> >     On Wed, May 20, 2020 at 12:52 AM Mritunjay Sharma
> >     <mritunjaysharma394 at gmail.com <mailto:mritunjaysharma394 at gmail.com>>
> >     wrote:
> >      >
> >      >
> >      >
> >      > On Tue, May 19, 2020 at 10:09 PM Vijay Kumar Banerjee
> >     <vijay at rtems.org <mailto:vijay at rtems.org>> wrote:
> >      >>
> >      >> On Tue, May 19, 2020 at 7:42 PM Mritunjay Sharma
> >      >> <mritunjaysharma394 at gmail.com
> >     <mailto:mritunjaysharma394 at gmail.com>> wrote:
> >      >> >
> >      >> > Hello everyone,
> >      >> >
> >      >> > Starting this thread to discuss and give a detail of my
> >     progress in relation to
> >      >> > my GSoC 2020 project "BSP Buildset for EPICS".
> >      >> >
> >      >> > It is to tell that I have worked on adding ptp2 support as
> >     suggested by mentors
> >      >> > The implementation that I found could work was ptp2 daemon and
> >     so worked with
> >      >> > it.
> >      >> >
> >      >> > I added these files:
> >      >> > rsb/rtems/config/net/ptpd-2.3-1.cfg
> >      >> > rsb/rtems/config/net/ptpd.bset
> >      >> > rsb/source-builder/config/ptpd-2.1.cfg
> >      >> >
> >      >> > I am attaching the .diff file and the bug that I have
> >     encountered in the
> >      >> > respective txt file and will like the help of mentors in
> >     trying to help me
> >      >> > fix it.
>
> I am seeing in the RSB log this ...
>
> + pwd
> +
>
> build_top=/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1
> + test x86_64-linux-gnu != sparc-rtems5
> + test -z  -o sparc-rtems5 ==
> /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/do-build:
>
> 102: test: sparc-rtems5: unexpected operator
>
> Is there a shell script error here?
>
> It is not clear to me why this error did not stop the build?
>
> Please add --trace to the RSB command line. It does create lots of
> output but it does help debug these things.
>

Have added and attached. Please have a look. Thanks
-Mritunjay


> >      >> >
> >      >> Hi Mritrynjay,
> >      >>
> >      >> The error your are facing is here:
> >      >> ```
> >      >> checking whether the C compiler works... no
> >      >> configure: error: in
> >      >>
> >
>  `/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/build-cxc':
> >      >> configure: error: C compiler cannot create executables
> >      >> ```
> >      >> Looks like it's not able to find the CC properly. If I remember
> >      >> correctly, you had a similar problem before. Do you remember how
> you
> >      >> fixed that or what was missing?
> >      >>
> >      > Thank you so much for the help, Vijay. However, the thing that
> >     was working last time is not
> >      > helping me this time. I am attaching the config.log as well. Hope
> >     it will help with debugging.
> >
> >     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'
>
> This looks like a Canadian Cross compile and this does not seem right.
> It may be related to the shell script error above.
>
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200521/a83e9623/attachment-0001.html>
-------------- next part --------------
RTEMS Tools Project - Source Builder Error Report
 Build: error: building ptpd-2.3.1-sparc-rtems5-1
 Command Line: ../source-builder/sb-set-builder --log=log_sis_net_snmp --prefix=/home/mritunjay/development/rtems/5 --with-tools=/home/mritunjay/development/rtems/5 --host=sparc-rtems5 --with-rtems-bsp=erc32 net/ptpd --trace
 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:
drwxr-xr-x stigge/stigge      0 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/
drwxr-xr-x stigge/stigge      0 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/man/
-rw-r--r-- stigge/stigge   1638 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/man/ptpLogRead.Rd
-rw-r--r-- stigge/stigge   2535 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/man/ptpStats.Rd
-rw-r--r-- stigge/stigge   1289 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/man/ptpQualityCompare.Rd
-rw-r--r-- stigge/stigge   2966 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/man/ptpGraph.Rd
-rw-r--r-- stigge/stigge   1260 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/man/ptpQualityRead.Rd
-rw-r--r-- stigge/stigge   3766 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/man/ptpCompare.Rd
-rw-r--r-- stigge/stigge    511 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/man/ptplib-package.Rd
drwxr-xr-x stigge/stigge      0 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/R/
-rw-r--r-- stigge/stigge   4955 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/R/ntplib.R
-rw-r--r-- stigge/stigge  15052 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/R/ptplib.R
-rw-r--r-- stigge/stigge    476 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/DESCRIPTION
-rw-r--r-- stigge/stigge     31 2015-06-29 20:41 ptpd-2.3.1/tools/ptplib/NAMESPACE
-rwxr-xr-x stigge/stigge   2058 2015-06-29 20:41 ptpd-2.3.1/tools/graph.R
-rw-r--r-- stigge/stigge  16629 2015-06-29 20:41 ptpd-2.3.1/configure.ac
-rw-r--r-- stigge/stigge   9943 2015-06-29 20:44 ptpd-2.3.1/config.h.in
drwxr-xr-x stigge/stigge      0 2015-06-29 20:41 ptpd-2.3.1/test/
-rw-r--r-- stigge/stigge  15565 2015-06-29 20:41 ptpd-2.3.1/test/client-e2e-pcap.conf
-rw-r--r-- stigge/stigge  15580 2015-06-29 20:41 ptpd-2.3.1/test/client-e2e-8023.conf
-rw-r--r-- stigge/stigge    610 2015-06-29 20:41 ptpd-2.3.1/test/testing.org
-rw-r--r-- stigge/stigge  15558 2015-06-29 20:41 ptpd-2.3.1/test/client-e2e-socket.conf
drwxr-xr-x stigge/stigge      0 2016-01-22 21:07 ptpd-2.3.1/doc/
-rw-r--r-- stigge/stigge   6505 2015-06-29 20:41 ptpd-2.3.1/doc/ptpd-2.3.0-migration-guide.html
-rw-r--r-- stigge/stigge   4151 2015-06-29 20:41 ptpd-2.3.1/doc/index.html
-rw-r--r-- stigge/stigge 323600 2015-06-29 20:41 ptpd-2.3.1/doc/ptpd_2005_1588_conference_paper.pdf
-rw-r--r-- stigge/stigge 110188 2015-06-29 20:41 ptpd-2.3.1/doc/PTPBASE-MIB.txt
-rw-r--r-- stigge/stigge 272225 2015-06-29 20:41 ptpd-2.3.1/doc/IEEE1588v1_vs_IEEE1588v2.pdf
-rw-r--r-- stigge/stigge   5048 2015-06-29 20:41 ptpd-2.3.1/INSTALL
drwxr-xr-x stigge/stigge      0 2015-06-29 20:41 ptpd-2.3.1/packagebuild/
drwxr-xr-x stigge/stigge      0 2015-06-29 20:41 ptpd-2.3.1/packagebuild/rpm-rh/
-rw-r--r-- stigge/stigge   3233 2015-06-29 20:41 ptpd-2.3.1/packagebuild/rpm-rh/ptpd.init
-rw-r--r-- stigge/stigge   5162 2015-06-29 20:41 ptpd-2.3.1/packagebuild/rpm-rh/ptpd-slaveonly.spec
-rw-r--r-- stigge/stigge    242 2015-06-29 20:41 ptpd-2.3.1/packagebuild/rpm-rh/ptpd.sysconfig
-rw-r--r-- stigge/stigge   5052 2015-06-29 20:41 ptpd-2.3.1/packagebuild/rpm-rh/ptpd.spec
-rw-r--r-- stigge/stigge   1818 2015-06-29 20:41 ptpd-2.3.1/packagebuild/rpm-rh/README.RH
-rw-r--r-- stigge/stigge   2050 2015-06-29 20:41 ptpd-2.3.1/packagebuild/rpm-rh/ptpd.conf
-rwxr-xr-x stigge/stigge   1319 2015-06-29 20:41 ptpd-2.3.1/packagebuild/rpm-rh/rpmbuild.sh
-rw-r--r-- stigge/stigge    838 2015-06-29 20:41 ptpd-2.3.1/Makefile.am
+ tar_exit=0
+ cd ptpd-2.3.1
+ /bin/chmod -R a+rX,g-w,o-w .
+ cd /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1
==> clean %{buildroot}: /home/mritunjay/development/rtems/rsb/rtems/build/tmp/ptpd-2.3.1-sparc-rtems5-1-1000
+ SB_CXC=no
+ echo ==> clean %{buildroot}: /home/mritunjay/development/rtems/rsb/rtems/build/tmp/ptpd-2.3.1-sparc-rtems5-1-1000
+ /bin/rm -rf /home/mritunjay/development/rtems/rsb/rtems/build/tmp/ptpd-2.3.1-sparc-rtems5-1-1000
+ /bin/mkdir -p /home/mritunjay/development/rtems/rsb/rtems/build/tmp/ptpd-2.3.1-sparc-rtems5-1-1000
+ echo ==> %build:
==> %build:
+ pwd
+ build_top=/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1
+ test x86_64-linux-gnu != sparc-rtems5
+ test -z  -o sparc-rtems5 == 
/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/do-build: 102: test: sparc-rtems5: unexpected operator
+ build_dir=build-cxc
+ mkdir -p build-cxc
+ cd build-cxc
+ test x86_64-linux-gnu != sparc-rtems5
+ echo sparc-rtems5-gcc
+ sed -e s,-std=gnu99 ,,
+ CC=sparc-rtems5-gcc
+ echo sparc-rtems5-g++
+ sed -e s,-std=gnu99 ,,
+ CXX=sparc-rtems5-g++
+ CPPFLAGS=-I/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/include
+ CFLAGS=-qrtems -B/home/mritunjay/development/rtems/5/sparc-rtems5/lib/ -B/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/ --specs bsp_specs -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections 
+ CXXFLAGS=-qrtems -B/home/mritunjay/development/rtems/5/sparc-rtems5/lib/ -B/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/ --specs bsp_specs -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections 
+ LDFLAGS=-L/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib -mcpu=cypress  -L/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/lib
+ LDLIBS=-lrtemsdefaultconfig
+ LIBS=-lrtemsdefaultconfig
+ CPPFLAGS_FOR_HOST=-I/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/include
+ CFLAGS_FOR_HOST=-qrtems -B/home/mritunjay/development/rtems/5/sparc-rtems5/lib/ -B/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/ --specs bsp_specs -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections 
+ CXXFLAGS_FOR_HOST=-qrtems -B/home/mritunjay/development/rtems/5/sparc-rtems5/lib/ -B/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/ --specs bsp_specs -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections 
+ LDFLAGS_FOR_HOST=-L/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib -mcpu=cypress  -L/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/lib
+ LDLIBS_FOR_HOST=-lrtemsdefaultconfig
+ LIBS_FOR_HOST=-lrtemsdefaultconfig
+ CXXFLAGS_FOR_HOST=-qrtems -B/home/mritunjay/development/rtems/5/sparc-rtems5/lib/ -B/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/ --specs bsp_specs -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections 
+ echo gcc -qrtems -B/home/mritunjay/development/rtems/5/sparc-rtems5/lib/ -B/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/ --specs bsp_specs -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections 
+ sed -e s,-std=gnu99 ,,
+ CC_FOR_HOST=gcc -qrtems -B/home/mritunjay/development/rtems/5/sparc-rtems5/lib/ -B/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/ --specs bsp_specs -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections 
+ echo g++ -qrtems -B/home/mritunjay/development/rtems/5/sparc-rtems5/lib/ -B/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/ --specs bsp_specs -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections 
+ sed -e s,-std=gnu99 ,,
+ CXX_FOR_HOST=g++ -qrtems -B/home/mritunjay/development/rtems/5/sparc-rtems5/lib/ -B/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/ --specs bsp_specs -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections 
+ CFLAGS_FOR_BUILD=-O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/include
+ CXXFLAGS_FOR_BUILD=-O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/include
+ LDFLAGS_FOR_BUILD= -L/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/lib
+ LDLIBS_FOR_BUILD=
+ LIBS_FOR_BUILD=
+ CXXFLAGS_FOR_BUILD=-O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/include
+ echo gcc -O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/include
+ sed -e s,-std=gnu99 ,,
+ CC_FOR_BUILD=gcc -O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/include
+ echo g++ -O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/include
+ sed -e s,-std=gnu99 ,,
+ CXX_FOR_BUILD=g++ -O2 -g -pipe -I/home/mritunjay/development/rtems/rsb/rtems/build/tmp/sb-1000/net/ptpd/home/mritunjay/development/rtems/5/include
+ export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
+ 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
+ export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
+ ../ptpd-2.3.1/configure --host=sparc-rtems5 --prefix=/home/mritunjay/development/rtems/5 --bindir=/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/bin --exec_prefix=/home/mritunjay/development/rtems/5/sparc-rtems5/erc32 --includedir=/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/include --libdir=/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib --libexecdir=/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/libexec --mandir=/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/share/man --infodir=/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/share/info --datadir=/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/share --disable-shared --without-openssl --disable-statistics --enable-slave-only --disable-posix-timers --with-max-unicast-destinations=[16...2048] --enable-experimental-options
configure: WARNING: unrecognized options: --without-openssl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for sparc-rtems5-strip... sparc-rtems5-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gawk... (cached) mawk
checking for sparc-rtems5-gcc... sparc-rtems5-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether sparc-rtems5-gcc accepts -g... yes
checking for sparc-rtems5-gcc option to accept ISO C89... none needed
checking whether sparc-rtems5-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of sparc-rtems5-gcc... gcc3
checking for sparc-rtems5-gcc option to accept ISO C99... none needed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... sparc-unknown-rtems5
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by sparc-rtems5-gcc... /home/mritunjay/development/rtems/5/sparc-rtems5/bin/ld
checking if the linker (/home/mritunjay/development/rtems/5/sparc-rtems5/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /home/mritunjay/development/rtems/5/bin/sparc-rtems5-nm -B
checking the name lister (/home/mritunjay/development/rtems/5/bin/sparc-rtems5-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to sparc-unknown-rtems5 format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /home/mritunjay/development/rtems/5/sparc-rtems5/bin/ld option to reload object files... -r
checking for sparc-rtems5-objdump... sparc-rtems5-objdump
checking how to recognize dependent libraries... unknown
checking for sparc-rtems5-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for sparc-rtems5-ar... sparc-rtems5-ar
checking for archiver @FILE support... @
checking for sparc-rtems5-strip... (cached) sparc-rtems5-strip
checking for sparc-rtems5-ranlib... sparc-rtems5-ranlib
checking command to parse /home/mritunjay/development/rtems/5/bin/sparc-rtems5-nm -B output from sparc-rtems5-gcc object... failed
checking for sysroot... no
checking for sparc-rtems5-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking how to run the C preprocessor... sparc-rtems5-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if sparc-rtems5-gcc supports -fno-rtti -fno-exceptions... no
checking for sparc-rtems5-gcc option to produce PIC... -fPIC -DPIC
checking if sparc-rtems5-gcc PIC flag -fPIC -DPIC works... yes
checking if sparc-rtems5-gcc static flag -static works... yes
checking if sparc-rtems5-gcc supports -c -o file.o... yes
checking if sparc-rtems5-gcc supports -c -o file.o... (cached) yes
checking whether the sparc-rtems5-gcc linker (/home/mritunjay/development/rtems/5/sparc-rtems5/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for cut... /usr/bin/cut
checking for tr... /usr/bin/tr
checking for svnversion... /usr/bin/svnversion
checking for pow in -lm... yes
checking for clock_gettime in -lrt... no
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking net/ethernet.h usability... no
checking net/ethernet.h presence... no
checking for net/ethernet.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/in_systm.h usability... no
checking netinet/in_systm.h presence... no
checking for netinet/in_systm.h... no
checking netinet/ether.h usability... no
checking netinet/ether.h presence... no
checking for netinet/ether.h... no
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking ifaddrs.h usability... no
checking ifaddrs.h presence... no
checking for ifaddrs.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking utmp.h usability... no
checking utmp.h presence... no
checking for utmp.h... no
checking utmpx.h usability... no
checking utmpx.h presence... no
checking for utmpx.h... no
checking linux/rtc.h usability... no
checking linux/rtc.h presence... no
checking for linux/rtc.h... no
checking sys/timex.h usability... yes
checking sys/timex.h presence... yes
checking for sys/timex.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking machine/endian.h usability... yes
checking machine/endian.h presence... yes
checking for machine/endian.h... yes
checking sys/isa_defs.h usability... no
checking sys/isa_defs.h presence... no
checking for sys/isa_defs.h... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for sys/cpuset.h... yes
checking for net/if.h... yes
checking for net/if_arp.h... no
checking for netinet/if_ether.h... no
checking for net/if_ether.h... no
checking for an ANSI C-conforming const... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working volatile... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for int64_t... yes
checking for struct timex.tick... no
checking for struct timex.tai... no
checking for struct ntptimeval.tai... yes
checking for struct ifreq.ifr_hwaddr... no
checking for struct ether_addr.octet... no
checking whether sparc-rtems5-gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... no
checking for working memcmp... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for clock_gettime... yes
checking for dup2... yes
checking for ftruncate... yes
checking for gethostbyname2... no
checking for gettimeofday... yes
checking for inet_ntoa... no
checking for memset... yes
checking for pow... yes
checking for select... no
checking for socket... no
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strtol... yes
checking for glob... yes
checking for pututline... no
checking for utmpxname... no
checking for updwtmpx... no
checking for setutent... no
checking for endutent... no
checking for signal... yes
checking for ntp_gettime... no
configure: ************************************************************
configure: * PTPD BUILD FLAG AND LIBRARY DEPENDENCY CHECKS START HERE *
configure: ************************************************************
checking whether MSG_ERRQUEUE is declared... no
checking whether POSIX_TIMERS_SUPPORTED is declared... no
checking if we want to build POSIX timer support... no
checking for pcap-config... no
checking if we want to build with libpcap support... yes, guessing flags
checking pcap/pcap.h usability... no
checking pcap/pcap.h presence... no
checking for pcap/pcap.h... no
checking pcap.h usability... no
checking pcap.h presence... no
checking for pcap.h... no
checking if we can build with PCAP support... no
checking for net-snmp-config... /usr/bin/net-snmp-config
checking if we want to try building SNMP support... yes
checking net-snmp/net-snmp-config.h usability... no
checking net-snmp/net-snmp-config.h presence... yes
configure: WARNING: net-snmp/net-snmp-config.h: present but cannot be compiled
configure: WARNING: net-snmp/net-snmp-config.h:     check for missing prerequisite headers?
configure: WARNING: net-snmp/net-snmp-config.h: see the Autoconf documentation
configure: WARNING: net-snmp/net-snmp-config.h:     section "Present But Cannot Be Compiled"
configure: WARNING: net-snmp/net-snmp-config.h: proceeding with the compiler's result
configure: WARNING:     ## ----------------------------------- ##
configure: WARNING:     ## Report this to ptpd-bugs at nwtime.org ##
configure: WARNING:     ## ----------------------------------- ##
checking for net-snmp/net-snmp-config.h... no
checking if we are building SNMP support... no
checking for RUNTIME_DEBUG... no
checking for (old-style) debug message level... no
../ptpd-2.3.1/configure: line 14056: test: [16...2048]: integer expression expected
../ptpd-2.3.1/configure: line 14057: test: [16...2048]: integer expression expected
checking for maximum unicast destination table size... [16...2048]
checking for daemon mode... yes
checking for experimental options... yes
checking for realtime statistics support... no
checking if we want to enable SO_TIMESTAMPING support on Linux if available... yes
checking if we're building a slave-only build... yes
configure: ************************************************************
configure: *   END OF PTPD BUILD FLAG AND LIBRARY DEPENDENCY CHECKS   *
configure: ************************************************************
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/ptpd2.8
config.status: creating src/ptpd2.conf.5
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --without-openssl
+ make all
make  all-recursive
make[1]: Entering directory '/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/build-cxc'
Making all in src
make[2]: Entering directory '/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/build-cxc/src'
depbase=`echo arith.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
sparc-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL    -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=[16...2048]  -I/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/include   -Wall  -qrtems -B/home/mritunjay/development/rtems/5/sparc-rtems5/lib/ -B/home/mritunjay/development/rtems/5/sparc-rtems5/erc32/lib/ --specs bsp_specs -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections  -MT arith.o -MD -MP -MF $depbase.Tpo -c -o arith.o ../../ptpd-2.3.1/src/arith.c &&\
mv -f $depbase.Tpo $depbase.Po
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.
Makefile:629: recipe for target 'arith.o' failed
make[2]: *** [arith.o] Error 1
make[2]: Leaving directory '/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-sparc-rtems5-1/build-cxc/src'
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-sparc-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-sparc-rtems5-1/do-build
error: building ptpd-2.3.1-sparc-rtems5-1


More information about the devel mailing list