Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Error building on windows 7 #3

Closed
kfiku opened this issue May 7, 2014 · 4 comments
Closed

Error building on windows 7 #3

kfiku opened this issue May 7, 2014 · 4 comments

Comments

@kfiku
Copy link

kfiku commented May 7, 2014

Hi, I have this problem on windows 7:

c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(934): error C2220: warning treated as error - no 'objec
t' file generated [c:\Portable\atom\node_modules\pathwatcher\build\pathwatcher.vcxproj]
          c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(1127) : see reference to function template in
  stantiation 'size_t _nan_base64_decode<uint16_t>(char *,size_t,const TypeName *,const size_t)' being compiled
          with
          [
              TypeName=uint16_t
          ]

this mean that you have some warnings and compuler make warning from it.

Do You have some clue what is wrong?

@kfiku
Copy link
Author

kfiku commented May 7, 2014

full error


c:\Portable\atom\node_modules\pathwatcher>node "c:\Portable\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  scrollbar-style-observer-non-mac.cc
  main.cc
  handle_map.cc
  pathwatcher_win.cc
  common.cc
c:\Portable\atom\node_modules\scrollbar-style\node_modules\nan\nan.h(934): error C2220: warning treated as error - no 'o
bject' file generated [c:\Portable\atom\node_modules\scrollbar-style\build\scrollbar-style-observer.vcxproj]
          c:\Portable\atom\node_modules\scrollbar-style\node_modules\nan\nan.h(1127) : see reference to function templat
  e instantiation 'size_t _nan_base64_decode<uint16_t>(char *,size_t,const TypeName *,const size_t)' being compiled
          with
          [
              TypeName=uint16_t
          ]
c:\Portable\atom\node_modules\scrollbar-style\node_modules\nan\nan.h(934): warning C4244: 'initializing' : conversion fr
om '__int64' to 'int', possible loss of data [c:\Portable\atom\node_modules\scrollbar-style\build\scrollbar-style-observ
er.vcxproj]
c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(934): error C2220: warning treated as error - no 'objec
t' file generated [c:\Portable\atom\node_modules\pathwatcher\build\pathwatcher.vcxproj]
          c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(1127) : see reference to function template in
  stantiation 'size_t _nan_base64_decode<uint16_t>(char *,size_t,const TypeName *,const size_t)' being compiled
          with
          [
              TypeName=uint16_t
          ]
c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(934): warning C4244: 'initializing' : conversion from '
__int64' to 'int', possible loss of data [c:\Portable\atom\node_modules\pathwatcher\build\pathwatcher.vcxproj]
c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(934): error C2220: warning treated as error - no 'objec
t' file generated [c:\Portable\atom\node_modules\pathwatcher\build\pathwatcher.vcxproj]
          c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(1127) : see reference to function template in
  stantiation 'size_t _nan_base64_decode<uint16_t>(char *,size_t,const TypeName *,const size_t)' being compiled
          with
          [
              TypeName=uint16_t
          ]
c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(934): warning C4244: 'initializing' : conversion from '
__int64' to 'int', possible loss of data [c:\Portable\atom\node_modules\pathwatcher\build\pathwatcher.vcxproj]
c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(934): error C2220: warning treated as error - no 'objec
t' file generated [c:\Portable\atom\node_modules\pathwatcher\build\pathwatcher.vcxproj]
          c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(1127) : see reference to function template in
  stantiation 'size_t _nan_base64_decode<uint16_t>(char *,size_t,const TypeName *,const size_t)' being compiled
          with
          [
              TypeName=uint16_t
          ]
c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(934): warning C4244: 'initializing' : conversion from '
__int64' to 'int', possible loss of data [c:\Portable\atom\node_modules\pathwatcher\build\pathwatcher.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Portable\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Windows_NT 6.0.6000
gyp ERR! command "node" "c:\\Portable\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Portable\atom\node_modules\scrollbar-style
c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(934): error C2220: warning treated as error - no 'objec
t' file generated [c:\Portable\atom\node_modules\pathwatcher\build\pathwatcher.vcxproj]
gyp ERR! node -v v0.10.20
          c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(1127) : see reference to function template in
  stantiation 'size_t _nan_base64_decode<uint16_t>(char *,size_t,const TypeName *,const size_t)' being compiled
          with
          [
              TypeName=uint16_t
gyp          ]
 c:\Portable\atom\node_modules\pathwatcher\node_modules\nan\nan.h(934): warning C4244: 'initializing' : conversion from '
__int64' to 'int', possible loss of data [c:\Portable\atom\node_modules\pathwatcher\build\pathwatcher.vcxproj]
ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm ERR! weird error 1
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Portable\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Windows_NT 6.0.6000
gyp ERR! command "node" "c:\\Portable\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Portable\atom\node_modules\pathwatcher
gyp ERR! node -v v0.10.20
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm ERR! not ok code 0

@kfiku
Copy link
Author

kfiku commented May 7, 2014

the saim in latest version of node

$ node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp@0.13.0
gyp info using node@0.10.28 | win32 | x64
gyp info spawn C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  scrollbar-style-observer-non-mac.cc
c:\Portable\scrollbar-style\node_modules\nan\nan.h(934): error C2220: warning treated as error - no 'object' file genera
ted [c:\Portable\scrollbar-style\build\scrollbar-style-observer.vcxproj]
          c:\Portable\scrollbar-style\node_modules\nan\nan.h(1127) : see reference to function template instantiation 's
  ize_t _nan_base64_decode<uint16_t>(char *,size_t,const TypeName *,const size_t)' being compiled
          with
          [
              TypeName=uint16_t
          ]
c:\Portable\scrollbar-style\node_modules\nan\nan.h(934): warning C4244: 'initializing' : conversion from '__int64' to 'i
nt', possible loss of data [c:\Portable\scrollbar-style\build\scrollbar-style-observer.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Users\Kfiku\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "c:\\portable\\nodejs\\node.exe" "c:\\Users\\Kfiku\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd c:\Portable\scrollbar-style
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok

@kevinsawicki
Copy link
Contributor

Could you try opening c:\Portable\scrollbar-style\binding.gyp and adding 4244 to the list of msvs_disabled_warnings and rebuilding?

@kfiku
Copy link
Author

kfiku commented May 8, 2014

ok it works, thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants