kazupon / kazupon/node-mappedbuffer

Does not compile on BBB

未关闭
#3 0 条评论 0 个 reaction 已指派 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

贡献指南

这个仓库没有索引到贡献指南

调研方向

从报告的 malloc 和 free 错误处开始检查 src/mappedbuffer.cc,然后检查 native addon 是如何通过 node-gyp 构建的。在报告的 BeagleBone Black 环境中重新构建 mappedbuffer 包;当 node-gyp 在没有编译错误的情况下完成时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp, node.js
领域
build-system
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。