Created
February 19, 2015 08:03
-
-
Save josser/d3e4524be46afccc5227 to your computer and use it in GitHub Desktop.
freebsd mhash build with clang++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install mhash | |
> mhash@1.1.0 install /usr/home/josser/test/node_modules/mhash | |
> node-gyp rebuild | |
child_process: customFds option is deprecated, use stdio instead. | |
gmake: Entering directory '/usr/home/josser/test/node_modules/mhash/build' | |
ACTION binding_gyp_libmhash_target_test . | |
make[1]: don't know how to make rw. Stop | |
make[1]: stopped in /usr/home/josser/test/node_modules/mhash/deps/mhash | |
TOUCH Release/obj.target/libmhash.stamp | |
CXX(target) Release/obj.target/mhash/mhash.o | |
In file included from ../mhash.cc:6: | |
In file included from ../deps/mhash/include/mhash.h:8: | |
In file included from ../deps/mhash/include/mutils/mtypes.h:24: | |
../deps/mhash/include/mutils/mutils.h:250:70: error: unknown type name '_Bool' | |
mutils_word32 *mutils_word32nswap(mutils_word32 *x, mutils_word32 n, mutils_boolean destructive); | |
^ | |
../deps/mhash/include/mutils/mutils.h:100:24: note: expanded from macro 'mutils_boolean' | |
#define mutils_boolean _Bool | |
^ | |
../deps/mhash/include/mutils/mutils.h:253:1: error: unknown type name '_Bool' | |
mutils_boolean mutils_thequals(mutils_word8 *text, mutils_word8 *hash, __const mutils_word32 len); | |
^ | |
../deps/mhash/include/mutils/mutils.h:100:24: note: expanded from macro 'mutils_boolean' | |
#define mutils_boolean _Bool | |
^ | |
In file included from ../mhash.cc:6: | |
In file included from ../deps/mhash/include/mhash.h:10: | |
../deps/mhash/include/mutils/mhash.h:73:1: error: unknown type name '_Bool' | |
mutils_boolean mhash(MHASH thread, const void *plaintext, mutils_word32 size); | |
^ | |
../deps/mhash/include/mutils/mutils.h:100:24: note: expanded from macro 'mutils_boolean' | |
#define mutils_boolean _Bool | |
^ | |
In file included from ../mhash.cc:6: | |
In file included from ../deps/mhash/include/mhash.h:10: | |
../deps/mhash/include/mutils/mhash.h:91:1: error: unknown type name '_Bool' | |
mutils_boolean mhash_hmac_deinit(MHASH thread, void *result); | |
^ | |
../deps/mhash/include/mutils/mutils.h:100:24: note: expanded from macro 'mutils_boolean' | |
#define mutils_boolean _Bool | |
^ | |
In file included from ../mhash.cc:6: | |
In file included from ../deps/mhash/include/mhash.h:10: | |
../deps/mhash/include/mutils/mhash.h:95:1: error: unknown type name '_Bool' | |
mutils_boolean mhash_save_state_mem(MHASH thread, void *mem, mutils_word32 *mem_size); | |
^ | |
../deps/mhash/include/mutils/mutils.h:100:24: note: expanded from macro 'mutils_boolean' | |
#define mutils_boolean _Bool | |
^ | |
In file included from ../mhash.cc:6: | |
In file included from ../deps/mhash/include/mhash.h:10: | |
../deps/mhash/include/mutils/mhash.h:116:1: error: unknown type name '_Bool' | |
mutils_boolean mhash_keygen_uses_salt(keygenid type); | |
^ | |
../deps/mhash/include/mutils/mutils.h:100:24: note: expanded from macro 'mutils_boolean' | |
#define mutils_boolean _Bool | |
^ | |
In file included from ../mhash.cc:6: | |
In file included from ../deps/mhash/include/mhash.h:10: | |
../deps/mhash/include/mutils/mhash.h:117:1: error: unknown type name '_Bool' | |
mutils_boolean mhash_keygen_uses_count(keygenid type); | |
^ | |
../deps/mhash/include/mutils/mutils.h:100:24: note: expanded from macro 'mutils_boolean' | |
#define mutils_boolean _Bool | |
^ | |
In file included from ../mhash.cc:6: | |
In file included from ../deps/mhash/include/mhash.h:10: | |
../deps/mhash/include/mutils/mhash.h:118:1: error: unknown type name '_Bool' | |
mutils_boolean mhash_keygen_uses_hash_algorithm(keygenid type); | |
^ | |
../deps/mhash/include/mutils/mutils.h:100:24: note: expanded from macro 'mutils_boolean' | |
#define mutils_boolean _Bool | |
^ | |
../mhash.cc:129:34: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'? | |
Handle<Value> hash_binding(const Arguments& args) | |
^~~~~~~~~ | |
v8::internal::Arguments | |
/home/josser/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here | |
class Arguments; | |
^ | |
../mhash.cc:131:15: error: calling a protected constructor of class 'v8::HandleScope' | |
HandleScope scope; | |
^ | |
/home/josser/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: note: declared protected here | |
V8_INLINE HandleScope() {} | |
^ | |
../mhash.cc:136:30: error: type 'const v8::internal::Arguments' does not provide a subscript operator | |
String::Utf8Value name(args[0]->ToString()); | |
~~~~^~ | |
../mhash.cc:139:10: error: no matching function for call to 'Null' | |
return Null(); | |
^~~~ | |
/home/josser/.node-gyp/0.12.0/deps/v8/include/v8.h:6615:19: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided | |
Handle<Primitive> Null(Isolate* isolate) { | |
^ | |
../mhash.cc:141:9: error: type 'const v8::internal::Arguments' does not provide a subscript operator | |
if(args[1]->IsString()) | |
~~~~^~ | |
../mhash.cc:143:31: error: type 'const v8::internal::Arguments' does not provide a subscript operator | |
String::Utf8Value data(args[1]->ToString()); | |
~~~~^~ | |
../mhash.cc:146:34: error: type 'const v8::internal::Arguments' does not provide a subscript operator | |
else if(Buffer::HasInstance(args[1])) | |
~~~~^~ | |
../mhash.cc:148:29: error: type 'const v8::internal::Arguments' does not provide a subscript operator | |
Handle<Object> data = args[1]->ToObject(); | |
~~~~^~ | |
../mhash.cc:153:10: error: no matching function for call to 'Null' | |
return Null(); | |
^~~~ | |
/home/josser/.node-gyp/0.12.0/deps/v8/include/v8.h:6615:19: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided | |
Handle<Primitive> Null(Isolate* isolate) { | |
^ | |
../mhash.cc:155:16: error: no member named 'New' in 'v8::String' | |
ret = String::New(hashed); | |
~~~~~~~~^ | |
../mhash.cc:158:15: error: no member named 'Close' in 'v8::HandleScope' | |
return scope.Close(ret); | |
~~~~~ ^ | |
fatal error: too many errors emitted, stopping now [-ferror-limit=] | |
20 errors generated. | |
mhash.target.mk:87: recipe for target 'Release/obj.target/mhash/mhash.o' failed | |
gmake: *** [Release/obj.target/mhash/mhash.o] Error 1 | |
gmake: Leaving directory '/usr/home/josser/test/node_modules/mhash/build' | |
gyp ERR! build error | |
gyp ERR! stack Error: `gmake` failed with exit code: 2 | |
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) | |
gyp ERR! stack at ChildProcess.emit (events.js:110:17) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12) | |
gyp ERR! System FreeBSD 10.1-RELEASE-p5 | |
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" | |
gyp ERR! cwd /usr/home/josser/test/node_modules/mhash | |
gyp ERR! node -v v0.12.0 | |
gyp ERR! node-gyp -v v1.0.2 | |
gyp ERR! not ok | |
npm ERR! FreeBSD 10.1-RELEASE-p5 | |
npm ERR! argv "node" "/usr/local/bin/npm" "install" "mhash" | |
npm ERR! node v0.12.0 | |
npm ERR! npm v2.5.1 | |
npm ERR! code ELIFECYCLE | |
npm ERR! mhash@1.1.0 install: `node-gyp rebuild` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the mhash@1.1.0 install script 'node-gyp rebuild'. | |
npm ERR! This is most likely a problem with the mhash package, | |
npm ERR! not with npm itself. | |
npm ERR! Tell the author that this fails on your system: | |
npm ERR! node-gyp rebuild | |
npm ERR! You can get their info via: | |
npm ERR! npm owner ls mhash | |
npm ERR! There is likely additional logging output above. | |
npm ERR! Please include the following file with any support request: | |
npm ERR! /usr/home/josser/test/npm-debug.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment