Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iojs.lib : fatal error LNK1127: library is corrupt [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj] #912

Closed
muyids opened this issue Aug 20, 2016 · 3 comments

Comments

@muyids
Copy link

muyids commented Aug 20, 2016

SerialPort version: 4.0.1
NodeJS Version: 6.3.1
Operating System and Hardware: windows7
Are you using Electron/Atom/NwJS?: Electron
python Version: 2.7.6
msvs_version: 2013

fatal error LNK1107

D:\workspace\electron-quick-start-serialport>npm install

> serialport@4.0.1 install D:\workspace\electron-quick-start-serialport\node_modules\serialport
> node-pre-gyp install --fallback-to-build

在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
  serialport.cpp
  serialport_win.cpp
  enumser.cpp
..\src\win\enumser.cpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
  win_delay_load_hook.cc
..\src\win\enumser.cpp(443): warning C4996: 'GetVersionExA': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
          C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(433) : see declaration of 'GetVersionExA'
..\src\serialport.cpp(90): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
          C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(102): warning C4996: 'v8::Value::ToNumber': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
          C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1989) : see declaration of 'v8::Value::ToNumber'
..\src\serialport.cpp(175): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
          C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(195): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
          C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(220): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
          C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(256): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
          C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(376): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
          C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(490): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
          C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(538): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
          C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(596): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
          C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
  disphelper.c
..\src\win\disphelper.c(1164): warning C4267: '=' : conversion from 'size_t' to 'UINT', possible loss of data [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Users\dw\.node-gyp\iojs-1.3.3\Release\iojs.lib : fatal error LNK1127: library is corrupt [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (D:\workspace\electron-quick-start-serialport\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "D:\\nodejs\\node.exe" "D:\\workspace\\electron-quick-start-serialport\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=D:\\workspace\\electron-quick-start-serialport\\node_modules\\serialport\\build\\Release\\serialport.node" "--module_name=serialport" "--module_path=D:\\workspace\\electron-quick-start-serialport\\node_modules\\serialport\\build\\Release"
gyp ERR! cwd D:\workspace\electron-quick-start-serialport\node_modules\serialport
gyp ERR! node -v v6.4.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'D:\nodejs\node.exe D:\workspace\electron-quick-start-serialport\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\Release' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (D:\workspace\electron-quick-start-serialport\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:852:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "D:\\nodejs\\node.exe" "D:\\workspace\\electron-quick-start-serialport\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd D:\workspace\electron-quick-start-serialport\node_modules\serialport
node-pre-gyp ERR! node -v v6.4.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.29
node-pre-gyp ERR! not ok
Failed to execute 'D:\nodejs\node.exe D:\workspace\electron-quick-start-serialport\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\Release' (1)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.4.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE

npm ERR! serialport@4.0.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@4.0.1 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs serialport
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls serialport
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\workspace\electron-quick-start-serialport\npm-debug.log

Code

https://github.com/dfsq1311/electron-quick-start-serialport

Steps

>git clone https://github.com/dfsq1311/electron-quick-start-serialport
>npm install

the error happened

Is there any thing wrong with my C:\Users\dw\.node-gyp\iojs-1.3.3\Release\iojs.lib?

@muyids muyids changed the title msbuild.exe failed with exit code: 1 fatal error LNK1107 Aug 20, 2016
@muyids muyids changed the title fatal error LNK1107 iojs.lib : fatal error LNK1127: library is corrupt [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj] Aug 21, 2016
@reconbot
Copy link
Member

reconbot commented Aug 22, 2016

Why is it building iojs.lib? That seems out of place. Hopefully a red herring.

@muyids
Copy link
Author

muyids commented Aug 29, 2016

I delete ~/.node-gyp, then run npm install node-gyp -g, it work.

@muyids muyids closed this as completed Aug 29, 2016
@reconbot
Copy link
Member

Yay!

On Mon, Aug 29, 2016, 11:29 AM dw notifications@github.com wrote:

Closed #912
#912
.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#912 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABlbkEQOzss2J8DWa8FazPZLsnG0qcEks5qkvregaJpZM4JpBmc
.

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants