当我“制造”valgrind时,我得到了错误

时间:2012-06-12 05:18:16

标签: c valgrind

Andy@Macbook-Pro~/test/valgrind-3.6.1$ make
make  all-recursive
Making all in include
make[2]: Nothing to be done for `all'.
Making all in VEX
make  all-am
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../VEX/pub -DVGA_amd64=1 -DVGO_darwin=1 -DVGP_amd64_darwin=1 -Ipriv   -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -Wbad-function-cast -Wcast-qual -Wcast-align -fstrict-aliasing -Wno-long-long  -Wno-pointer-sign -fno-stack-protector -MT libvex_amd64_darwin_a-main_globals.o -MD -MP -MF .deps/libvex_amd64_darwin_a-main_globals.Tpo -c -o libvex_amd64_darwin_a-main_globals.o `test -f 'priv/main_globals.c' || echo './'`priv/main_globals.c
cc1: error: unrecognized command line option ‘-arch’
make[3]: *** [libvex_amd64_darwin_a-main_globals.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

在我执行“./configure”

之后,这是消息的结尾部分
   Maximum build arch: amd64
     Primary build arch: amd64
   Secondary build arch: x86
               Build OS: darwin
   Primary build target: AMD64_DARWIN
 Secondary build target: X86_DARWIN
     Default supp files: exp-ptrcheck.supp xfree-3.supp xfree-4.supp darwin10-drd.supp darwin10.supp 

需要帮助。 谢谢

1 个答案:

答案 0 :(得分:1)

你需要valgrind 3.7.0在Mac OS X Lion(10.7.x)上构建,并且UR报告它也将在Snow Leopard(10.6.x)上构建。众所周知,valgrind 3.6.1不是基于Mac OS X Lion构建的。

有一个早期的版本是基于Snow Leopard构建的,但是很久以前我还不记得版本号。 news页面表明,在2010年7月,Mac OS X Snow Leopard得到了初步支持。我相信那是valgrind 3.6.0。我仍然安装了3.6.0,但我应该删除它,因为它不适用于Lion。我无法让3.6.1工作,但这可能是狮子座上的一个问题(我一直很困难,直到3.7.0被释放)。