Node-gyp build error

81 views
Skip to first unread message

Arrow Man

unread,
Aug 1, 2015, 3:52:33 PM8/1/15
to nodejs
when I run node-gyp build I got these error messages:
gyp info it worked if it ends with ok
gyp info using node...@2.0.2
gyp info using no...@0.12.7 | linux | ia32
gyp info spawn make
gyp infomake: Entering directory `/home/slim/test/build'
make: *** No rule to make target `Release/obj.target/example/example.o', needed by `Release/obj.target/example.node'.  Stop.
make: Leaving directory `/home/slim/test/build'
 spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.13.0-32-generic
gyp ERR! command "node" "/usr/bin/node-gyp" "build"
gyp ERR! cwd /home/slim/test
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok 

Sam Roberts

unread,
Aug 2, 2015, 9:34:42 PM8/2/15
to nod...@googlegroups.com
> make: *** No rule to make target `Release/obj.target/example/example.o',

You didn't provide your binding.gyp or a description of your source
file names, but it looks like your .gyp file expects to be building an
example.cpp into an example.o, and then an example.node.

Do you have an example.cc? Did you fill in the sources array under
targets correctly?

--
http://StrongLoop.com makes it easy to develop APIs in Node, plus get
DevOps capabilities like monitoring, debugging and clustering.
Reply all
Reply to author
Forward
0 new messages