+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/postgresql.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.goVGo2 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/SOURCES + sha256sum -c /builddir/build/SOURCES/postgresql-9.6.7.tar.bz2.sha256 postgresql-9.6.7.tar.bz2: OK + sha256sum -c /builddir/build/SOURCES/postgresql-9.5.11.tar.bz2.sha256 postgresql-9.5.11.tar.bz2: OK + cd /builddir/build/BUILD + rm -rf postgresql-9.6.7 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/postgresql-9.6.7.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd postgresql-9.6.7 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/postgresql-setup-6.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (rpm-pgsql.patch):' Patch #1 (rpm-pgsql.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/Makefile.global.in Hunk #1 succeeded at 83 (offset 28 lines). Hunk #2 succeeded at 101 (offset 28 lines). + echo 'Patch #2 (postgresql-logging.patch):' Patch #2 (postgresql-logging.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/backend/utils/misc/postgresql.conf.sample Hunk #1 succeeded at 335 (offset 56 lines). Hunk #2 succeeded at 343 (offset 56 lines). Hunk #3 succeeded at 355 (offset 56 lines). + echo 'Patch #5 (postgresql-var-run-socket.patch):' Patch #5 (postgresql-var-run-socket.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/backend/utils/misc/guc.c Hunk #1 succeeded at 3351 (offset 155 lines). patching file src/bin/initdb/initdb.c Hunk #1 succeeded at 1221 (offset -13 lines). patching file src/include/pg_config_manual.h Hunk #1 succeeded at 182 (offset 13 lines). + echo 'Patch #6 (postgresql-man.patch):' Patch #6 (postgresql-man.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file doc/src/sgml/man1/ecpg.1 Hunk #1 succeeded at 74 (offset -6 lines). Hunk #2 succeeded at 127 (offset -6 lines). patching file doc/src/sgml/man1/initdb.1 Hunk #1 succeeded at 278 (offset -3 lines). + cp -p /builddir/build/SOURCES/postgresql-9.6.7-US.pdf . + tar xfj /builddir/build/SOURCES/postgresql-9.5.11.tar.bz2 + find . -type f -name .gitignore + xargs rm + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.uObBZx + umask 022 + cd /builddir/build/BUILD + cd postgresql-9.6.7 ++ id -u + '[' x1000 = x0 ']' + cd postgresql-setup-6.0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info pgdocdir=/usr/share/doc/postgresql PGVERSION=9.6.7 PGMAJORVERSION=9.6 NAME_DEFAULT_PREV_SERVICE=postgresql configure: WARNING: unrecognized options: --disable-dependency-tracking checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for sed... /usr/bin/sed checking for rpmmacrosdir... /usr/lib/rpm/macros.d checking for sed... (cached) /usr/bin/sed checking for runuser... /usr/sbin/runuser checking for mountpoint... /usr/bin/mountpoint checking for oprating system (distribution)... redhat checking for rpm... /usr/bin/rpm checking for postgres... no checking for pg_upgrade... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating tests/Makefile config.status: executing tests/atconfig commands configure: WARNING: unrecognized options: --disable-dependency-tracking configure: Configured the folowing way: PostgreSQL version: 9.6.7 PGDATADIR: ${localstatedir}/lib/pgsql/data PostgreSQL service: postgresql PostgreSQL package: postgresql PostgreSQL bin_pfx: postgresql Init system: systemd + make -j4 Making all in . make[1]: Entering directory '/builddir/build/BUILD/postgresql-9.6.7/postgresql-setup-6.0' GEN postgresql-setup GEN initdb GEN upgrade GEN postgresql-ctl GEN postgresql-check-db-dir GEN share/postgresql-setup/library.sh GEN sbin/postgresql-new-systemd-unit GEN lib/rpm/macros.d/macros.postgresql GEN README.rpm-dist.sed GEN postgresql.service GEN postgresql@.service GEN doc/postgresql-setup.1 GEN doc/postgresql-new-systemd-unit.1 GEN README.rpm-dist.m4 GEN README.rpm-dist.sgml GEN README.rpm-dist GEN .generated_files make[1]: Leaving directory '/builddir/build/BUILD/postgresql-9.6.7/postgresql-setup-6.0' Making all in tests make[1]: Entering directory '/builddir/build/BUILD/postgresql-9.6.7/postgresql-setup-6.0/tests' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/builddir/build/BUILD/postgresql-9.6.7/postgresql-setup-6.0/tests' + cd .. + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' ++ echo -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ++ xargs -n 1 ++ grep -v ffast-math ++ xargs -n 100 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' + export CFLAGS + export PYTHON=/usr/bin/python3 + PYTHON=/usr/bin/python3 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 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 ./postgresql-9.5.11/config/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./postgresql-9.5.11/config/config.guess ++ basename ./postgresql-9.5.11/config/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./postgresql-9.5.11/config/config.guess '/usr/lib/rpm/redhat/config.guess' -> './postgresql-9.5.11/config/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./postgresql-9.5.11/config/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./postgresql-9.5.11/config/config.sub ++ basename ./postgresql-9.5.11/config/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./postgresql-9.5.11/config/config.sub '/usr/lib/rpm/redhat/config.sub' -> './postgresql-9.5.11/config/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config/config.guess ++ basename ./config/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config/config.guess '/usr/lib/rpm/redhat/config.guess' -> './config/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config/config.sub ++ basename ./config/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config/config.sub '/usr/lib/rpm/redhat/config.sub' -> './config/config.sub' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-rpath --with-perl --with-tcl --with-tclconfig=/usr/lib64 --with-python --with-ldap --with-openssl --with-pam --with-krb5 --with-gssapi --with-ossp-uuid --with-libxml --with-libxslt --enable-nls --enable-dtrace --with-selinux --with-system-tzdata=/usr/share/zoneinfo --datadir=/usr/share/pgsql configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-krb5 checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking which template to use... linux checking whether to build with 64-bit integer date/time support... yes checking whether NLS is wanted... yes checking for default port number... 5432 checking for dtrace... dtrace checking for block size... 8kB checking for segment size... 1GB checking for WAL block size... 8kB checking for WAL segment size... 16MB checking for riscv64-redhat-linux-gnu-gcc... no checking for riscv64-redhat-linux-gnu-cc... no checking for 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 whether gcc supports -Wdeclaration-after-statement... yes checking whether gcc supports -Wendif-labels... yes checking whether gcc supports -Wmissing-format-attribute... yes checking whether gcc supports -Wformat-security... yes checking whether gcc supports -fno-strict-aliasing... yes checking whether gcc supports -fwrapv... yes checking whether gcc supports -fexcess-precision=standard... yes checking whether gcc supports -funroll-loops... yes checking whether gcc supports -ftree-vectorize... yes checking whether gcc supports -Wunused-command-line-argument... no checking whether the C compiler still works... yes checking how to run the C preprocessor... gcc -E checking allow thread-safe client libraries... yes checking whether to build with Tcl... yes checking whether to build Perl modules... yes checking whether to build Python modules... yes checking whether to build with GSSAPI support... yes checking whether to build with PAM support... yes checking whether to build with BSD Authentication support... no checking whether to build with LDAP support... yes checking whether to build with Bonjour support... no checking whether to build with OpenSSL support... yes checking whether to build with SELinux support... yes checking whether to build with systemd support... no checking for xml2-config... xml2-config checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for riscv64-redhat-linux-gnu-strip... no checking for strip... strip checking whether it is possible to strip libraries... yes checking for riscv64-redhat-linux-gnu-ar... no checking for ar... ar checking for a BSD-compatible install... /usr/bin/install -c checking for tar... /usr/bin/tar checking whether ln -s works... yes checking for gawk... gawk checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for bison... /usr/bin/bison configure: using bison (GNU Bison) 3.0.4 checking for flex... /usr/bin/flex configure: using flex 2.6.1 checking for perl... /usr/bin/perl configure: using perl 5.26.1 checking for Perl archlibexp... /usr/lib64/perl5 checking for Perl privlibexp... /usr/share/perl5 checking for Perl useshrplib... true checking for CFLAGS recommended by Perl... -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 checking for CFLAGS to compile embedded Perl... checking for flags to link embedded Perl... -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -L/usr/local/lib -L/usr/lib64/perl5/CORE -lperl -lpthread -lresolv -ldl -lm -lcrypt -lutil -lc checking for python... /usr/bin/python3 checking for Python distutils module... yes checking Python configuration directory... /usr/lib64/python3.6/config-3.6m-riscv64-linux-gnu checking Python include directories... -I/usr/include/python3.6m checking how to link an embedded Python application... -L/usr/lib64/python3.6/config-3.6m-riscv64-linux-gnu -lpython3.6m -lpthread -ldl -lutil -lm 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 if compiler needs certain flags to reject unknown flags... no checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for strerror_r... yes checking for getpwuid_r... yes checking for gethostbyname_r... yes checking whether strerror_r returns int... no checking for main in -lm... yes checking for library containing setproctitle... no checking for library containing dlopen... -ldl checking for library containing socket... none required checking for library containing shl_load... no checking for library containing getopt_long... none required checking for library containing crypt... -lcrypt checking for library containing shm_open... -lrt checking for library containing shm_unlink... none required checking for library containing fdatasync... none required checking for library containing sched_yield... none required checking for library containing gethostbyname_r... none required checking for library containing shmget... none required checking for library containing readline... -lreadline checking for inflate in -lz... yes checking for library containing gss_init_sec_context... -lgssapi_krb5 checking for CRYPTO_new_ex_data in -lcrypto... yes checking for SSL_new in -lssl... yes checking for SSL_get_current_compression... yes checking for OPENSSL_init_ssl... yes checking for BIO_get_data... yes checking for BIO_meth_new... yes checking for ASN1_STRING_get0_data... yes checking for RAND_OpenSSL... yes checking for CRYPTO_lock... no checking for pam_start in -lpam... yes checking for xmlSaveToBuffer in -lxml2... yes checking for xsltCleanupGlobals in -lxslt... yes checking for ldap_bind in -lldap... yes checking for ldap_simple_bind in -lldap_r... yes checking for security_compute_create_name in -lselinux... yes checking for uuid_export in -lossp-uuid... yes checking atomic.h usability... no checking atomic.h presence... no checking for atomic.h... no checking crypt.h usability... yes checking crypt.h presence... yes checking for crypt.h... yes checking dld.h usability... no checking dld.h presence... no checking for dld.h... no checking fp_class.h usability... no checking fp_class.h presence... no checking for fp_class.h... no checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking ieeefp.h usability... no checking ieeefp.h presence... no checking for ieeefp.h... no checking ifaddrs.h usability... yes checking ifaddrs.h presence... yes checking for ifaddrs.h... yes checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking mbarrier.h usability... no checking mbarrier.h presence... no checking for mbarrier.h... no checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking sys/epoll.h usability... yes checking sys/epoll.h presence... yes checking for sys/epoll.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/ipc.h usability... yes checking sys/ipc.h presence... yes checking for sys/ipc.h... yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking sys/pstat.h usability... no checking sys/pstat.h presence... no checking for sys/pstat.h... no checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/sem.h usability... yes checking sys/sem.h presence... yes checking for sys/sem.h... yes checking sys/shm.h usability... yes checking sys/shm.h presence... yes checking for sys/shm.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking sys/tas.h usability... no checking sys/tas.h presence... no checking for sys/tas.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking ucred.h usability... no checking ucred.h presence... no checking for ucred.h... no checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking wctype.h usability... yes checking wctype.h presence... yes checking for wctype.h... yes checking for net/if.h... yes checking for sys/ucred.h... no checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for netinet/tcp.h... yes checking readline/readline.h usability... yes checking readline/readline.h presence... yes checking for readline/readline.h... yes checking readline/history.h usability... yes checking readline/history.h presence... yes checking for readline/history.h... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking gssapi/gssapi.h usability... yes checking gssapi/gssapi.h presence... yes checking for gssapi/gssapi.h... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking openssl/err.h usability... yes checking openssl/err.h presence... yes checking for openssl/err.h... yes checking security/pam_appl.h usability... yes checking security/pam_appl.h presence... yes checking for security/pam_appl.h... yes checking libxml/parser.h usability... yes checking libxml/parser.h presence... yes checking for libxml/parser.h... yes checking libxslt/xslt.h usability... yes checking libxslt/xslt.h presence... yes checking for libxslt/xslt.h... yes checking ldap.h usability... yes checking ldap.h presence... yes checking for ldap.h... yes checking for compatible LDAP implementation... yes checking ossp/uuid.h usability... no checking ossp/uuid.h presence... no checking for ossp/uuid.h... no checking uuid.h usability... yes checking uuid.h presence... yes checking for uuid.h... yes checking whether byte ordering is bigendian... no checking for inline... inline checking for printf format archetype... gnu_printf checking for flexible array members... yes checking for signed types... yes checking for __func__... yes checking for _Static_assert... yes checking for __builtin_types_compatible_p... yes checking for __builtin_bswap32... yes checking for __builtin_bswap64... yes checking for __builtin_constant_p... yes checking for __builtin_unreachable... yes checking for __VA_ARGS__... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for tzname... yes checking for union semun... no checking for struct sockaddr_un... yes checking for struct sockaddr_storage... yes checking for struct sockaddr_storage.ss_family... yes checking for struct sockaddr_storage.__ss_family... no checking for struct sockaddr_storage.ss_len... no checking for struct sockaddr_storage.__ss_len... no checking for struct sockaddr.sa_len... no checking for struct addrinfo... yes checking for intptr_t... yes checking for uintptr_t... yes checking for unsigned long long int... yes checking for long long int... yes checking for locale_t... yes checking for struct cmsgcred... no checking for struct option... yes checking for z_streamp... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking size of off_t... 8 checking for int timezone... yes checking types of arguments for accept()... int, int, struct sockaddr *, socklen_t * checking whether gettimeofday takes only one argument... no checking for wcstombs_l declaration... no checking for cbrt... yes checking for dlopen... yes checking for fdatasync... yes checking for getifaddrs... yes checking for getpeerucred... no checking for getrlimit... yes checking for mbstowcs_l... no checking for memmove... yes checking for poll... yes checking for posix_fallocate... yes checking for pstat... no checking for pthread_is_threaded_np... no checking for readlink... yes checking for setproctitle... no checking for setsid... yes checking for shm_open... yes checking for symlink... yes checking for sync_file_range... yes checking for towlower... yes checking for utime... yes checking for utimes... yes checking for wcstombs... yes checking for wcstombs_l... no checking for fseeko... yes checking for _LARGEFILE_SOURCE value needed for large files... no checking for posix_fadvise... yes checking whether posix_fadvise is declared... yes checking whether fdatasync is declared... yes checking whether strlcat is declared... no checking whether strlcpy is declared... no checking whether F_FULLFSYNC is declared... no checking for struct sockaddr_in6... yes checking for PS_STRINGS... no checking for snprintf... yes checking for vsnprintf... yes checking whether snprintf is declared... yes checking whether vsnprintf is declared... yes checking for isinf... yes checking for crypt... yes checking for fls... no checking for getopt... yes checking for getrusage... yes checking for inet_aton... yes checking for mkdtemp... yes checking for random... yes checking for rint... yes checking for srandom... yes checking for strerror... yes checking for strlcat... no checking for strlcpy... no checking for unsetenv... yes checking for getpeereid... no checking for getaddrinfo... yes checking for getopt_long... yes checking whether sys_siglist is declared... yes checking for syslog... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for opterr... yes checking for optreset... no checking for strtoll... yes checking for strtoull... yes checking for rl_completion_append_character... yes checking for rl_completion_matches... yes checking for rl_filename_completion_function... yes checking for rl_reset_screen_size... yes checking for append_history... yes checking for history_truncate_file... yes checking test program... ok checking whether snprintf supports argument control... yes checking whether long int is 64 bits... yes checking whether snprintf supports the %z modifier... yes checking size of void *... 8 checking size of size_t... 8 checking size of long... 8 checking whether to build with float4 passed by value... yes checking whether to build with float8 passed by value... yes checking alignment of short... 2 checking alignment of int... 4 checking alignment of long... 8 checking alignment of double... 8 checking for int8... no checking for uint8... no checking for int64... no checking for uint64... no checking for __int128... yes checking for __int128 alignment bug... ok checking alignment of PG_INT128_TYPE... 16 checking for builtin __sync char locking functions... yes checking for builtin __sync int32 locking functions... yes checking for builtin __sync int32 atomic operations... yes checking for builtin __sync int64 atomic operations... yes checking for builtin __atomic int32 atomic operations... yes checking for builtin __atomic int64 atomic operations... yes checking for __get_cpuid... no checking for __cpuid... no checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... no checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... no checking which CRC-32C implementation to use... slicing-by-8 checking for library containing bind_textdomain_codeset... none required checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking for msgfmt... msgfmt checking for msgfmt flags... -c checking for msgmerge... msgmerge checking for xgettext... xgettext checking for tclsh... /usr/bin/tclsh checking for tclConfig.sh... /usr/lib64/tclConfig.sh checking tcl.h usability... yes checking tcl.h presence... yes checking for tcl.h... yes checking for perl.h... yes checking for libperl... yes checking Python.h usability... yes checking Python.h presence... yes checking for Python.h... yes checking for onsgmls... onsgmls checking for openjade... openjade checking for DocBook V4.2... yes checking for DocBook stylesheets... /usr/share/sgml/docbook/dsssl-stylesheets checking for collateindex.pl... /usr/bin/collateindex.pl checking for dbtoepub... no checking for xmllint... xmllint checking for xsltproc... xsltproc checking for osx... osx checking thread safety of required library functions... yes checking whether gcc supports -Wl,--as-needed... yes configure: using compiler=gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5) configure: using CFLAGS=-Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 configure: using CPPFLAGS= -D_GNU_SOURCE -I/usr/include/libxml2 configure: using LDFLAGS=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--as-needed configure: creating ./config.status config.status: creating GNUmakefile config.status: creating src/Makefile.global config.status: creating src/include/pg_config.h config.status: creating src/include/pg_config_ext.h config.status: creating src/interfaces/ecpg/include/ecpg_config.h config.status: linking src/backend/port/tas/dummy.s to src/backend/port/tas.s config.status: linking src/backend/port/dynloader/linux.c to src/backend/port/dynloader.c config.status: linking src/backend/port/sysv_sema.c to src/backend/port/pg_sema.c config.status: linking src/backend/port/sysv_shmem.c to src/backend/port/pg_shmem.c config.status: linking src/backend/port/dynloader/linux.h to src/include/dynloader.h config.status: linking src/include/port/linux.h to src/include/pg_config_os.h config.status: linking src/makefiles/Makefile.linux to src/Makefile.port configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-krb5 + make -j4 -C src/pl/plpython all make: Entering directory '/builddir/build/BUILD/postgresql-9.6.7/src/pl/plpython' msgfmt -c -o po/cs.mo po/cs.po msgfmt -c -o po/de.mo po/de.po msgfmt -c -o po/es.mo po/es.po msgfmt -c -o po/fr.mo po/fr.po msgfmt -c -o po/it.mo po/it.po msgfmt -c -o po/ja.mo po/ja.po msgfmt -c -o po/ko.mo po/ko.po msgfmt -c -o po/pl.mo po/pl.po msgfmt -c -o po/pt_BR.mo po/pt_BR.po msgfmt -c -o po/ru.mo po/ru.po msgfmt -c -o po/zh_CN.mo po/zh_CN.po make -C ../../../src/backend generated-headers make[1]: Entering directory '/builddir/build/BUILD/postgresql-9.6.7/src/backend' prereqdir=`cd 'parser/' >/dev/null && pwd` && \ cd '../../src/include/parser/' && rm -f gram.h && \ ln -s "$prereqdir/gram.h" . make -C catalog schemapg.h prereqdir=`cd 'storage/lmgr/' >/dev/null && pwd` && \ cd '../../src/include/storage/' && rm -f lwlocknames.h && \ ln -s "$prereqdir/lwlocknames.h" . prereqdir=`cd 'utils/' >/dev/null && pwd` && \ cd '../../src/include/utils/' && rm -f errcodes.h && \ ln -s "$prereqdir/errcodes.h" . prereqdir=`cd 'utils/' >/dev/null && pwd` && \ cd '../../src/include/utils/' && rm -f fmgroids.h && \ ln -s "$prereqdir/fmgroids.h" . make -C utils probes.h make[2]: Entering directory '/builddir/build/BUILD/postgresql-9.6.7/src/backend/catalog' make[2]: 'schemapg.h' is up to date. make[2]: Leaving directory '/builddir/build/BUILD/postgresql-9.6.7/src/backend/catalog' prereqdir=`cd 'catalog/' >/dev/null && pwd` && \ cd '../../src/include/catalog/' && rm -f schemapg.h && \ ln -s "$prereqdir/schemapg.h" . make[2]: Entering directory '/builddir/build/BUILD/postgresql-9.6.7/src/backend/utils' dtrace -C -h -s probes.d -o probes.h.tmp sed -e 's/POSTGRESQL_/TRACE_POSTGRESQL_/g' probes.h.tmp >probes.h rm probes.h.tmp make[2]: Leaving directory '/builddir/build/BUILD/postgresql-9.6.7/src/backend/utils' cd '../../src/include/utils/' && rm -f probes.h && \ ln -s "../../../src/backend/utils/probes.h" . make[1]: Leaving directory '/builddir/build/BUILD/postgresql-9.6.7/src/backend' gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -I. -I. -I/usr/include/python3.6m -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o plpy_cursorobject.o plpy_cursorobject.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -I. -I. -I/usr/include/python3.6m -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o plpy_elog.o plpy_elog.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -I. -I. -I/usr/include/python3.6m -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o plpy_exec.o plpy_exec.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -I. -I. -I/usr/include/python3.6m -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o plpy_main.o plpy_main.c In file included from ../../../src/include/storage/lwlock.h:22:0, from ../../../src/include/storage/lock.h:23, from ../../../src/include/access/heapam.h:22, from ../../../src/include/nodes/execnodes.h:18, from ../../../src/include/commands/trigger.h:17, from plpy_main.c:12: ../../../src/include/storage/s_lock.h:923:2: error: #error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org. #error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org. ^~~~~ ../../../src/include/storage/s_lock.h:995:25: error: unknown type name 'slock_t' extern int tas(volatile slock_t *lock); /* in port/.../tas.s, or ^~~~~~~ ../../../src/include/storage/s_lock.h:1005:8: error: unknown type name 'slock_t' extern slock_t dummy_spinlock; ^~~~~~~ ../../../src/include/storage/s_lock.h:1010:28: error: unknown type name 'slock_t' extern int s_lock(volatile slock_t *lock, const char *file, int line, const char *func); ^~~~~~~ In file included from ../../../src/include/storage/lwlock.h:22:0, from ../../../src/include/storage/lock.h:23, from ../../../src/include/access/heapam.h:22, from ../../../src/include/nodes/execnodes.h:18, from ../../../src/include/commands/trigger.h:17, from plpy_exec.c:12: ../../../src/include/storage/s_lock.h:923:2: error: #error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org. #error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org. ^~~~~ ../../../src/include/storage/s_lock.h:995:25: error: unknown type name 'slock_t' extern int tas(volatile slock_t *lock); /* in port/.../tas.s, or ^~~~~~~ ../../../src/include/storage/s_lock.h:1005:8: error: unknown type name 'slock_t' extern slock_t dummy_spinlock; ^~~~~~~ ../../../src/include/storage/s_lock.h:1010:28: error: unknown type name 'slock_t' extern int s_lock(volatile slock_t *lock, const char *file, int line, const char *func); ^~~~~~~ In file included from ../../../src/include/storage/lwlock.h:22:0, from ../../../src/include/storage/lock.h:23, from ../../../src/include/access/heapam.h:22, from ../../../src/include/nodes/execnodes.h:18, from ../../../src/include/executor/execdesc.h:18, from ../../../src/include/utils/portal.h:50, from ../../../src/include/executor/spi.h:18, from plpy_planobject.h:8, from plpy_cursorobject.c:21: ../../../src/include/storage/s_lock.h:923:2: error: #error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org. #error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org. ^~~~~ ../../../src/include/storage/s_lock.h:995:25: error: unknown type name 'slock_t' extern int tas(volatile slock_t *lock); /* in port/.../tas.s, or ^~~~~~~ ../../../src/include/storage/s_lock.h:1005:8: error: unknown type name 'slock_t' extern slock_t dummy_spinlock; ^~~~~~~ ../../../src/include/storage/s_lock.h:1010:28: error: unknown type name 'slock_t' extern int s_lock(volatile slock_t *lock, const char *file, int line, const char *func); ^~~~~~~ make: *** [: plpy_cursorobject.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [: plpy_exec.o] Error 1 make: *** [: plpy_main.o] Error 1 make: Leaving directory '/builddir/build/BUILD/postgresql-9.6.7/src/pl/plpython' error: Bad exit status from /var/tmp/rpm-tmp.uObBZx (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.uObBZx (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff