|
From: Peter Z. Lu <lz...@um...> - 2012-08-09 19:10:29
|
Hi everyone,
I am new to valgrind, trying to get it compiled. I am on mac OSX 10.7 with
gcc(4.8). Here is the error message during make. Any suggestions are
welcome. Thanks in advance.
Peter
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_amd64=1
-DVGO_darwin=1 -DVGP_amd64_darwin=1 -DVGPV_amd64_darwin_vanilla=1
-I../coregrind
-DVG_LIBDIR="\"/Users/lvzhoujie/Work/valgrind-3.8.0/lib/valgrind"\"
-DVG_PLATFORM="\"amd64-darwin\"" -arch x86_64 -O2 -g -Wall
-Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes
-Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing
-fno-builtin -mmacosx-version-min=10.5 -fno-stack-protector -Wno-long-long
-Wno-pointer-sign -fno-stack-protector -MT
libcoregrind_amd64_darwin_a-m_syscall.o -MD -MP -MF
.deps/libcoregrind_amd64_darwin_a-m_syscall.Tpo -c -o
libcoregrind_amd64_darwin_a-m_syscall.o `test -f 'm_syscall.c' || echo
'./'`m_syscall.c
m_syscall.c:525:1: error: unknown type name ‘__private_extern__’
__private_extern__ UWord
^
m_syscall.c:526:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘do_syscall_unix_WRK’
do_syscall_unix_WRK ( UWord a1, UWord a2, UWord a3, /* rdi, rsi, rdx */
^
m_syscall.c:549:1: error: unknown type name ‘__private_extern__’
__private_extern__ UWord
^
m_syscall.c:550:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘do_syscall_mach_WRK’
do_syscall_mach_WRK ( UWord a1, UWord a2, UWord a3, /* rdi, rsi, rdx */
^
m_syscall.c: In function ‘vgPlain_do_syscall’:
m_syscall.c:703:10: warning: implicit declaration of function
‘do_syscall_unix_WRK’ [-Wimplicit-function-declaration]
wLO = do_syscall_unix_WRK(a1,a2,a3,a4,a5,a6,a7,a8,
^
m_syscall.c:708:10: warning: implicit declaration of function
‘do_syscall_mach_WRK’ [-Wimplicit-function-declaration]
wLO = do_syscall_mach_WRK(a1,a2,a3,a4,a5,a6,a7,a8,
^
make[3]: *** [libcoregrind_amd64_darwin_a-m_syscall.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
|