mafintosh/fuse-bindings

Windows and Dokany: node-gyp error in fuse-bindings.cc

derimagia opened this issue · 1 comments

Console:

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.                                                                                                                              
  fuse-bindings.cc                                                                                                                                                                                                                       
  abstractions.cc                                                                                                                                                                                                                        
c:\users\dave\code\dokany\dokan_fuse\include\fuse_win.h(118): warning C4005: 'S_IFLNK': macro redefinition (compiling source file ..\fuse-bindings.cc) [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bindings.vcxproj]    
  c:\users\dave\.node-gyp\5.0.0\include\node\uv-win.h(66): note: see previous definition of 'S_IFLNK' (compiling source file ..\fuse-bindings.cc)                                                                                        
..\fuse-bindings.cc(613): error C2440: '=': cannot convert from 'int (__cdecl *)(const char *,_stat64 *)' to 'int (__cdecl *)(const char *,stat64_cygwin *)' [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bindings.vcxp  
roj]                                                                                                                                                                                                                                     
  ..\fuse-bindings.cc(613): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast                                                                                                                     
..\fuse-bindings.cc(614): error C2440: '=': cannot convert from 'int (__cdecl *)(const char *,_stat64 *,fuse_file_info *)' to 'int (__cdecl *)(const char *,stat64_cygwin *,fuse_file_info *)' [C:\Users\Dave\Desktop\node_modules\fuse  
-bindings\build\fuse_bindings.vcxproj]                                                                                                                                                                                                   
  ..\fuse-bindings.cc(614): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast                                                                                                                     
..\fuse-bindings.cc(613): warning C4390: ';': empty controlled statement found; is this the intent? [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bindings.vcxproj]                                                       
..\fuse-bindings.cc(614): warning C4390: ';': empty controlled statement found; is this the intent? [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bindings.vcxproj]                                                       
..\fuse-bindings.cc(695): error C2440: 'return': cannot convert from 'v8::MaybeLocal<T>' to 'v8::Local<T>' [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bindings.vcxproj]                                                
          with                                                                                                                                                                                                                           
          [                                                                                                                                                                                                                              
              T=v8::Date                                                                                                                                                                                                                 
          ]                                                                                                                                                                                                                              
  ..\fuse-bindings.cc(695): note: No constructor could take the source type, or constructor overload resolution was ambiguous                                                                                                            
..\fuse-bindings.cc(706): warning C4244: '=': conversion from 'double' to '_dev_t', possible loss of data [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bindings.vcxproj]                                                 
..\fuse-bindings.cc(707): warning C4244: '=': conversion from 'double' to '_ino_t', possible loss of data [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bindings.vcxproj]                                                 
..\fuse-bindings.cc(709): warning C4244: '=': conversion from 'double' to 'short', possible loss of data [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bindings.vcxproj]                                                  
..\fuse-bindings.cc(710): warning C4244: '=': conversion from 'double' to 'short', possible loss of data [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bindings.vcxproj]                                                  
..\fuse-bindings.cc(711): warning C4244: '=': conversion from 'double' to 'short', possible loss of data [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bindings.vcxproj]                                                  
..\fuse-bindings.cc(712): warning C4244: '=': conversion from 'double' to '_dev_t', possible loss of data [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bindings.vcxproj]                                                 
..\fuse-bindings.cc(713): warning C4244: '=': conversion from 'double' to '__int64', possible loss of data [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bindings.vcxproj]                                                
..\fuse-bindings.cc(751): error C2664: 'int (void *,const char *,const stat64_cygwin *,__int64)': cannot convert argument 3 from '_stat64 *' to 'const stat64_cygwin *' [C:\Users\Dave\Desktop\node_modules\fuse-bindings\build\fuse_bi  
ndings.vcxproj]                                                                                                                                                                                                                          
  ..\fuse-bindings.cc(751): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast                                                                                              
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 (C:\Users\Dave\AppData\Roaming\nvm\v5.0.0\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)                                                                                          
gyp ERR! stack     at emitTwo (events.js:87:13)                                                                                                                                                                                          
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)                                                                                                                                                                                
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)                                                                                                                                             
gyp ERR! System Windows_NT 10.0.10240                                                                                                                                                                                                    
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Dave\\AppData\\Roaming\\nvm\\v5.0.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"                                                           
gyp ERR! cwd C:\Users\Dave\Desktop\node_modules\fuse-bindings                                                                                                                                                                            
gyp ERR! node -v v5.0.0                                                                                                                                                                                                                  
gyp ERR! node-gyp -v v3.0.3                                                                                                                                                                                                              
gyp ERR! not ok                                                                                                                                                                                                                          
npm WARN ENOENT ENOENT: no such file or directory, open 'C:\Users\Dave\Desktop\package.json'                                                                                                                                             
npm WARN EPACKAGEJSON C:\Users\Dave\Desktop No description                                                                                                                                                                               
npm WARN EPACKAGEJSON C:\Users\Dave\Desktop No repository field.                                                                                                                                                                         
npm WARN EPACKAGEJSON C:\Users\Dave\Desktop No README data                                                                                                                                                                               
npm WARN EPACKAGEJSON C:\Users\Dave\Desktop No license field.                                                                                                                                                                            
npm ERR! Windows_NT 10.0.10240                                                                                                                                                                                                           
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "fuse-bindings"                                                                                            
npm ERR! node v5.0.0                                                                                                                                                                                                                     
npm ERR! npm  v3.3.6                                                                                                                                                                                                                     
npm ERR! code ELIFECYCLE                                                                                                                                                                                                                 

npm ERR! fuse-bindings@2.8.0 install: `node-gyp rebuild`                                                                                                                                                                                 
npm ERR! Exit status 1                                                                                                                                                                                                                   
npm ERR!                                                                                                                                                                                                                                 
npm ERR! Failed at the fuse-bindings@2.8.0 install script 'node-gyp rebuild'.                                                                                                                                                            
npm ERR! This is most likely a problem with the fuse-bindings 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 fuse-bindings                                                                                                                                                                                                  
npm ERR! There is likely additional logging output above.                                                                                                                                                                                

npm ERR! Please include the following file with any support request:                                                                                                                                                                     
npm ERR!     C:\Users\Dave\Desktop\npm-debug.log                                                                                                                                                                                         

npm-debug.log: http://pastebin.com/6dCCQDJC

I have Microsoft Visual Studio 2014 and dokany installed. Windows 10 64bit machine.

Environment Variables set:

DOKAN_FUSE_INCLUDE -> Include directory of headers dokan's repo. I also noticed the dokan installer now includes the headers and tried those but it didn't work.
DOKAN_INSTALL_DIR- -> C:\Program Files (x86)\Dokan\DokanLibrary
I also tried "C:\Program Files\Dokan\DokanLibrary" (not sure which one it was supposed to be)

I'm using node 5, but I also tried with node 0.12.7 using nvm. I've been trying to debug this for a while with no luck.

I realize this is a very late response, but the problem is because Dokany was updated. #22 fixes this.