Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/lxi-tools.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-342645721f1aa61eca638842043c406042b7e619/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=995) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/lxi-tools.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/lxi-tools-1.5-1.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/lxi-tools.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-342645721f1aa61eca638842043c406042b7e619/root'shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/lxi-tools.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1tgai3 + umask 022 + cd /builddir/build/BUILD + gpgv2 --keyring /builddir/build/SOURCES/gpgkey-101BAC1C15B216DBE07A3EEA2BDB4A0944FA00B1.gpg /builddir/build/SOURCES/lxi-tools-1.5.tar.xz.asc /builddir/build/SOURCES/lxi-tools-1.5.tar.xz gpgv: Signature made Sat Oct 28 18:57:05 2017 UTC using RSA key ID 44FA00B1 gpgv: Good signature from "Martin Lund " + cd /builddir/build/BUILD + rm -rf lxi-tools-1.5 + /usr/bin/xz -dc /builddir/build/SOURCES/lxi-tools-1.5.tar.xz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd lxi-tools-1.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.e1PgKa + umask 022 + cd /builddir/build/BUILD + cd lxi-tools-1.5 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + '[' 1 == 1 ']' + '[' arm == ppc64le ']' ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + ./configure --build=armv7hl-redhat-linux-gnu --host=armv7hl-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-silent-rules checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for style of include used by make... GNU checking for armv7hl-redhat-linux-gnu-gcc... no 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... none checking for armv7hl-redhat-linux-gnu-ar... no checking for armv7hl-redhat-linux-gnu-lib... no checking for armv7hl-redhat-linux-gnu-link... no checking for ar... ar checking the archiver (ar) interface... ar checking for armv7hl-redhat-linux-gnu-gcc... 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) none checking build system type... armv7hl-redhat-linux-gnu checking host system type... armv7hl-redhat-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert armv7hl-redhat-linux-gnu file names to armv7hl-redhat-linux-gnu format... func_convert_file_noop checking how to convert armv7hl-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for armv7hl-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for armv7hl-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for armv7hl-redhat-linux-gnu-ar... ar checking for archiver @FILE support... @ checking for armv7hl-redhat-linux-gnu-strip... no checking for strip... strip checking for armv7hl-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for armv7hl-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... 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 gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/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 for readline in -lreadline... yes checking for lxi_connect in -llxi... yes 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 man/Makefile config.status: creating src/include/config.h config.status: executing depfiles commands config.status: executing libtool commands + /usr/bin/make -j4 Making all in src make[1]: Entering directory `/builddir/build/BUILD/lxi-tools-1.5/src' gcc -DHAVE_CONFIG_H -I. -I../src/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c -o lxi-lxi.o `test -f 'lxi.c' || echo './'`lxi.c gcc -DHAVE_CONFIG_H -I. -I../src/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c -o lxi-options.o `test -f 'options.c' || echo './'`options.c gcc -DHAVE_CONFIG_H -I. -I../src/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c -o lxi-screenshot.o `test -f 'screenshot.c' || echo './'`screenshot.c gcc -DHAVE_CONFIG_H -I. -I../src/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c -o lxi-screenshot_rigol-1000z.o `test -f 'screenshot_rigol-1000z.c' || echo './'`screenshot_rigol-1000z.c screenshot_rigol-1000z.c: In function 'rigol_1000z_screenshot': screenshot_rigol-1000z.c:53:5: warning: passing argument 2 of 'lxi_connect' makes integer from pointer without a cast [enabled by default] device = lxi_connect(address, NULL, timeout); ^ In file included from screenshot_rigol-1000z.c:37:0: /usr/include/lxi.h:59:5: note: expected 'int' but argument is of type 'void *' int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol); ^ screenshot_rigol-1000z.c:53:5: warning: passing argument 3 of 'lxi_connect' makes pointer from integer without a cast [enabled by default] device = lxi_connect(address, NULL, timeout); ^ In file included from screenshot_rigol-1000z.c:37:0: /usr/include/lxi.h:59:5: note: expected 'char *' but argument is of type 'int' int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol); ^ screenshot_rigol-1000z.c:53:5: error: too few arguments to function 'lxi_connect' device = lxi_connect(address, NULL, timeout); ^ In file included from screenshot_rigol-1000z.c:37:0: /usr/include/lxi.h:59:5: note: declared here int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol); ^ make[1]: *** [lxi-screenshot_rigol-1000z.o] Error 1 make[1]: *** Waiting for unfinished jobs.... lxi.c: In function 'scpi': lxi.c:100:5: warning: passing argument 2 of 'lxi_connect' makes integer from pointer without a cast [enabled by default] device = lxi_connect(ip, NULL, timeout); ^ In file included from lxi.c:41:0: /usr/include/lxi.h:59:5: note: expected 'int' but argument is of type 'void *' int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol); ^ lxi.c:100:5: warning: passing argument 3 of 'lxi_connect' makes pointer from integer without a cast [enabled by default] device = lxi_connect(ip, NULL, timeout); ^ In file included from lxi.c:41:0: /usr/include/lxi.h:59:5: note: expected 'char *' but argument is of type 'int' int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol); ^ lxi.c:100:5: error: too few arguments to function 'lxi_connect' device = lxi_connect(ip, NULL, timeout); ^ In file included from lxi.c:41:0: /usr/include/lxi.h:59:5: note: declared here int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol); ^ lxi.c: In function 'enter_interactive_mode': lxi.c:171:5: warning: passing argument 2 of 'lxi_connect' makes integer from pointer without a cast [enabled by default] device = lxi_connect(ip, NULL, timeout); ^ In file included from lxi.c:41:0: /usr/include/lxi.h:59:5: note: expected 'int' but argument is of type 'void *' int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol); ^ lxi.c:171:5: warning: passing argument 3 of 'lxi_connect' makes pointer from integer without a cast [enabled by default] device = lxi_connect(ip, NULL, timeout); ^ In file included from lxi.c:41:0: /usr/include/lxi.h:59:5: note: expected 'char *' but argument is of type 'int' int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol); ^ lxi.c:171:5: error: too few arguments to function 'lxi_connect' device = lxi_connect(ip, NULL, timeout); ^ In file included from lxi.c:41:0: /usr/include/lxi.h:59:5: note: declared here int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol); ^ lxi.c: In function 'run_script': lxi.c:250:5: warning: passing argument 2 of 'lxi_connect' makes integer from pointer without a cast [enabled by default] device = lxi_connect(ip, NULL, timeout); ^ In file included from lxi.c:41:0: /usr/include/lxi.h:59:5: note: expected 'int' but argument is of type 'void *' int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol); ^ lxi.c:250:5: warning: passing argument 3 of 'lxi_connect' makes pointer from integer without a cast [enabled by default] device = lxi_connect(ip, NULL, timeout); ^ In file included from lxi.c:41:0: /usr/include/lxi.h:59:5: note: expected 'char *' but argument is of type 'int' int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol); ^ lxi.c:250:5: error: too few arguments to function 'lxi_connect' device = lxi_connect(ip, NULL, timeout); ^ In file included from lxi.c:41:0: /usr/include/lxi.h:59:5: note: declared here int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol); ^ lxi.c: In function 'discover': lxi.c:321:23: error: storage size of 'info' isn't known struct lxi_info_t info; ^ lxi.c:330:5: error: too few arguments to function 'lxi_discover' lxi_discover(&info, option.timeout); ^ In file included from lxi.c:41:0: /usr/include/lxi.h:58:5: note: declared here int lxi_discover(lxi_info_t *info, int timeout, lxi_discover_t type); ^ lxi.c:321:23: warning: unused variable 'info' [-Wunused-variable] struct lxi_info_t info; ^ make[1]: *** [lxi-lxi.o] Error 1 make[1]: Leaving directory `/builddir/build/BUILD/lxi-tools-1.5/src' make: *** [all-recursive] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.e1PgKa (%build) Bad exit status from /var/tmp/rpm-tmp.e1PgKa (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/lxi-tools.spec