>>> libsigsegv 2.12 Downloading --2019-08-06 09:44:12-- http://ftpmirror.gnu.org/libsigsegv/libsigsegv-2.12.tar.gz Resolving ftpmirror.gnu.org (ftpmirror.gnu.org)... 209.51.188.200, 2001:470:142:5::200 Connecting to ftpmirror.gnu.org (ftpmirror.gnu.org)|209.51.188.200|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://ftp.snt.utwente.nl/pub/software/gnu/libsigsegv/libsigsegv-2.12.tar.gz [following] --2019-08-06 09:44:13-- http://ftp.snt.utwente.nl/pub/software/gnu/libsigsegv/libsigsegv-2.12.tar.gz Resolving ftp.snt.utwente.nl (ftp.snt.utwente.nl)... 130.89.149.20, 2001:67c:2564:a120::20 Connecting to ftp.snt.utwente.nl (ftp.snt.utwente.nl)|130.89.149.20|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 451408 (441K) [application/x-gzip] Saving to: '/home/mark/buildroot-test/instance-0/output/build/.libsigsegv-2.12.tar.gz.j3seho/output' 0K .......... .......... .......... .......... .......... 11% 1.00M 0s 50K .......... .......... .......... .......... .......... 22% 2.10M 0s 100K .......... .......... .......... .......... .......... 34% 8.26M 0s 150K .......... .......... .......... .......... .......... 45% 8.89M 0s 200K .......... .......... .......... .......... .......... 56% 2.88M 0s 250K .......... .......... .......... .......... .......... 68% 8.84M 0s 300K .......... .......... .......... .......... .......... 79% 9.25M 0s 350K .......... .......... .......... .......... .......... 90% 8.83M 0s 400K .......... .......... .......... .......... 100% 6.17M=0.1s 2019-08-06 09:44:13 (3.50 MB/s) - '/home/mark/buildroot-test/instance-0/output/build/.libsigsegv-2.12.tar.gz.j3seho/output' saved [451408/451408] libsigsegv-2.12.tar.gz: OK (sha256: 3ae1af359eebaa4ffc5896a1aee3568c052c99879316a1ab57f8fe1789c390b6) >>> libsigsegv 2.12 Extracting gzip -d -c /home/mark/buildroot-test/instance-0/dl/libsigsegv/libsigsegv-2.12.tar.gz | /home/mark/buildroot-test/instance-0/output/host/bin/tar --strip-components=1 -C /home/mark/buildroot-test/instance-0/output/build/libsigsegv-2.12 -xf - >>> libsigsegv 2.12 Patching Applying 0001-Improve-support-for-Linux-RISC-V.patch using patch: patching file configure.ac patching file src/Makefile.am patching file src/fault-linux-riscv64.h Applying 0002-m4-stack-direction-RISC-V-stack-grows-downward.patch using patch: patching file m4/stack-direction.m4 Applying 0003-Improve-support-for-Linux-nds32.patch using patch: patching file configure.ac patching file src/Makefile.am patching file src/fault-linux-nds32.h Applying 0004-m4-stack-direction-NDS32-stack-grows-downward.patch using patch: patching file m4/stack-direction.m4 >>> libsigsegv 2.12 Updating config.sub and config.guess for file in config.guess config.sub; do for i in $(find /home/mark/buildroot-test/instance-0/output/build/libsigsegv-2.12 -name $file); do cp support/gnuconfig/$file $i; done; done >>> libsigsegv 2.12 Configuring >>> libsigsegv 2.12 Autoreconfiguring libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'. libtoolize: copying file 'build-aux/ltmain.sh' libtoolize: putting macros in 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. configure.ac:29: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.ac:29: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation configure.ac:35: installing 'build-aux/compile' configure.ac:29: installing 'build-aux/missing' >>> libsigsegv 2.12 Patching libtool patching file /home/mark/buildroot-test/instance-0/output/build/libsigsegv-2.12/build-aux/ltmain.sh Hunk #1 succeeded at 2694 (offset 7 lines). Hunk #2 succeeded at 4284 (offset 7 lines). Hunk #3 succeeded at 6579 (offset 25 lines). Hunk #4 succeeded at 6589 (offset 25 lines). Hunk #5 succeeded at 6882 (offset 25 lines). Hunk #6 succeeded at 7174 (offset 25 lines). Hunk #7 succeeded at 8140 (offset 28 lines). Hunk #8 succeeded at 10769 (offset 59 lines). (cd /home/mark/buildroot-test/instance-0/output/build/libsigsegv-2.12/ && rm -rf config.cache && PATH="/home/mark/buildroot-test/instance-0/output/host/bin:/home/mark/buildroot-test/instance-0/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" AR="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-ar" AS="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-as" LD="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-ld" NM="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-nm" CC="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc" GCC="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc" CPP="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-cpp" CXX="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-g++" FC="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gfortran" F77="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gfortran" RANLIB="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-ranlib" READELF="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-readelf" STRIP="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-strip" OBJCOPY="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-objcopy" OBJDUMP="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-objdump" AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/usr/bin/gcc" GCC_FOR_BUILD="/usr/bin/gcc" CXX_FOR_BUILD="/usr/bin/g++" LD_FOR_BUILD="/usr/bin/ld" CPPFLAGS_FOR_BUILD="-I/home/mark/buildroot-test/instance-0/output/host/include" CFLAGS_FOR_BUILD="-O2 -I/home/mark/buildroot-test/instance-0/output/host/include" CXXFLAGS_FOR_BUILD="-O2 -I/home/mark/buildroot-test/instance-0/output/host/include" LDFLAGS_FOR_BUILD="-L/home/mark/buildroot-test/instance-0/output/host/lib -Wl,-rpath,/home/mark/buildroot-test/instance-0/output/host/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-as" DEFAULT_LINKER="/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-ld" CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " LDFLAGS="" FCFLAGS=" -Os " FFLAGS=" -Os " PKG_CONFIG="/home/mark/buildroot-test/instance-0/output/host/bin/pkg-config" STAGING_DIR="/home/mark/buildroot-test/instance-0/output/host/riscv64-buildroot-linux-musl/sysroot" INTLTOOL_PERL=/usr/bin/perl ac_cv_lbl_unaligned_fail=yes ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_memcmp_working=yes ac_cv_have_decl_malloc=yes gl_cv_func_malloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes ac_cv_func_calloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes lt_cv_sys_lib_search_path_spec="" ac_cv_c_bigendian=no gt_cv_func_gnugettext1_libc=yes gt_cv_func_gnugettext2_libc=yes sv_cv_fault_posix=yes CONFIG_SITE=/dev/null ./configure --target=riscv64-buildroot-linux-musl --host=riscv64-buildroot-linux-musl --build=x86_64-pc-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --program-prefix="" --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no --disable-dependency-tracking --enable-ipv6 --disable-nls --disable-static --enable-shared ) configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --enable-ipv6, --disable-nls Build Tools: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for riscv64-buildroot-linux-musl-strip... /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for riscv64-buildroot-linux-musl-gcc... /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-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... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc accepts -g... yes checking for /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc option to accept ISO C89... none needed checking whether /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc... none checking how to run the C preprocessor... /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-cpp checking build system type... x86_64-pc-linux-gnu checking host system type... riscv64-buildroot-linux-musl checking host platform... riscv64-buildroot-linux4.18.0-musl checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc... /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-ld checking if the linker (/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-nm checking the name lister (/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to riscv64-buildroot-linux-musl format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-ld option to reload object files... -r checking for riscv64-buildroot-linux-musl-objdump... /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-objdump checking how to recognize dependent libraries... pass_all checking for riscv64-buildroot-linux-musl-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for riscv64-buildroot-linux-musl-ar... /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-ar checking for archiver @FILE support... @ checking for riscv64-buildroot-linux-musl-strip... (cached) /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-strip checking for riscv64-buildroot-linux-musl-ranlib... /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-ranlib checking command to parse /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-nm output from /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for riscv64-buildroot-linux-musl-mt... no checking for mt... mt configure: WARNING: using cross tools not prefixed with host triplet checking if mt is a manifest tool... no 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 /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc supports -fno-rtti -fno-exceptions... no checking for /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc option to produce PIC... -fPIC -DPIC checking if /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc PIC flag -fPIC -DPIC works... yes checking if /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc static flag -static works... yes checking if /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc supports -c -o file.o... yes checking if /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc supports -c -o file.o... (cached) yes checking whether the /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc linker (/home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-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... no Optional Platform Environment: checking sys/signal.h usability... yes checking sys/signal.h presence... yes checking for sys/signal.h... yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for sysconf(_SC_PAGESIZE)... yes checking for PAGESIZE in limits.h... no checking for mmap with MAP_ANON... yes checking for mmap with MAP_ANONYMOUS... yes checking for mmap of /dev/zero... yes checking whether a fault handler according to POSIX works... (cached) yes checking whether a fault handler according to Linux/i386 works... no checking whether a fault handler according to old Linux/i386 works... guessing no checking whether a fault handler according to Linux/m68k works... no checking whether a fault handler according to Linux/PowerPC works... no checking whether a fault handler according to Linux/HPPA works... guessing no checking whether a fault handler according to BSD works... guessing no checking whether a fault handler according to IRIX works... no checking whether a fault handler according to HP-UX HPPA works... no checking whether a fault handler according to OSF/1 Alpha works... no checking whether a fault handler according to NetBSD Alpha works... no checking whether a fault handler according to AIX works... no checking whether a fault handler according to MacOSX/Darwin7 PowerPC works... no checking whether a fault handler according to MacOSX/Darwin5 PowerPC works... no checking whether a fault handler according to Hurd works... guessing no checking ucontext.h usability... yes checking ucontext.h presence... yes checking for ucontext.h... yes checking for the fault handler specifics... fault-linux-riscv64.h checking if the system supports catching SIGSEGV... yes checking for stack direction... grows down checking for prmap_t in sys/procfs.h... no checking for mquery... no checking for mincore... yes checking for getrlimit... yes checking for setrlimit... yes checking for sigaltstack... yes checking for stack_t... yes checking for working sigaltstack... guessing yes checking for correct stack_t interpretation... guessing yes checking whether a signal handler can be left through longjmp... guessing no checking whether a signal handler can be left through longjmp and sigaltstack... guessing no checking whether a signal handler can be left through longjmp and setcontext... guessing no checking whether a signal handler can be left through siglongjmp... guessing no checking whether a signal handler can be left through siglongjmp and sigaltstack... guessing no checking whether a signal handler can be left through siglongjmp and setcontext... guessing no checking if the system supports catching stack overflow... yes checking for uintptr_t... yes Build Parameters: checking whether to activate relocatable installation... no Output Substitution: checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/sigsegv.h config.status: creating tests/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --enable-ipv6, --disable-nls Now please type 'make' to compile. Good luck. >>> libsigsegv 2.12 Building PATH="/home/mark/buildroot-test/instance-0/output/host/bin:/home/mark/buildroot-test/instance-0/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /usr/bin/make -j2 -C /home/mark/buildroot-test/instance-0/output/build/libsigsegv-2.12/ make[1]: Entering directory '/home/mark/buildroot-test/instance-0/output/build/libsigsegv-2.12' /usr/bin/make TARGETSTACK=" all" all-recursive make[2]: Entering directory '/home/mark/buildroot-test/instance-0/output/build/libsigsegv-2.12' make[2]: warning: -j1 forced in makefile: resetting jobserver mode. Making all in src make[3]: Entering directory '/home/mark/buildroot-test/instance-0/output/build/libsigsegv-2.12/src' /bin/bash ../libtool --tag=CC --mode=compile /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -c -o handler.lo handler.c libtool: compile: /home/mark/buildroot-test/instance-0/output/host/bin/riscv64-buildroot-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -c handler.c -fPIC -DPIC -o .libs/handler.o In file included from handler-unix.c:62, from handler.c:20: /home/mark/buildroot-test/instance-0/output/host/riscv64-buildroot-linux-musl/sysroot/usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] #warning redirecting incorrect #include to ^~~~~~~ In file included from fault.h:37, from handler-unix.c:71, from handler.c:20: handler-unix.c: In function 'sigsegv_handler': fault-linux-riscv64.h:29:71: error: 'mcontext_t' {aka 'struct sigcontext'} has no member named '__gregs'; did you mean 'gregs'? #define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.__gregs[REG_SP] ^~~~~~~ handler-unix.c:151:43: note: in expansion of macro 'SIGSEGV_FAULT_STACKPOINTER' uintptr_t old_sp = (uintptr_t) (SIGSEGV_FAULT_STACKPOINTER); ^~~~~~~~~~~~~~~~~~~~~~~~~~ fault-linux-riscv64.h:29:79: error: 'REG_SP' undeclared (first use in this function) #define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.__gregs[REG_SP] ^~~~~~ handler-unix.c:151:43: note: in expansion of macro 'SIGSEGV_FAULT_STACKPOINTER' uintptr_t old_sp = (uintptr_t) (SIGSEGV_FAULT_STACKPOINTER); ^~~~~~~~~~~~~~~~~~~~~~~~~~ fault-linux-riscv64.h:29:79: note: each undeclared identifier is reported only once for each function it appears in #define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.__gregs[REG_SP] ^~~~~~ handler-unix.c:151:43: note: in expansion of macro 'SIGSEGV_FAULT_STACKPOINTER' uintptr_t old_sp = (uintptr_t) (SIGSEGV_FAULT_STACKPOINTER); ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [Makefile:486: handler.lo] Error 1 make[3]: Leaving directory '/home/mark/buildroot-test/instance-0/output/build/libsigsegv-2.12/src' make[2]: *** [Makefile:427: all-recursive] Error 1 make[2]: Leaving directory '/home/mark/buildroot-test/instance-0/output/build/libsigsegv-2.12' make[1]: *** [Makefile:359: all] Error 2 make[1]: Leaving directory '/home/mark/buildroot-test/instance-0/output/build/libsigsegv-2.12' make: *** [package/pkg-generic.mk:241: /home/mark/buildroot-test/instance-0/output/build/libsigsegv-2.12/.stamp_built] Error 2 make: Leaving directory '/home/mark/buildroot-test/instance-0/buildroot'