Hi Valgrind users,

I am coming across the following error when I run make:

configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for armv7-unknown-linux-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for armv7-unknown-linux-gcc...
/Users/itadakimasu/Library/Developer/SDKs/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-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
/Users/itadakimasu/Library/Developer/SDKs/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc
accepts -g... yes
checking for
/Users/itadakimasu/Library/Developer/SDKs/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc
option to accept ISO C89... unsupported
checking for style of include used by make... GNU
checking dependency style of
/Users/itadakimasu/Library/Developer/SDKs/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc...
gcc3
checking whether
/Users/itadakimasu/Library/Developer/SDKs/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc
and cc understand -c and -o together... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: in
`/Users/itadakimasu/Library/Developer/Tools/valgrind-3.9.0':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.


Here's my build commands:

export NDKROOT=$NDK_ROOT

export HWKIND=generic


cd ./valgrind-3.9.0


# Set up toolchain paths.

#

# For ARM

export AR=$NDKROOT/toolchains/arm-linux-androideabi-4.7/prebuilt/darwin-x86_
64/bin/arm-linux-androideabi-ar

export LD=$NDKROOT/toolchains/arm-linux-androideabi-4.7/prebuilt/darwin-x86_
64/bin/arm-linux-androideabi-ld

export CC=$NDKROOT/toolchains/arm-linux-androideabi-4.7/prebuilt/darwin-x86_
64/bin/arm-linux-androideabi-gcc


# for ARM

CPPFLAGS="--sysroot=$NDKROOT/platforms/android-14/arch-arm/usr
-DANDROID_HARDWARE_$HWKIND" \

   CFLAGS="--sysroot=$NDKROOT/platforms/android-14/arch-arm/usr" \

   ./configure --prefix=/data/local/Inst \

   --host=armv7-unknown-linux --target=armv7-unknown-linux \

   --with-tmpdir=/sdcard


# Build, and park the install tree in `pwd`/Inst

#

make -j2

make -j2 install DESTDIR=`pwd`/Inst


Thanks in advance,

Mark
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to