expresso icon indicating copy to clipboard operation
expresso copied to clipboard

npm install fails using node 0.10.29

Open smartmouse opened this issue 10 years ago • 4 comments

touch obj/js-config.h.stamp g++ -o obj/jsapi.o -c -Wall -Wno-format -MMD -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DLINUX -UDEBUG -DNDEBUG -UDEBUG_nodebot -DEDITLINE -I. -I./obj -Os -fstrict-aliasing -fno-exceptions -fno-rtti -Wstrict-aliasing=2 jsapi.cpp jsapi.cpp: In function ‘JSBool JS_ConvertArgumentsVA(JSContext_, uintN, jsval_, const char_, _va_list_tag)’: jsapi.cpp:279: error: cannot convert ‘__va_list_tag**’ to ‘__va_list_tag ()[1]’ for argument ‘5’ to ‘JSBool TryArgumentFormatter(JSContext, const char**, JSBool, jsval**, _va_list_tag ()[1])’ jsapi.cpp: In function ‘jsval JS_PushArgumentsVA(JSContext*, void**, const char, _va_list_tag)’: jsapi.cpp:387: error: cannot convert ‘__va_list_tag**’ to ‘__va_list_tag ()[1]’ for argument ‘5’ to ‘JSBool TryArgumentFormatter(JSContext, const char**, JSBool, jsval*, __va_list_tag ()[1])’ make[5]: *** [obj/jsapi.o] Error 1 make[5]: Leaving directory /home/nodebot/testExpresso/node_modules/expresso/deps/jscoverage/js' make[4]: *** [all] Error 2 make[4]: Leaving directory/home/nodebot/testExpresso/node_modules/expresso/deps/jscoverage/js' make[3]: *** [all] Error 2 make[3]: Leaving directory /home/nodebot/testExpresso/node_modules/expresso/deps/jscoverage/js' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/home/nodebot/testExpresso/node_modules/expresso/deps/jscoverage' make[1]: *** [all] Error 2 make[1]: Leaving directory /home/nodebot/testExpresso/node_modules/expresso/deps/jscoverage' make: *** [deps/jscoverage/node-jscoverage] Error 2 npm ERR! [email protected] preinstall:make deps/jscoverage/node-jscoverage` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the [email protected] preinstall script. npm ERR! This is most likely a problem with the expresso package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! make deps/jscoverage/node-jscoverage npm ERR! You can get their info via: npm ERR! npm owner ls expresso npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.0.101-0.31-default npm ERR! command "/home/nodebot/node/bin/node" "/home/nodebot/node/bin/npm" "install" "expresso" npm ERR! cwd /home/nodebot/testExpresso npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/nodebot/testExpresso/npm-debug.log npm ERR! not ok code 0 nodebot@host:~/testExpresso>

The platform is zLinux, Is something wrong with my configuration? do you support zLinux ?

Any help will be appreicated. Thank you so much,

smartmouse avatar Jul 23 '14 18:07 smartmouse

This compilation error on s390x is similar to the problem reported here on Darwin64: https://bugzilla.mozilla.org/show_bug.cgi?id=436263

The issue is that in deps/jscoverage/js/jscpucfg.cpp, there following line also requires a define s390x in order to compile successfully on zLinux.

#if defined __GNUC__ && defined __x86_64__
    printf("#define HAVE_VA_LIST_AS_ARRAY 1\n");
    printf("\n");
 #endif

needs to be changed to:

#if defined __GNUC__ && ( defined __x86_64__ || defined __s390x__ )
    printf("#define HAVE_VA_LIST_AS_ARRAY 1\n");
    printf("\n");
#endif

joransiu avatar Jul 24 '14 20:07 joransiu

this library was deprecated years ago, better off using Mocha or something more recent

tj avatar Jul 24 '14 20:07 tj

That is interesting. Thanks., The reason why this was raised - node-cache has a dependencies on expresso.

smartmouse avatar Jul 24 '14 20:07 smartmouse

ahh gotcha

tj avatar Jul 24 '14 21:07 tj