|
From: Yanli Z. <yan...@gm...> - 2015-07-06 08:37:23
|
Hi All,
I'm quite new to Valgrind. Now I'm trying to cross compile valgrind for
android with cygwin. But I got a strange error as:
make[3]: Entering directory
`E:/thirdParty/valgrind/valgrind-3.10.1/coregrind'
E:/ogs/external/AndroidNDK/r9b/Win32/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-gcc.exe
-DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -I../VEX/pub
-DVGA_arm=1 -DVGO_linux=1 -DVGP_arm_linux=1 -DVGPV_arm_linux_android=1
-I../coregrind -DVG_LIBDIR="\"/data/local/Inst/lib/valgrind"\"
-DVG_PLATFORM="\"arm-linux\""
--sysroot=E:/ogs/external/AndroidNDK/r9b/Win32/platforms/android-18/arch-arm
-DANDROID_HARDWARE_generic -O2 -g -Wall -Wmissing-prototypes -Wshadow
-Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
-Wno-format-zero-length -fno-strict-aliasing -fno-builtin -marm
-mcpu=cortex-a8 -DENABLE_LINUX_TICKET_LOCK -Wno-long-long
--sysroot=E:/ogs/external/AndroidNDK/r9b/Win32/platforms/android-18/arch-arm
-fno-stack-protector -MT libcoregrind_arm_linux_a-m_libcproc.o -MD -MP -MF
.deps/libcoregrind_arm_linux_a-m_libcproc.Tpo -c -o
libcoregrind_arm_linux_a-m_libcproc.o `test -f 'm_libcproc.c' || echo
'./'`m_libcproc.c
m_libcproc.c:66:1: error: stray '\' in program
const HChar *VG_(libdir) = VG_LIBDIR;
^
m_libcproc.c:66:1: error: stray '\' in program
<command-line>:0:13: error: expected expression before '/' token
m_libcproc.c:66:28: note: in expansion of macro 'VG_LIBDIR'
const HChar *VG_(libdir) = VG_LIBDIR;
^
<command-line>:0:13: error: stray '\' in program
m_libcproc.c:66:28: note: in expansion of macro 'VG_LIBDIR'
const HChar *VG_(libdir) = VG_LIBDIR;
^
<command-line>:0:13: error: stray '\' in program
m_libcproc.c:66:28: note: in expansion of macro 'VG_LIBDIR'
const HChar *VG_(libdir) = VG_LIBDIR;
^
make[3]: *** [libcoregrind_arm_linux_a-m_libcproc.o] Error 1
m_libcproc.c is definitely downloaded from valgrind.org and not changed.
line 65: /* Path to library directory */
line 66: const HChar *VG_(libdir) = VG_LIBDIR;
I didnot get much helpful info from google. So PLS HELP. Thx.
Regards,
Apple
|