未定义符号 ___ctzdi2

Undefined symbol ___ctzdi2

我正在尝试在 OSX 10.11.2 上安装一个名为 Valgrind 的调试器。

当运行 make 时,出现以下错误

Undefined symbols for architecture i386:
  "___ctzdi2", referenced from:
      _doRegisterAllocation in libvex-x86-darwin.a(libvex_x86_darwin_a-host_generic_reg_alloc2.o)
ld: symbol(s) not found for architecture i386
make[3]: *** [memcheck-x86-darwin] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

你知道如何解决这个问题吗?

这可能对你有用,也可能不适合你,因为我在以下环境中操作:

我收到了与 OP 相同的错误,直到我使用了以下额外的配置参数:

./configure --enable-only64bit