Skip to content

Instantly share code, notes, and snippets.

@pnasrat
Last active June 23, 2016 17:48
Show Gist options
  • Save pnasrat/9ef5237d7dd89ce8be1a92b6db5e7d67 to your computer and use it in GitHub Desktop.
Save pnasrat/9ef5237d7dd89ce8be1a92b6db5e7d67 to your computer and use it in GitHub Desktop.

XNU build blog

  • Build dtrace
    • mkdir -p obj sym dst
    • $ xcodebuild install -target ctfconvert -target ctfdump -target ctfmerge ARCHS="x86_64" SRCROOT=$PWD OBJROOT=$PWD/obj SYMROOT=$PWD/sym DSTROOT=$PWD/dst
  • sudo xcodebuild -license

7.3.1

  • hfs:
/xnu-3248.20.55/bsd/hfs/hfs_vfsops.c:2014:51: error:  
      address of array 'hfsmp->vcbVN' will always evaluate to 'true'  
      [-Werror,-Wpointer-bool-conversion]  
        printf("hfs: mounted %s on device %s\n", (hfsmp->vcbVN ? (const ...  
makedefs/MakeInc.def
99:	-Wunreachable-code -Wno-pointer-bool-conversion
  • IOkit:
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment