Build issues with ./bake/bake.py in ns-3-dce

46 views
Skip to first unread message

Rounak Modi

unread,
May 9, 2020, 6:06:29 AM5/9/20
to ns-3-users
I am trying to build bake.py in ns-3-dce but getting this error

(base) niwedita@Niwedita-Inspiron-5567:/home/ns3dce/dce-linux-dev$ sudo ./bake/bake.py build -vvv 
 >> Building iperf - 
    > cd /home/ns3dce/dce-linux-dev/source/iperf;./configure --prefix=/home/ns3dce/dce-linux-dev/build
cd /home/ns3dce/dce-linux-dev/source/iperf; patch -p1 < /home/ns3dce/dce-linux-dev/source/iperf/../ns-3-dce/utils/iperf_4_dce.patch
 > Patch problem: Ignoring patch, either the patch file does not exist or it was already applied!
 mkdir /home/ns3dce/dce-linux-dev/source/iperf/objdir dir=/home/ns3dce/dce-linux-dev/source/iperf
mkdir: cannot create directory ‘/home/ns3dce/dce-linux-dev/source/iperf/objdir’: File exists
 make CFLAGS=-fPIC CFLAGS+=-U_FORTIFY_SOURCE CXXFLAGS=-fPIC CXXFLAGS+=-U_FORTIFY_SOURCE LDFLAGS=-pie LDFLAGS+=-rdynamic dir=/home/ns3dce/dce-linux-dev/source/iperf
make  all-recursive
make[1]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf'
Making all in compat
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/compat'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/compat'
Making all in doc
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/doc'
Making all in include
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/include'
Making all in src
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/src'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/src'
Making all in man
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/man'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/man'
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf'
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf'
make[1]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf'
 make install dir=/home/ns3dce/dce-linux-dev/source/iperf
Making install in compat
make[1]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/compat'
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/compat'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/compat'
make[1]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/compat'
Making install in doc
make[1]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/doc'
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/doc'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/doc'
make[1]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/doc'
Making install in include
make[1]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/include'
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/include'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/include'
make[1]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/include'
Making install in src
make[1]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/src'
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/src'
test -z "/home/ns3dce/dce-linux-dev/build/bin" || mkdir -p -- "/home/ns3dce/dce-linux-dev/build/bin"
  /usr/bin/install -c 'iperf' '/home/ns3dce/dce-linux-dev/build/bin/iperf'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/src'
make[1]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/src'
Making install in man
make[1]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/man'
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf/man'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/home/ns3dce/dce-linux-dev/build/share/man/man1" || mkdir -p -- "/home/ns3dce/dce-linux-dev/build/share/man/man1"
 /usr/bin/install -c -m 644 './iperf.1' '/home/ns3dce/dce-linux-dev/build/share/man/man1/iperf.1'
 /usr/bin/install -c -m 644 './iperf.1' '/home/ns3dce/dce-linux-dev/build/share/man/man1/iperf.1'
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/man'
make[1]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf/man'
make[1]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf'
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/iperf'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf'
make[1]: Leaving directory '/home/ns3dce/dce-linux-dev/source/iperf'
()
 >> Built iperf - OK
 >> Building umip - 
 autoreconf --install dir=/home/ns3dce/dce-linux-dev/source/umip
man/Makefile.am:12: warning: '%'-style pattern rules are a GNU make extension
 ./configure CFLAGS=-fPIC -g LDFLAGS=-pie -rdynamic --prefix=/home/ns3dce/dce-linux-dev/build --enable-vt --with-builtin-crypto dir=/home/ns3dce/dce-linux-dev/source/umip
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/ns3dce/dce-linux-dev/source/umip/missing: Unknown `--is-lightweight' option
Try `/home/ns3dce/dce-linux-dev/source/umip/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... 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... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for ranlib... ranlib
checking whether gcc needs -traditional... no
checking for egrep... (cached) /bin/grep -E
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
configure: WARNING:
*** scan.l requires newer version of flex.  If you need to generate
*** scan.c, upgrade to the latest flex (>=2.5.31) version.

checking for bison... bison -y
checking for gawk... (cached) gawk
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for sed... sed
checking for indent... indent
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking for working volatile... yes
checking whether byte ordering is bigendian... no
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... 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 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 time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for wait3 that fills in rusage... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strerror... yes
configure: *** checking for additional external libraries
checking for clock_gettime... yes
checking for dlopen... no
checking for dlopen in -ldl... yes
checking for pthread_create in -lpthread... yes
checking for rtnl_talk in -lnetlink... no
configure: *** checking for optional features
checking whether to use builtin crypto... (cached) yes
checking whether to enable debug messages... (cached) yes
checking whether to enable debug virtual terminal... (cached) yes
configure: *** checking inet6_opt for RFC3542: Advanced IPv6 Socket API support
checking for inet6_opt_find... yes
configure: *** checking inet6_rth for RFC3542: Advanced IPv6 Socket API support
configure: *** checking RH2 for RFC4584: Extension to Socket API for MIPv6
checking whether IPV6_RTHDR_TYPE_2 is declared... no
configure: *** checking for Mobile IPv6 support in kernel headers
checking whether IFA_F_HOMEADDRESS is declared... yes
configure: *** checking for Mobile IPv6 extensions in system headers
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/ip6.h usability... yes
checking netinet/ip6.h presence... yes
checking for netinet/ip6.h... yes
checking netinet/icmp6.h usability... yes
checking netinet/icmp6.h presence... yes
checking for netinet/icmp6.h... yes
checking netinet/ip6mh.h usability... no
checking netinet/ip6mh.h presence... no
checking for netinet/ip6mh.h... no
checking for struct ip6_ext.ip6e_nxt... yes
checking for struct ip6_opt_home_address.ip6oha_type... no
checking for struct ip6_rthdr2.ip6r2_nxt... no
checking for struct mip_dhaad_req.mip_dhreq_hdr... no
checking for struct mip_dhaad_rep.mip_dhrep_hdr... no
checking for struct mip_prefix_solicit.mip_ps_hdr... no
checking for struct mip_prefix_advert.mip_pa_hdr... no
checking for struct nd_opt_homeagent_info.nd_opt_hai_type... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libnetlink/Makefile
config.status: creating libmissing/Makefile
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
configure: settings

UMIP Mobile IPv6 for Linux version 1.0

  Use built-in crypto: ............ yes
  Use OpenSSL crypto library: ..... no
  Enable debugging mode: .......... yes
  Enable virtual debug terminal: .. yes

  Build target: x86_64-pc-linux-gnu
  CPPFLAGS: 

 make dir=/home/ns3dce/dce-linux-dev/source/umip
make  all-recursive
make[1]: Entering directory '/home/ns3dce/dce-linux-dev/source/umip'
Making all in libmissing
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/umip/libmissing'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/umip/libmissing'
Making all in libnetlink
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/umip/libnetlink'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/umip/libnetlink'
Making all in src
make[2]: Entering directory '/home/ns3dce/dce-linux-dev/source/umip/src'
make  all-am
make[3]: Entering directory '/home/ns3dce/dce-linux-dev/source/umip/src'
/bin/bash ../ylwrap scan.l lex.yy.c scan.c -- flex  
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 28: unrecognized '%' directive
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 29: bad character: #
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 29: unknown error processing section 1
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 29: unknown error processing section 1
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 29: unknown error processing section 1
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 30: bad character: #
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 30: unknown error processing section 1
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 30: bad character: <
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 30: unknown error processing section 1
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 30: bad character: .
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 30: unknown error processing section 1
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 30: bad character: >
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 31: bad character: #
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 31: unknown error processing section 1
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 32: bad character: }
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 75: unrecognized %option: yyget
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 76: unrecognized %option: yyget
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 77: unrecognized %option: yyget
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 78: unrecognized %option: yyget
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 79: unrecognized %option: yyget
"/home/ns3dce/dce-linux-dev/source/umip/src/scan.l", line 80: unrecognized %option: yyget
Makefile:481: recipe for target 'scan.c' failed
make[3]: *** [scan.c] Error 1
make[3]: Leaving directory '/home/ns3dce/dce-linux-dev/source/umip/src'
Makefile:341: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/ns3dce/dce-linux-dev/source/umip/src'
Makefile:381: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ns3dce/dce-linux-dev/source/umip'
Makefile:322: recipe for target 'all' failed
make: *** [all] Error 2
()
 >> Building umip - Problem
   > Subprocess failed with error 2: ['make']
 > Error:  Critical dependency, module "umip" failed 
   For more information call Bake with --debug and/or -v, -vvv, for full verbose mode (bake --help)

Reply all
Reply to author
Forward
0 new messages