+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/mozjs38.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.vtLMJ9 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mozilla-esr38/js/src + /usr/bin/bzip2 -dc /builddir/build/SOURCES/firefox-38.8.0esr.source.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd mozilla-esr38/js/src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (fix-64bit-archs.patch):' Patch #0 (fix-64bit-archs.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tests/js1_5/Array/regress-157652.js patching file tests/js1_5/Array/regress-330812.js patching file tests/js1_5/Regress/regress-422348.js + echo 'Patch #2 (mozbz-1143022.patch):' Patch #2 (mozbz-1143022.patch): + /usr/bin/patch --no-backup-if-mismatch -p3 --fuzz=0 patching file gc/Memory.cpp patching file jsapi-tests/testGCAllocator.cpp + sed -i 's|"-O2"|"-O2 -fPIC"|' configure + sed -i 's|\^\[:space:\]|^\[\[:space:\]\]|g' configure + rm -rf ../../modules/zlib + head -n -1 ../../config/milestone.txt + echo 38.8.0 + sed -i 's|^\(TwoByteCharsZ\)$|JS_PUBLIC_API\(\1\)|g' vm/CharacterEncoding.cpp + sed -i 's|^extern\ \(TwoByteCharsZ\)$|JS_PUBLIC_API\(\1\)|g' ../public/CharacterEncoding.h + sed -i '/^void$/{$!{N;s/^\(void\)\n\(js\:\:DisableExtraThreads()\)$/JS_PUBLIC_API\(\1\)\n\2/;ty;P;D;:y}}' vm/Runtime.cpp + sed -i 's|\(void\) \(DisableExtraThreads()\)|JS_PUBLIC_API\(\1\) \2|g' vm/Runtime.h + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.CGJrgh + umask 022 + cd /builddir/build/BUILD + cd mozilla-esr38/js/src + export '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 -fpermissive -fno-tree-vrp -fno-strict-aliasing' + 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 -fpermissive -fno-tree-vrp -fno-strict-aliasing' + export '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 -fpermissive -fno-tree-vrp -fno-strict-aliasing' + 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 -fpermissive -fno-tree-vrp -fno-strict-aliasing' + export PYTHON=/usr/bin/python2 + PYTHON=/usr/bin/python2 + 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 -fpermissive -fno-tree-vrp -fno-strict-aliasing' + 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 -fpermissive -fno-tree-vrp -fno-strict-aliasing' + 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 ./ctypes/libffi/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./ctypes/libffi/config.sub ++ basename ./ctypes/libffi/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./ctypes/libffi/config.sub '/usr/lib/rpm/redhat/config.sub' -> './ctypes/libffi/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./ctypes/libffi/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./ctypes/libffi/config.guess ++ basename ./ctypes/libffi/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./ctypes/libffi/config.guess '/usr/lib/rpm/redhat/config.guess' -> './ctypes/libffi/config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-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="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ctypes/libffi/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 --with-system-nspr --enable-threadsafe --enable-readline --enable-xterm-updates --enable-shared-js --enable-gcgenerational --disable-optimize --with-system-zlib --enable-system-ffi --with-system-icu --with-intl-api --enable-pie creating cache ./config.cache checking host system type... Invalid configuration `riscv64-redhat-linux-gnu': machine `riscv64-redhat' not recognized checking target system type... Invalid configuration `riscv64-redhat-linux-gnu': machine `riscv64-redhat' not recognized checking build system type... Invalid configuration `riscv64-redhat-linux-gnu': machine `riscv64-redhat' not recognized checking for gawk... gawk checking for perl5... no checking for perl... /usr/bin/perl checking for gcc... gcc checking whether the C compiler (gcc -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 -fpermissive -fno-tree-vrp -fno-strict-aliasing -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld) works... yes checking whether the C compiler (gcc -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 -fpermissive -fno-tree-vrp -fno-strict-aliasing -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ -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 -fpermissive -fno-tree-vrp -fno-strict-aliasing -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld) works... yes checking whether the C++ compiler (c++ -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 -fpermissive -fno-tree-vrp -fno-strict-aliasing -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking for ranlib... ranlib checking for as... /usr/bin/as checking for ar... ar checking for ld... ld checking for strip... strip checking for windres... no checking how to run the C preprocessor... gcc -E checking how to run the C++ preprocessor... c++ -E checking for sb-conf... no checking for ve... no checking for a BSD compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for tar archiver... checking for gnutar... no checking for gtar... gtar gtar checking for minimum required perl version >= 5.006... 5.026001 checking for full perl installation... yes Using Python from environment variable $PYTHON Creating Python environment New python executable in /builddir/build/BUILD/mozilla-esr38/js/src/_virtualenv/bin/python2 Also creating executable in /builddir/build/BUILD/mozilla-esr38/js/src/_virtualenv/bin/python Installing setuptools, pip...done. running build_ext building '_psutil_linux' extension creating build/temp.linux-riscv64-2.7 creating build/temp.linux-riscv64-2.7/psutil gcc -pthread -fno-strict-aliasing -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 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -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 -D_GNU_SOURCE -fPIC -fwrapv -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 -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-riscv64-2.7/psutil/_psutil_linux.o creating build/lib.linux-riscv64-2.7 gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-riscv64-2.7/psutil/_psutil_linux.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-riscv64-2.7/_psutil_linux.so building '_psutil_posix' extension gcc -pthread -fno-strict-aliasing -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 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -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 -D_GNU_SOURCE -fPIC -fwrapv -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 -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.linux-riscv64-2.7/psutil/_psutil_posix.o gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-riscv64-2.7/psutil/_psutil_posix.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-riscv64-2.7/_psutil_posix.so copying build/lib.linux-riscv64-2.7/_psutil_linux.so -> copying build/lib.linux-riscv64-2.7/_psutil_posix.so -> checking Python environment is Mozilla virtualenv... yes checking for doxygen... : checking for autoconf... : checking for xargs... /usr/bin/xargs checking for gmake... /usr/bin/gmake checking for X... no checking that static assertion macros used in autoconf tests work... yes checking for --noexecstack option to as... yes checking for -z noexecstack option to ld... yes checking for -z text option to ld... yes checking for --build-id option to ld... yes checking whether ld has archive extraction flags... yes checking for 64-bit OS... yes checking whether the C++ compiler (c++ -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 -fpermissive -fno-tree-vrp -fno-strict-aliasing -fno-rtti -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id) actually is a C++ compiler... yes which: no ld.gold in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) checking for PIE support... yes checking for ANSI C header files... yes checking for working const... yes checking for mode_t... yes checking for off_t... yes checking for pid_t... yes checking for size_t... yes checking for ssize_t... yes checking for endian.h... yes checking for machine/endian.h... no checking for sys/isa_defs.h... no checking for gcc c++0x headers bug without rtti... no checking for gcc PR49911... no checking for llvm pr8927... no checking for dirent.h that defines DIR... yes checking for opendir in -ldir... no checking for sys/byteorder.h... no checking for compat.h... no checking for getopt.h... yes checking for sys/bitypes.h... yes checking for memory.h... yes checking for unistd.h... yes checking for gnu/libc-version.h... yes checking for nl_types.h... yes checking for malloc.h... yes checking for X11/XKBlib.h... no checking for io.h... no checking for cpuid.h... no checking for sys/statvfs.h... yes checking for sys/statfs.h... yes checking for sys/vfs.h... yes checking for sys/mount.h... yes checking for sys/quota.h... yes checking for linux/quota.h... yes checking for sys/cdefs.h... yes checking for linux/perf_event.h... yes checking for perf_event_open system call... yes checking for gethostbyname_r in -lc_r... no checking for library containing dlopen... -ldl checking for dlfcn.h... yes checking for socket in -lsocket... no checking for pthread_create in -lpthreads... no checking for pthread_create in -lpthread... yes checking whether gcc accepts -pthread... yes checking whether gcc needs -traditional... no checking for 8-bit clean memcmp... yes checking for getc_unlocked... yes checking for _getc_nolock... no checking for gmtime_r... yes checking for localtime_r... yes checking for sin in -lm... yes checking for log2... yes checking for log1p... yes checking for expm1... yes checking for sqrt1pm1... no checking for acosh... yes checking for asinh... yes checking for atanh... yes checking for trunc... yes checking for cbrt... yes checking for wcrtomb... yes checking for mbrtowc... yes checking for res_ninit()... yes checking for nl_langinfo and CODESET... yes checking for an implementation of va_copy()... yes checking whether va_list can be copied by value... yes checking whether the C++ "using" keyword resolves ambiguity... yes checking for C++ dynamic_cast to void*... yes checking for __thread keyword for TLS variables... yes checking for __attribute__((always_inline))... yes checking for __attribute__((malloc))... yes checking for __attribute__((warn_unused_result))... yes checking for LC_MESSAGES... yes checking for localeconv... yes checking NSPR selection... system checking for nspr-config... /usr/bin/nspr-config checking for NSPR - version >= 4.9.2... yes checking for gzread in -lz... yes checking for pkg-config... /usr/bin/pkg-config checking for libffi >= 3.0.9... yes checking MOZ_FFI_CFLAGS... checking MOZ_FFI_LIBS... -lffi checking for __cxa_demangle... yes checking for -pipe support... yes checking whether C compiler supports -fprofile-generate... yes checking for tm_zone tm_gmtoff in struct tm... yes checking what kind of list files are supported by the linker... linkerscript checking what kind of ordering can be done with the linker... none checking for readline in -lreadline... yes checking for posix_fadvise... yes checking for posix_fallocate... yes checking for icu-i18n >= 50.1... yes checking MOZ_ICU_CFLAGS... checking MOZ_ICU_LIBS... -licui18n -licuuc -licudata checking for malloc.h... (cached) yes checking for setlocale... yes checking for localeconv... (cached) yes checking for malloc_size... no checking for malloc_usable_size... yes updating cache ./config.cache creating ./config.status /builddir/build/BUILD/mozilla-esr38/build/autoconf/config.guess: unable to guess system type This script, last modified 2014-02-12, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD and http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD If the version you run (/builddir/build/BUILD/mozilla-esr38/build/autoconf/config.guess) is already up to date, please send the following data and any information you think might be pertinent to in order to provide the needed information to handle your system. config.guess timestamp = 2014-02-12 uname -m = riscv64 uname -r = 4.16.0-rc2-00328-gebea62367bc4 uname -s = Linux uname -v = #4 SMP Mon Feb 26 16:05:16 GMT 2018 /usr/bin/uname -p = riscv64 /bin/uname -X = hostinfo = /bin/universe = /usr/bin/arch -k = /bin/arch = riscv64 /usr/bin/oslevel = /usr/convex/getsysinfo = UNAME_MACHINE = riscv64 UNAME_RELEASE = 4.16.0-rc2-00328-gebea62367bc4 UNAME_SYSTEM = Linux UNAME_VERSION = #4 SMP Mon Feb 26 16:05:16 GMT 2018 Traceback (most recent call last): File "./config.status", line 409, in config_status(**args) File "/builddir/build/BUILD/mozilla-esr38/python/mozbuild/mozbuild/config_status.py", line 135, in config_status emitter = TreeMetadataEmitter(env) File "/builddir/build/BUILD/mozilla-esr38/python/mozbuild/mozbuild/frontend/emitter.py", line 93, in __init__ mozinfo.find_and_update_from_json(config.topobjdir) File "/builddir/build/BUILD/mozilla-esr38/testing/mozbase/mozinfo/mozinfo/mozinfo.py", line 165, in find_and_update_from_json json_path = _os.path.join(build.topobjdir, "mozinfo.json") File "/builddir/build/BUILD/mozilla-esr38/python/mozbuild/mozbuild/base.py", line 215, in topobjdir self.topsrcdir, self.mozconfig, default='obj-@CONFIG_GUESS@') File "/builddir/build/BUILD/mozilla-esr38/python/mozbuild/mozbuild/base.py", line 204, in resolve_mozconfig_topobjdir MozbuildObject.resolve_config_guess(mozconfig, topsrcdir)) File "/builddir/build/BUILD/mozilla-esr38/python/mozbuild/mozbuild/base.py", line 365, in resolve_config_guess return subprocess.check_output(args, cwd=topsrcdir).strip() File "/usr/lib64/python2.7/subprocess.py", line 219, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '[u'/builddir/build/BUILD/mozilla-esr38/build/autoconf/config.guess']' returned non-zero exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.CGJrgh (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.CGJrgh (%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