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 riscv64 --nodeps /builddir/build/SPECS/postgis.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-695630-26989/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/postgis.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 (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674172800 Wrote: /builddir/build/SRPMS/postgis-3.3.2-3.fc38.src.rpm RPM build warnings: %patchN is deprecated (1 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 riscv64 --nodeps /builddir/build/SPECS/postgis.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-695630-26989/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/postgis.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 (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.hYKwn9 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf postgis-3.3.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/postgis-3.3.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd postgis-3.3.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/postgis-2.5.5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + tar xf /builddir/build/SOURCES/postgis-3.3.2.tar.gz Patch #1 (postgis2-proj8.patch): + cd postgis-2.5.5 + echo 'Patch #1 (postgis2-proj8.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file autogen.sh patching file configure.ac patching file liblwgeom/cunit/cu_geodetic.c patching file liblwgeom/cunit/cu_geos_cluster.c patching file liblwgeom/g_box.c patching file liblwgeom/liblwgeom.h.in patching file liblwgeom/liblwgeom_internal.h patching file liblwgeom/lwgeom_transform.c patching file liblwgeom/lwin_encoded_polyline.c patching file liblwgeom/lwspheroid.c patching file liblwgeom/lwunionfind.c patching file liblwgeom/lwutil.c patching file liblwgeom/ptarray.c patching file libpgcommon/lwgeom_cache.c patching file libpgcommon/lwgeom_cache.h patching file libpgcommon/lwgeom_transform.c patching file libpgcommon/lwgeom_transform.h patching file macros/ac_proj4_version.m4 patching file postgis/geography_inout.c patching file postgis/geography_measurement.c patching file postgis/gserialized_gist_2d.c patching file postgis/gserialized_gist_nd.c patching file postgis/gserialized_spgist_2d.c patching file postgis/gserialized_typmod.c patching file postgis/lwgeom_in_gml.c patching file postgis/lwgeom_spheroid.c patching file postgis/lwgeom_transform.c + ./autogen.sh * Running /usr/bin/libtoolize (2.4.7) OPTIONS = --force --copy --install libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'. libtoolize: copying file 'build-aux/config.guess' libtoolize: copying file 'build-aux/config.sub' libtoolize: copying file 'build-aux/install-sh' libtoolize: copying file 'build-aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'macros'. libtoolize: copying file 'macros/libtool.m4' libtoolize: copying file 'macros/ltoptions.m4' libtoolize: copying file 'macros/ltsugar.m4' libtoolize: copying file 'macros/ltversion.m4' libtoolize: copying file 'macros/lt~obsolete.m4' libtoolize: Consider adding '-I macros' to ACLOCAL_AMFLAGS in Makefile.am. * Running /usr/bin/aclocal (1.16.5) * Running /usr/bin/autoconf (2.71) configure.ac:21: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:21: You should run autoupdate. macros/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... configure.ac:21: the top level configure.ac:65: warning: The macro `AC_LIBTOOL_COMPILER_OPTION' is obsolete. configure.ac:65: You should run autoupdate. macros/libtool.m4:1631: AC_LIBTOOL_COMPILER_OPTION is expanded from... configure.ac:65: the top level configure.ac:66: warning: The macro `AC_LIBTOOL_COMPILER_OPTION' is obsolete. configure.ac:66: You should run autoupdate. macros/libtool.m4:1631: AC_LIBTOOL_COMPILER_OPTION is expanded from... configure.ac:66: the top level configure.ac:73: warning: The macro `AC_LIBTOOL_COMPILER_OPTION' is obsolete. configure.ac:73: You should run autoupdate. macros/libtool.m4:1631: AC_LIBTOOL_COMPILER_OPTION is expanded from... configure.ac:73: the top level configure.ac:81: warning: The macro `AC_LIBTOOL_LINKER_OPTION' is obsolete. configure.ac:81: You should run autoupdate. macros/libtool.m4:1675: AC_LIBTOOL_LINKER_OPTION is expanded from... configure.ac:81: the top level configure.ac:120: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete ./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from... ./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from... configure.ac:120: the top level configure.ac:824: warning: AM_PROG_MKDIR_P: this macro is deprecated, and will soon be removed. configure.ac:824: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead, configure.ac:824: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:24: AM_PROG_MKDIR_P is expanded from... macros/po.m4:23: AM_PO_SUBDIRS is expanded from... macros/gettext.m4:61: AM_GNU_GETTEXT is expanded from... configure.ac:824: the top level configure.ac:824: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:824: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... macros/intlmacosx.m4:18: gt_INTL_MACOSX is expanded from... macros/gettext.m4:61: AM_GNU_GETTEXT is expanded from... configure.ac:824: the top level configure.ac:824: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:824: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... macros/gettext.m4:61: AM_GNU_GETTEXT is expanded from... configure.ac:824: the top level configure.ac:824: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:824: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... macros/iconv.m4:20: AM_ICONV_LINK is expanded from... macros/gettext.m4:61: AM_GNU_GETTEXT is expanded from... configure.ac:824: the top level configure.ac:824: warning: The macro `AC_TRY_RUN' is obsolete. configure.ac:824: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... macros/iconv.m4:20: AM_ICONV_LINK is expanded from... macros/gettext.m4:61: AM_GNU_GETTEXT is expanded from... configure.ac:824: the top level configure.ac:1085: warning: The macro `AC_TRY_RUN' is obsolete. configure.ac:1085: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... macros/gtk-2.0.m4:8: AM_PATH_GTK_2_0 is expanded from... configure.ac:1085: the top level configure.ac:1085: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:1085: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... macros/gtk-2.0.m4:8: AM_PATH_GTK_2_0 is expanded from... configure.ac:1085: the top level configure.ac:1113: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:1113: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:1113: the top level configure.ac:1284: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:1284: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:1284: the top level configure.ac:1331: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:1331: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:1331: the top level configure.ac:1363: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:1363: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:1363: the top level configure.ac:1500: warning: AC_OUTPUT should be used without arguments. configure.ac:1500: You should run autoupdate. ====================================== Now you are ready to run './configure' ====================================== + cp -p /builddir/build/SOURCES/postgis-3.3.2.pdf . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.r2czLy + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -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,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd postgis-3.3.2 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -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,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + 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' ./postgis-2.5.5/configure + diff -u ./postgis-2.5.5/configure.backup ./postgis-2.5.5/configure + mv ./postgis-2.5.5/configure.backup ./postgis-2.5.5/configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./postgis-2.5.5/configure + diff -u ./postgis-2.5.5/configure.backup ./postgis-2.5.5/configure + mv ./postgis-2.5.5/configure.backup ./postgis-2.5.5/configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./postgis-2.5.5/configure + diff -u ./postgis-2.5.5/configure.backup ./postgis-2.5.5/configure --- ./postgis-2.5.5/configure.backup 2023-05-28 07:27:52.837316782 -0400 +++ ./postgis-2.5.5/configure 2023-05-28 07:27:56.217316784 -0400 @@ -1890,7 +1890,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' ./postgis-2.5.5/configure + diff -u ./postgis-2.5.5/configure.backup ./postgis-2.5.5/configure + mv ./postgis-2.5.5/configure.backup ./postgis-2.5.5/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'\''"#' ./postgis-2.5.5/configure + diff -u ./postgis-2.5.5/configure.backup ./postgis-2.5.5/configure --- ./postgis-2.5.5/configure.backup 2023-05-28 07:27:56.217316784 -0400 +++ ./postgis-2.5.5/configure 2023-05-28 07:27:57.237316784 -0400 @@ -6300,7 +6300,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'" @@ -20126,7 +20126,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 2022-11-13 02:09:29.000000000 -0500 +++ ./configure 2023-05-28 07:27:58.837316785 -0400 @@ -1993,7 +1993,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-05-28 07:27:58.837316785 -0400 +++ ./configure 2023-05-28 07:27:59.917316785 -0400 @@ -6381,7 +6381,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'" @@ -26224,7 +26224,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' ./postgis-3.3.2/configure + diff -u ./postgis-3.3.2/configure.backup ./postgis-3.3.2/configure + mv ./postgis-3.3.2/configure.backup ./postgis-3.3.2/configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./postgis-3.3.2/configure + diff -u ./postgis-3.3.2/configure.backup ./postgis-3.3.2/configure + mv ./postgis-3.3.2/configure.backup ./postgis-3.3.2/configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./postgis-3.3.2/configure + diff -u ./postgis-3.3.2/configure.backup ./postgis-3.3.2/configure --- ./postgis-3.3.2/configure.backup 2022-11-13 02:09:29.000000000 -0500 +++ ./postgis-3.3.2/configure 2023-05-28 07:28:01.587316786 -0400 @@ -1993,7 +1993,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' ./postgis-3.3.2/configure + diff -u ./postgis-3.3.2/configure.backup ./postgis-3.3.2/configure + mv ./postgis-3.3.2/configure.backup ./postgis-3.3.2/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'\''"#' ./postgis-3.3.2/configure + diff -u ./postgis-3.3.2/configure.backup ./postgis-3.3.2/configure --- ./postgis-3.3.2/configure.backup 2023-05-28 07:28:01.587316786 -0400 +++ ./postgis-3.3.2/configure 2023-05-28 07:28:02.777316786 -0400 @@ -6381,7 +6381,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'" @@ -26224,7 +26224,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 ./postgis-2.5.5/build-aux/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./postgis-2.5.5/build-aux/config.sub ++ basename ./postgis-2.5.5/build-aux/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./postgis-2.5.5/build-aux/config.sub '/usr/lib/rpm/redhat/config.sub' -> './postgis-2.5.5/build-aux/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./postgis-2.5.5/build-aux/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./postgis-2.5.5/build-aux/config.guess ++ basename ./postgis-2.5.5/build-aux/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./postgis-2.5.5/build-aux/config.guess '/usr/lib/rpm/redhat/config.guess' -> './postgis-2.5.5/build-aux/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./postgis-3.3.2/build-aux/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./postgis-3.3.2/build-aux/config.sub ++ basename ./postgis-3.3.2/build-aux/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./postgis-3.3.2/build-aux/config.sub '/usr/lib/rpm/redhat/config.sub' -> './postgis-3.3.2/build-aux/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./postgis-3.3.2/build-aux/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./postgis-3.3.2/build-aux/config.guess ++ basename ./postgis-3.3.2/build-aux/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./postgis-3.3.2/build-aux/config.guess '/usr/lib/rpm/redhat/config.guess' -> './postgis-3.3.2/build-aux/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./build-aux/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./build-aux/config.sub ++ basename ./build-aux/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./build-aux/config.sub '/usr/lib/rpm/redhat/config.sub' -> './build-aux/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./build-aux/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./build-aux/config.guess ++ basename ./build-aux/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./build-aux/config.guess '/usr/lib/rpm/redhat/config.guess' -> './build-aux/config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-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/redhat/redhat-hardened-ld"~' ./postgis-2.5.5/build-aux/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/redhat/redhat-hardened-ld"~' ./postgis-3.3.2/build-aux/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/redhat/redhat-hardened-ld"~' ./build-aux/ltmain.sh ++ grep -q runstatedir=DIR ./configure ++ echo --runstatedir=/run + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-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 --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-rpath --enable-raster --with-gui --with-pgconfig=/usr/bin/pg_server_config --with-sfcgal configure: WARNING: unrecognized options: --disable-dependency-tracking, --enable-raster checking for a BSD-compatible install... /usr/bin/install -c checking build system type... riscv64-koji-linux-gnu checking host system type... riscv64-koji-linux-gnu checking how to print strings... printf checking for riscv64-koji-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 we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for 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 riscv64-koji-linux-gnu file names to riscv64-koji-linux-gnu format... func_convert_file_noop checking how to convert riscv64-koji-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for riscv64-koji-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for riscv64-koji-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking whether we are using Clang... no checking whether we are using the GNU C compiler... (cached) yes checking for riscv64-koji-linux-gnu-gcc-ar... no checking for riscv64-koji-linux-gnu-ar... no checking for gcc-ar... gcc-ar checking whether we are using Clang... (cached) no checking whether we are using the GNU C compiler... (cached) yes checking for riscv64-koji-linux-gnu-gcc-ranlib... no checking for riscv64-koji-linux-gnu-ranlib... no checking for gcc-ranlib... gcc-ranlib checking for riscv64-koji-linux-gnu-ar... gcc-ar checking for archiver @FILE support... @ checking for riscv64-koji-linux-gnu-strip... no checking for strip... strip checking for riscv64-koji-linux-gnu-ranlib... gcc-ranlib checking for gawk... gawk checking command to parse /usr/bin/nm -B output from gcc object... ./configure: line 6387: -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 riscv64-koji-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for 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 riscv64-koji-linux-gnu-gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking whether byte ordering is bigendian... no checking for cpp... /usr/bin/cpp checking if gcc supports -fno-math-errno... yes checking if gcc supports -fno-signed-zeros... yes checking if gcc supports -std=gnu99... yes checking if gcc supports --exclude-libs... yes checking for flex... flex checking lex output file root... lex.yy checking lex library... none needed checking whether yytext is a pointer... no checking for bison... no checking ieeefp.h usability... no checking ieeefp.h presence... no checking for ieeefp.h... no checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for vasprintf... yes checking for asprintf... yes checking for _LARGEFILE_SOURCE value needed for large files... no checking for perl... /usr/bin/perl checking for xsltproc... /usr/bin/xsltproc checking for xml2pot... no configure: WARNING: xml2pot is not installed so translations cannot be updated checking for msgmerge... /usr/bin/msgmerge checking for msginit... /usr/bin/msginit checking for convert... no checking for dblatex... configure: WARNING: ImageMagick does not seem to be installed. Documentation cannot be built configure: WARNING: dblatex is not installed so PDF documentation cannot be built no checking for xmllint... /usr/bin/xmllint configure: WARNING: could not locate Docbook stylesheets required to build the documentation checking for riscv64-koji-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for CUNIT... no configure: WARNING: could not locate CUnit required for unit tests checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking for libiconv_open in -liconv... no checking for iconv_open in -lc... yes checking for iconvctl... no checking for libiconvctl... no Using user-specified pg_config file: /usr/bin/pg_server_config checking PostgreSQL version... PostgreSQL 14.3 checking libpq-fe.h usability... yes checking libpq-fe.h presence... yes checking for libpq-fe.h... yes checking for PQserverVersion in -lpq... yes ------------------------------------------------------------------------ WARNING: You have set the --prefix to '/usr'. But we mostly ignore the --prefix. For your info, using the values determined from /usr/bin/pg_server_config we will be installing: * postgis shared library in /usr/lib64 * postgis SQL files in /usr/share/pgsql/contrib/postgis-3.3 * postgis executables in /usr/bin ------------------------------------------------------------------------ checking for xml2-config... /usr/bin/xml2-config checking libxml/tree.h usability... yes checking libxml/tree.h presence... yes checking for libxml/tree.h... yes checking libxml/parser.h usability... yes checking libxml/parser.h presence... yes checking for libxml/parser.h... yes checking libxml/xpath.h usability... yes checking libxml/xpath.h presence... yes checking for libxml/xpath.h... yes checking libxml/xpathInternals.h usability... yes checking libxml/xpathInternals.h presence... yes checking for libxml/xpathInternals.h... yes checking for xmlInitParser in -lxml2... yes checking for geos-config... /usr/bin/geos-config checking GEOS version... 3.11.1 checking geos_c.h usability... yes checking geos_c.h presence... yes checking for geos_c.h... yes checking for initGEOS in -lgeos_c... yes checking for sfcgal-config... /usr/bin/sfcgal-config checking whether make sets $(MAKE)... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... (cached) /usr/bin/msgmerge checking for ld... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking 32-bit host C ABI... no checking for ELF binary format... yes checking for the common suffixes of directories in the library search path... ./configure: line 16741: cd: /lib64/lp64d/../lib64/lp64d/: No such file or directory ./configure: line 16741: cd: /usr/lib64/lp64d/../lib64/lp64d/: No such file or directory lib,lib,lib64 checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyPreferredLanguages... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for PROJ... yes checking proj_api.h usability... no checking proj_api.h presence... no checking for proj_api.h... no checking proj.h usability... yes checking proj.h presence... yes checking for proj.h... yes checking for pj_get_release in -lproj... no checking for proj_info in -lproj... yes checking for JSONC... yes checking for PROTOBUFC... yes checking protobuf-c/protobuf-c.h usability... yes checking protobuf-c/protobuf-c.h presence... yes checking for protobuf-c/protobuf-c.h... yes checking for protobuf_c_message_init in -lprotobuf-c... yes checking for protobuf_c_version in -lprotobuf-c... yes checking protobuf-c version... 1004001 checking for protoc-c... /usr/bin/protoc-c GUI: Build requested, checking for dependencies (GTK+2.0) checking for pkg-config... /usr/bin/pkg-config checking for GTK+ - version >= 2.8.0... yes (version 2.24.33) checking if gcc supports -Wall... yes phony-revision: checking for PCRE2... yes TOPOLOGY: Topology support requested RASTER: Raster support requested checking for gdal-config... /usr/bin/gdal-config checking GDAL version... /usr/bin/gdal-config: line 9: gdal-config-32: command not found /usr/bin/gdal-config: line 9: gdal-config-32: command not found /usr/bin/gdal-config: line 9: gdal-config-32: command not found /usr/bin/gdal-config: line 9: gdal-config-32: command not found ./configure: line 20400: test: : integer expression expected checking for OGR enabled... /usr/bin/gdal-config: line 9: gdal-config-32: command not found configure: error: PostGIS raster requires OGR to be enabled in GDAL. Use --without-raster to build without raster support. error: Bad exit status from /var/tmp/rpm-tmp.r2czLy (%build) RPM build warnings: RPM build errors: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.r2czLy (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/postgis.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/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 riscv64 --nodeps /builddir/build/SPECS/postgis.spec