Errors on 'make doc'

63 views
Skip to first unread message

James Gibson

unread,
Mar 25, 2014, 1:41:08 PM3/25/14
to jstat-...@googlegroups.com
Hi all,

I have GNU Make v3.81 and Node v0.10.15. I cloned the repository and ran 'make && make doc'; 'make' runs fine, but I am receiving 8 instances of the following error from 'make doc':

/usr/bin/nodejs:1
(function (exports, require, module, __filename, __dirname) { ELF
^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3

Any ideas? I'm new to this make process.

Thanks,
James

Trevor Norris

unread,
Mar 26, 2014, 12:39:46 AM3/26/14
to jstat-...@googlegroups.com
Hm. That seems to be a Node issue. Can you try the latest v0.10 stable (v0.10.26 I believe). 

James Gibson

unread,
Mar 26, 2014, 1:08:40 PM3/26/14
to jstat-...@googlegroups.com
Same results with Node 0.10.26. Since it only occurs on 'make doc' I'm not really sure how to approach debugging.  

James Gibson

unread,
Mar 27, 2014, 12:49:52 AM3/27/14
to jstat-...@googlegroups.com
Figured it out. I'm on Ubuntu 13.10 and for whatever reason have node installed as both 'node' and 'nodejs'. In the makefile, JS_ENGINE is set to 'which node nodejs', which on my machine was set to '/usr/bin/node /usr/bin/nodejs'. So when the Makefile ran '$(JS_ENGINE) <params for build>', it tried to pass /usr/bin/nodejs as the first param to /usr/bin/node, throwing the error. 

If there is interest, I'll submit a pull request that will make the Makefile run even if both node and nodejs are defined. I have no idea how widespread my (mis)configuration is. 

Thanks for the help, Trevor!

On Wednesday, March 26, 2014 12:39:46 AM UTC-4, Trevor Norris wrote:
Reply all
Reply to author
Forward
0 new messages