1
votes

i searched much websites to install the xnu kernel. however, there are some errors when i was installing xnu.

Xcode version: 4.6 (installed command line tool)


XNU version: xnu-2050.22.13
dtrace version: dtrace-96

here is the ERRORS:

xcrun: error: unable to find utility "ctfconvert", not a developer tool or in PATH
xcrun: error: unable to find utility "ctfmerge", not a developer tool or in PATH

i used the "make install" to install the dtrace, but it also showing the error. Please help me

2

2 Answers

2
votes

You are missing dependencies. The long story short version, is you need to first get and make dtrace-tools:

$ curl http://opensource.apple.com/tarballs/dtrace/dtrace-96.tar.gz > dt.tar.gz
$ tar zxvf dt.tar.gz
$ cd dtrace-96
$ mkdir -p obj sym dst
$ xcodebuild install -target ctfconvert -target ctfdump -target ctfmerge \
ARCHS="i386 x86_64" SRCROOT=$PWD OBJROOT=$PWD/obj SYMROOT=$PWD/sym \
DSTROOT=$PWD/dst
1
votes

You need the latest version of apple's dtools utilities. The easiest way to install the tools is with MacPorts. If you don't have MacPorts, you can download it here.

With MacPorts installed, open Terminal, and run "sudo port install dtrace"

XNU should compile.