D: [iurt_root_command] chroot Building target platforms: noarch Building for target noarch sh: line 4: [: -j8: integer expected Installing /home/pterjan/rpmbuild/SRPMS/mingw-p11-kit-0.23.20-4.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.iwbPW0 sh: line 4: [: -j8: integer expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.e2tN4S + umask 022 + cd /home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build + rm -rf p11-kit-0.23.20 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/p11-kit-0.23.20.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd p11-kit-0.23.20 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.h9kOTx + umask 022 + cd /home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd p11-kit-0.23.20 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + run_mingw_meson + mkdir -p build_win32 + pushd build_win32 ~/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20/build_win32 ~/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20 ++ /usr/bin/env ++ grep -E '^(w+)=(.*)$' ++ grep -Evw 'PWD|USER|LANG' ++ /usr/bin/cut -d= -f1 + unset + test -z '' + PATH_ORIG=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin + export PATH_ORIG + PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin + export PATH + HOST_CC=gcc + export HOST_CC + unset PKG_CONFIG_PATH + _PREFIX=/usr/bin/i686-w64-mingw32- ++ grep -v gcc- ++ ls -1 /usr/bin/i686-w64-mingw32-addr2line /usr/bin/i686-w64-mingw32-ar /usr/bin/i686-w64-mingw32-as /usr/bin/i686-w64-mingw32-c++filt /usr/bin/i686-w64-mingw32-cpp /usr/bin/i686-w64-mingw32-dlltool /usr/bin/i686-w64-mingw32-dllwrap /usr/bin/i686-w64-mingw32-elfedit /usr/bin/i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-15.1.1 /usr/bin/i686-w64-mingw32-gcc-ar /usr/bin/i686-w64-mingw32-gcc-nm /usr/bin/i686-w64-mingw32-gcc-ranlib /usr/bin/i686-w64-mingw32-gcov /usr/bin/i686-w64-mingw32-gcov-dump /usr/bin/i686-w64-mingw32-gcov-tool /usr/bin/i686-w64-mingw32-gprof /usr/bin/i686-w64-mingw32-ld /usr/bin/i686-w64-mingw32-ld.bfd /usr/bin/i686-w64-mingw32-lto-dump /usr/bin/i686-w64-mingw32-nm /usr/bin/i686-w64-mingw32-objcopy /usr/bin/i686-w64-mingw32-objdump /usr/bin/i686-w64-mingw32-pkg-config /usr/bin/i686-w64-mingw32-ranlib /usr/bin/i686-w64-mingw32-readelf /usr/bin/i686-w64-mingw32-size /usr/bin/i686-w64-mingw32-strings /usr/bin/i686-w64-mingw32-strip /usr/bin/i686-w64-mingw32-windmc /usr/bin/i686-w64-mingw32-windres + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-addr2line ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=ADDR2LINE + declare -x ADDR2LINE=/usr/bin/i686-w64-mingw32-addr2line + export ADDR2LINE + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-ar ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=AR + declare -x AR=/usr/bin/i686-w64-mingw32-ar + export AR + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-as ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=AS + declare -x AS=/usr/bin/i686-w64-mingw32-as + export AS + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-c++filt ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=CXXFILT + declare -x CXXFILT=/usr/bin/i686-w64-mingw32-c++filt + export CXXFILT + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-cpp ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=CPP + declare -x CPP=/usr/bin/i686-w64-mingw32-cpp + export CPP + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-dlltool ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=DLLTOOL + declare -x DLLTOOL=/usr/bin/i686-w64-mingw32-dlltool + export DLLTOOL + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-dllwrap ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=DLLWRAP + declare -x DLLWRAP=/usr/bin/i686-w64-mingw32-dllwrap + export DLLWRAP + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-elfedit ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=ELFEDIT + declare -x ELFEDIT=/usr/bin/i686-w64-mingw32-elfedit + export ELFEDIT + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-gcc ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=GCC + declare -x GCC=/usr/bin/i686-w64-mingw32-gcc + export GCC + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-gcov ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=GCOV + declare -x GCOV=/usr/bin/i686-w64-mingw32-gcov + export GCOV + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-gcov-dump ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=GCOV_DUMP + declare -x GCOV_DUMP=/usr/bin/i686-w64-mingw32-gcov-dump + export GCOV_DUMP + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-gcov-tool ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=GCOV_TOOL + declare -x GCOV_TOOL=/usr/bin/i686-w64-mingw32-gcov-tool + export GCOV_TOOL + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-gprof ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=GPROF + declare -x GPROF=/usr/bin/i686-w64-mingw32-gprof + export GPROF + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-ld ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=LD + declare -x LD=/usr/bin/i686-w64-mingw32-ld + export LD + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-ld.bfd ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=LD_BFD + declare -x LD_BFD=/usr/bin/i686-w64-mingw32-ld.bfd + export LD_BFD + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-lto-dump ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=LTO_DUMP + declare -x LTO_DUMP=/usr/bin/i686-w64-mingw32-lto-dump + export LTO_DUMP + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-nm ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=NM + declare -x NM=/usr/bin/i686-w64-mingw32-nm + export NM + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-objcopy ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=OBJCOPY + declare -x OBJCOPY=/usr/bin/i686-w64-mingw32-objcopy + export OBJCOPY + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-objdump ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=OBJDUMP + declare -x OBJDUMP=/usr/bin/i686-w64-mingw32-objdump + export OBJDUMP + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-pkg-config ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=PKG_CONFIG + declare -x PKG_CONFIG=/usr/bin/i686-w64-mingw32-pkg-config + export PKG_CONFIG + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-ranlib ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=RANLIB + declare -x RANLIB=/usr/bin/i686-w64-mingw32-ranlib + export RANLIB + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-readelf ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=READELF + declare -x READELF=/usr/bin/i686-w64-mingw32-readelf + export READELF + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-size ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=SIZE + declare -x SIZE=/usr/bin/i686-w64-mingw32-size + export SIZE + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-strings ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=STRINGS + declare -x STRINGS=/usr/bin/i686-w64-mingw32-strings + export STRINGS + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-strip ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=STRIP + declare -x STRIP=/usr/bin/i686-w64-mingw32-strip + export STRIP + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-windmc ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=WINDMC + declare -x WINDMC=/usr/bin/i686-w64-mingw32-windmc + export WINDMC + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/i686-w64-mingw32-windres ++ sed s,/usr/bin/i686-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=WINDRES + declare -x WINDRES=/usr/bin/i686-w64-mingw32-windres + export WINDRES + unset _PREFIX + CC=i686-w64-mingw32-gcc + export CC + CFLAGS=' -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' + export CFLAGS + CPPFLAGS= + export CPPFLAGS + '[' -x /usr/bin/i686-w64-mingw32-g++ ']' + CXX= + export CXX + ac_cv_prog_CXX=no + export ac_cv_prog_CXX + CXXFLAGS= + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' + export FCFLAGS + LDFLAGS='-fstack-protector -lssp' + export LDFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS ++ ls /usr/i686-w64-mingw32/sys-root/mingw/bin/libatomic-1.dll /usr/i686-w64-mingw32/sys-root/mingw/bin/libffi-8.dll /usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_dw2-1.dll /usr/i686-w64-mingw32/sys-root/mingw/bin/libssp-0.dll /usr/i686-w64-mingw32/sys-root/mingw/bin/libtasn1-6.dll /usr/i686-w64-mingw32/sys-root/mingw/bin/libwinpthread-1.dll ++ grep -- '-config$' + unset x i + unset CC CFLAGS CPPFLAGS CXX CXXFLAGS LD LDFLAGS + CFLAGS=' -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' + export CFLAGS + CPPFLAGS= + export CPPFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' + export FCFLAGS + LDFLAGS='-fstack-protector -lssp' + export LDFLAGS + test -f meson.build + test -f ../meson.build + __mingw32_topdir=.. + /usr/bin/meson setup --cross-file /usr/share/mingw/toolchain-mingw32.meson --default-library shared --prefix /usr/i686-w64-mingw32/sys-root/mingw --bindir /usr/i686-w64-mingw32/sys-root/mingw/bin --sbindir /usr/i686-w64-mingw32/sys-root/mingw/sbin --sysconfdir /usr/i686-w64-mingw32/sys-root/mingw/etc --datadir /usr/i686-w64-mingw32/sys-root/mingw/share --includedir /usr/i686-w64-mingw32/sys-root/mingw/include --libdir /usr/i686-w64-mingw32/sys-root/mingw/lib --libexecdir /usr/i686-w64-mingw32/sys-root/mingw/libexec --localstatedir /usr/i686-w64-mingw32/sys-root/mingw/var --sharedstatedir /usr/i686-w64-mingw32/sys-root/mingw/com --mandir /usr/i686-w64-mingw32/sys-root/mingw/share/man --infodir /usr/i686-w64-mingw32/sys-root/mingw/share/info .. The Meson build system Version: 1.8.2 Source dir: /home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20 Build dir: /home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20/build_win32 Build type: cross build Project name: p11-kit Project version: 0.23.20 C compiler for the host machine: i686-w64-mingw32-gcc (gcc 15.1.1 "i686-w64-mingw32-gcc (GCC) 15.1.1 20250521 (Mageia MinGW 15.1.1-1.mga10)") C linker for the host machine: i686-w64-mingw32-gcc ld.bfd 2.44-1 C compiler for the build machine: cc (gcc 15.1.0 "cc (Mageia 15.1.0-1.mga10) 15.1.0") C linker for the build machine: cc ld.bfd 2.44 Build machine cpu family: x86_64 Build machine cpu: x86_64 Host machine cpu family: x86 Host machine cpu: i686 Target machine cpu family: x86 Target machine cpu: i686 Checking for size of "unsigned long" : 4 Has header "stdbool.h" : YES Checking for function "asprintf" : YES Checking for function "basename" : YES Checking for function "memdup" : NO Checking for function "reallocarray" : NO Checking for function "secure_getenv" : NO Checking for function "setenv" : NO Checking for function "strerror_r" : NO Checking for function "strnstr" : NO Checking for function "vasprintf" : YES Header "errno.h" has symbol "program_invocation_short_name" : NO Header "stdio.h" has symbol "asprintf" : YES Header "stdio.h" has symbol "vasprintf" : YES Header "stdlib.h" has symbol "reallocarray" : NO Found pkg-config: YES (/usr/bin/i686-w64-mingw32-pkg-config) 2.3.0 Run-time dependency libffi found: YES 3.5.1 Run-time dependency libtasn1 found: YES 4.20.0 Program asn1Parser found: YES (/usr/bin/asn1Parser) Found CMake: NO Run-time dependency libsystemd found: NO (tried pkgconfig and cmake) Run-time dependency systemd found: NO (tried pkgconfig and cmake) Configuring config.h using configuration Compiler for C supports link arguments -Wl,--version-script,/home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20/p11-kit/libp11-kit.map: YES Compiler for C supports link arguments -Wl,--version-script,/home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20/p11-kit/p11-module.map: YES Program gen-pkcs11-gnu.sh found: YES (/home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20/p11-kit/gen-pkcs11-gnu.sh) Configuring pkcs11.conf.example using configuration Program msgfmt found: YES (/usr/bin/msgfmt) Program msginit found: YES (/usr/bin/msginit) Program msgmerge found: YES (/usr/bin/msgmerge) Program xgettext found: YES (/usr/bin/xgettext) Run-time dependency bash-completion found: NO (tried pkgconfig and cmake) ../bash-completion/meson.build:10: WARNING: Will not install bash completion due to missing dependencies! Build targets in project: 163 p11-kit 0.23.20 User defined options Cross files : /usr/share/mingw/toolchain-mingw32.meson bindir : /usr/i686-w64-mingw32/sys-root/mingw/bin datadir : /usr/i686-w64-mingw32/sys-root/mingw/share default_library: shared includedir : /usr/i686-w64-mingw32/sys-root/mingw/include infodir : /usr/i686-w64-mingw32/sys-root/mingw/share/info libdir : /usr/i686-w64-mingw32/sys-root/mingw/lib libexecdir : /usr/i686-w64-mingw32/sys-root/mingw/libexec localstatedir : /usr/i686-w64-mingw32/sys-root/mingw/var mandir : /usr/i686-w64-mingw32/sys-root/mingw/share/man prefix : /usr/i686-w64-mingw32/sys-root/mingw sbindir : /usr/i686-w64-mingw32/sys-root/mingw/sbin sharedstatedir : /usr/i686-w64-mingw32/sys-root/mingw/com sysconfdir : /usr/i686-w64-mingw32/sys-root/mingw/etc Found ninja-1.12.1 at /usr/bin/ninja + popd ~/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20 + mkdir -p build_win64 + pushd build_win64 ~/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20/build_win64 ~/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20 ++ /usr/bin/env ++ grep -E '^(w+)=(.*)$' ++ grep -Evw 'PWD|USER|LANG' ++ /usr/bin/cut -d= -f1 + unset + test -z /usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin + PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin + export PATH + HOST_CC=gcc + export HOST_CC + unset PKG_CONFIG_PATH + _PREFIX=/usr/bin/x86_64-w64-mingw32- ++ grep -v gcc- ++ ls -1 /usr/bin/x86_64-w64-mingw32-addr2line /usr/bin/x86_64-w64-mingw32-ar /usr/bin/x86_64-w64-mingw32-as /usr/bin/x86_64-w64-mingw32-c++filt /usr/bin/x86_64-w64-mingw32-cpp /usr/bin/x86_64-w64-mingw32-dlltool /usr/bin/x86_64-w64-mingw32-dllwrap /usr/bin/x86_64-w64-mingw32-elfedit /usr/bin/x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-15.1.1 /usr/bin/x86_64-w64-mingw32-gcc-ar /usr/bin/x86_64-w64-mingw32-gcc-nm /usr/bin/x86_64-w64-mingw32-gcc-ranlib /usr/bin/x86_64-w64-mingw32-gcov /usr/bin/x86_64-w64-mingw32-gcov-dump /usr/bin/x86_64-w64-mingw32-gcov-tool /usr/bin/x86_64-w64-mingw32-gprof /usr/bin/x86_64-w64-mingw32-ld /usr/bin/x86_64-w64-mingw32-ld.bfd /usr/bin/x86_64-w64-mingw32-lto-dump /usr/bin/x86_64-w64-mingw32-nm /usr/bin/x86_64-w64-mingw32-objcopy /usr/bin/x86_64-w64-mingw32-objdump /usr/bin/x86_64-w64-mingw32-pkg-config /usr/bin/x86_64-w64-mingw32-ranlib /usr/bin/x86_64-w64-mingw32-readelf /usr/bin/x86_64-w64-mingw32-size /usr/bin/x86_64-w64-mingw32-strings /usr/bin/x86_64-w64-mingw32-strip /usr/bin/x86_64-w64-mingw32-windmc /usr/bin/x86_64-w64-mingw32-windres + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-addr2line ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=ADDR2LINE + declare -x ADDR2LINE=/usr/bin/x86_64-w64-mingw32-addr2line + export ADDR2LINE + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-ar ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=AR + declare -x AR=/usr/bin/x86_64-w64-mingw32-ar + export AR + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-as ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=AS + declare -x AS=/usr/bin/x86_64-w64-mingw32-as + export AS + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-c++filt ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=CXXFILT + declare -x CXXFILT=/usr/bin/x86_64-w64-mingw32-c++filt + export CXXFILT + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-cpp ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=CPP + declare -x CPP=/usr/bin/x86_64-w64-mingw32-cpp + export CPP + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-dlltool ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=DLLTOOL + declare -x DLLTOOL=/usr/bin/x86_64-w64-mingw32-dlltool + export DLLTOOL + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-dllwrap ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=DLLWRAP + declare -x DLLWRAP=/usr/bin/x86_64-w64-mingw32-dllwrap + export DLLWRAP + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-elfedit ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=ELFEDIT + declare -x ELFEDIT=/usr/bin/x86_64-w64-mingw32-elfedit + export ELFEDIT + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-gcc ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=GCC + declare -x GCC=/usr/bin/x86_64-w64-mingw32-gcc + export GCC + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-gcov ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=GCOV + declare -x GCOV=/usr/bin/x86_64-w64-mingw32-gcov + export GCOV + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-gcov-dump ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=GCOV_DUMP + declare -x GCOV_DUMP=/usr/bin/x86_64-w64-mingw32-gcov-dump + export GCOV_DUMP + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-gcov-tool ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=GCOV_TOOL + declare -x GCOV_TOOL=/usr/bin/x86_64-w64-mingw32-gcov-tool + export GCOV_TOOL + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-gprof ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=GPROF + declare -x GPROF=/usr/bin/x86_64-w64-mingw32-gprof + export GPROF + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-ld ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=LD + declare -x LD=/usr/bin/x86_64-w64-mingw32-ld + export LD + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-ld.bfd ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=LD_BFD + declare -x LD_BFD=/usr/bin/x86_64-w64-mingw32-ld.bfd + export LD_BFD + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-lto-dump ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=LTO_DUMP + declare -x LTO_DUMP=/usr/bin/x86_64-w64-mingw32-lto-dump + export LTO_DUMP + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-nm ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=NM + declare -x NM=/usr/bin/x86_64-w64-mingw32-nm + export NM + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-objcopy ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=OBJCOPY + declare -x OBJCOPY=/usr/bin/x86_64-w64-mingw32-objcopy + export OBJCOPY + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-objdump ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=OBJDUMP + declare -x OBJDUMP=/usr/bin/x86_64-w64-mingw32-objdump + export OBJDUMP + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-pkg-config ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=PKG_CONFIG + declare -x PKG_CONFIG=/usr/bin/x86_64-w64-mingw32-pkg-config + export PKG_CONFIG + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-ranlib ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=RANLIB + declare -x RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib + export RANLIB + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-readelf ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=READELF + declare -x READELF=/usr/bin/x86_64-w64-mingw32-readelf + export READELF + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-size ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=SIZE + declare -x SIZE=/usr/bin/x86_64-w64-mingw32-size + export SIZE + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-strings ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=STRINGS + declare -x STRINGS=/usr/bin/x86_64-w64-mingw32-strings + export STRINGS + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-strip ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=STRIP + declare -x STRIP=/usr/bin/x86_64-w64-mingw32-strip + export STRIP + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-windmc ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=WINDMC + declare -x WINDMC=/usr/bin/x86_64-w64-mingw32-windmc + export WINDMC + for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'` ++ echo /usr/bin/x86_64-w64-mingw32-windres ++ sed s,/usr/bin/x86_64-w64-mingw32-,, ++ tr a-z+-. A-ZX__ + x=WINDRES + declare -x WINDRES=/usr/bin/x86_64-w64-mingw32-windres + export WINDRES + unset _PREFIX + CC=x86_64-w64-mingw32-gcc + export CC + CFLAGS=' -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' + export CFLAGS + CPPFLAGS= + export CPPFLAGS + '[' -x /usr/bin/x86_64-w64-mingw32-g++ ']' + CXX= + export CXX + ac_cv_prog_CXX=no + export ac_cv_prog_CXX + CXXFLAGS= + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' + export FCFLAGS + LDFLAGS='-fstack-protector -lssp' + export LDFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS ++ ls /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libatomic-1.dll /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libffi-8.dll /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgcc_s_seh-1.dll /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libssp-0.dll /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libtasn1-6.dll /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libwinpthread-1.dll ++ grep -- '-config$' + unset x i + unset CC CFLAGS CPPFLAGS CXX CXXFLAGS LD LDFLAGS + CFLAGS=' -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' + export CFLAGS + CPPFLAGS= + export CPPFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' + export FCFLAGS + LDFLAGS='-fstack-protector -lssp' + export LDFLAGS + test -f meson.build + test -f ../meson.build + __mingw64_topdir=.. + /usr/bin/meson setup --cross-file /usr/share/mingw/toolchain-mingw64.meson --default-library shared --prefix /usr/x86_64-w64-mingw32/sys-root/mingw --bindir /usr/x86_64-w64-mingw32/sys-root/mingw/bin --sbindir /usr/x86_64-w64-mingw32/sys-root/mingw/sbin --sysconfdir /usr/x86_64-w64-mingw32/sys-root/mingw/etc --datadir /usr/x86_64-w64-mingw32/sys-root/mingw/share --includedir /usr/x86_64-w64-mingw32/sys-root/mingw/include --libdir /usr/x86_64-w64-mingw32/sys-root/mingw/lib --libexecdir /usr/x86_64-w64-mingw32/sys-root/mingw/libexec --localstatedir /usr/x86_64-w64-mingw32/sys-root/mingw/var --sharedstatedir /usr/x86_64-w64-mingw32/sys-root/mingw/com --mandir /usr/x86_64-w64-mingw32/sys-root/mingw/share/man --infodir /usr/x86_64-w64-mingw32/sys-root/mingw/share/info .. The Meson build system Version: 1.8.2 Source dir: /home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20 Build dir: /home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20/build_win64 Build type: cross build Project name: p11-kit Project version: 0.23.20 C compiler for the host machine: x86_64-w64-mingw32-gcc (gcc 15.1.1 "x86_64-w64-mingw32-gcc (GCC) 15.1.1 20250521 (Mageia MinGW 15.1.1-1.mga10)") C linker for the host machine: x86_64-w64-mingw32-gcc ld.bfd 2.44-1 C compiler for the build machine: cc (gcc 15.1.0 "cc (Mageia 15.1.0-1.mga10) 15.1.0") C linker for the build machine: cc ld.bfd 2.44 Build machine cpu family: x86_64 Build machine cpu: x86_64 Host machine cpu family: x86_64 Host machine cpu: x86_64 Target machine cpu family: x86_64 Target machine cpu: x86_64 Checking for size of "unsigned long" : 4 Has header "stdbool.h" : YES Checking for function "asprintf" : YES Checking for function "basename" : YES Checking for function "memdup" : NO Checking for function "reallocarray" : NO Checking for function "secure_getenv" : NO Checking for function "setenv" : NO Checking for function "strerror_r" : NO Checking for function "strnstr" : NO Checking for function "vasprintf" : YES Header "errno.h" has symbol "program_invocation_short_name" : NO Header "stdio.h" has symbol "asprintf" : YES Header "stdio.h" has symbol "vasprintf" : YES Header "stdlib.h" has symbol "reallocarray" : NO Found pkg-config: YES (/usr/bin/x86_64-w64-mingw32-pkg-config) 2.3.0 Run-time dependency libffi found: YES 3.5.1 Run-time dependency libtasn1 found: YES 4.20.0 Program asn1Parser found: YES (/usr/bin/asn1Parser) Found CMake: NO Run-time dependency libsystemd found: NO (tried pkgconfig and cmake) Run-time dependency systemd found: NO (tried pkgconfig and cmake) Configuring config.h using configuration Compiler for C supports link arguments -Wl,--version-script,/home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20/p11-kit/libp11-kit.map: YES Compiler for C supports link arguments -Wl,--version-script,/home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20/p11-kit/p11-module.map: YES Program gen-pkcs11-gnu.sh found: YES (/home/pterjan/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20/p11-kit/gen-pkcs11-gnu.sh) Configuring pkcs11.conf.example using configuration Program msgfmt found: YES (/usr/bin/msgfmt) Program msginit found: YES (/usr/bin/msginit) Program msgmerge found: YES (/usr/bin/msgmerge) Program xgettext found: YES (/usr/bin/xgettext) Run-time dependency bash-completion found: NO (tried pkgconfig and cmake) ../bash-completion/meson.build:10: WARNING: Will not install bash completion due to missing dependencies! Build targets in project: 163 p11-kit 0.23.20 User defined options Cross files : /usr/share/mingw/toolchain-mingw64.meson bindir : /usr/x86_64-w64-mingw32/sys-root/mingw/bin datadir : /usr/x86_64-w64-mingw32/sys-root/mingw/share default_library: shared includedir : /usr/x86_64-w64-mingw32/sys-root/mingw/include infodir : /usr/x86_64-w64-mingw32/sys-root/mingw/share/info libdir : /usr/x86_64-w64-mingw32/sys-root/mingw/lib libexecdir : /usr/x86_64-w64-mingw32/sys-root/mingw/libexec localstatedir : /usr/x86_64-w64-mingw32/sys-root/mingw/var mandir : /usr/x86_64-w64-mingw32/sys-root/mingw/share/man prefix : /usr/x86_64-w64-mingw32/sys-root/mingw sbindir : /usr/x86_64-w64-mingw32/sys-root/mingw/sbin sharedstatedir : /usr/x86_64-w64-mingw32/sys-root/mingw/com sysconfdir : /usr/x86_64-w64-mingw32/sys-root/mingw/etc Found ninja-1.12.1 at /usr/bin/ninja + popd ~/rpmbuild/BUILD/mingw-p11-kit-0.23.20-build/p11-kit-0.23.20 + run_mingw_ninja + ninja -C build_win32 ninja: Entering directory `build_win32' [1/341] Generating 'trust/liblibtrust-data.a.p/basic.h' Done. [2/341] Generating 'trust/liblibtrust-data.a.p/pkix.h' ../trust/pkix.asn:119: Warning: NumericString is a built-in ASN.1 type. ../trust/pkix.asn:121: Warning: IA5String is a built-in ASN.1 type. ../trust/pkix.asn:123: Warning: TeletexString is a built-in ASN.1 type. ../trust/pkix.asn:125: Warning: PrintableString is a built-in ASN.1 type. ../trust/pkix.asn:127: Warning: UniversalString is a built-in ASN.1 type. ../trust/pkix.asn:130: Warning: BMPString is a built-in ASN.1 type. ../trust/pkix.asn:134: Warning: UTF8String is a built-in ASN.1 type. Done. [3/341] Generating 'trust/liblibtrust-data.a.p/openssl.h' ../trust/openssl.asn:25: Warning: UTF8String is a built-in ASN.1 type. Done. [4/341] Generating 'trust/trust.exe.p/basic.h' Done. [5/341] Generating 'trust/trust.exe.p/pkix.h' ../trust/pkix.asn:119: Warning: NumericString is a built-in ASN.1 type. ../trust/pkix.asn:121: Warning: IA5String is a built-in ASN.1 type. ../trust/pkix.asn:123: Warning: TeletexString is a built-in ASN.1 type. ../trust/pkix.asn:125: Warning: PrintableString is a built-in ASN.1 type. ../trust/pkix.asn:127: Warning: UniversalString is a built-in ASN.1 type. ../trust/pkix.asn:130: Warning: BMPString is a built-in ASN.1 type. ../trust/pkix.asn:134: Warning: UTF8String is a built-in ASN.1 type. Done. [6/341] Generating 'trust/trust.exe.p/openssl.h' ../trust/openssl.asn:25: Warning: UTF8String is a built-in ASN.1 type. Done. [7/341] Compiling C object p11-kit/libp11-kit-0.dll.p/messages.c.obj [8/341] Generating 'p11-kit/libp11-kit-pkcs11-gnu.a.p/pkcs11-gnu-iter.h' [9/341] Generating 'p11-kit/libp11-kit-pkcs11-gnu.a.p/pkcs11-gnu-pin.h' [10/341] Generating 'p11-kit/libp11-kit-pkcs11-gnu.a.p/pkcs11-gnu-uri.h' [11/341] Compiling C object common/libp11-common.a.p/runtime.c.obj [12/341] Compiling C object common/libp11-common.a.p/vsock.c.obj [13/341] Compiling C object common/libp11-common.a.p/hash.c.obj [14/341] Compiling C object p11-kit/libp11-kit-0.dll.p/proxy-init.c.obj [15/341] Compiling C object common/libp11-common.a.p/argv.c.obj [16/341] Compiling C object common/libp11-common.a.p/message.c.obj [17/341] Compiling C object common/libp11-common.a.p/url.c.obj [18/341] Compiling C object trust/liblibtrust-testable.a.p/session.c.obj [19/341] Compiling C object common/libp11-common.a.p/array.c.obj [20/341] Compiling C object common/libp11-common.a.p/constants.c.obj [21/341] Compiling C object common/libp11-common.a.p/debug.c.obj [22/341] Compiling C object p11-kit/libp11-kit-0.dll.p/util.c.obj [23/341] Compiling C object common/libp11-common.a.p/lexer.c.obj [24/341] Compiling C object common/libp11-library.a.p/library.c.obj FAILED: common/libp11-library.a.p/library.c.obj i686-w64-mingw32-gcc -Icommon/libp11-library.a.p -Icommon -I../common -I. -I.. -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -D_GNU_SOURCE -DP11_KIT_FUTURE_UNSTABLE_API -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -MD -MQ common/libp11-library.a.p/library.c.obj -MF common/libp11-library.a.p/library.c.obj.d -o common/libp11-library.a.p/library.c.obj -c ../common/library.c ../common/library.c:198:27: error: expected identifier or '(' before '=' token 198 | static DWORD thread_local = TLS_OUT_OF_INDEXES; | ^ ../common/library.c: In function '_p11_library_get_thread_local': ../common/library.c:207:26: error: expected identifier or '(' before '==' token 207 | if (thread_local == TLS_OUT_OF_INDEXES) | ^~ ../common/library.c:207:13: error: declaration in the controlling expression must have an initializer 207 | if (thread_local == TLS_OUT_OF_INDEXES) | ^~~~~~~~~~~~ ../common/library.c:210:29: error: expected expression before 'thread_local' 210 | data = TlsGetValue (thread_local); | ^~~~~~~~~~~~ ../common/library.c:213:30: error: expected expression before 'thread_local' 213 | TlsSetValue (thread_local, data); | ^~~~~~~~~~~~ ../common/library.c:213:17: error: too few arguments to function 'TlsSetValue'; expected 2, have 1 213 | TlsSetValue (thread_local, data); | ^~~~~~~~~~~ In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/winbase.h:29, from /usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:70, from ../common/compat.h:111, from ../common/library.c:40: /usr/i686-w64-mingw32/sys-root/mingw/include/processthreadsapi.h:317:29: note: declared here 317 | WINBASEAPI WINBOOL WINAPI TlsSetValue (DWORD dwTlsIndex, LPVOID lpTlsValue); | ^~~~~~~~~~~ ../common/library.c: In function 'p11_library_init': ../common/library.c:226:22: error: expected identifier or '(' before '=' token 226 | thread_local = TlsAlloc (); | ^ ../common/library.c:227:26: error: expected identifier or '(' before '==' token 227 | if (thread_local == TLS_OUT_OF_INDEXES) | ^~ ../common/library.c:227:13: error: declaration in the controlling expression must have an initializer 227 | if (thread_local == TLS_OUT_OF_INDEXES) | ^~~~~~~~~~~~ ../common/library.c: In function 'p11_library_thread_cleanup': ../common/library.c:237:26: error: expected identifier or '(' before '!=' token 237 | if (thread_local != TLS_OUT_OF_INDEXES) { | ^~ ../common/library.c:237:13: error: declaration in the controlling expression must have an initializer 237 | if (thread_local != TLS_OUT_OF_INDEXES) { | ^~~~~~~~~~~~ ../common/library.c:239:38: error: expected expression before 'thread_local' 239 | local = TlsGetValue (thread_local); | ^~~~~~~~~~~~ ../common/library.c: In function 'p11_library_uninit': ../common/library.c:251:26: error: expected identifier or '(' before '!=' token 251 | if (thread_local != TLS_OUT_OF_INDEXES) { | ^~ ../common/library.c:251:13: error: declaration in the controlling expression must have an initializer 251 | if (thread_local != TLS_OUT_OF_INDEXES) { | ^~~~~~~~~~~~ ../common/library.c:253:37: error: expected expression before 'thread_local' 253 | data = TlsGetValue (thread_local); | ^~~~~~~~~~~~ ../common/library.c:255:26: error: expected expression before 'thread_local' 255 | TlsFree (thread_local); | ^~~~~~~~~~~~ [25/341] Compiling C object common/test-tests.exe.p/test-tests.c.obj ../common/test-tests.c: In function 'test_memory': ../common/test-tests.c:66:22: warning: pointer 'mem' used after 'free' [-Wuse-after-free] 66 | *mem = 1; | ~~~~~^~~ ../common/test-tests.c:64:17: note: call to 'free' here 64 | free (mem); | ^~~~~~~~~~ [26/341] Compiling C object p11-kit/libp11-kit-0.dll.p/pin.c.obj [27/341] Compiling C object common/test-compat.exe.p/test-compat.c.obj ../common/test-compat.c: In function 'test_strndup': ../common/test-compat.c:55:15: warning: 'strndup' specified bound 6 exceeds source size 5 [-Wstringop-overread] 55 | res = strndup ("test", 6); | ^~~~~~~~~~~~~~~~~~~ [28/341] Compiling C object common/libp11-common.a.p/buffer.c.obj [29/341] Compiling C object common/libp11-tool.a.p/tool.c.obj [30/341] Compiling C object common/libp11-common.a.p/compat.c.obj In file included from ../common/compat.c:50: ../common/compat.c:127:15: warning: '__p___argv' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] 127 | extern char **__argv; | ^~~~~~ [31/341] Compiling C object trust/liblibtrust-testable.a.p/save.c.obj [32/341] Compiling C object trust/liblibtrust-test.a.p/test-trust.c.obj [33/341] Compiling C object trust/liblibtrust-data.a.p/asn1.c.obj [34/341] Compiling C object common/libp11-common.a.p/dict.c.obj [35/341] Compiling C object common/libp11-test.a.p/test.c.obj [36/341] Compiling C object trust/liblibtrust-data.a.p/oid.c.obj [37/341] Compiling C object common/test-hash.exe.p/test-hash.c.obj [38/341] Compiling C object trust/liblibtrust-data.a.p/pem.c.obj [39/341] Compiling C object trust/liblibtrust-data.a.p/base64.c.obj [40/341] Compiling C object trust/liblibtrust-data.a.p/utf8.c.obj [41/341] Compiling C object trust/liblibtrust-testable.a.p/persist.c.obj [42/341] Compiling C object trust/liblibtrust-testable.a.p/parser.c.obj [43/341] Compiling C object common/test-array.exe.p/test-array.c.obj [44/341] Compiling C object p11-kit/libp11-kit-0.dll.p/iter.c.obj [45/341] Compiling C object common/test-constants.exe.p/test-constants.c.obj [46/341] Compiling C object trust/liblibtrust-data.a.p/x509.c.obj [47/341] Compiling C object common/test-message.exe.p/test-message.c.obj [48/341] Compiling C object trust/liblibtrust-testable.a.p/token.c.obj [49/341] Compiling C object common/frob-getauxval.exe.p/frob-getauxval.c.obj [50/341] Compiling C object common/test-buffer.exe.p/test-buffer.c.obj [51/341] Compiling C object common/test-lexer.exe.p/test-lexer.c.obj [52/341] Compiling C object common/frob-getenv.exe.p/frob-getenv.c.obj [53/341] Compiling C object common/libp11-common.a.p/attrs.c.obj [54/341] Compiling C object common/test-runtime.exe.p/test-runtime.c.obj [55/341] Compiling C object trust/liblibtrust-testable.a.p/index.c.obj [56/341] Compiling C object common/test-argv.exe.p/test-argv.c.obj [57/341] Compiling C object common/test-path.exe.p/test-path.c.obj [58/341] Compiling C object common/test-url.exe.p/test-url.c.obj [59/341] Compiling C object p11-kit/p11-kit.exe.p/p11-kit.c.obj [60/341] Compiling C object trust/liblibtrust-testable.a.p/digest.c.obj [61/341] Compiling C object trust/liblibtrust-test.a.p/digest.c.obj [62/341] Compiling C object p11-kit/p11-kit.exe.p/lists.c.obj [63/341] Compiling C object common/test-dict.exe.p/test-dict.c.obj [64/341] Generating p11-kit/generate virtual-fixed-generated.h with a custom command [65/341] Compiling C object p11-kit/libp11-kit-0.dll.p/uri.c.obj [66/341] Compiling C object p11-kit/libp11-kit-0.dll.p/proxy.c.obj [67/341] Compiling C object common/test-attrs.exe.p/test-attrs.c.obj [68/341] Compiling C object trust/liblibtrust-testable.a.p/module.c.obj [69/341] Compiling C object trust/liblibtrust-testable.a.p/builder.c.obj [70/341] Compiling C object common/libp11-common.a.p/path.c.obj [71/341] Compiling C object p11-kit/libp11-kit-0.dll.p/modules.c.obj [72/341] Compiling C object common/libp11-test.a.p/mock.c.obj [73/341] Compiling C object p11-kit/libp11-kit-0.dll.p/rpc-server.c.obj ninja: build stopped: subcommand failed. error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.h9kOTx (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.h9kOTx (%build) I: [iurt_root_command] ERROR: chroot