Hi, I am testing libunwind on my system
root@genericarmv8b:~/libunwind# uname -a Linux genericarmv8b 3.18.0-rc2+ #90 SMP PREEMPT Mon Nov 3 12:44:39 IST 2014 aarch64_be GNU/Linux using big-endian filesystem from here http://releases.linaro.org/latest/openembedded/aarch64/ This is what I did. 1) git clone git://git.sv.gnu.org/libunwind.git 2) cd libunwind 3) autorefconf -i 4) ./configure failed for me saying unknown ELF target:aarch64_be root@genericarmv8b:~/libunwind# ./configure checking build system type... aarch64_be-unknown-linux-gnu checking host system type... aarch64_be-unknown-linux-gnu checking target system type... aarch64_be-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes 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 whether to enable maintainer-specific portions of Makefiles... 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 understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking whether make sets $(MAKE)... (cached) yes 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 gcc... /usr/aarch64_be-oe-linux/bin/ld checking if the linker (/usr/aarch64_be-oe-linux/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 whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert aarch64_be-unknown-linux-gnu file names to aarch64_be-unknown-linux-gnu format... func_convert_file_noop checking how to convert aarch64_be-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/aarch64_be-oe-linux/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... 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... yes 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/aarch64_be-oe-linux/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 how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/aarch64_be-oe-linux/bin/ld checking if the linker (/usr/aarch64_be-oe-linux/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/aarch64_be-oe-linux/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/aarch64_be-oe-linux/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking dependency style of gcc... gcc3 checking for __uc_get_grs in -luca... no checking for library containing dlopen... -ldl checking atomic_ops.h usability... no checking atomic_ops.h presence... no checking for atomic_ops.h... no checking for ANSI C header files... (cached) yes checking asm/ptrace_offsets.h usability... no checking asm/ptrace_offsets.h presence... no checking for asm/ptrace_offsets.h... no checking endian.h usability... yes checking endian.h presence... yes checking for endian.h... yes checking sys/endian.h usability... no checking sys/endian.h presence... no checking for sys/endian.h... no checking execinfo.h usability... yes checking execinfo.h presence... yes checking for execinfo.h... yes checking ia64intrin.h usability... no checking ia64intrin.h presence... no checking for ia64intrin.h... no checking sys/uc_access.h usability... no checking sys/uc_access.h presence... no checking for sys/uc_access.h... no checking for unistd.h... (cached) yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking for sys/types.h... (cached) yes checking sys/procfs.h usability... yes checking sys/procfs.h presence... yes checking for sys/procfs.h... yes checking sys/ptrace.h usability... yes checking sys/ptrace.h presence... yes checking for sys/ptrace.h... yes checking byteswap.h usability... yes checking byteswap.h presence... yes checking for byteswap.h... yes checking elf.h usability... yes checking elf.h presence... yes checking for elf.h... yes checking sys/elf.h usability... yes checking sys/elf.h presence... yes checking for sys/elf.h... yes checking link.h usability... yes checking link.h presence... yes checking for link.h... yes checking sys/link.h usability... no checking sys/link.h presence... no checking for sys/link.h... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for size_t... yes checking size of off_t... 8 checking for struct dl_phdr_info.dlpi_subs... yes checking for struct elf_prstatus... yes checking for struct prstatus... no checking whether PTRACE_POKEUSER is declared... yes checking whether PTRACE_POKEDATA is declared... yes checking whether PTRACE_TRACEME is declared... yes checking whether PTRACE_CONT is declared... yes checking whether PTRACE_SINGLESTEP is declared... yes checking whether PTRACE_SYSCALL is declared... yes checking whether PT_IO is declared... no checking whether PT_GETREGS is declared... no checking whether PT_GETFPREGS is declared... no checking whether PT_CONTINUE is declared... yes checking whether PT_TRACE_ME is declared... yes checking whether PT_STEP is declared... yes checking whether PT_SYSCALL is declared... yes checking for dl_iterate_phdr... yes checking for dl_phdr_removals_counter... no checking for dlmodinfo... no checking for getunwind... no checking for ttrace... no checking for mincore... yes checking if building with AltiVec... no checking if we should build libunwind-coredump... yes checking for sys/ptrace.h... (cached) yes checking if we should build libunwind-ptrace... yes checking if we should build libunwind-setjmp... yes checking for build architecture... aarch64_be checking for host architecture... aarch64_be checking for target architecture... aarch64_be checking for target operating system... linux-gnu checking for ELF helper width... configure: error: Unknown ELF target: aarch64_be 4) I modified configure.ac; and did make root@arun-OptiPlex-9010:/nfs_root/linaro-image-lamp-genericarmv8b/home/root/libunwind# git diff configure.ac diff --git a/configure.ac b/configure.ac index 582e71f..05343a2 100644 --- a/configure.ac +++ b/configure.ac @@ -103,6 +103,12 @@ SET_ARCH([$build_cpu],[build_arch]) SET_ARCH([$host_cpu],[host_arch]) SET_ARCH([$target_cpu],[target_arch]) +if test x$target_arch = xaarch64_be; then + target_arch=aarch64 + build_arch=aarch64 + host_arch=aarch64 +fi + AC_ARG_ENABLE(coredump, AS_HELP_STRING([--enable-coredump],[building libunwind-coredump library]),, [AS_CASE([$host_arch], [aarch64*|arm*|mips*|sh*|x86*|tile*], [enable_coredump=yes], [enable_coredump=no])] 5) Then i ran make check make[2]: Nothing to be done for 'run-coredump-unwind'. make[2]: Nothing to be done for 'run-coredump-unwind-mdi'. make[2]: Leaving directory '/home/root/libunwind/tests' make check-TESTS make[2]: Entering directory '/home/root/libunwind/tests' make[2]: Warning: File '.deps/test-setjmp.Po' has modification time 18 s in the future make[3]: Entering directory '/home/root/libunwind/tests' make[3]: Warning: File '.deps/test-setjmp.Po' has modification time 18 s in the future PASS: test-proc-info test-static-lin[29982]: unhandled level 1 translation fault (11) at 0x19040ffec, esr 0x92000005 ../config/test-driver: line 107: 29982 Segmentation fault "$@" > $log_file 2>&1 FAIL: test-static-link PASS: test-strerror lt-Gtest-bt[30012]: unhandled level 2 translation fault (11) at 0x18401abc, esr 0x92000006 ../config/test-driver: line 107: 30012 Segmentation fault "$@" > $log_file 2>&1 FAIL: Gtest-bt PASS: Ltest-bt lt-Gtest-exc[30060]: unhandled level 2 translation fault (11) at 0x144010cc, esr 0x92000006 ../config/test-driver: line 107: 30060 Segmentation fault "$@" > $log_file 2>&1 FAIL: Gtest-exc PASS: Ltest-exc lt-Gtest-init[30108]: unhandled level 2 translation fault (11) at 0x14400f2c, esr 0x92000006 ../config/test-driver: line 107: 30108 Segmentation fault "$@" > $log_file 2>&1 FAIL: Gtest-init PASS: Ltest-init lt-Gtest-concur[30175]: unhandled level 2 translation fault (11) at 0x104011fc, esr 0x92000006 lt-Gtest-concur[30177]: unhandled level 2 translation fault (11) at 0x104011fc, esr 0x92000006 ../config/test-driver: line 107: 30156 Segmentation fault "$@" > $log_file 2>&1 FAIL: Gtest-concurrent PASS: Ltest-concurrent lt-Gtest-resume[30593]: unhandled level 2 translation fault (11) at 0x0c4013ec, esr 0x92000006 ../config/test-driver: line 107: 30593 Segmentation fault "$@" > $log_file 2>&1 FAIL: Gtest-resume-sig PASS: Ltest-resume-sig lt-Gtest-resume[30641]: unhandled level 2 translation fault (11) at 0x0c4013f4, esr 0x92000006 ../config/test-driver: line 107: 30641 Segmentation fault "$@" > $log_file 2>&1 FAIL: Gtest-resume-sig-rt PASS: Ltest-resume-sig-rt ../config/test-driver: line 107: 30689 Segmentation fault "$@" > $log_file 2>&1 XFAIL: Gtest-dyn1 XFAIL: Ltest-dyn1 lt-Gtest-trace[30737]: unhandled level 2 translation fault (11) at 0x18401c74, esr 0x92000006 ../config/test-driver: line 107: 30737 Segmentation fault "$@" > $log_file 2>&1 FAIL: Gtest-trace PASS: Ltest-trace PASS: test-async-sig PASS: test-flush-cache lt-test-init-re[30833]: unhandled level 2 translation fault (11) at 0x08400e74, esr 0x92000006 ../config/test-driver: line 107: 30833 Segmentation fault "$@" > $log_file 2>&1 FAIL: test-init-remote lt-test-mem[30857]: unhandled level 2 translation fault (11) at 0x0c400e4c, esr 0x92000006 ../config/test-driver: line 107: 30857 Segmentation fault "$@" > $log_file 2>&1 FAIL: test-mem PASS: Ltest-varargs PASS: Ltest-nomalloc PASS: Ltest-nocalloc PASS: Lrs-race FAIL: test-ptrace PASS: test-setjmp FAIL: run-check-namespace FAIL: run-ptrace-mapper FAIL: run-ptrace-misc crasher[31499]: unhandled level 2 translation fault (11) at 0x00000020, esr 0x92000046 FAIL: run-coredump-unwind crasher[31548]: unhandled level 2 translation fault (11) at 0x00000020, esr 0x92000046 FAIL: run-coredump-unwind-mdi make[4]: Entering directory '/home/root/libunwind/tests' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/home/root/libunwind/tests' ============================================================================ Testsuite summary for libunwind 1.1 ============================================================================ # TOTAL: 34 # PASS: 16 # SKIP: 0 # XFAIL: 2 # FAIL: 16 # XPASS: 0 # ERROR: 0 ============================================================================ See tests/test-suite.log Please report to [email protected] ============================================================================ Makefile:1421: recipe for target 'test-suite.log' failed make[3]: *** [test-suite.log] Error 1 make[3]: Leaving directory '/home/root/libunwind/tests' Makefile:1527: recipe for target 'check-TESTS' failed make[2]: *** [check-TESTS] Error 2 make[2]: Leaving directory '/home/root/libunwind/tests' Makefile:1915: recipe for target 'check-am' failed make[1]: *** [check-am] Error 2 make[1]: Leaving directory '/home/root/libunwind/tests' Makefile:583: recipe for target 'check-recursive' failed make: *** [check-recursive] Error 1 Any pointers to start digging? --Arun _______________________________________________ Libunwind-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/libunwind-devel
