Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/dahdi-tools.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-285407-27628/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/dahdi-tools.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (5 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/dahdi-tools-2.11.1-2.ocs23.src.rpm RPM build warnings: %patchN is deprecated (5 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/dahdi-tools.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-285407-27628/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/dahdi-tools.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (5 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.qhq8BL + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf dahdi-tools-2.11.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/dahdi-tools-2.11.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd dahdi-tools-2.11.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/dahdi-linux-2.11.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + ln -s dahdi-linux-2.11.1/include include Patch #0 (dahdi-tools-blacklist-wcopenpci.patch): + echo 'Patch #0 (dahdi-tools-blacklist-wcopenpci.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .blacklist --fuzz=0 patching file blacklist.sample Patch #3 (dahdi-tools-3.1.0-fno-common.patch): + echo 'Patch #3 (dahdi-tools-3.1.0-fno-common.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .gcc10 --fuzz=0 patching file xpp/mpptalk.c patching file xpp/xtalk/xtalk_raw.c patching file xpp/xtalk/xtalk_sync.c Patch #4 (gcc-lto.patch): + echo 'Patch #4 (gcc-lto.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .gcc-lto --fuzz=0 patching file xpp/echo_loader.c Patch #5 (dahdi-tools-2.11.1-Respect-CFLAGS.patch): + echo 'Patch #5 (dahdi-tools-2.11.1-Respect-CFLAGS.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .cflags --fuzz=0 patching file Makefile.am Patch #6 (dahdi-tools_fix-legacy-make.patch): + echo 'Patch #6 (dahdi-tools_fix-legacy-make.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .legacy-fix --fuzz=0 patching file Makefile.am + cp -pa /builddir/build/SOURCES/dahdi.service dahdi.service + sed -i -e 's/675 Mass Ave, Cambridge, MA 02139/51 Franklin St, Boston, MA 02110/' xpp/astribank.c xpp/astribank_allow.c xpp/astribank_hexload.c xpp/astribank_is_starting.c xpp/astribank_license.c xpp/astribank_tool.c xpp/echo_loader.c xpp/hexfile.c xpp/mpptalk.c xpp/parse_span_specs.c xpp/pic_loader.c xpp/test_parse.c xpp/astribank.h xpp/astribank_license.h xpp/echo_loader.h xpp/hexfile.h xpp/mpptalk.h xpp/parse_span_specs.h xpp/pic_loader.h xpp/xtalk/debug.c xpp/xtalk/xlist.c xpp/xtalk/xlist_test.c xpp/xtalk/xtalk-xusb.c xpp/xtalk/xtalk_base.c xpp/xtalk/xtalk_raw.c xpp/xtalk/xtalk_raw_test.c xpp/xtalk/xtalk_send.c xpp/xtalk/xtalk_sync.c xpp/xtalk/xtalk_test.c xpp/xtalk/xusb_common.c xpp/xtalk/xusb_libusb.c xpp/xtalk/xusb_libusbx.c xpp/xtalk/xusb_test.c xpp/xtalk/xusb_test_bypath.c xpp/xtalk/debug.h xpp/xtalk/xlist.h xpp/xtalk/xtalk_base.h xpp/xtalk/xusb_common.h xpp/xtalk/include/xtalk/api_defs.h xpp/xtalk/include/xtalk/debug.h xpp/xtalk/include/xtalk/firmware_defs.h xpp/xtalk/include/xtalk/proto.h xpp/xtalk/include/xtalk/proto_raw.h xpp/xtalk/include/xtalk/proto_sync.h xpp/xtalk/include/xtalk/xlist.h xpp/xtalk/include/xtalk/xtalk_iface.h xpp/xtalk/include/xtalk/xusb.h xpp/xtalk/include/xtalk/xusb_iface.h xpp/waitfor_xpds xpp/xpp_fxloader + sed -i -e 's/59 Temple Place, Suite 330, Boston, MA 02111-1307/51 Franklin St, Boston, MA 02110/' LICENSE + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.uee8Xb + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd dahdi-tools-2.11.1 + autoreconf -fi libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'auxdir'. libtoolize: copying file 'auxdir/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' configure.ac:66: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.ac:66: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:66: the top level configure.ac:69: warning: The macro `AC_GNU_SOURCE' is obsolete. configure.ac:69: You should run autoupdate. ./lib/autoconf/specific.m4:312: AC_GNU_SOURCE is expanded from... configure.ac:69: the top level configure.ac:82: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:82: You should run autoupdate. m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... configure.ac:82: the top level configure.ac:177: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:177: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... acinclude.m4:30: AST_EXT_LIB_SETUP is expanded from... configure.ac:177: the top level configure.ac:178: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:178: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... acinclude.m4:30: AST_EXT_LIB_SETUP is expanded from... configure.ac:178: the top level configure.ac:179: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:179: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... acinclude.m4:30: AST_EXT_LIB_SETUP is expanded from... configure.ac:179: the top level configure.ac:180: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:180: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... acinclude.m4:30: AST_EXT_LIB_SETUP is expanded from... configure.ac:180: the top level configure.ac:69: installing 'auxdir/compile' configure.ac:15: installing 'auxdir/missing' Makefile.am: installing 'auxdir/depcomp' + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2024-09-23 17:47:15.321982169 +0800 +++ ./configure 2024-09-23 17:47:17.049992598 +0800 @@ -1906,7 +1906,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2024-09-23 17:47:17.049992598 +0800 +++ ./configure 2024-09-23 17:47:17.077992767 +0800 @@ -9438,7 +9438,7 @@ # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" @@ -21572,7 +21572,7 @@ compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' + '[' 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 ./auxdir/config.sub + '[' -f /usr/lib/rpm/OpenCloudOS/config.sub ']' + /usr/bin/rm -f ./auxdir/config.sub ++ basename ./auxdir/config.sub + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.sub ./auxdir/config.sub '/usr/lib/rpm/OpenCloudOS/config.sub' -> './auxdir/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./auxdir/config.guess + '[' -f /usr/lib/rpm/OpenCloudOS/config.guess ']' + /usr/bin/rm -f ./auxdir/config.guess ++ basename ./auxdir/config.guess + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.guess ./auxdir/config.guess '/usr/lib/rpm/OpenCloudOS/config.guess' -> './auxdir/config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld"~' ./auxdir/ltmain.sh ++ pwd + ./configure --build=aarch64-opencloudos-linux-gnu --host=aarch64-opencloudos-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 --with-dahdi=/builddir/build/BUILD/dahdi-tools-2.11.1 --enable-shared --with-pic --with-perllib=/usr/share/perl5/vendor_perl checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free 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 whether make supports the include directive... yes (GNU style) checking for aarch64-opencloudos-linux-gnu-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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes