Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/portaudio.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-305865-66830/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/portaudio.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 (3 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1564099200 Wrote: /builddir/build/SRPMS/portaudio-19-30.an23.src.rpm RPM build warnings: %patchN is deprecated (3 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/portaudio.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-305865-66830/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/portaudio.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 (3 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1564099200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.iXaPS9 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf portaudio + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pa_stable_v19_20140130.tgz + STATUS=0 + '[' 0 -ne 0 ']' + cd portaudio + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (portaudio-doxynodate.patch):' Patch #1 (portaudio-doxynodate.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Doxyfile Hunk #1 succeeded at 125 (offset 1 line). patching file no_date_footer.html + echo 'Patch #2 (portaudio-pkgconfig-alsa.patch):' Patch #2 (portaudio-pkgconfig-alsa.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file portaudio-2.0.pc.in + echo 'Patch #3 (portaudio-audacity.patch):' Patch #3 (portaudio-audacity.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file include/pa_unix_oss.h patching file include/portaudio.h patching file src/common/pa_front.c patching file src/common/pa_stream.c patching file src/common/pa_stream.h patching file src/hostapi/oss/pa_unix_oss.c Hunk #1 succeeded at 2043 (offset 15 lines). patching file configure.in Hunk #1 succeeded at 393 (offset 6 lines). + autoreconf -i -f autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in' aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' libtoolize: putting auxiliary files in '../..'. libtoolize: copying file '../../ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:37: warning: The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. configure.ac:37: You should run autoupdate. aclocal.m4:8549: AC_LIBTOOL_WIN32_DLL is expanded from... configure.ac:37: the top level configure.ac:37: warning: AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you configure.ac:37: put the 'win32-dll' option into LT_INIT's first parameter. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:8549: AC_LIBTOOL_WIN32_DLL is expanded from... configure.ac:37: the top level configure.ac:38: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:38: You should run autoupdate. aclocal.m4:122: AC_PROG_LIBTOOL is expanded from... configure.ac:38: the top level configure.ac:35: installing '../../compile' configure.ac:17: installing '../../missing' bin/Makefile.am:8: warning: source file '$(BINDIR)/devs.cxx' is in a subdirectory, bin/Makefile.am:8: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least one source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, this automake: behavior may change in a future Automake major version, with object automake: files being placed in the same subdirectory as the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. bin/Makefile.am:9: warning: source file '$(BINDIR)/sine.cxx' is in a subdirectory, bin/Makefile.am:9: but option 'subdir-objects' is disabled bin/Makefile.am: installing '../../depcomp' lib/Makefile.am:10: warning: source file '$(SRCDIR)/BlockingStream.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/CallbackInterface.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/CallbackStream.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/CFunCallbackStream.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/CppFunCallbackStream.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/Device.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/DirectionSpecificStreamParameters.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/Exception.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/HostApi.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/InterfaceCallbackStream.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/MemFunCallbackStream.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/Stream.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/StreamParameters.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/System.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/SystemDeviceIterator.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled lib/Makefile.am:10: warning: source file '$(SRCDIR)/SystemHostApiIterator.cxx' is in a subdirectory, lib/Makefile.am:10: but option 'subdir-objects' is disabled libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.in, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:55: warning: back quotes and double quotes must not be escaped in: unknown Windows API \"$api\" (do you need --help?) configure.in:104: warning: The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. configure.in:104: You should run autoupdate. aclocal.m4:8541: AC_LIBTOOL_WIN32_DLL is expanded from... configure.in:104: the top level configure.in:104: warning: AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you configure.in:104: put the 'win32-dll' option into LT_INIT's first parameter. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:8541: AC_LIBTOOL_WIN32_DLL is expanded from... configure.in:104: the top level configure.in:105: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.in:105: You should run autoupdate. aclocal.m4:114: AC_PROG_LIBTOOL is expanded from... configure.in:105: the top level configure.in:264: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:264: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... configure.in:264: the top level configure.in:467: warning: AC_OUTPUT should be used without arguments. configure.in:467: You should run autoupdate. configure.in:467: warning: AC_C_BIGENDIAN should be used with AC_CONFIG_HEADERS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.7BLcWv + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 portaudio + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 + '[' '-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' ./bindings/cpp/build/gnu/configure + diff -u ./bindings/cpp/build/gnu/configure.backup ./bindings/cpp/build/gnu/configure + mv ./bindings/cpp/build/gnu/configure.backup ./bindings/cpp/build/gnu/configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./bindings/cpp/build/gnu/configure + diff -u ./bindings/cpp/build/gnu/configure.backup ./bindings/cpp/build/gnu/configure + mv ./bindings/cpp/build/gnu/configure.backup ./bindings/cpp/build/gnu/configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./bindings/cpp/build/gnu/configure + diff -u ./bindings/cpp/build/gnu/configure.backup ./bindings/cpp/build/gnu/configure + mv ./bindings/cpp/build/gnu/configure.backup ./bindings/cpp/build/gnu/configure + /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' ./bindings/cpp/build/gnu/configure + diff -u ./bindings/cpp/build/gnu/configure.backup ./bindings/cpp/build/gnu/configure + mv ./bindings/cpp/build/gnu/configure.backup ./bindings/cpp/build/gnu/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'\''"#' ./bindings/cpp/build/gnu/configure + diff -u ./bindings/cpp/build/gnu/configure.backup ./bindings/cpp/build/gnu/configure + mv ./bindings/cpp/build/gnu/configure.backup ./bindings/cpp/build/gnu/configure + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./bindings/cpp/configure + diff -u ./bindings/cpp/configure.backup ./bindings/cpp/configure + mv ./bindings/cpp/configure.backup ./bindings/cpp/configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./bindings/cpp/configure + diff -u ./bindings/cpp/configure.backup ./bindings/cpp/configure + mv ./bindings/cpp/configure.backup ./bindings/cpp/configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./bindings/cpp/configure + diff -u ./bindings/cpp/configure.backup ./bindings/cpp/configure --- ./bindings/cpp/configure.backup 2023-09-26 13:51:45.368222073 +0800 +++ ./bindings/cpp/configure 2023-09-26 13:51:46.668228625 +0800 @@ -1756,7 +1756,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' ./bindings/cpp/configure + diff -u ./bindings/cpp/configure.backup ./bindings/cpp/configure + mv ./bindings/cpp/configure.backup ./bindings/cpp/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'\''"#' ./bindings/cpp/configure + diff -u ./bindings/cpp/configure.backup ./bindings/cpp/configure --- ./bindings/cpp/configure.backup 2023-09-26 13:51:46.668228625 +0800 +++ ./bindings/cpp/configure 2023-09-26 13:51:46.678228675 +0800 @@ -7922,7 +7922,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'" @@ -17908,7 +17908,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"`' + 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 2023-09-26 13:51:46.618228373 +0800 +++ ./configure 2023-09-26 13:51:46.698228776 +0800 @@ -1755,7 +1755,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 2023-09-26 13:51:46.698228776 +0800 +++ ./configure 2023-09-26 13:51:46.718228877 +0800 @@ -7336,7 +7336,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'" @@ -18664,7 +18664,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 ./bindings/cpp/build/gnu/config.guess + '[' -f /usr/lib/rpm/anolis/config.guess ']' + /usr/bin/rm -f ./bindings/cpp/build/gnu/config.guess ++ basename ./bindings/cpp/build/gnu/config.guess + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.guess ./bindings/cpp/build/gnu/config.guess '/usr/lib/rpm/anolis/config.guess' -> './bindings/cpp/build/gnu/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./bindings/cpp/build/gnu/config.sub + '[' -f /usr/lib/rpm/anolis/config.sub ']' + /usr/bin/rm -f ./bindings/cpp/build/gnu/config.sub ++ basename ./bindings/cpp/build/gnu/config.sub + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.sub ./bindings/cpp/build/gnu/config.sub '/usr/lib/rpm/anolis/config.sub' -> './bindings/cpp/build/gnu/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./bindings/cpp/config.sub + '[' -f /usr/lib/rpm/anolis/config.sub ']' + /usr/bin/rm -f ./bindings/cpp/config.sub ++ basename ./bindings/cpp/config.sub + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.sub ./bindings/cpp/config.sub '/usr/lib/rpm/anolis/config.sub' -> './bindings/cpp/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./bindings/cpp/config.guess + '[' -f /usr/lib/rpm/anolis/config.guess ']' + /usr/bin/rm -f ./bindings/cpp/config.guess ++ basename ./bindings/cpp/config.guess + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.guess ./bindings/cpp/config.guess '/usr/lib/rpm/anolis/config.guess' -> './bindings/cpp/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/anolis/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.guess ./config.guess '/usr/lib/rpm/anolis/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/anolis/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.sub ./config.sub '/usr/lib/rpm/anolis/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-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/anolis/anolis-hardened-ld"~' ./ltmain.sh ++ dirname ./configure + /usr/lib/rpm/anolis/force-as-needed-for-shared-lib-in-libtool . Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/anolis/fix-libtool-ltmain-from-overlinking Fixing libtool's ltmain.sh to prevent overlinking ++ dirname ./configure + /usr/lib/rpm/anolis/fix-libtool-from-moving-options-after-libs . Fixing libtool inside configure to pass -Wl,xxx options before libraries + /usr/lib/rpm/anolis/fix-dlsearch-path-in-libtool . lib64 + ./configure --build=aarch64-Anolis-linux --host=aarch64-Anolis-linux --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 --disable-static --enable-cxx checking build system type... aarch64-Anolis-linux-gnu checking host system type... aarch64-Anolis-linux-gnu checking target system type... aarch64-Anolis-linux-gnu checking for aarch64-Anolis-linux-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