Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to build BPFabric to OpenWrt #2

Open
peterslopes opened this issue Nov 22, 2018 · 6 comments
Open

Error when trying to build BPFabric to OpenWrt #2

peterslopes opened this issue Nov 22, 2018 · 6 comments

Comments

@peterslopes
Copy link

I'm trying to build this package for OpenWrt but I'm receveing the error bellow. These are the last lines of compiling:

.....
mkdir -p src/c/
protoc-c --c_out=src/c/ *.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Header.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Hello.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Install.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Notify.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Packet.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Table.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
cd src/c/ && gcc -c *.c && ar cr protocol.a *.o
In file included from Header.pb-c.c:9:0:
Header.pb-c.h:7:10: fatal error: protobuf-c/protobuf-c.h: No such file or directory
#include <protobuf-c/protobuf-c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Hello.pb-c.c:9:0:
Hello.pb-c.h:7:10: fatal error: protobuf-c/protobuf-c.h: No such file or directory
#include <protobuf-c/protobuf-c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Install.pb-c.c:9:0:
Install.pb-c.h:7:10: fatal error: protobuf-c/protobuf-c.h: No such file or directory
#include <protobuf-c/protobuf-c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Notify.pb-c.c:9:0:
Notify.pb-c.h:7:10: fatal error: protobuf-c/protobuf-c.h: No such file or directory
#include <protobuf-c/protobuf-c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Packet.pb-c.c:9:0:
Packet.pb-c.h:7:10: fatal error: protobuf-c/protobuf-c.h: No such file or directory
#include <protobuf-c/protobuf-c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Table.pb-c.c:9:0:
Table.pb-c.h:7:10: fatal error: protobuf-c/protobuf-c.h: No such file or directory
#include <protobuf-c/protobuf-c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:6: build-proto-c] Error 1
make[5]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/protocol'
make[4]: *** [Makefile:12: protocol-src] Error 2
make[4]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1'
make[3]: *** [Makefile:40: /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/.built] Error 2
make[3]: Leaving directory '/home/peterson_lopes/openwrt/package/customfeed/BPFabric'
time: package/customfeed/BPFabric/compile#0.28#0.12#3.05
make[2]: *** [package/Makefile:109: package/customfeed/BPFabric/compile] Error 2
make[2]: Leaving directory '/home/peterson_lopes/openwrt'
make[1]: *** [package/Makefile:103: /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/peterson_lopes/openwrt'
make: *** [/home/peterson_lopes/openwrt/include/toplevel.mk:218: world] Error 2


And bellow are all logs about failed package:

Libraries have been installed in:
/home/peterson_lopes/openwrt/staging_dir/hostpkg/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:

  • add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
    during execution
  • add LIBDIR to the 'LD_RUN_PATH' environment variable
    during linking
  • use the '-Wl,-rpath -Wl,LIBDIR' linker flag
  • have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

/bin/mkdir -p '/home/peterson_lopes/openwrt/staging_dir/hostpkg/bin'
/usr/bin/env bash ./libtool --mode=install /usr/bin/install -c protoc-c/protoc-gen-c '/home/peterson_lopes/openwrt/staging_dir/hostpkg/bin'
libtool: install: /usr/bin/install -c protoc-c/protoc-gen-c /home/peterson_lopes/openwrt/staging_dir/hostpkg/bin/protoc-gen-c
make install-exec-hook
make[7]: Entering directory '/home/peterson_lopes/openwrt/build_dir/hostpkg/protobuf-c-1.3.1'
rm -f /home/peterson_lopes/openwrt/staging_dir/hostpkg/bin/protoc-c
ln -s protoc-gen-c /home/peterson_lopes/openwrt/staging_dir/hostpkg/bin/protoc-c
make[7]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/hostpkg/protobuf-c-1.3.1'
/bin/mkdir -p '/home/peterson_lopes/openwrt/staging_dir/hostpkg/include'
/bin/mkdir -p '/home/peterson_lopes/openwrt/staging_dir/hostpkg/include/protobuf-c'
/usr/bin/install -c -m 644 protobuf-c/protobuf-c.h '/home/peterson_lopes/openwrt/staging_dir/hostpkg/include/protobuf-c'
/bin/mkdir -p '/home/peterson_lopes/openwrt/staging_dir/hostpkg/lib/pkgconfig'
/usr/bin/install -c -m 644 protobuf-c/libprotobuf-c.pc '/home/peterson_lopes/openwrt/staging_dir/hostpkg/lib/pkgconfig'
make install-data-hook
make[7]: Entering directory '/home/peterson_lopes/openwrt/build_dir/hostpkg/protobuf-c-1.3.1'
/bin/mkdir -p /home/peterson_lopes/openwrt/staging_dir/hostpkg/include/google/protobuf-c
cd /home/peterson_lopes/openwrt/staging_dir/hostpkg/include/google/protobuf-c && rm -f protobuf-c.h
cd /home/peterson_lopes/openwrt/staging_dir/hostpkg/include/google/protobuf-c && ln -s ../../protobuf-c/protobuf-c.h protobuf-c.h
make[7]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/hostpkg/protobuf-c-1.3.1'
make[6]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/hostpkg/protobuf-c-1.3.1'
make[5]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/hostpkg/protobuf-c-1.3.1'
make[4]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/hostpkg/protobuf-c-1.3.1'
mkdir -p /home/peterson_lopes/openwrt/staging_dir/hostpkg/stamp
touch /home/peterson_lopes/openwrt/build_dir/hostpkg/protobuf-c-1.3.1/.built
touch /home/peterson_lopes/openwrt/staging_dir/hostpkg/stamp/.libprotobuf-c_installed
make[3]: Leaving directory '/home/peterson_lopes/openwrt/feeds/packages/libs/protobuf-c'
time: package/feeds/packages/protobuf-c/host-compile#37.24#3.05#45.04
make[3]: Entering directory '/home/peterson_lopes/openwrt/feeds/packages/libs/protobuf-c'
touch /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.prepared_89d643b2ad2889770ccf1111c49831ba_6664517399ebbbc92a37c5bb081b5c53_check
. /home/peterson_lopes/openwrt/include/shell.sh; gzip -dc /home/peterson_lopes/openwrt/dl/protobuf-c-1.3.1.tar.gz | tar -C /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1
touch /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.prepared_89d643b2ad2889770ccf1111c49831ba_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.configured_*
rm -f /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/stamp/.protobuf-c_installed
(cd /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/./; if [ -x ./configure ]; then find /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ -name config.guess | xargs -r chmod u+w; find /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ -name config.guess | xargs -r -n1 cp --remove-destination /home/peterson_lopes/openwrt/scripts/config.guess; find /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ -name config.sub | xargs -r chmod u+w; find /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ -name config.sub | xargs -r -n1 cp --remove-destination /home/peterson_lopes/openwrt/scripts/config.sub; AR="i486-openwrt-linux-musl-gcc-ar" AS="i486-openwrt-linux-musl-gcc -c -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=i486-openwrt-linux-musl-ld NM="i486-openwrt-linux-musl-gcc-nm" CC="i486-openwrt-linux-musl-gcc" GCC="i486-openwrt-linux-musl-gcc" CXX="i486-openwrt-linux-musl-g++" RANLIB="i486-openwrt-linux-musl-gcc-ranlib" STRIP=i486-openwrt-linux-musl-strip OBJCOPY=i486-openwrt-linux-musl-objcopy OBJDUMP=i486-openwrt-linux-musl-objdump SIZE=i486-openwrt-linux-musl-size CFLAGS="-Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include " LDFLAGS="-L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/lib -znow -zrelro " ./configure --target=i486-openwrt-linux --host=i486-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --enable-shared --enable-static --disable-protoc ; fi; )
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /home/peterson_lopes/openwrt/include/site/i386
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i486-openwrt-linux-strip... i486-openwrt-linux-musl-strip
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 whether make supports the include directive... yes (GNU style)
checking for i486-openwrt-linux-gcc... i486-openwrt-linux-musl-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 i486-openwrt-linux-musl-gcc accepts -g... yes
checking for i486-openwrt-linux-musl-gcc option to accept ISO C89... none needed
checking whether i486-openwrt-linux-musl-gcc understands -c and -o together... yes
checking dependency style of i486-openwrt-linux-musl-gcc... gcc3
checking for i486-openwrt-linux-musl-gcc option to accept ISO C99... none needed
checking for i486-openwrt-linux-musl-gcc option to accept ISO Standard C... (cached) none needed
checking whether we are using the GNU C++ compiler... yes
checking whether i486-openwrt-linux-musl-g++ accepts -g... yes
checking dependency style of i486-openwrt-linux-musl-g++... gcc3
checking whether ln -s works... yes
checking how to run the C preprocessor... i486-openwrt-linux-musl-gcc -E
checking for grep that handles long lines and -e... /home/peterson_lopes/openwrt/staging_dir/host/bin/grep
checking for egrep... /home/peterson_lopes/openwrt/staging_dir/host/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 special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... i486-openwrt-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /home/peterson_lopes/openwrt/staging_dir/host/bin/sed
checking for fgrep... /home/peterson_lopes/openwrt/staging_dir/host/bin/grep -F
checking for ld used by i486-openwrt-linux-musl-gcc... i486-openwrt-linux-musl-ld
checking if the linker (i486-openwrt-linux-musl-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... i486-openwrt-linux-musl-gcc-nm
checking the name lister (i486-openwrt-linux-musl-gcc-nm) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to i486-openwrt-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for i486-openwrt-linux-musl-ld option to reload object files... -r
checking for i486-openwrt-linux-objdump... i486-openwrt-linux-musl-objdump
checking how to recognize dependent libraries... pass_all
checking for i486-openwrt-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for i486-openwrt-linux-ar... i486-openwrt-linux-musl-gcc-ar
checking for archiver @file support... @
checking for i486-openwrt-linux-strip... (cached) i486-openwrt-linux-musl-strip
checking for i486-openwrt-linux-ranlib... i486-openwrt-linux-musl-gcc-ranlib
checking command to parse i486-openwrt-linux-musl-gcc-nm output from i486-openwrt-linux-musl-gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for i486-openwrt-linux-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 for dlfcn.h... yes
checking for objdir... .libs
checking if i486-openwrt-linux-musl-gcc supports -fno-rtti -fno-exceptions... no
checking for i486-openwrt-linux-musl-gcc option to produce PIC... -fPIC -DPIC
checking if i486-openwrt-linux-musl-gcc PIC flag -fPIC -DPIC works... yes
checking if i486-openwrt-linux-musl-gcc static flag -static works... yes
checking if i486-openwrt-linux-musl-gcc supports -c -o file.o... yes
checking if i486-openwrt-linux-musl-gcc supports -c -o file.o... (cached) yes
checking whether the i486-openwrt-linux-musl-gcc linker (i486-openwrt-linux-musl-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... i486-openwrt-linux-musl-g++ -E
checking for ld used by i486-openwrt-linux-musl-g++... i486-openwrt-linux-musl-ld
checking if the linker (i486-openwrt-linux-musl-ld) is GNU ld... yes
checking whether the i486-openwrt-linux-musl-g++ linker (i486-openwrt-linux-musl-ld) supports shared libraries... yes
checking for i486-openwrt-linux-musl-g++ option to produce PIC... -fPIC -DPIC
checking if i486-openwrt-linux-musl-g++ PIC flag -fPIC -DPIC works... yes
checking if i486-openwrt-linux-musl-g++ static flag -static works... yes
checking if i486-openwrt-linux-musl-g++ supports -c -o file.o... yes
checking if i486-openwrt-linux-musl-g++ supports -c -o file.o... (cached) yes
checking whether the i486-openwrt-linux-musl-g++ linker (i486-openwrt-linux-musl-ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether C compiler accepts "-Wc99-c11-compat"... yes
checking whether C compiler accepts "-Werror=incompatible-pointer-types"... yes
checking whether C compiler accepts "-Werror=int-conversion"... yes
checking whether C compiler accepts "-Wnull-dereference"... yes
checking for doxygen... no
checking pkg-config is at least version 0.9.0... yes
checking if LD -Wl,--version-script works... yes
checking whether self tests are run under valgrind... no
checking whether to build with code coverage support... no
checking whether byte ordering is bigendian... (cached) no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating protobuf-c/libprotobuf-c.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-nls

protobuf-c 1.3.1

    CC:                     i486-openwrt-linux-musl-gcc
    CFLAGS:                 -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro 
    CXX:                    i486-openwrt-linux-musl-g++
    CXXFLAGS:               -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro 
    LDFLAGS:                -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/lib -znow -zrelro 
    LIBS:                   

    prefix:                 /usr
    sysconfdir:             /etc
    libdir:                 ${exec_prefix}/lib
    includedir:             ${prefix}/include
    pkgconfigdir:           ${libdir}/pkgconfig

    bigendian:              no
    protobuf version:       not required, not building compiler

touch /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.built
touch /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.built_check
CFLAGS="-Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include " CXXFLAGS="-Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include " LDFLAGS="-L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/lib -znow -zrelro " make --jobserver-auth=3,4 -C /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/. AR="i486-openwrt-linux-musl-gcc-ar" AS="i486-openwrt-linux-musl-gcc -c -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=i486-openwrt-linux-musl-ld NM="i486-openwrt-linux-musl-gcc-nm" CC="i486-openwrt-linux-musl-gcc" GCC="i486-openwrt-linux-musl-gcc" CXX="i486-openwrt-linux-musl-g++" RANLIB="i486-openwrt-linux-musl-gcc-ranlib" STRIP=i486-openwrt-linux-musl-strip OBJCOPY=i486-openwrt-linux-musl-objcopy OBJDUMP=i486-openwrt-linux-musl-objdump SIZE=i486-openwrt-linux-musl-size CROSS="i486-openwrt-linux-musl-" ARCH="i386" ;
make[4]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1'
make all-am
make[5]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1'
depbase=echo protobuf-c/protobuf-c.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';
/bin/bash ./libtool --tag=CC --mode=compile i486-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include -Wall -Wchar-subscripts -Wdeclaration-after-statement -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wtype-limits -Wc99-c11-compat -Werror=incompatible-pointer-types -Werror=int-conversion -Wnull-dereference -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -MT protobuf-c/protobuf-c.lo -MD -MP -MF $depbase.Tpo -c -o protobuf-c/protobuf-c.lo protobuf-c/protobuf-c.c &&
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: i486-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include -Wall -Wchar-subscripts -Wdeclaration-after-statement -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wtype-limits -Wc99-c11-compat -Werror=incompatible-pointer-types -Werror=int-conversion -Wnull-dereference -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -MT protobuf-c/protobuf-c.lo -MD -MP -MF protobuf-c/.deps/protobuf-c.Tpo -c protobuf-c/protobuf-c.c -fPIC -DPIC -o protobuf-c/.libs/protobuf-c.o
protobuf-c/protobuf-c.c: In function 'parse_oneof_member':
protobuf-c/protobuf-c.c:2639:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
const ProtobufCFieldDescriptor old_field =
^~~~~
libtool: compile: i486-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include -Wall -Wchar-subscripts -Wdeclaration-after-statement -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wtype-limits -Wc99-c11-compat -Werror=incompatible-pointer-types -Werror=int-conversion -Wnull-dereference -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -MT protobuf-c/protobuf-c.lo -MD -MP -MF protobuf-c/.deps/protobuf-c.Tpo -c protobuf-c/protobuf-c.c -o protobuf-c/protobuf-c.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=link i486-openwrt-linux-musl-gcc -Wall -Wchar-subscripts -Wdeclaration-after-statement -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wtype-limits -Wc99-c11-compat -Werror=incompatible-pointer-types -Werror=int-conversion -Wnull-dereference -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -version-info 1:0:0 -no-undefined -Wl,--version-script=./protobuf-c/libprotobuf-c.sym -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/lib -znow -zrelro -o protobuf-c/libprotobuf-c.la -rpath /usr/lib protobuf-c/protobuf-c.lo
libtool: link: i486-openwrt-linux-musl-gcc -shared -fPIC -DPIC protobuf-c/.libs/protobuf-c.o -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/lib -Os -march=pentium4 -fstack-protector -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,--version-script=./protobuf-c/libprotobuf-c.sym -Wl,-soname -Wl,libprotobuf-c.so.1 -o protobuf-c/.libs/libprotobuf-c.so.1.0.0
libtool: link: (cd "protobuf-c/.libs" && rm -f "libprotobuf-c.so.1" && ln -s "libprotobuf-c.so.1.0.0" "libprotobuf-c.so.1")
libtool: link: (cd "protobuf-c/.libs" && rm -f "libprotobuf-c.so" && ln -s "libprotobuf-c.so.1.0.0" "libprotobuf-c.so")
libtool: link: i486-openwrt-linux-musl-gcc-ar cru protobuf-c/.libs/libprotobuf-c.a protobuf-c/protobuf-c.o
/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/lib/gcc/i486-openwrt-linux-musl/7.3.0/../../../../i486-openwrt-linux-musl/bin/ar: u' modifier ignored since D' is the default (see U') libtool: link: i486-openwrt-linux-musl-gcc-ranlib protobuf-c/.libs/libprotobuf-c.a libtool: link: ( cd "protobuf-c/.libs" && rm -f "libprotobuf-c.la" && ln -s "../libprotobuf-c.la" "libprotobuf-c.la" ) make[5]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1' make[4]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1' CFLAGS="-Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include " CXXFLAGS="-Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include " LDFLAGS="-L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/lib -znow -zrelro " make -C /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/. AR="i486-openwrt-linux-musl-gcc-ar" AS="i486-openwrt-linux-musl-gcc -c -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1:protobuf-c-1.3.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=i486-openwrt-linux-musl-ld NM="i486-openwrt-linux-musl-gcc-nm" CC="i486-openwrt-linux-musl-gcc" GCC="i486-openwrt-linux-musl-gcc" CXX="i486-openwrt-linux-musl-g++" RANLIB="i486-openwrt-linux-musl-gcc-ranlib" STRIP=i486-openwrt-linux-musl-strip OBJCOPY=i486-openwrt-linux-musl-objcopy OBJDUMP=i486-openwrt-linux-musl-objdump SIZE=i486-openwrt-linux-musl-size CROSS="i486-openwrt-linux-musl-" ARCH="i386" DESTDIR="/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install" install; make[4]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1' make install-am make[5]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1' make[6]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1' /bin/mkdir -p '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib' /bin/bash ./libtool --mode=install /usr/bin/install -c protobuf-c/libprotobuf-c.la '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib' libtool: install: /usr/bin/install -c protobuf-c/.libs/libprotobuf-c.so.1.0.0 /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib/libprotobuf-c.so.1.0.0 libtool: install: (cd /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib && { ln -s -f libprotobuf-c.so.1.0.0 libprotobuf-c.so.1 || { rm -f libprotobuf-c.so.1 && ln -s libprotobuf-c.so.1.0.0 libprotobuf-c.so.1; }; }) libtool: install: (cd /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib && { ln -s -f libprotobuf-c.so.1.0.0 libprotobuf-c.so || { rm -f libprotobuf-c.so && ln -s libprotobuf-c.so.1.0.0 libprotobuf-c.so; }; }) libtool: install: /usr/bin/install -c protobuf-c/.libs/libprotobuf-c.lai /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib/libprotobuf-c.la libtool: install: /usr/bin/install -c protobuf-c/.libs/libprotobuf-c.a /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib/libprotobuf-c.a libtool: install: chmod 644 /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib/libprotobuf-c.a libtool: install: i486-openwrt-linux-musl-gcc-ranlib /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib/libprotobuf-c.a libtool: warning: remember to run 'libtool --finish /usr/lib' make install-exec-hook make[7]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1' make[7]: Nothing to be done for 'install-exec-hook'. make[7]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1' /bin/mkdir -p '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/include' /bin/mkdir -p '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/include/protobuf-c' /usr/bin/install -c -m 644 protobuf-c/protobuf-c.h '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/include/protobuf-c' /bin/mkdir -p '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib/pkgconfig' /usr/bin/install -c -m 644 protobuf-c/libprotobuf-c.pc '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib/pkgconfig' make install-data-hook make[7]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1' /bin/mkdir -p /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/include/google/protobuf-c cd /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/include/google/protobuf-c && rm -f protobuf-c.h cd /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/include/google/protobuf-c && ln -s ../../protobuf-c/protobuf-c.h protobuf-c.h make[7]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1' make[6]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1' make[5]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1' make[4]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1' touch /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.built rm -rf /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.pkgdir/libprotobuf-c.installed /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.pkgdir/libprotobuf-c mkdir -p /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.pkgdir/libprotobuf-c install -d -m0755 /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.pkgdir/libprotobuf-c/usr/lib cp -fpR /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib/libprotobuf-c.so.* /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.pkgdir/libprotobuf-c/usr/lib/ touch /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.pkgdir/libprotobuf-c.installed mkdir -p /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/root-x86/stamp SHELL= flock /home/peterson_lopes/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/.pkgdir/libprotobuf-c/. /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/root-x86/' touch /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/root-x86/stamp/.libprotobuf-c_installed mkdir -p /home/peterson_lopes/openwrt/bin/targets/x86/generic/packages /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-i386_pentium4/libprotobuf-c/CONTROL /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/pkginfo install -d -m0755 /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-i386_pentium4/libprotobuf-c/usr/lib cp -fpR /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib/libprotobuf-c.so.* /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-i386_pentium4/libprotobuf-c/usr/lib/ find /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-i386_pentium4/libprotobuf-c -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf export CROSS="i486-openwrt-linux-musl-" NO_RENAME=1 ; NM="i486-openwrt-linux-musl-nm" STRIP="/home/peterson_lopes/openwrt/staging_dir/host/bin/sstrip" STRIP_KMOD="/home/peterson_lopes/openwrt/scripts/strip-kmod.sh" PATCHELF="/home/peterson_lopes/openwrt/staging_dir/host/bin/patchelf" /home/peterson_lopes/openwrt/scripts/rstrip.sh /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-i386_pentium4/libprotobuf-c rstrip.sh: /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-i386_pentium4/libprotobuf-c/usr/lib/libprotobuf-c.so.1.0.0: executable (cd /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-i386_pentium4/libprotobuf-c/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -x "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -x "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm; ) install -d -m0755 /home/peterson_lopes/openwrt/bin/packages/i386_pentium4/packages /home/peterson_lopes/openwrt/scripts/ipkg-build -c -o 0 -g 0 /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-i386_pentium4/libprotobuf-c /home/peterson_lopes/openwrt/bin/packages/i386_pentium4/packages Packaged contents of /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-i386_pentium4/libprotobuf-c into /home/peterson_lopes/openwrt/bin/packages/i386_pentium4/packages/libprotobuf-c_1.3.1-1_i386_pentium4.ipk echo "libprotobuf-c" >> /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/pkginfo/protobuf-c.default.install rm -rf /home/peterson_lopes/openwrt/tmp/stage-protobuf-c mkdir -p /home/peterson_lopes/openwrt/tmp/stage-protobuf-c/host /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/packages /home/peterson_lopes/openwrt/staging_dir/host/packages install -d -m0755 /home/peterson_lopes/openwrt/tmp/stage-protobuf-c/usr/include/ cp -fpR /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/include/* /home/peterson_lopes/openwrt/tmp/stage-protobuf-c/usr/include/ install -d -m0755 /home/peterson_lopes/openwrt/tmp/stage-protobuf-c/usr/lib cp -fpR /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib/libprotobuf-c.{a,la,so*} /home/peterson_lopes/openwrt/tmp/stage-protobuf-c/usr/lib/ install -d -m0755 /home/peterson_lopes/openwrt/tmp/stage-protobuf-c/usr/lib/pkgconfig cp -fpR /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/protobuf-c-1.3.1/ipkg-install/usr/lib/pkgconfig/* /home/peterson_lopes/openwrt/tmp/stage-protobuf-c/usr/lib/pkgconfig/ find /home/peterson_lopes/openwrt/tmp/stage-protobuf-c -name '*.la' | xargs -r rm -f; find /home/peterson_lopes/openwrt/tmp/stage-protobuf-c -name '*.la' | xargs -r rm -f; if [ -f /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/packages/protobuf-c.list ]; then /home/peterson_lopes/openwrt/scripts/clean-package.sh "/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/packages/protobuf-c.list" "/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl"; fi if [ -d /home/peterson_lopes/openwrt/tmp/stage-protobuf-c ]; then (cd /home/peterson_lopes/openwrt/tmp/stage-protobuf-c; find ./ > /home/peterson_lopes/openwrt/tmp/stage-protobuf-c.files); SHELL= flock /home/peterson_lopes/openwrt/tmp/.staging-dir.flock -c ' mv /home/peterson_lopes/openwrt/tmp/stage-protobuf-c.files /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/packages/protobuf-c.list && cp -fpR /home/peterson_lopes/openwrt/tmp/stage-protobuf-c/* /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/; '; fi rm -rf /home/peterson_lopes/openwrt/tmp/stage-protobuf-c touch /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/stamp/.protobuf-c_installed make[3]: Leaving directory '/home/peterson_lopes/openwrt/feeds/packages/libs/protobuf-c' time: package/feeds/packages/protobuf-c/compile#3.49#1.04#6.94 make[3]: Entering directory '/home/peterson_lopes/openwrt/package/customfeed/BPFabric' mkdir -p /home/peterson_lopes/openwrt/dl SHELL= flock /home/peterson_lopes/openwrt/tmp/.BPFabric-1.tar.gz.flock -c ' /home/peterson_lopes/openwrt/scripts/dl_github_archive.py --dl-dir="/home/peterson_lopes/openwrt/dl" --url="https://github.com/UofG-netlab/BPFabric.git" --version="master" --subdir="BPFabric-1" --source="BPFabric-1.tar.gz" --hash="x" || ( echo "Checking out files from the git repository..."; mkdir -p /home/peterson_lopes/openwrt/tmp/dl && cd /home/peterson_lopes/openwrt/tmp/dl && rm -rf BPFabric-1 && [ \! -d BPFabric-1 ] && git clone https://github.com/UofG-netlab/BPFabric.git BPFabric-1 && (cd BPFabric-1 && git checkout master && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=cd BPFabric-1 && git log -1 --format='''@%ct'''` && rm -rf BPFabric-1/.git && tar --numeric-owner --owner=0 --group=0 --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c BPFabric-1 | gzip -nc > /home/peterson_lopes/openwrt/tmp/dl/BPFabric-1.tar.gz && mv /home/peterson_lopes/openwrt/tmp/dl/BPFabric-1.tar.gz /home/peterson_lopes/openwrt/dl/ && rm -rf BPFabric-1; ); '
BPFabric-1.tar.gz: Download from https://github.com/UofG-netlab/BPFabric.git failed
BPFabric-1.tar.gz: Requires sha256sum for verification
Checking out files from the git repository...
Cloning into 'BPFabric-1'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 132 (delta 0), reused 0 (delta 0), pack-reused 131
Receiving objects: 100% (132/132), 190.81 KiB | 718.00 KiB/s, done.
Resolving deltas: 100% (29/29), done.
Already on 'master'
Your branch is up to date with 'origin/master'.
Packing checkout...
touch /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/.prepared_5955aebc3e065ca8b746e564800168f6_6664517399ebbbc92a37c5bb081b5c53_check
. /home/peterson_lopes/openwrt/include/shell.sh; gzip -dc /home/peterson_lopes/openwrt/dl/BPFabric-1.tar.gz | tar -C /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1
touch /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/.prepared_5955aebc3e065ca8b746e564800168f6_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/.configured_

rm -f /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/stamp/.BPFabric_installed
(cd /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/./; if [ -x ./configure ]; then find /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/ -name config.guess | xargs -r chmod u+w; find /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/ -name config.guess | xargs -r -n1 cp --remove-destination /home/peterson_lopes/openwrt/scripts/config.guess; find /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/ -name config.sub | xargs -r chmod u+w; find /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/ -name config.sub | xargs -r -n1 cp --remove-destination /home/peterson_lopes/openwrt/scripts/config.sub; AR="i486-openwrt-linux-musl-gcc-ar" AS="i486-openwrt-linux-musl-gcc -c -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1:BPFabric-1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=i486-openwrt-linux-musl-ld NM="i486-openwrt-linux-musl-gcc-nm" CC="i486-openwrt-linux-musl-gcc" GCC="i486-openwrt-linux-musl-gcc" CXX="i486-openwrt-linux-musl-g++" RANLIB="i486-openwrt-linux-musl-gcc-ranlib" STRIP=i486-openwrt-linux-musl-strip OBJCOPY=i486-openwrt-linux-musl-objcopy OBJDUMP=i486-openwrt-linux-musl-objdump SIZE=i486-openwrt-linux-musl-size CFLAGS="-Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1:BPFabric-1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1:BPFabric-1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include " LDFLAGS="-L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/lib -znow -zrelro -largp " ./configure --target=i486-openwrt-linux --host=i486-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
touch /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/.built
touch /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/.built_check
CFLAGS="-Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1:BPFabric-1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include " CXXFLAGS="-Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1:BPFabric-1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include " LDFLAGS="-L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/lib -znow -zrelro -largp " make -j1 -C /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/. AR="i486-openwrt-linux-musl-gcc-ar" AS="i486-openwrt-linux-musl-gcc -c -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1:BPFabric-1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=i486-openwrt-linux-musl-ld NM="i486-openwrt-linux-musl-gcc-nm" CC="i486-openwrt-linux-musl-gcc" GCC="i486-openwrt-linux-musl-gcc" CXX="i486-openwrt-linux-musl-g++" RANLIB="i486-openwrt-linux-musl-gcc-ranlib" STRIP=i486-openwrt-linux-musl-strip OBJCOPY=i486-openwrt-linux-musl-objcopy OBJDUMP=i486-openwrt-linux-musl-objdump SIZE=i486-openwrt-linux-musl-size CROSS="i486-openwrt-linux-musl-" ARCH="i386" ;
make[4]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1'
cd protocol && make
make[5]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/protocol'
mkdir -p src/c/
protoc-c --c_out=src/c/ *.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Header.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Hello.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Install.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Notify.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Packet.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Table.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
cd src/c/ && gcc -c *.c && ar cr protocol.a *.o
In file included from Header.pb-c.c:9:0:
Header.pb-c.h:7:10: fatal error: protobuf-c/protobuf-c.h: No such file or directory
#include <protobuf-c/protobuf-c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Hello.pb-c.c:9:0:
Hello.pb-c.h:7:10: fatal error: protobuf-c/protobuf-c.h: No such file or directory
#include <protobuf-c/protobuf-c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Install.pb-c.c:9:0:
Install.pb-c.h:7:10: fatal error: protobuf-c/protobuf-c.h: No such file or directory
#include <protobuf-c/protobuf-c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Notify.pb-c.c:9:0:
Notify.pb-c.h:7:10: fatal error: protobuf-c/protobuf-c.h: No such file or directory
#include <protobuf-c/protobuf-c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Packet.pb-c.c:9:0:
Packet.pb-c.h:7:10: fatal error: protobuf-c/protobuf-c.h: No such file or directory
#include <protobuf-c/protobuf-c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Table.pb-c.c:9:0:
Table.pb-c.h:7:10: fatal error: protobuf-c/protobuf-c.h: No such file or directory
#include <protobuf-c/protobuf-c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:6: build-proto-c] Error 1
make[5]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/protocol'
make[4]: *** [Makefile:12: protocol-src] Error 2
make[4]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1'
make[3]: *** [Makefile:40: /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/.built] Error 2
make[3]: Leaving directory '/home/peterson_lopes/openwrt/package/customfeed/BPFabric'
time: package/customfeed/BPFabric/compile#0.28#0.12#3.05
make[2]: *** [package/Makefile:109: package/customfeed/BPFabric/compile] Error 2
make[2]: Leaving directory '/home/peterson_lopes/openwrt'
make[1]: *** [package/Makefile:103: /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/peterson_lopes/openwrt'
make: *** [/home/peterson_lopes/openwrt/include/toplevel.mk:218: world] Error 2

@peterslopes peterslopes changed the title Error when trying to Building BPFabric to OpenWrt Error when trying to build BPFabric to OpenWrt Nov 22, 2018
@simon-jouet
Copy link
Contributor

Hi @petersonserralopes

I don't have a OpenWRT router available as of now to test this out, but from the looks of it it seems like you don't have libprotobuf-c-dev available to build BPFabric. IIRC when I did the build of BPFabric on OpenWRT (on a TL-WDR3600) I simply used a usb stick and install gcc and the build tools onto it and did the build directly from the router.

@peterslopes
Copy link
Author

About libprotobuf-c-dev, it's worked.
But now I have the error bellow. Can you detail all the building tools necessary to compile BPFabric?

Thanks.

make[5]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/protocol'
mkdir -p src/c/
protoc-c --c_out=src/c/ *.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Header.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Hello.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Install.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Notify.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Packet.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Table.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
cd src/c/ && gcc -c *.c && ar cr protocol.a *.o
mkdir -p src/python/
protoc --python_out=src/python/ *.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Header.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Hello.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Install.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Notify.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Packet.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: Table.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
make[5]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/protocol'
cd bpfmap && make
make[5]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/bpfmap'
i486-openwrt-linux-musl-gcc -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1:BPFabric-1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include -c -o bpfmap.o bpfmap.c
i486-openwrt-linux-musl-gcc -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1:BPFabric-1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include -c -o arraymap.o arraymap.c
i486-openwrt-linux-musl-gcc -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1:BPFabric-1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include -c -o hashtab.o hashtab.c
i486-openwrt-linux-musl-gcc -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1:BPFabric-1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include -c -o libghthash/hash_functions.o libghthash/hash_functions.c
i486-openwrt-linux-musl-gcc -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1:BPFabric-1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include -c -o libghthash/hash_table.o libghthash/hash_table.c
i486-openwrt-linux-musl-gcc-ar r 'libbpfmap.a' bpfmap.o arraymap.o hashtab.o libghthash/hash_functions.o libghthash/hash_table.o
/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/lib/gcc/i486-openwrt-linux-musl/7.3.0/../../../../i486-openwrt-linux-musl/bin/ar: creating libbpfmap.a
make[5]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/bpfmap'
cd ubpf && make
make[5]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/ubpf'
i486-openwrt-linux-musl-gcc -Wall -Iinc -I../bpfmap -O2 -g -c -o ubpf_vm.o ubpf_vm.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
i486-openwrt-linux-musl-gcc -Wall -Iinc -I../bpfmap -O2 -g -c -o ubpf_jit_x86_64.o ubpf_jit_x86_64.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
i486-openwrt-linux-musl-gcc -Wall -Iinc -I../bpfmap -O2 -g -c -o ubpf_loader.o ubpf_loader.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ar rc libubpf.a ubpf_vm.o ubpf_jit_x86_64.o ubpf_loader.o
make[5]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/ubpf'
cd agent && make
make[5]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/agent'
i486-openwrt-linux-musl-gcc -I../ubpf/inc -I../protocol/src/c -I../bpfmap -c agent.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
agent.c: In function 'bpf_debug':
agent.c:467:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
char *s = (char *)r1;
^
agent.c: In function 'bpf_notify':
agent.c:475:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
void *payload = (void *)r2;
^
agent.c: In function 'bpf_lookup':
agent.c:503:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
uint64_t *key = (uint64_t *)r2;
^
agent.c:504:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
uint64_t *store = (uint64_t *)r3;
^
agent.c: In function 'bpf_update':
agent.c:517:32: warning: passing argument 2 of 'bpf_update_elem' makes pointer from integer without a cast [-Wint-conversion]
return bpf_update_elem(r1, r2, r3, r4);
^~
In file included from agent.c:16:0:
../bpfmap/bpfmap.h:93:5: note: expected 'void *' but argument is of type 'uint64_t {aka long long unsigned int}'
int bpf_update_elem(int map, void *key, void *value, unsigned long long flags);
^~~~~~~~~~~~~~~
agent.c:517:36: warning: passing argument 3 of 'bpf_update_elem' makes pointer from integer without a cast [-Wint-conversion]
return bpf_update_elem(r1, r2, r3, r4);
^~
In file included from agent.c:16:0:
../bpfmap/bpfmap.h:93:5: note: expected 'void *' but argument is of type 'uint64_t {aka long long unsigned int}'
int bpf_update_elem(int map, void *key, void *value, unsigned long long flags);
^~~~~~~~~~~~~~~
agent.c: In function 'bpf_delete':
agent.c:522:32: warning: passing argument 2 of 'bpf_delete_elem' makes pointer from integer without a cast [-Wint-conversion]
return bpf_delete_elem(r1, r2);
^~
In file included from agent.c:16:0:
../bpfmap/bpfmap.h:95:5: note: expected 'void *' but argument is of type 'uint64_t {aka long long unsigned int}'
int bpf_delete_elem(int map, void *key);
^~~~~~~~~~~~~~~
i486-openwrt-linux-musl-gcc-ar cr agent.a agent.o
make[5]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/agent'
cd softswitch && make
make[5]: Entering directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/softswitch'
i486-openwrt-linux-musl-gcc -Os -pipe -march=pentium4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1:BPFabric-1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/include -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include/fortify -I/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/include -g -I../ubpf/inc -I../agent -I../includes -o softswitch main.c ../agent/agent.o ../protocol/src/c/Notify.pb-c.c ../protocol/src/c/Table.pb-c.c ../protocol/src/c/Install.pb-c.c ../protocol/src/c/Hello.pb-c.c ../protocol/src/c/Header.pb-c.c ../protocol/src/c/Packet.pb-c.c -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/usr/lib -L/home/peterson_lopes/openwrt/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_musl/lib -znow -zrelro -largp -L../ubpf -L../bpfmap -lpthread -lprotobuf-c -lubpf -lbpfmap
main.c:18:10: fatal error: argp.h: No such file or directory
#include <argp.h>
^~~~~~~~
compilation terminated.

make[5]: *** [Makefile:8: softswitch] Error 1
make[5]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/softswitch'
make[4]: *** [Makefile:21: switch] Error 2
make[4]: Leaving directory '/home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1'
make[3]: *** [Makefile:40: /home/peterson_lopes/openwrt/build_dir/target-i386_pentium4_musl/BPFabric-1/.built] Error 2
make[3]: Leaving directory '/home/peterson_lopes/openwrt/package/customfeed/BPFabric'
time: package/customfeed/BPFabric/compile#1.82#0.36#5.64
make[2]: *** [package/Makefile:109: package/customfeed/BPFabric/compile] Error 2
make[2]: Leaving directory '/home/peterson_lopes/openwrt'
make[1]: *** [package/Makefile:103: /home/peterson_lopes/openwrt/staging_dir/target-i386_pentium4_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/peterson_lopes/openwrt'
make: *** [/home/peterson_lopes/openwrt/include/toplevel.mk:218: world] Error 2

@simon-jouet
Copy link
Contributor

Have a look at https://github.com/UofG-netlab/BPFabric/wiki/OpenWRT

IIRC the issue is that by default argp is not available on OpenWRT because it's using musl not glibc. You can configure to have argp-standalone though (look at the bottom of the page).

To build the softswitch IIRC you just need libprotobuf-c libpthread, but just following the example build config for WDR3600 and apply it to your config and that should work.

Is there any reason for building this for OpenWRT instead of just compiling it in a linux machine? (I'm just curious if you have an x86 router or you are running OpenWRT in a VM and then trying to compile for that)

@peterslopes
Copy link
Author

Sorry, in the last compilation tentative, I forgot add the configuration lines as described in https://github.com/UofG-netlab/BPFabric/wiki/OpenWRT.

About my building, at this moment I'm runing OpenWRTin a VM just for testing purposes. But after I'll try repeat this procedure in a real device (x86 or other architeture).

Thank you again.

@simon-jouet
Copy link
Contributor

No problems, hope it helped. I agree the documentation might need some work :) if you are writing things down and you feel like it, just open a MR against the repo and I can merge that in if it helps other people.

If you are running on x86/x64 architectures you could also try the DPDK implementation, it can be very very fast if you have a good CPU and configured DPDK properly (hugepages, core allocation ..). The softswitch is great because it's easy to get running and it's much easier to debug but it significantly slower than the DPDK one. Can I ask what you are trying to run on BPFabric (out of curiosity?)

@peterslopes
Copy link
Author

peterslopes commented Nov 26, 2018

I want start to understand how BPFabric works in a switch and after know about XDP implementation works.
But I'm not a developer, I have a general acknogdement about programing.
My goal is get to use BPFabric and XDP at low cost routers/switches with SDN services.
In the begining I'll not need high troughput but after would be good improve the performance of theses low cost routers, but I don't want depend of DPDK specifically because I would like to use it in MIPs or other architetures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants