我正在尝试在 OS X 10.7.4 中安装 valgrind。
我按照这些说明进行操作。在我运行之前一切都很好make
,这给了我这个错误:
...
Making all in coregrind
(cd m_mach && mig /usr/include/mach/mach_vm.defs /usr/include/mach/task.defs /usr/include/mach/thread_act.defs /usr/include/mach/vm_map.defs)
2012-07-07 20:45:26.771 xcodebuild[82091:70b] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-580/Framework/Classes/DeveloperStructure/DVTPlatform.m:430
Details: The Mac OS X platform is missing - cannot set a default platform.
Object: <DVTPlatform>
Method: +loadAllPlatforms
Thread: <NSThread: 0x40010a220>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x00000001023d4448 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DVTFoundation)
1 0x00000001023d4304 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x00000001023735de +[DVTPlatform loadAllPlatforms] (in DVTFoundation)
3 0x000000010255985e IDEInitialize (in IDEFoundation)
4 0x00000001028d374c -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
5 0x000000010236bd9f (in xcodebuild)
6 0x000000010236bc28 (in xcodebuild)
7 0x0000000000000005
/Developer/usr/bin/xcodebuild fails with 6 - Device not configured
/usr/bin/mig: line 174: : command not found
mig: fatal: "<no name yet>", line -1: no SubSystem declaration
make[2]: *** [m_mach/mach_vmUser.c] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
我发现这篇文章表明它可能是 Xcode 路径的问题,但路径似乎是正确的,如下所示:
$ xcode-select -print-path
/Developer
有没有人有什么建议?