+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/mingw-w64-tools.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild warning: Macro expanded in comment on line 3: (echo %snapshot_rev | cut -c1-6) Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.IEVtmJ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mingw-w64-v5.0.2 + /usr/bin/tar -xof - + /usr/bin/bzip2 -dc /builddir/build/SOURCES/mingw-w64-v5.0.2.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd mingw-w64-v5.0.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (mingw-w64-tools-2.0.999-s390.patch):' Patch #0 (mingw-w64-tools-2.0.999-s390.patch): + /usr/bin/patch --no-backup-if-mismatch -p2 -b --suffix .s390 --fuzz=0 patching file mingw-w64-tools/widl/include/basetsd.h Hunk #2 succeeded at 313 (offset 8 lines). patching file mingw-w64-tools/widl/include/winnt.h Hunk #1 succeeded at 2016 (offset 106 lines). + echo 'Patch #1 (mingw-w64-tools-widl-includedir.patch):' Patch #1 (mingw-w64-tools-widl-includedir.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .widl-includedir --fuzz=0 patching file mingw-w64-tools/widl/Makefile.am patching file mingw-w64-tools/widl/Makefile.in + echo 'Patch #2 (0001-genpeimg.c-pass_args-add-a-fallthru-comment-in-the-s.patch):' Patch #2 (0001-genpeimg.c-pass_args-add-a-fallthru-comment-in-the-s.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file mingw-w64-tools/genpeimg/src/genpeimg.c + echo 'Patch #3 (0002-gendef.c-getMemonic-add-fallthru-comments-in-the-swi.patch):' Patch #3 (0002-gendef.c-getMemonic-add-fallthru-comments-in-the-swi.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file mingw-w64-tools/gendef/src/gendef.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.YivPPY + umask 022 + cd /builddir/build/BUILD + cd mingw-w64-v5.0.2 + pushd mingw-w64-tools ~/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools ~/build/BUILD/mingw-w64-v5.0.2 + pushd gendef ~/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/gendef ~/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools ~/build/BUILD/mingw-w64-v5.0.2 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./build-aux/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./build-aux/config.sub ++ basename ./build-aux/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./build-aux/config.sub '/usr/lib/rpm/redhat/config.sub' -> './build-aux/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./build-aux/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./build-aux/config.guess ++ basename ./build-aux/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./build-aux/config.guess '/usr/lib/rpm/redhat/config.guess' -> './build-aux/config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-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/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /builddir/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/gendef/build-aux/missing: Unknown '--is-lightweight' option Try '/builddir/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/gendef/build-aux/missing --help' for more information configure: WARNING: 'missing' script is too old or missing 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 to enable maintainer-specific portions of Makefiles... no checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking for riscv64-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 for style of include used by make... GNU checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/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 for inttypes.h... (cached) yes checking for memory.h... (cached) yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for int32_t... yes checking for size_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for memset... yes checking for strdup... yes checking for strrchr... yes checking for strlwr... no checking whether to build gendef with libmangle... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands + make -j4 make all-am make[1]: Entering directory '/builddir/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/gendef' gcc -DHAVE_CONFIG_H -I. -Werror -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/gendef-gendef.o `test -f 'src/gendef.c' || echo './'`src/gendef.c gcc -DHAVE_CONFIG_H -I. -Werror -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/gendef-gendef_def.o `test -f 'src/gendef_def.c' || echo './'`src/gendef_def.c gcc -DHAVE_CONFIG_H -I. -Werror -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/gendef-compat_string.o `test -f 'src/compat_string.c' || echo './'`src/compat_string.c gcc -DHAVE_CONFIG_H -I. -Werror -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/gendef-fsredir.o `test -f 'src/fsredir.c' || echo './'`src/fsredir.c gcc -Werror -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -o gendef src/gendef-gendef.o src/gendef-gendef_def.o src/gendef-compat_string.o src/gendef-fsredir.o make[1]: Leaving directory '/builddir/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/gendef' + popd ~/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools ~/build/BUILD/mingw-w64-v5.0.2 + pushd genidl ~/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/genidl ~/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools ~/build/BUILD/mingw-w64-v5.0.2 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./build-aux/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./build-aux/config.sub ++ basename ./build-aux/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./build-aux/config.sub '/usr/lib/rpm/redhat/config.sub' -> './build-aux/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./build-aux/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./build-aux/config.guess ++ basename ./build-aux/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./build-aux/config.guess '/usr/lib/rpm/redhat/config.guess' -> './build-aux/config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-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/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /builddir/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/genidl/build-aux/missing: Unknown '--is-lightweight' option Try '/builddir/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/genidl/build-aux/missing --help' for more information configure: WARNING: 'missing' script is too old or missing 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 to enable maintainer-specific portions of Makefiles... no checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking for riscv64-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 for style of include used by make... GNU checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/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 malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for memory.h... (cached) yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for size_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for memset... yes checking for strchr... yes checking for strdup... yes checking for strrchr... yes checking for strstr... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands + make -j4 make all-am make[1]: Entering directory '/builddir/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/genidl' gcc -DHAVE_CONFIG_H -I. -O3 -g -std=gnu99 -Wall -Wextra -Wshadow -Wformat -Wpacked -Wredundant-decls -Winline -pedantic -Wno-pedantic-ms-format -Wmissing-declarations -Wredundant-decls -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes -Wstrict-aliasing=2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/genidl-genidl_config.o `test -f 'src/genidl_config.c' || echo './'`src/genidl_config.c gcc -DHAVE_CONFIG_H -I. -O3 -g -std=gnu99 -Wall -Wextra -Wshadow -Wformat -Wpacked -Wredundant-decls -Winline -pedantic -Wno-pedantic-ms-format -Wmissing-declarations -Wredundant-decls -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes -Wstrict-aliasing=2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/genidl-genidl_typinfo.o `test -f 'src/genidl_typinfo.c' || echo './'`src/genidl_typinfo.c gcc -DHAVE_CONFIG_H -I. -O3 -g -std=gnu99 -Wall -Wextra -Wshadow -Wformat -Wpacked -Wredundant-decls -Winline -pedantic -Wno-pedantic-ms-format -Wmissing-declarations -Wredundant-decls -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes -Wstrict-aliasing=2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/genidl-genidl_typeinfo.o `test -f 'src/genidl_typeinfo.c' || echo './'`src/genidl_typeinfo.c gcc -DHAVE_CONFIG_H -I. -O3 -g -std=gnu99 -Wall -Wextra -Wshadow -Wformat -Wpacked -Wredundant-decls -Winline -pedantic -Wno-pedantic-ms-format -Wmissing-declarations -Wredundant-decls -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes -Wstrict-aliasing=2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/genidl-genidl_readpe.o `test -f 'src/genidl_readpe.c' || echo './'`src/genidl_readpe.c src/genidl_config.c: In function 'parseTableSub': src/genidl_config.c:424:10: warning: variable 'exps' set but not used [-Wunused-but-set-variable] char **exps; ^~~~ src/genidl_config.c:423:10: warning: variable 'alias' set but not used [-Wunused-but-set-variable] char **alias = NULL; ^~~~~ src/genidl_readpe.c: In function 'readResourceDirectory': src/genidl_readpe.c:185:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&hdr.hdr64, 1, sizeof (sImgNtHeaders64), fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/genidl_readpe.c:191:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&hdr.hdr32, 1, sizeof (sImgNtHeaders32), fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/genidl_readpe.c:199:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (&sec, 1, sizeof (sImgSectionHdr),fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/genidl_readpe.c:205:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (dta[0], 1, res_size, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/genidl_typinfo.c: In function 'getVT_data': src/genidl_typinfo.c:530:31: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'int64_t {aka long int}' [-Wformat=] sprintf (s,"(LONGLONG) %lldLL", *((int64_t *) dta)); break; ~~~^ ~~~~~~~~~~~~~~~~~~ %ld src/genidl_typinfo.c:536:30: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t {aka long unsigned int}' [-Wformat=] sprintf (s,"(ULONGLONG) %lluULL", *((uint64_t *) dta)); break; ~~~^ ~~~~~~~~~~~~~~~~~~~ %lu src/genidl_typinfo.c:549:25: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'int64_t {aka long int}' [-Wformat=] sprintf (s,"(CY) %lldLL", *((int64_t *) dta)); break; ~~~^ ~~~~~~~~~~~~~~~~~~ %ld src/genidl_typeinfo.c: In function 'printVTData': src/genidl_typeinfo.c:1055:24: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'int64_t {aka long int}' [-Wformat=] fprintf (fp," = %lldLL", *((int64_t *) dta)); break; ~~~^ ~~~~~~~~~~~~~~~~~~ %ld src/genidl_typeinfo.c:1061:22: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t {aka long unsigned int}' [-Wformat=] fprintf (fp," = %lluULL", *((uint64_t *) dta)); break; ~~~^ ~~~~~~~~~~~~~~~~~~~ %lu src/genidl_typeinfo.c:1075:24: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'int64_t {aka long int}' [-Wformat=] fprintf (fp," = %lldLL", *((int64_t *) dta)); break; ~~~^ ~~~~~~~~~~~~~~~~~~ %ld src/genidl_readpe.c: At top level: cc1: warning: unrecognized command line option '-Wno-pedantic-ms-format' gcc -DHAVE_CONFIG_H -I. -O3 -g -std=gnu99 -Wall -Wextra -Wshadow -Wformat -Wpacked -Wredundant-decls -Winline -pedantic -Wno-pedantic-ms-format -Wmissing-declarations -Wredundant-decls -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes -Wstrict-aliasing=2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/genidl-genidl_dumpidl.o `test -f 'src/genidl_dumpidl.c' || echo './'`src/genidl_dumpidl.c src/genidl_dumpidl.c: In function 'fill_typb': src/genidl_dumpidl.c:212:23: warning: variable 'pData' set but not used [-Wunused-but-set-variable] uint32_t oVars = 0, *pData, *pCustomData = NULL; ^~~~~ src/genidl_dumpidl.c: In function 'TI2_typlib_enumerations': src/genidl_dumpidl.c:731:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (*guard != 0) ^~ src/genidl_dumpidl.c:733:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' free (guard); ^~~~ src/genidl_dumpidl.c: In function 'TI2_typlib_structures': src/genidl_dumpidl.c:914:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (*guard != 0) ^~ src/genidl_dumpidl.c:916:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' free (guard); ^~~~ src/genidl_config.c: At top level: cc1: warning: unrecognized command line option '-Wno-pedantic-ms-format' gcc -DHAVE_CONFIG_H -I. -O3 -g -std=gnu99 -Wall -Wextra -Wshadow -Wformat -Wpacked -Wredundant-decls -Winline -pedantic -Wno-pedantic-ms-format -Wmissing-declarations -Wredundant-decls -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes -Wstrict-aliasing=2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/genidl-fsredir.o `test -f 'src/fsredir.c' || echo './'`src/fsredir.c src/fsredir.c:60:0: warning: ISO C forbids an empty translation unit [-Wpedantic] #endif cc1: warning: unrecognized command line option '-Wno-pedantic-ms-format' gcc -DHAVE_CONFIG_H -I. -O3 -g -std=gnu99 -Wall -Wextra -Wshadow -Wformat -Wpacked -Wredundant-decls -Winline -pedantic -Wno-pedantic-ms-format -Wmissing-declarations -Wredundant-decls -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes -Wstrict-aliasing=2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/genidl-genidl.o `test -f 'src/genidl.c' || echo './'`src/genidl.c src/genidl_typinfo.c: At top level: cc1: warning: unrecognized command line option '-Wno-pedantic-ms-format' src/genidl_dumpidl.c: At top level: cc1: warning: unrecognized command line option '-Wno-pedantic-ms-format' src/genidl_typeinfo.c: At top level: cc1: warning: unrecognized command line option '-Wno-pedantic-ms-format' gcc -O3 -g -std=gnu99 -Wall -Wextra -Wshadow -Wformat -Wpacked -Wredundant-decls -Winline -pedantic -Wno-pedantic-ms-format -Wmissing-declarations -Wredundant-decls -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes -Wstrict-aliasing=2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o genidl src/genidl-genidl_config.o src/genidl-genidl_typinfo.o src/genidl-genidl_typeinfo.o src/genidl-genidl_readpe.o src/genidl-genidl_dumpidl.o src/genidl-fsredir.o src/genidl-genidl.o make[1]: Leaving directory '/builddir/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/genidl' + popd ~/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools ~/build/BUILD/mingw-w64-v5.0.2 + pushd widl ~/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/widl ~/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools ~/build/BUILD/mingw-w64-v5.0.2 + mkdir win32 + pushd win32 ~/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/widl/win32 ~/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools/widl ~/build/BUILD/mingw-w64-v5.0.2/mingw-w64-tools ~/build/BUILD/mingw-w64-v5.0.2 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ../configure ++ find .. -name config.guess -o -name config.sub + for i in $(find $(dirname ../configure) -name config.guess -o -name config.sub) ++ basename ../build-aux/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ../build-aux/config.sub ++ basename ../build-aux/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ../build-aux/config.sub '/usr/lib/rpm/redhat/config.sub' -> '../build-aux/config.sub' + for i in $(find $(dirname ../configure) -name config.guess -o -name config.sub) ++ basename ../build-aux/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ../build-aux/config.guess ++ basename ../build-aux/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ../build-aux/config.guess '/usr/lib/rpm/redhat/config.guess' -> '../build-aux/config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ../configure --build=riscv64-redhat-linux-gnu --host=riscv64-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/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --target=i686-w64-mingw32 --program-prefix=i686-w64-mingw32- checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking target system type... i686-w64-mingw32 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 to enable maintainer-specific portions of Makefiles... no checking for riscv64-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 for style of include used by make... GNU checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/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 getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking io.h usability... no checking io.h presence... no checking for io.h... no checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for inttypes.h... (cached) yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for inline... inline checking for int16_t... yes checking for int32_t... yes checking for int8_t... yes checking for off_t... yes checking for size_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint8_t... yes checking for long long... yes checking for error_at_line... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for working strtod... yes checking for atexit... yes checking for gettimeofday... yes checking for getopt_long_only... yes checking for memmove... yes checking for memset... yes checking for mkstemps... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strerror... yes checking for strncasecmp... yes checking for strrchr... yes checking for strtol... yes checking for strtoul... yes checking for strtoull... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating include/config.h config.status: executing depfiles commands + make -j4 gcc -DHAVE_CONFIG_H -I. -I.. -I./include -I../include -DDEFAULT_INCLUDE_DIR=\"/usr/i686-w64-mingw32/sys-root/mingw/include\" -DDEFAULT_BINDIR=\"/usr/bin\" -Wall -Wformat -Wpacked -Wmissing-declarations -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-aliasing=2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/widl-pathtools.o `test -f 'src/pathtools.c' || echo '../'`src/pathtools.c gcc -DHAVE_CONFIG_H -I. -I.. -I./include -I../include -DDEFAULT_INCLUDE_DIR=\"/usr/i686-w64-mingw32/sys-root/mingw/include\" -DDEFAULT_BINDIR=\"/usr/bin\" -Wall -Wformat -Wpacked -Wmissing-declarations -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-aliasing=2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/widl-client.o `test -f 'src/client.c' || echo '../'`src/client.c gcc -DHAVE_CONFIG_H -I. -I.. -I./include -I../include -DDEFAULT_INCLUDE_DIR=\"/usr/i686-w64-mingw32/sys-root/mingw/include\" -DDEFAULT_BINDIR=\"/usr/bin\" -Wall -Wformat -Wpacked -Wmissing-declarations -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-aliasing=2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/widl-expr.o `test -f 'src/expr.c' || echo '../'`src/expr.c gcc -DHAVE_CONFIG_H -I. -I.. -I./include -I../include -DDEFAULT_INCLUDE_DIR=\"/usr/i686-w64-mingw32/sys-root/mingw/include\" -DDEFAULT_BINDIR=\"/usr/bin\" -Wall -Wformat -Wpacked -Wmissing-declarations -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-aliasing=2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o src/widl-hash.o `test -f 'src/hash.c' || echo '../'`src/hash.c In file included from ../include/winnt.h:24:0, from ../include/windef.h:252, from ../src/hash.c:24: ../include/basetsd.h:321:3: error: #error Unknown CPU architecture! # error Unknown CPU architecture! ^~~~~ In file included from ../include/windef.h:252:0, from ../src/hash.c:24: ../include/winnt.h:2050:2: error: #error You need to define a CONTEXT for your CPU #error You need to define a CONTEXT for your CPU ^~~~~ ../include/winnt.h:2053:9: error: unknown type name 'CONTEXT' typedef CONTEXT *PCONTEXT; ^~~~~~~ ../include/winnt.h:2055:40: error: unknown type name 'CONTEXT'; did you mean 'PCONTEXT'? NTSYSAPI void WINAPI RtlCaptureContext(CONTEXT*); ^~~~~~~ PCONTEXT ../src/pathtools.c: In function 'pathlist_relocation': ../src/pathtools.c:549:10: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return (to_path_list); ^ ../src/expr.c: In function 'resolve_expression': ../src/expr.c:570:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!result.is_variable) ^~ ../src/expr.c:574:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' result.is_variable = FALSE; ^~~~~~ In file included from ../src/hash.c:25:0: ../include/winbase.h:1876:55: error: unknown type name 'CONTEXT'; did you mean 'PCONTEXT'? WINBASEAPI BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *); ^~~~~~~ PCONTEXT ../include/winbase.h:2221:61: error: unknown type name 'CONTEXT' WINBASEAPI BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *); ^~~~~~~ make: *** [Makefile:534: src/widl-hash.o] Error 1 make: *** Waiting for unfinished jobs.... error: Bad exit status from /var/tmp/rpm-tmp.YivPPY (%build) RPM build errors: Macro expanded in comment on line 3: (echo %snapshot_rev | cut -c1-6) Bad exit status from /var/tmp/rpm-tmp.YivPPY (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff