|
From: Александар М. <dar...@gm...> - 2011-11-15 11:44:23
|
So here's what I've got so far...
$export HWKIND=nexus_s //it's neither nexus nor pandaboard so i'll
try to fake it.
$export NDKROOT=/scratch/workareas/android/prebuilt/ndk
$cd /scratch/workareas/android/external/Valgrind
$export AR=/scratch/workareas/MV88DE3100_SDK/SDK_Tools/cross_toolchain/tarballs/4.4.5/arm-marvell-linux-gnueabi-4.4.5/bin/arm-marvell-linux-gnueabi-ar
$export LD=/scratch/workareas/MV88DE3100_SDK/SDK_Tools/cross_toolchain/tarballs/4.4.5/arm-marvell-linux-gnueabi-4.4.5/bin/arm-marvell-linux-gnueabi-ld
$export CC=/scratch/workareas/MV88DE3100_SDK/SDK_Tools/cross_toolchain/tarballs/4.4.5/arm-marvell-linux-gnueabi-4.4.5/bin/arm-marvell-linux-gnueabi-gcc
//yes, i'm not using the default NDK compiler because that one doesn't
get recognized and ./configure fails
$ ./configure --build i686-pc-linux-gnu --host arm-marvell-linux-gnueabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-marvell-linux-gnueabi-strip... arm-marvell-linux-gnueabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for arm-marvell-linux-gnueabi-gcc...
/scratch/workareas/MV88DE3100_SDK/SDK_Tools/cross_toolchain/tarballs/4.4.5/arm-marvell-linux-gnueabi-4.4.5/bin/arm-marvell-linux-gnueabi-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
/scratch/workareas/MV88DE3100_SDK/SDK_Tools/cross_toolchain/tarballs/4.4.5/arm-marvell-linux-gnueabi-4.4.5/bin/arm-marvell-linux-gnueabi-gcc
accepts -g... yes
checking for /scratch/workareas/MV88DE3100_SDK/SDK_Tools/cross_toolchain/tarballs/4.4.5/arm-marvell-linux-gnueabi-4.4.5/bin/arm-marvell-linux-gnueabi-gcc
option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of
/scratch/workareas/MV88DE3100_SDK/SDK_Tools/cross_toolchain/tarballs/4.4.5/arm-marvell-linux-gnueabi-4.4.5/bin/arm-marvell-linux-gnueabi-gcc...
gcc3
checking whether
/scratch/workareas/MV88DE3100_SDK/SDK_Tools/cross_toolchain/tarballs/4.4.5/arm-marvell-linux-gnueabi-4.4.5/bin/arm-marvell-linux-gnueabi-gcc
and cc understand -c and -o together... yes
checking how to run the C preprocessor...
/scratch/workareas/MV88DE3100_SDK/SDK_Tools/cross_toolchain/tarballs/4.4.5/arm-marvell-linux-gnueabi-4.4.5/bin/arm-marvell-linux-gnueabi-gcc
-E
checking for arm-marvell-linux-gnueabi-g++... arm-marvell-linux-gnueabi-g++
checking whether we are using the GNU C++ compiler... yes
checking whether arm-marvell-linux-gnueabi-g++ accepts -g... yes
checking dependency style of arm-marvell-linux-gnueabi-g++... gcc3
checking for arm-marvell-linux-gnueabi-ranlib...
arm-marvell-linux-gnueabi-ranlib
checking for a sed that does not truncate output... /bin/sed
checking for perl... /usr/bin/perl
checking for gdb... /usr/bin/gdb
checking dependency style of
/scratch/workareas/MV88DE3100_SDK/SDK_Tools/cross_toolchain/tarballs/4.4.5/arm-marvell-linux-gnueabi-4.4.5/bin/arm-marvell-linux-gnueabi-gcc...
gcc3
checking for diff -u... yes
checking for a supported version of gcc... ok (4.4.5.)
checking build system type... i686-pc-linux-gnu
checking host system type... arm-marvell-linux-gnueabi
checking for a supported CPU... ok (arm)
checking for a 64-bit only build... no
checking for a 32-bit only build... no
checking for a supported OS... ok (linux-gnueabi)
checking for the kernel version... 2.6.x/3.x family (2.6.35-22-generic)
checking for a supported CPU/OS combination... ok (arm-linux-gnueabi)
checking for use as an inner Valgrind... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 features.h usability... yes
checking features.h presence... yes
checking for features.h... yes
checking the GLIBC_VERSION version... 2.11 family
checking for CLOCK_MONOTONIC... yes
checking for pthread_rwlock_t... yes
checking for PTHREAD_MUTEX_ADAPTIVE_NP... yes
checking for PTHREAD_MUTEX_ERRORCHECK_NP... yes
checking for PTHREAD_MUTEX_RECURSIVE_NP... yes
checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... yes
checking for pthread_mutex_t.__m_kind... no
checking for pthread_mutex_t.__data.__kind... yes
checking for Altivec... no
checking for VSX... no
checking for pthread_create@GLIBC2.0()... no
checking for eventfd()... yes
checking if gcc accepts -m32... no
checking if gcc accepts -m64... no
checking if gcc accepts -mmmx... no
checking if gcc accepts -msse... no
checking if gcc accepts -mpreferred-stack-boundary... no
checking if gcc accepts -Wno-pointer-sign... yes
checking if gcc accepts -Wno-empty-body... yes
checking if gcc accepts -Wno-format-zero-length... yes
checking if gcc accepts -Wno-nonnull... yes
checking if gcc accepts -Wno-overflow... yes
checking if gcc accepts -Wno-uninitialized... yes
checking if gcc accepts -Wextra or -W... -Wextra
checking if gcc accepts -fno-stack-protector... yes
checking if gcc accepts --param inline-unit-growth... yes
checking if the linker accepts -Wl,--build-id=none... yes
checking if ppc32/64 as supports mtocrf/mfocrf... no
checking if x86/amd64 assembler speaks SSE3... no
checking if x86/amd64 assembler speaks SSSE3... no
checking if x86/amd64 assembler supports 'pclmulqdq'... no
checking if x86/amd64 assembler supports 'lzcnt'... no
checking if x86/amd64 assembler speaks SSE4.2... no
checking for TLS support... yes
checking for ANSI C header files... (cached) yes
checking asm/unistd.h usability... yes
checking asm/unistd.h presence... yes
checking for asm/unistd.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking mqueue.h usability... yes
checking mqueue.h presence... yes
checking for mqueue.h... yes
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking sys/eventfd.h usability... yes
checking sys/eventfd.h presence... yes
checking for sys/eventfd.h... yes
checking sys/klog.h usability... yes
checking sys/klog.h presence... yes
checking for sys/klog.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking sys/signalfd.h usability... yes
checking sys/signalfd.h presence... yes
checking for sys/signalfd.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking if <linux/futex.h> is usable... yes
checking for uid_t in sys/types.h... yes
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working memcmp... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... no
checking for pthread_create in -lpthread... yes
checking for clock_gettime in -lrt... yes
checking for clock_gettime... yes
checking for epoll_create... yes
checking for epoll_pwait... yes
checking for klogctl... yes
checking for mallinfo... yes
checking for memchr... yes
checking for memset... yes
checking for mkdir... yes
checking for mremap... yes
checking for ppoll... yes
checking for pthread_barrier_init... yes
checking for pthread_condattr_setclock... yes
checking for pthread_mutex_timedlock... yes
checking for pthread_rwlock_timedrdlock... yes
checking for pthread_rwlock_timedwrlock... yes
checking for pthread_spin_lock... yes
checking for pthread_yield... yes
checking for readlinkat... yes
checking for semtimedop... yes
checking for signalfd... yes
checking for sigwaitinfo... yes
checking for strchr... yes
checking for strdup... yes
checking for strpbrk... yes
checking for strrchr... yes
checking for strstr... yes
checking for syscall... yes
checking for utimensat... yes
checking primary target for usable MPI2-compliant C compiler and mpi.h... no
checking secondary target for usable MPI2-compliant C compiler and mpi.h... no
checking for boost... no
checking for OpenMP... yes
checking if gcc supports __sync_bool_compare_and_swap... yes
checking if g++ supports __sync_bool_compare_and_swap... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating VEX/Makefile
config.status: creating valgrind.spec
config.status: creating valgrind.pc
config.status: creating glibc-2.X.supp
config.status: creating docs/Makefile
config.status: creating tests/Makefile
config.status: creating tests/vg_regtest
config.status: creating perf/Makefile
config.status: creating perf/vg_perf
config.status: creating gdbserver_tests/Makefile
config.status: creating include/Makefile
config.status: creating auxprogs/Makefile
config.status: creating mpi/Makefile
config.status: creating coregrind/Makefile
config.status: creating memcheck/Makefile
config.status: creating memcheck/tests/Makefile
config.status: creating memcheck/tests/amd64/Makefile
config.status: creating memcheck/tests/x86/Makefile
config.status: creating memcheck/tests/linux/Makefile
config.status: creating memcheck/tests/darwin/Makefile
config.status: creating memcheck/tests/amd64-linux/Makefile
config.status: creating memcheck/tests/x86-linux/Makefile
config.status: creating memcheck/tests/ppc32/Makefile
config.status: creating memcheck/tests/ppc64/Makefile
config.status: creating memcheck/perf/Makefile
config.status: creating cachegrind/Makefile
config.status: creating cachegrind/tests/Makefile
config.status: creating cachegrind/tests/x86/Makefile
config.status: creating cachegrind/cg_annotate
config.status: creating cachegrind/cg_diff
config.status: creating callgrind/Makefile
config.status: creating callgrind/callgrind_annotate
config.status: creating callgrind/callgrind_control
config.status: creating callgrind/tests/Makefile
config.status: creating helgrind/Makefile
config.status: creating helgrind/tests/Makefile
config.status: creating massif/Makefile
config.status: creating massif/tests/Makefile
config.status: creating massif/perf/Makefile
config.status: creating massif/ms_print
config.status: creating lackey/Makefile
config.status: creating lackey/tests/Makefile
config.status: creating none/Makefile
config.status: creating none/tests/Makefile
config.status: creating none/tests/amd64/Makefile
config.status: creating none/tests/ppc32/Makefile
config.status: creating none/tests/ppc64/Makefile
config.status: creating none/tests/x86/Makefile
config.status: creating none/tests/arm/Makefile
config.status: creating none/tests/s390x/Makefile
config.status: creating none/tests/linux/Makefile
config.status: creating none/tests/darwin/Makefile
config.status: creating none/tests/x86-linux/Makefile
config.status: creating exp-sgcheck/Makefile
config.status: creating exp-sgcheck/tests/Makefile
config.status: creating drd/Makefile
config.status: creating drd/scripts/download-and-build-splash2
config.status: creating drd/tests/Makefile
config.status: creating exp-bbv/Makefile
config.status: creating exp-bbv/tests/Makefile
config.status: creating exp-bbv/tests/x86/Makefile
config.status: creating exp-bbv/tests/x86-linux/Makefile
config.status: creating exp-bbv/tests/amd64-linux/Makefile
config.status: creating exp-bbv/tests/ppc32-linux/Makefile
config.status: creating exp-bbv/tests/arm-linux/Makefile
config.status: creating exp-dhat/Makefile
config.status: creating exp-dhat/tests/Makefile
config.status: creating coregrind/link_tool_exe_linux
config.status: creating coregrind/link_tool_exe_darwin
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
Maximum build arch: arm
Primary build arch: arm
Secondary build arch:
Build OS: linux
Primary build target: ARM_LINUX
Secondary build target:
Platform variant: vanilla
Primary -DVGPV string: -DVGPV_arm_linux_vanilla=1
Default supp files: exp-sgcheck.supp xfree-3.supp
xfree-4.supp glibc-2.X-drd.supp glibc-2.34567-NPTL-helgrind.supp
glibc-2.X.supp
//still in Valgrind
$ cd ../../out/target/product/berlin_bg2/system/bin/
$ file valgrind
valgrind: ELF 32-bit LSB executable, ARM, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not
stripped
---------------
So, if this could be considered "working" I'll try alternatives of adb
pushing / copying stuff to proper places.
Thanks for helping so far,
Aleksandar
|