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/oprofile.spec'], chrootPath='/var/lib/mock/dist-an23-build-274012-64217/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/oprofile.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 Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1531440000 Wrote: /builddir/build/SRPMS/oprofile-1.2.0-1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/oprofile.spec'], chrootPath='/var/lib/mock/dist-an23-build-274012-64217/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/oprofile.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 Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1531440000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.gUe4Xk + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf oprofile-1.2.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/oprofile-1.2.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd oprofile-1.2.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + ./autogen.sh Running aclocal -I m4 ... Running autoheader ... Running automake --foreign --add-missing --copy ... Running autoconf ... configure.ac:21: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:21: You should run autoupdate. m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... configure.ac:21: the top level configure.ac:90: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:90: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/kernelversion.m4:2: AX_KERNEL_VERSION is expanded from... configure.ac:90: the top level configure.ac:250: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:250: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/mallocattribute.m4:2: AX_MALLOC_ATTRIBUTE is expanded from... configure.ac:250: the top level configure.ac:251: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:251: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... m4/builtinexpect.m4:2: AX_BUILTIN_EXPECT is expanded from... configure.ac:251: the top level configure.ac:276: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete. configure.ac:276: You should run autoupdate. ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from... configure.ac:276: the top level configure.ac:278: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:278: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/poptconst.m4:2: AX_POPT_CONST is expanded from... configure.ac:278: the top level configure.ac:279: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:279: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/sstream.m4:2: AX_CHECK_SSTREAM is expanded from... configure.ac:279: the top level configure.ac:283: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:283: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... configure.ac:283: the top level configure.ac:288: warning: The macro `AC_LANG_C' is obsolete. configure.ac:288: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... m4/typedef.m4:5: AX_CHECK_TYPEDEF is expanded from... m4/typedef.m4:33: AX_TYPEDEFED_NAME is expanded from... configure.ac:288: the top level configure.ac:288: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:288: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/typedef.m4:5: AX_CHECK_TYPEDEF is expanded from... m4/typedef.m4:33: AX_TYPEDEFED_NAME is expanded from... configure.ac:288: the top level configure.ac:290: warning: The macro `AC_LANG_C' is obsolete. configure.ac:290: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... m4/typedef.m4:5: AX_CHECK_TYPEDEF is expanded from... m4/typedef.m4:33: AX_TYPEDEFED_NAME is expanded from... configure.ac:290: the top level configure.ac:290: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:290: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/typedef.m4:5: AX_CHECK_TYPEDEF is expanded from... m4/typedef.m4:33: AX_TYPEDEFED_NAME is expanded from... configure.ac:290: the top level configure.ac:300: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete. configure.ac:300: You should run autoupdate. ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from... m4/precompiledheader.m4:3: AX_CHECK_PRECOMPILED_HEADER is expanded from... configure.ac:300: the top level configure.ac:300: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:300: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/precompiledheader.m4:3: AX_CHECK_PRECOMPILED_HEADER is expanded from... configure.ac:300: the top level configure.ac:317: warning: The macro `AC_LANG_C' is obsolete. configure.ac:317: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:317: the top level configure.ac:317: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:317: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:317: the top level configure.ac:318: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete. configure.ac:318: You should run autoupdate. ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from... m4/compileroption.m4:17: AX_CXXFLAGS_OPTION is expanded from... configure.ac:318: the top level configure.ac:318: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:318: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:17: AX_CXXFLAGS_OPTION is expanded from... configure.ac:318: the top level configure.ac:319: warning: The macro `AC_LANG_C' is obsolete. configure.ac:319: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:319: the top level configure.ac:319: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:319: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:319: the top level configure.ac:320: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete. configure.ac:320: You should run autoupdate. ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from... m4/compileroption.m4:17: AX_CXXFLAGS_OPTION is expanded from... configure.ac:320: the top level configure.ac:320: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:320: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:17: AX_CXXFLAGS_OPTION is expanded from... configure.ac:320: the top level configure.ac:321: warning: The macro `AC_LANG_C' is obsolete. configure.ac:321: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:321: the top level configure.ac:321: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:321: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:321: the top level configure.ac:322: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete. configure.ac:322: You should run autoupdate. ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from... m4/compileroption.m4:17: AX_CXXFLAGS_OPTION is expanded from... configure.ac:322: the top level configure.ac:322: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:322: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:17: AX_CXXFLAGS_OPTION is expanded from... configure.ac:322: the top level configure.ac:323: warning: The macro `AC_LANG_C' is obsolete. configure.ac:323: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:323: the top level configure.ac:323: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:323: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:323: the top level configure.ac:330: warning: The macro `AC_LANG_C' is obsolete. configure.ac:330: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:330: the top level configure.ac:330: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:330: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:330: the top level configure.ac:331: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete. configure.ac:331: You should run autoupdate. ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from... m4/compileroption.m4:17: AX_CXXFLAGS_OPTION is expanded from... configure.ac:331: the top level configure.ac:331: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:331: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:17: AX_CXXFLAGS_OPTION is expanded from... configure.ac:331: the top level configure.ac:332: warning: The macro `AC_LANG_C' is obsolete. configure.ac:332: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:332: the top level configure.ac:332: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:332: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:332: the top level configure.ac:333: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete. configure.ac:333: You should run autoupdate. ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from... m4/compileroption.m4:17: AX_CXXFLAGS_OPTION is expanded from... configure.ac:333: the top level configure.ac:333: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:333: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:17: AX_CXXFLAGS_OPTION is expanded from... configure.ac:333: the top level configure.ac:342: warning: The macro `AC_LANG_C' is obsolete. configure.ac:342: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:342: the top level configure.ac:342: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:342: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:3: AX_CFLAGS_OPTION is expanded from... configure.ac:342: the top level configure.ac:343: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete. configure.ac:343: You should run autoupdate. ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from... m4/compileroption.m4:17: AX_CXXFLAGS_OPTION is expanded from... configure.ac:343: the top level configure.ac:343: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:343: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/compileroption.m4:17: AX_CXXFLAGS_OPTION is expanded from... configure.ac:343: the top level configure.ac:392: warning: AC_OUTPUT should be used without arguments. configure.ac:392: You should run autoupdate. + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Pivt3V + 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 oprofile-1.2.0 + 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' + 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' + 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' ./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-06-12 14:20:11.658079036 +0800 +++ ./configure 2023-06-12 14:20:11.688079188 +0800 @@ -1855,7 +1855,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. */ @@ -2079,7 +2079,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-06-12 14:20:11.688079188 +0800 +++ ./configure 2023-06-12 14:20:11.708079289 +0800 @@ -7484,7 +7484,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'" @@ -21951,7 +21951,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 ./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 --with-java=/usr/lib/jvm/java 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 the include directive... yes (GNU style) 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 checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for gcc options needed to detect all undeclared functions... none needed checking whether basename is declared... yes checking for aarch64-Anolis-linux-ranlib... no checking for ranlib... ranlib checking build system type... aarch64-Anolis-linux-gnu checking host system type... aarch64-Anolis-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert aarch64-Anolis-linux-gnu file names to aarch64-Anolis-linux-gnu format... func_convert_file_noop checking how to convert aarch64-Anolis-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for aarch64-Anolis-linux-file... no checking for file... file checking for aarch64-Anolis-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for aarch64-Anolis-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for aarch64-Anolis-linux-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for aarch64-Anolis-linux-strip... no checking for strip... strip checking for aarch64-Anolis-linux-ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ./configure: line 7490: -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p': No such file or directory ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for aarch64-Anolis-linux-mt... no checking for mt... no checking if : is a manifest tool... no 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 checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for aarch64-Anolis-linux-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for aarch64-Anolis-linux-gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) none checking how to run the C preprocessor... gcc -E checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... none checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for ld... /usr/bin/ld checking for /usr/include/linux/perf_event.h... yes checking kernel supports perf_events... yes checking whether PERF_RECORD_MISC_GUEST_KERNEL is defined in perf_event.h... yes checking whether precise_ip is defined in perf_event.h... yes checking for "/usr/lib/jvm/java/include/jvmti.h"... yes checking for "/usr/lib/jvm/java/include/jvmpi.h"... no checking whether malloc attribute is understood... no checking whether __builtin_expect is understood... no checking for sched_setaffinity... yes checking for perfmonctl... no checking for poptGetContext in -lpopt... yes checking for libiberty.h... yes checking for cplus_demangle in -liberty... yes checking for xcalloc... yes checking for xmemdup... yes checking for dlopen in -ldl... yes checking for main in -lintl... no checking for bfd_openr in -lbfd... yes checking whether bfd_get_synthetic_symtab() exists in BFD library... no checking popt prototype... takes const char ** checking whether to use included sstream... no checking whether bfd defines bool... no checking type of size_t... unsigned long checking type of ptrdiff_t... long checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... no checking for xsltproc... xsltproc checking whether xsltproc works... yes checking whether gcc -W is understood... yes checking whether g++ -W is understood... yes checking whether gcc -Wall is understood... yes checking whether g++ -Wall is understood... yes checking whether gcc -fno-common is understood... yes checking whether g++ -fno-common is understood... yes checking whether gcc -Wdeclaration-after-statement is understood... yes checking for clock_gettime... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating pe_counting/Makefile config.status: creating libpe_utils/Makefile config.status: creating pe_profiling/Makefile config.status: creating libperf_events/Makefile config.status: creating m4/Makefile config.status: creating libutil/Makefile config.status: creating libutil/tests/Makefile config.status: creating libutil++/Makefile config.status: creating libutil++/tests/Makefile config.status: creating libop/Makefile config.status: creating libop/tests/Makefile config.status: creating libopagent/Makefile config.status: creating libopt++/Makefile config.status: creating libdb/Makefile config.status: creating libdb/tests/Makefile config.status: creating libabi/Makefile config.status: creating libabi/tests/Makefile config.status: creating libregex/Makefile config.status: creating libregex/tests/Makefile config.status: creating libregex/stl.pat config.status: creating libregex/tests/mangled-name config.status: creating events/Makefile config.status: creating utils/Makefile config.status: creating doc/Makefile config.status: creating doc/xsl/catalog-1.xml config.status: creating doc/oprofile.1 config.status: creating doc/ophelp.1 config.status: creating doc/op-check-perfevents.1 config.status: creating doc/opreport.1 config.status: creating doc/opannotate.1 config.status: creating doc/opgprof.1 config.status: creating doc/oparchive.1 config.status: creating doc/opimport.1 config.status: creating doc/operf.1 config.status: creating doc/ocount.1 config.status: creating doc/srcdoc/Doxyfile config.status: creating libpp/Makefile config.status: creating opjitconv/Makefile config.status: creating pp/Makefile config.status: creating agents/Makefile config.status: creating agents/jvmti/Makefile config.status: creating agents/jvmpi/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands Warning: The user account 'oprofile:oprofile' does not exist on the system. To profile JITed code, this special user account must exist. Please ask your system administrator to add the following user and group: user name : 'oprofile' group name: 'oprofile' The 'oprofile' group must be the default group for the 'oprofile' user. + make -j80 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0' Making all in . make[2]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0' make[2]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0' Making all in m4 make[2]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/m4' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/m4' Making all in libutil make[2]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/libutil' Making all in . make[3]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/libutil' gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_deviceio.o op_deviceio.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_lockfile.o op_lockfile.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_file.o op_file.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_fileio.o op_fileio.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_get_time.o op_get_time.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_libiberty.o op_libiberty.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_popt.o op_popt.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_string.o op_string.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_cpufreq.o op_cpufreq.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_version.o op_version.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_growable_buffer.o op_growable_buffer.c rm -f libutil.a ar cru libutil.a op_deviceio.o op_lockfile.o op_file.o op_fileio.o op_get_time.o op_libiberty.o op_popt.o op_string.o op_cpufreq.o op_version.o op_growable_buffer.o ranlib libutil.a make[3]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/libutil' Making all in tests make[3]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/libutil/tests' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/libutil/tests' make[2]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/libutil' Making all in libop make[2]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/libop' Making all in . make[3]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/libop' gcc -DHAVE_CONFIG_H -I. -I.. -I../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_events.o op_events.c gcc -DHAVE_CONFIG_H -I. -I.. -I../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_parse_event.o op_parse_event.c gcc -DHAVE_CONFIG_H -I. -I.. -I../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_cpu_type.o op_cpu_type.c gcc -DHAVE_CONFIG_H -I. -I.. -I../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_mangle.o op_mangle.c gcc -DHAVE_CONFIG_H -I. -I.. -I../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_alloc_counter.o op_alloc_counter.c gcc -DHAVE_CONFIG_H -I. -I.. -I../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_config.o op_config.c gcc -DHAVE_CONFIG_H -I. -I.. -I../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_xml_events.o op_xml_events.c gcc -DHAVE_CONFIG_H -I. -I.. -I../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_xml_out.o op_xml_out.c gcc -DHAVE_CONFIG_H -I. -I.. -I../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o op_netburst.o op_netburst.c rm -f libop.a ar cru libop.a op_events.o op_parse_event.o op_cpu_type.o op_mangle.o op_alloc_counter.o op_config.o op_xml_events.o op_xml_out.o op_netburst.o ranlib libop.a make[3]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/libop' Making all in tests make[3]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/libop/tests' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/libop/tests' make[2]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/libop' Making all in libopagent make[2]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/libopagent' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -I ../libutil -fPIC -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 -c -o libopagent_la-opagent.lo `test -f 'opagent.c' || echo './'`opagent.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -I ../libutil -fPIC -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 -c opagent.c -fPIC -DPIC -o .libs/libopagent_la-opagent.o opagent.c: In function 'define_bfd_vars': opagent.c:111:26: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 111 | _bfd_target_name = bfd->xvec->name; | ^ opagent.c: In function 'op_open_agent': opagent.c:239:62: warning: '__snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] 239 | snprintf(err_msg, PATH_MAX + 16, "Error writing to %s", dump_path); | ^ In file included from /usr/include/stdio.h:906, from opagent.c:54: In function 'snprintf', inlined from 'op_open_agent' at opagent.c:239:2: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output between 18 and 4113 bytes into a destination of size 4112 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -I ../libutil -fPIC -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 -c opagent.c -o libopagent_la-opagent.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=link gcc -fPIC -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 -version-info 1:1:0 -Wl,--version-script=../libopagent/opagent_symbols.ver -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 -o libopagent.la -rpath /usr/lib64/oprofile libopagent_la-opagent.lo -lbfd -liberty -ldl libtool: link: gcc -shared -Wl,--as-needed -fPIC -DPIC .libs/libopagent_la-opagent.o -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -O2 -flto=auto -g -grecord-gcc-switches -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -Wl,--version-script=../libopagent/opagent_symbols.ver -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -lbfd -liberty -ldl -Wl,-soname -Wl,libopagent.so.1 -o .libs/libopagent.so.1.0.1 libtool: link: (cd ".libs" && rm -f "libopagent.so.1" && ln -s "libopagent.so.1.0.1" "libopagent.so.1") libtool: link: (cd ".libs" && rm -f "libopagent.so" && ln -s "libopagent.so.1.0.1" "libopagent.so") libtool: link: ar cr .libs/libopagent.a libopagent_la-opagent.o libtool: link: ranlib .libs/libopagent.a libtool: link: ( cd ".libs" && rm -f "libopagent.la" && ln -s "../libopagent.la" "libopagent.la" ) make[2]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/libopagent' Making all in libdb make[2]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/libdb' Making all in . make[3]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/libdb' gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -I ../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o db_manage.o db_manage.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -I ../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o db_insert.o db_insert.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -I ../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o db_travel.o db_travel.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -I ../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o db_debug.o db_debug.c gcc -DHAVE_CONFIG_H -I. -I.. -I ../libop -I ../libutil -W -Wall -fno-common -Wdeclaration-after-statement -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 -c -o db_stat.o db_stat.c rm -f libodb.a ar cru libodb.a db_manage.o db_insert.o db_travel.o db_debug.o db_stat.o ranlib libodb.a make[3]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/libdb' Making all in tests make[3]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/libdb/tests' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/libdb/tests' make[2]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/libdb' Making all in libutil++ make[2]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/libutil++' Making all in . make[3]: Entering directory '/builddir/build/BUILD/oprofile-1.2.0/libutil++' g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -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 -c -o op_bfd.o op_bfd.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -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 -c -o bfd_support.o bfd_support.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -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 -c -o string_filter.o string_filter.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -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 -c -o glob_filter.o glob_filter.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -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 -c -o path_filter.o path_filter.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -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 -c -o file_manip.o file_manip.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -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 -c -o stream_util.o stream_util.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -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 -c -o string_manip.o string_manip.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -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 -c -o cverb.o cverb.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -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 -c -o op_exception.o op_exception.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -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 -c -o child_reader.o child_reader.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -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 -c -o xml_output.o xml_output.cpp bfd_support.cpp: In function 'bool {anonymous}::get_build_id(bfd*, unsigned char*)': bfd_support.cpp:140:60: error: cannot convert 'bfd*' to 'const asection*' {aka 'const bfd_section*'} 140 | bfd_size_type buildid_sect_size = bfd_section_size(ibfd, sect); | ^~~~ | | | bfd* In file included from bfd_support.h:19, from bfd_support.cpp:11: /usr/include/bfd.h:1141:35: note: initializing argument 1 of 'bfd_size_type bfd_section_size(const asection*)' 1141 | bfd_section_size (const asection *sec) | ~~~~~~~~~~~~~~~~^~~ bfd_support.cpp: In function 'bool {anonymous}::get_debug_link_info(bfd*, std::string&, long unsigned int&)': bfd_support.cpp:191:57: error: cannot convert 'bfd*' to 'const asection*' {aka 'const bfd_section*'} 191 | bfd_size_type debuglink_size = bfd_section_size(ibfd, sect); | ^~~~ | | | bfd* /usr/include/bfd.h:1141:35: note: initializing argument 1 of 'bfd_size_type bfd_section_size(const asection*)' 1141 | bfd_section_size (const asection *sec) | ~~~~~~~~~~~~~~~~^~~ bfd_support.cpp: In function 'void {anonymous}::fixup_linenr(bfd*, asection*, asymbol**, const std::string&, bfd_vma, const char**, unsigned int*)': bfd_support.cpp:349:48: error: cannot convert 'bfd*' to 'const asection*' {aka 'const bfd_section*'} 349 | size_t section_size = bfd_section_size(abfd, section); | ^~~~ | | | bfd* /usr/include/bfd.h:1141:35: note: initializing argument 1 of 'bfd_size_type bfd_section_size(const asection*)' 1141 | bfd_section_size (const asection *sec) | ~~~~~~~~~~~~~~~~^~~ bfd_support.cpp: In function 'const linenr_info find_nearest_line(const bfd_info&, const op_bfd_symbol&, bfd_vma, bool)': bfd_support.cpp:822:14: error: 'bfd_get_section_flags' was not declared in this scope; did you mean 'bfd_set_section_flags'? 822 | if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0) | ^~~~~~~~~~~~~~~~~~~~~ | bfd_set_section_flags bfd_support.cpp:825:36: error: cannot convert 'bfd*' to 'const asection*' {aka 'const bfd_section*'} 825 | if (pc >= bfd_section_size(abfd, section)) | ^~~~ | | | bfd* /usr/include/bfd.h:1141:35: note: initializing argument 1 of 'bfd_size_type bfd_section_size(const asection*)' 1141 | bfd_section_size (const asection *sec) | ~~~~~~~~~~~~~~~~^~~ make[3]: *** [Makefile:529: bfd_support.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/libutil++' make[2]: *** [Makefile:558: all-recursive] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0/libutil++' make[1]: *** [Makefile:492: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/oprofile-1.2.0' make: *** [Makefile:420: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.Pivt3V (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Pivt3V (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/oprofile.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/oprofile.spec