no2chem / bigint-buffer

💪🔢 bigint-buffer: Buffer Utilities for TC39 BigInt Proposal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build failed but install success?

agrozyme opened this issue · comments

I use npm install bigint-buffer in windows, it build failed but install success.
How could build success?
This is the logs.

Microsoft Windows [Version 10.0.17763.348]
(c) 2018 Microsoft Corporation. All rights reserved.

D:\Code\JavaScript\trader>npm install bigint-buffer

> bigint-buffer@1.1.2 install D:\Code\JavaScript\trader\node_modules\bigint-buffer
> npm run rebuild || echo "Couldn't build bindings. Non-native version used."


> bigint-buffer@1.1.2 rebuild D:\Code\JavaScript\trader\node_modules\bigint-buffer
> node-gyp rebuild


D:\Code\JavaScript\trader\node_modules\bigint-buffer>if not defined npm_config_node_gyp (node "D:\Package\Node\node_modules\npm\node_modules\npm-lifecycle\
node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "D:\Package\Node\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" r
ebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  bigint-buffer.c
d:\code\javascript\trader\node_modules\bigint-buffer\src\bigint-buffer.c(53): error C2057: expected constant expression [D:\Code\JavaScript\trader\node_mo
dules\bigint-buffer\build\bigint_buffer.vcxproj]
d:\code\javascript\trader\node_modules\bigint-buffer\src\bigint-buffer.c(53): error C2466: cannot allocate an array of constant size 0 [D:\Code\JavaScript
\trader\node_modules\bigint-buffer\build\bigint_buffer.vcxproj]
d:\code\javascript\trader\node_modules\bigint-buffer\src\bigint-buffer.c(53): error C2133: 'copy': unknown size [D:\Code\JavaScript\trader\node_modules\bi
gint-buffer\build\bigint_buffer.vcxproj]
d:\code\javascript\trader\node_modules\bigint-buffer\src\bigint-buffer.c(66): warning C4013: '__builtin_bswap64' undefined; assuming extern returning int 
[D:\Code\JavaScript\trader\node_modules\bigint-buffer\build\bigint_buffer.vcxproj]
d:\code\javascript\trader\node_modules\bigint-buffer\src\bigint-buffer.c(151): error C2057: expected constant expression [D:\Code\JavaScript\trader\node_m
odules\bigint-buffer\build\bigint_buffer.vcxproj]
d:\code\javascript\trader\node_modules\bigint-buffer\src\bigint-buffer.c(151): error C2466: cannot allocate an array of constant size 0 [D:\Code\JavaScrip
t\trader\node_modules\bigint-buffer\build\bigint_buffer.vcxproj]
d:\code\javascript\trader\node_modules\bigint-buffer\src\bigint-buffer.c(151): error C2133: 'stack_buffer': unknown size [D:\Code\JavaScript\trader\node_m
odules\bigint-buffer\build\bigint_buffer.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (D:\Package\Node\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "D:\\GreenApps\\Node\\node.exe" "D:\\Package\\Node\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Code\JavaScript\trader\node_modules\bigint-buffer
gyp ERR! node -v v10.15.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bigint-buffer@1.1.2 rebuild: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bigint-buffer@1.1.2 rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     Z:\Temp\npm-cache\_logs\2019-03-12T03_15_47_934Z-debug.log
"Couldn't build bindings. Non-native version used."
npm WARN @ant-design/icons-react@1.1.2 requires a peer of @ant-design/icons@~1.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules
\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"
x64"})

+ bigint-buffer@1.1.2

Thanks for the report! I haven't done much testing on windows. It seems that I'd need to change some things to support windows, some of the native APIs are different. I'll take a look, but since this isn't a priority for me, I can't given an ETA.

Pull requests are always welcome, though :).