Skip to content

Instantly share code, notes, and snippets.

@chrisa
Created November 10, 2014 09:55
Show Gist options
  • Save chrisa/827e4da6a494192cf8a0 to your computer and use it in GitHub Desktop.
Save chrisa/827e4da6a494192cf8a0 to your computer and use it in GitHub Desktop.
~/scratch ➔ git clone https://github.com/chrisa/node-dtrace-provider.git
Cloning into 'node-dtrace-provider'...
remote: Counting objects: 501, done.
remote: Total 501 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (501/501), 103.83 KiB | 0 bytes/s, done.
Resolving deltas: 100% (277/277), done.
Checking connectivity... done.
~/scratch ➔ cd node-dtrace-provider/
~/scratch/node-dtrace-provider ➔ git submodule init
Submodule 'libusdt' (https://github.com/chrisa/libusdt) registered for path 'libusdt'
~/scratch/node-dtrace-provider ➔ git submodule update
Cloning into 'libusdt'...
remote: Counting objects: 371, done.
remote: Total 371 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (371/371), 87.98 KiB | 0 bytes/s, done.
Resolving deltas: 100% (242/242), done.
Checking connectivity... done.
Submodule path 'libusdt': checked out '83e85bf3175e784926f6dfd132f11b223c745543'
~/scratch/node-dtrace-provider ➔ V=true npm install
-
> [email protected] install /Users/chris/scratch/node-dtrace-provider
> scripts/install.js
child_process: customFds option is deprecated, use stdio instead.
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
LD_LIBRARY_PATH=/Users/chris/scratch/node-dtrace-provider/build/Release/lib.host:/Users/chris/scratch/node-dtrace-provider/build/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; sh libusdt-build.sh
Building libusdt for x86_64
rm -f *.gch
rm -f *.o
rm -f libusdt.a
rm -f test_usdt
rm -f test_usdt32
rm -f test_usdt64
rm -f test_mem_usage
gcc -O2 -Wall -arch x86_64 -c -o usdt.o usdt.c
gcc -O2 -Wall -arch x86_64 -c -o usdt_dof_file.o usdt_dof_file.c
gcc -arch x86_64 -o usdt_tracepoints.o -c usdt_tracepoints_x86_64.s
gcc -O2 -Wall -arch x86_64 -c -o usdt_probe.o usdt_probe.c
gcc -O2 -Wall -arch x86_64 -c -o usdt_dof.o usdt_dof.c
gcc -O2 -Wall -arch x86_64 -c -o usdt_dof_sections.o usdt_dof_sections.c
rm -f libusdt.a
ar cru libusdt.a usdt.o usdt_dof_file.o usdt_tracepoints.o usdt_probe.o usdt_dof.o usdt_dof_sections.o
ranlib libusdt.a
touch Release/obj.target/libusdt.stamp
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/Users/chris/.node-gyp/0.11.14/src -I/Users/chris/.node-gyp/0.11.14/deps/uv/include -I/Users/chris/.node-gyp/0.11.14/deps/v8/include -I../libusdt -I../node_modules/nan -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/DTraceProviderBindings/dtrace_provider.o.d.raw -c -o Release/obj.target/DTraceProviderBindings/dtrace_provider.o ../dtrace_provider.cc
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/Users/chris/.node-gyp/0.11.14/src -I/Users/chris/.node-gyp/0.11.14/deps/uv/include -I/Users/chris/.node-gyp/0.11.14/deps/v8/include -I../libusdt -I../node_modules/nan -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/DTraceProviderBindings/dtrace_probe.o.d.raw -c -o Release/obj.target/DTraceProviderBindings/dtrace_probe.o ../dtrace_probe.cc
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/Users/chris/.node-gyp/0.11.14/src -I/Users/chris/.node-gyp/0.11.14/deps/uv/include -I/Users/chris/.node-gyp/0.11.14/deps/v8/include -I../libusdt -I../node_modules/nan -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/DTraceProviderBindings/dtrace_argument.o.d.raw -c -o Release/obj.target/DTraceProviderBindings/dtrace_argument.o ../dtrace_argument.cc
./gyp-mac-tool flock ./Release/linker.lock c++ -bundle -Wl,-search_paths_first -mmacosx-version-min=10.5 -arch x86_64 -L./Release -o Release/DTraceProviderBindings.node Release/obj.target/DTraceProviderBindings/dtrace_provider.o Release/obj.target/DTraceProviderBindings/dtrace_probe.o Release/obj.target/DTraceProviderBindings/dtrace_argument.o -undefined dynamic_lookup -L/Users/chris/scratch/node-dtrace-provider/libusdt -l usdt
SOLINK_MODULE(target) Release/DTraceProviderBindings.node: Finished
[email protected] node_modules/nan
[email protected] node_modules/tap
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected])
~/scratch/node-dtrace-provider ➔ nvm ls
-> v0.11.14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment