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

Mritunjay Sharma mritunjaysharma394 at gmail.com
Wed Jun 3 19:52:38 UTC 2020


Hello everyone,

As suggested by Heinz, I started building for xilinx_zynq_a9_qemu
with a little modification in ptp cfg file.

The netinet is no longer a problem here but another problem has come as
follows:

../../ptpd-2.3.1/src/dep/startup.c: In function 'ptpdStartup':
../../ptpd-2.3.1/src/dep/startup.c:948:29: error: 'CPU_LEVEL_WHICH'
undeclared (first use in this function)
       if(cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
                             ^~~~~~~~~~~~~~~
../../ptpd-2.3.1/src/dep/startup.c:948:46: error: 'CPU_WHICH_PID'
undeclared (first use in this function)
       if(cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
                                              ^~~~~~~~~~~~~
Makefile:629: recipe for target 'dep/startup.o' failed
make[2]: Leaving directory
'/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-arm-rtems5-1/build-cxc/src'
make[2]: *** [dep/startup.o] Error 1
Makefile:502: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
'/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-arm-rtems5-1/build-cxc'
Makefile:412: recipe for target 'all' failed
make: *** [all] Error 2
shell cmd failed: /bin/sh -ex
 /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-arm-rtems5-1/do-build
error: building ptpd-2.3.1-arm-rtems5-1
  See error report: rsb-report-ptpd-2.3.1-arm-rtems5-1.txt
Build Set: Time 0:00:21.081476

I am also attaching the log file and trace report.

Thanks,
Mritunjay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200604/ea870af8/attachment-0001.html>
-------------- next part --------------
RTEMS Tools Project - Source Builder Error Report
 Build: error: building ptpd-2.3.1-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:
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 arm-rtems5-gcc... arm-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 arm-rtems5-gcc accepts -g... yes
checking for arm-rtems5-gcc option to accept ISO C89... none needed
checking whether arm-rtems5-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of arm-rtems5-gcc... gcc3
checking for arm-rtems5-gcc option to accept ISO C99... none needed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-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 arm-rtems5-gcc... /home/mritunjay/development/rtems/5/arm-rtems5/bin/ld
checking if the linker (/home/mritunjay/development/rtems/5/arm-rtems5/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /home/mritunjay/development/rtems/5/bin/arm-rtems5-nm -B
checking the name lister (/home/mritunjay/development/rtems/5/bin/arm-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 arm-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/arm-rtems5/bin/ld option to reload object files... -r
checking for arm-rtems5-objdump... arm-rtems5-objdump
checking how to recognize dependent libraries... unknown
checking for arm-rtems5-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-rtems5-ar... arm-rtems5-ar
checking for archiver @FILE support... @
checking for arm-rtems5-strip... (cached) arm-rtems5-strip
checking for arm-rtems5-ranlib... arm-rtems5-ranlib
checking command to parse /home/mritunjay/development/rtems/5/bin/arm-rtems5-nm -B output from arm-rtems5-gcc object... failed
checking for sysroot... no
checking for arm-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... arm-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 arm-rtems5-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-rtems5-gcc option to produce PIC... -fPIC -DPIC
checking if arm-rtems5-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-rtems5-gcc static flag -static works... yes
checking if arm-rtems5-gcc supports -c -o file.o... yes
checking if arm-rtems5-gcc supports -c -o file.o... (cached) yes
checking whether the arm-rtems5-gcc linker (/home/mritunjay/development/rtems/5/arm-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... yes
checking net/ethernet.h presence... yes
checking for net/ethernet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
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... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
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... yes
checking for netinet/if_ether.h... yes
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... yes
checking whether arm-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... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for pow... yes
checking for select... yes
checking for socket... yes
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... yes
checking pcap/pcap.h presence... yes
checking for pcap/pcap.h... yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking if we can build with PCAP support... yes
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
checking for maximum unicast destination table size... 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
+ make all
make  all-recursive
make[1]: Entering directory '/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-arm-rtems5-1/build-cxc'
Making all in src
make[2]: Entering directory '/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-arm-rtems5-1/build-cxc/src'
depbase=`echo arith.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL  -DPTPD_PCAP  -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=2048  -I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include   -Wall  -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  -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
depbase=`echo bmc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL  -DPTPD_PCAP  -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=2048  -I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include   -Wall  -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  -MT bmc.o -MD -MP -MF $depbase.Tpo -c -o bmc.o ../../ptpd-2.3.1/src/bmc.c &&\
mv -f $depbase.Tpo $depbase.Po
../../ptpd-2.3.1/src/bmc.c: In function 'bmcStateDecision':
../../ptpd-2.3.1/src/bmc.c:631:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if (ptpClock->portState == PTP_SLAVE)
    ^~
../../ptpd-2.3.1/src/bmc.c:633:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if(rtOpts->calibrationDelay) {
     ^~
depbase=`echo dep/ipv4_acl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL  -DPTPD_PCAP  -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=2048  -I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include   -Wall  -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  -MT dep/ipv4_acl.o -MD -MP -MF $depbase.Tpo -c -o dep/ipv4_acl.o ../../ptpd-2.3.1/src/dep/ipv4_acl.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo dep/msg.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL  -DPTPD_PCAP  -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=2048  -I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include   -Wall  -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  -MT dep/msg.o -MD -MP -MF $depbase.Tpo -c -o dep/msg.o ../../ptpd-2.3.1/src/dep/msg.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo dep/net.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL  -DPTPD_PCAP  -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=2048  -I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include   -Wall  -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  -MT dep/net.o -MD -MP -MF $depbase.Tpo -c -o dep/net.o ../../ptpd-2.3.1/src/dep/net.c &&\
mv -f $depbase.Tpo $depbase.Po
../../ptpd-2.3.1/src/dep/net.c:1913:15: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
         const const RunTimeOpts *rtOpts, Integer32 destinationAddress)
               ^~~~~
depbase=`echo dep/eventtimer.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL  -DPTPD_PCAP  -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=2048  -I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include   -Wall  -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  -MT dep/eventtimer.o -MD -MP -MF $depbase.Tpo -c -o dep/eventtimer.o ../../ptpd-2.3.1/src/dep/eventtimer.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo ptp_timers.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL  -DPTPD_PCAP  -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=2048  -I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include   -Wall  -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  -MT ptp_timers.o -MD -MP -MF $depbase.Tpo -c -o ptp_timers.o ../../ptpd-2.3.1/src/ptp_timers.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo dep/servo.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL  -DPTPD_PCAP  -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=2048  -I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include   -Wall  -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  -MT dep/servo.o -MD -MP -MF $depbase.Tpo -c -o dep/servo.o ../../ptpd-2.3.1/src/dep/servo.c &&\
mv -f $depbase.Tpo $depbase.Po
../../ptpd-2.3.1/src/dep/servo.c: In function 'updateDelay':
../../ptpd-2.3.1/src/dep/servo.c:124:10: warning: variable 'maxDelayHit' set but not used [-Wunused-but-set-variable]
  Boolean maxDelayHit = FALSE;
          ^~~~~~~~~~~
../../ptpd-2.3.1/src/dep/servo.c: In function 'updateOffset':
../../ptpd-2.3.1/src/dep/servo.c:428:10: warning: variable 'maxDelayHit' set but not used [-Wunused-but-set-variable]
  Boolean maxDelayHit = FALSE;
          ^~~~~~~~~~~
../../ptpd-2.3.1/src/dep/servo.c: At top level:
../../ptpd-2.3.1/src/dep/servo.c:950:36: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
 setupPIservo(PIservo* servo, const const RunTimeOpts* rtOpts)
                                    ^~~~~
depbase=`echo dep/iniparser/dictionary.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL  -DPTPD_PCAP  -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=2048  -I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include   -Wall  -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  -MT dep/iniparser/dictionary.o -MD -MP -MF $depbase.Tpo -c -o dep/iniparser/dictionary.o ../../ptpd-2.3.1/src/dep/iniparser/dictionary.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo dep/iniparser/iniparser.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL  -DPTPD_PCAP  -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=2048  -I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include   -Wall  -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  -MT dep/iniparser/iniparser.o -MD -MP -MF $depbase.Tpo -c -o dep/iniparser/iniparser.o ../../ptpd-2.3.1/src/dep/iniparser/iniparser.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo dep/daemonconfig.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL  -DPTPD_PCAP  -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=2048  -I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include   -Wall  -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  -MT dep/daemonconfig.o -MD -MP -MF $depbase.Tpo -c -o dep/daemonconfig.o ../../ptpd-2.3.1/src/dep/daemonconfig.c &&\
mv -f $depbase.Tpo $depbase.Po
../../ptpd-2.3.1/src/dep/daemonconfig.c: In function 'parseConfig':
../../ptpd-2.3.1/src/dep/daemonconfig.c:2526:7: warning: '/ptpd2_' directive output may be truncated writing 7 bytes into a region of size between 1 and 255 [-Wformat-truncation=]
       "%s/"PTPD_PROGNAME"_%s_%s.lock",
       ^~~~~
../../ptpd-2.3.1/src/dep/daemonconfig.c:2526:10: note: format string is defined here
       "%s/"PTPD_PROGNAME"_%s_%s.lock",
          ^~~~~~~~~~~~~~~~~
../../ptpd-2.3.1/src/dep/daemonconfig.c:2525:6: note: 'snprintf' output 14 or more bytes (assuming 268) into a destination of size 255
      snprintf(rtOpts->lockFile, PATH_MAX,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "%s/"PTPD_PROGNAME"_%s_%s.lock",
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       rtOpts->lockDirectory,
       ~~~~~~~~~~~~~~~~~~~~~~
       (rtOpts->clockQuality.clockClass<128 && !rtOpts->slaveOnly) ? "master" : DEFAULT_CLOCKDRIVER,
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       rtOpts->ifaceName);
       ~~~~~~~~~~~~~~~~~~
../../ptpd-2.3.1/src/dep/daemonconfig.c:2538:9: warning: '%s' directive output may be truncated writing 10 bytes into a region of size between 0 and 254 [-Wformat-truncation=]
     "%s/%s", rtOpts->lockDirectory, DEFAULT_LOCKFILE_NAME);
         ^~
../../ptpd-2.3.1/src/dep/daemonconfig.c:2537:4: note: 'snprintf' output between 12 and 266 bytes into a destination of size 255
    snprintf(rtOpts->lockFile, PATH_MAX,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     "%s/%s", rtOpts->lockDirectory, DEFAULT_LOCKFILE_NAME);
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
depbase=`echo dep/startup.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-rtems5-gcc -DHAVE_CONFIG_H -I. -I../../ptpd-2.3.1/src -I..      -DPTPD_EXPERIMENTAL  -DPTPD_PCAP  -DPTPD_SLAVE_ONLY  -DPTPD_UNICAST_MAX=2048  -I/home/mritunjay/development/rtems/5/arm-rtems5/xilinx_zynq_a9_qemu/lib/include   -Wall  -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  -MT dep/startup.o -MD -MP -MF $depbase.Tpo -c -o dep/startup.o ../../ptpd-2.3.1/src/dep/startup.c &&\
mv -f $depbase.Tpo $depbase.Po
../../ptpd-2.3.1/src/dep/startup.c: In function 'do_signal_sighup':
../../ptpd-2.3.1/src/dep/startup.c:258:13: warning: implicit declaration of function 'cpuset_getaffinity' [-Wimplicit-function-declaration]
         if (cpuset_getaffinity(CPU_LEVEL_ROOT, CPU_WHICH_CPUSET, 1,
             ^~~~~~~~~~~~~~~~~~
../../ptpd-2.3.1/src/dep/startup.c:258:32: error: 'CPU_LEVEL_ROOT' undeclared (first use in this function); did you mean 'CPU_ZERO'?
         if (cpuset_getaffinity(CPU_LEVEL_ROOT, CPU_WHICH_CPUSET, 1,
                                ^~~~~~~~~~~~~~
                                CPU_ZERO
../../ptpd-2.3.1/src/dep/startup.c:258:32: note: each undeclared identifier is reported only once for each function it appears in
../../ptpd-2.3.1/src/dep/startup.c:258:48: error: 'CPU_WHICH_CPUSET' undeclared (first use in this function); did you mean 'CPU_ISSET'?
         if (cpuset_getaffinity(CPU_LEVEL_ROOT, CPU_WHICH_CPUSET, 1,
                                                ^~~~~~~~~~~~~~~~
                                                CPU_ISSET
../../ptpd-2.3.1/src/dep/startup.c:261:13: warning: implicit declaration of function 'cpuset_setaffinity' [-Wimplicit-function-declaration]
         if (cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
             ^~~~~~~~~~~~~~~~~~
../../ptpd-2.3.1/src/dep/startup.c:261:32: error: 'CPU_LEVEL_WHICH' undeclared (first use in this function); did you mean 'CPU_LEVEL_ROOT'?
         if (cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
                                ^~~~~~~~~~~~~~~
                                CPU_LEVEL_ROOT
../../ptpd-2.3.1/src/dep/startup.c:261:49: error: 'CPU_WHICH_PID' undeclared (first use in this function); did you mean 'CPU_WHICH_CPUSET'?
         if (cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
                                                 ^~~~~~~~~~~~~
                                                 CPU_WHICH_CPUSET
../../ptpd-2.3.1/src/dep/startup.c: In function 'ptpdStartup':
../../ptpd-2.3.1/src/dep/startup.c:948:29: error: 'CPU_LEVEL_WHICH' undeclared (first use in this function)
       if(cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
                             ^~~~~~~~~~~~~~~
../../ptpd-2.3.1/src/dep/startup.c:948:46: error: 'CPU_WHICH_PID' undeclared (first use in this function)
       if(cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
                                              ^~~~~~~~~~~~~
Makefile:629: recipe for target 'dep/startup.o' failed
make[2]: Leaving directory '/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-arm-rtems5-1/build-cxc/src'
make[2]: *** [dep/startup.o] Error 1
Makefile:502: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-arm-rtems5-1/build-cxc'
Makefile:412: recipe for target 'all' failed
make: *** [all] Error 2
shell cmd failed: /bin/sh -ex  /home/mritunjay/development/rtems/rsb/rtems/build/ptpd-2.3.1-arm-rtems5-1/do-build
error: building ptpd-2.3.1-arm-rtems5-1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log
Type: application/octet-stream
Size: 75864 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200604/ea870af8/attachment-0001.obj>


More information about the devel mailing list