to produce PIC... -fPIC -DPIC js/src/ctypes/libffi> checking if c++ PIC flag -fPIC -DPIC works... yes js/src/ctypes/libffi> checking if c++ static flag -static works... no js/src/ctypes/libffi> checking if c++ supports -c -o file.o... yes js/src/ctypes/libffi> checking if c++ supports -c -o file.o... (cached) yes js/src/ctypes/libffi> checking whether the c++ linker (ld) supports shared libraries... yes js/src/ctypes/libffi> checking dynamic linker characteristics... (cached) GNU/Linux ld.so js/src/ctypes/libffi> checking how to hardcode library paths into programs... immediate js/src/ctypes/libffi> checking size of size_t... 8 js/src/ctypes/libffi> checking for C compiler vendor... gnu js/src/ctypes/libffi> checking whether C compiler accepts -fstrict-aliasing... yes js/src/ctypes/libffi> checking whether C compiler accepts -ffast-math... yes js/src/ctypes/libffi> checking for gcc architecture flag... js/src/ctypes/libffi> checking for gcc architecture flag... unknown js/src/ctypes/libffi> checking whether C compiler accepts -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math... yes js/src/ctypes/libffi> checking CFLAGS for maximum warnings... -Wall js/src/ctypes/libffi> checking whether to enable maintainer-specific portions of Makefiles... no js/src/ctypes/libffi> checking sys/mman.h usability... yes js/src/ctypes/libffi> checking sys/mman.h presence... yes js/src/ctypes/libffi> checking for sys/mman.h... yes js/src/ctypes/libffi> checking for mmap... yes js/src/ctypes/libffi> checking for sys/mman.h... (cached) yes js/src/ctypes/libffi> checking for mmap... (cached) yes js/src/ctypes/libffi> checking whether read-only mmap of a plain file works... yes js/src/ctypes/libffi> checking whether mmap from /dev/zero works... yes js/src/ctypes/libffi> checking for MAP_ANON(YMOUS)... yes js/src/ctypes/libffi> checking whether mmap with MAP_ANON(YMOUS) works... yes js/src/ctypes/libffi> configure: error: "libffi has not been ported to riscv64-unknown-linux-gnu." *** Fix above errors and then restart with\ "make -f client.mk build" make[5]: Leaving directory '/builddir/build/BUILD/esc-1.1.1/esc/src/xulrunner/xulrunner-45.9.0/firefox-45.9.0esr' BUILDSTDERR: make[5]: *** [/builddir/build/BUILD/esc-1.1.1/esc/src/xulrunner/xulrunner-45.9.0/firefox-45.9.0esr/client.mk:361: configure] Error 1 make[4]: Leaving directory '/builddir/build/BUILD/esc-1.1.1/esc/src/xulrunner/xulrunner-45.9.0/firefox-45.9.0esr' BUILDSTDERR: make[4]: *** [/builddir/build/BUILD/esc-1.1.1/esc/src/xulrunner/xulrunner-45.9.0/firefox-45.9.0esr/client.mk:373: /builddir/build/BUILD/esc-1.1.1/esc/src/xulrunner/xulrunner-45.9.0/firefox-45.9.0esr/objdir/Makefile] Error 2 make[3]: Leaving directory '/builddir/build/BUILD/esc-1.1.1/esc/src/xulrunner/xulrunner-45.9.0/firefox-45.9.0esr' BUILDSTDERR: make[3]: *** [client.mk:171: build] Error 2 make[2]: Leaving directory '/builddir/build/BUILD/esc-1.1.1/esc/src/xulrunner' BUILDSTDERR: make[2]: *** [Makefile:48: xulrunner-45.9.0/firefox-45.9.0esr/objdir] Error 2 make[1]: Leaving directory '/builddir/build/BUILD/esc-1.1.1/esc/src' BUILDSTDERR: make[1]: *** [..//coreconf/rules.mk:111: libs] Error 2 BUILDSTDERR: make: *** [coreconf/rules.mk:111: libs] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.kBESmf (%build) BUILDSTDERR: Macro expanded in comment on line 87: %define __prelink_undo_cmd %{nil} BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.kBESmf (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do 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 --target riscv64 --nodeps /builddir/build/SPECS/esc.spec