kazupon / kazupon/node-mappedbuffer

Does not compile on BBB

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
11
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

説明

make: Entering directory `/var/lib/cloud9/node_modules/mappedbuffer/build'
CXX(target) Release/obj.target/mappedbuffer/src/mappedbuffer.o
../src/mappedbuffer.cc:6:0: warning: "BUILDING_NODE_EXTENSION" redefined [enabled by default]
:0:0: note: this is the location of the previous definition
In file included from ../src/mappedbuffer.cc:8:0:
../src/mappedbuffer.h: In constructor 'MappedBuffer::MappedBuffer(v8::Handle, size_t, char*)':
../src/mappedbuffer.h:45:10: warning: 'MappedBuffer::released_' will be initialized after [-Wreorder]
../src/mappedbuffer.cc:93:63: warning: base 'node::ObjectWrap' [-Wreorder]
../src/mappedbuffer.cc:92:1: warning: when initialized here [-Wreorder]
../src/mappedbuffer.cc: In destructor 'virtual MappedBuffer::~MappedBuffer()':
../src/mappedbuffer.cc:107:13: warning: unused variable 'ret' [-Wunused-variable]
../src/mappedbuffer.cc: In member function 'bool MappedBuffer::unmap()':
../src/mappedbuffer.cc:120:11: warning: unused variable 'ret' [-Wunused-variable]
../src/mappedbuffer.cc: In static member function 'static v8::Handle MappedBuffer::New(const v8::Arguments&)':
../src/mappedbuffer.cc:157:75: error: 'malloc' was not declared in this scope
../src/mappedbuffer.cc:172:73: error: 'malloc' was not declared in this scope
../src/mappedbuffer.cc:188:19: warning: unused variable 'obj' [-Wunused-variable]
../src/mappedbuffer.cc:191:78: error: 'malloc' was not declared in this scope
../src/mappedbuffer.cc:195:13: warning: unused variable 'ret' [-Wunused-variable]
../src/mappedbuffer.cc: In static member function 'static v8::Handle MappedBuffer::Unmap(const v8::Arguments&)':
../src/mappedbuffer.cc:216:94: error: 'malloc' was not declared in this scope
../src/mappedbuffer.cc:227:13: warning: unused variable 'ret' [-Wunused-variable]
../src/mappedbuffer.cc: In static member function 'static v8::Handle MappedBuffer::Fill(const v8::Arguments&)':
../src/mappedbuffer.cc:280:88: error: 'malloc' was not declared in this scope
../src/mappedbuffer.cc:294:13: warning: unused variable 'ret' [-Wunused-variable]
../src/mappedbuffer.cc: In static member function 'static v8::Handle MappedBuffer::Sync(const v8::Arguments&)':
../src/mappedbuffer.cc:329:91: error: 'malloc' was not declared in this scope
../src/mappedbuffer.cc:342:13: warning: unused variable 'ret' [-Wunused-variable]
../src/mappedbuffer.cc:351:13: warning: unused variable 'ret' [-Wunused-variable]
../src/mappedbuffer.cc: In static member function 'static void MappedBuffer::OnWorkDone(uv_work_t*)':
../src/mappedbuffer.cc:497:17: error: 'free' was not declared in this scope
../src/mappedbuffer.cc:506:17: error: 'free' was not declared in this scope
../src/mappedbuffer.cc:531:16: error: 'free' was not declared in this scope
make: *** [Release/obj.target/mappedbuffer/src/mappedbuffer.o] Error 1
make: Leaving directory`/var/lib/cloud9/node_modules/mappedbuffer/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/npm/node_modules/node-gyp/lib/build.js:256:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Linux 3.8.13
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/lib/cloud9/node_modules/mappedbuffer
gyp ERR! node -v v0.8.22
gyp ERR! node-gyp -v v0.8.5
gyp ERR! not ok
npm ERR! mappedbuffer@0.0.2 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the mappedbuffer@0.0.2 install script.
npm ERR! This is most likely a problem with the mappedbuffer 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 mappedbuffer
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.8.13
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "mappedbuffer"
npm ERR! cwd /var/lib/cloud9
npm ERR! node -v v0.8.22
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/lib/cloud9/npm-debug.log
npm ERR! not ok code 0

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start with src/mappedbuffer.cc at the reported malloc and free errors, then inspect how the native addon is built through node-gyp. Rebuild the mappedbuffer package on the reported BeagleBone Black environment; done means node-gyp completes without the compilation errors.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp, node.js
領域
build-system
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
52/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。