Skip to content
This repository has been archived by the owner on Jul 12, 2018. It is now read-only.

Windows build is failing #24

Closed
WebReflection opened this issue Feb 25, 2016 · 0 comments
Closed

Windows build is failing #24

WebReflection opened this issue Feb 25, 2016 · 0 comments

Comments

@WebReflection
Copy link
Owner

I'm trying to make this repo build-able in Linux, OSX, and Windows.

First two are OK, last one a bit messed up.

Ideally we'll publish to npm precompiled binaries and fallback only if necessary in order to simplify npm usage and installation ... anyway ...

The following happens and I'm not sure how to solve since AFAIK there's no equivalent in Windows for g_source_add_unix_fd

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  loop.cc
  gi.cc
  value.cc
  function.cc
../src/value.cc(43): warning C4244: 'argument': conversion from 'gint64' to 'double', possible loss of data [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
../src/value.cc(45): warning C4244: 'argument': conversion from 'guint64' to 'double', possible loss of data [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2628: 'ffi_arg' followed by 'unsigned' is illegal (did you forget a ';'?) (compiling source file ../src/gi.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2628: 'ffi_arg' followed by 'unsigned' is illegal (did you forget a ';'?) (compiling source file ../src/function.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2628: 'ffi_arg' followed by 'int' is illegal (did you forget a ';'?) (compiling source file ../src/gi.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2628: 'ffi_arg' followed by 'int' is illegal (did you forget a ';'?) (compiling source file ../src/function.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
../src/value.cc(159): warning C4244: '=': conversion from 'double' to 'gint64', possible loss of data [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2208: 'unsigned __int64': no members defined using this type (compiling source file ../src/gi.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2208: 'unsigned __int64': no members defined using this type (compiling source file ../src/function.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
../src/value.cc(162): warning C4244: '=': conversion from 'double' to 'guint64', possible loss of data [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
../src/value.cc(165): warning C4244: '=': conversion from 'double' to 'gfloat', possible loss of data [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
../src/value.cc(256): warning C4244: 'argument': conversion from 'double' to 'gfloat', possible loss of data [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
../src/function.cc(52): error C2131: expression did not evaluate to a constant [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
  ../src/function.cc(52): note: failure was caused by non-constant arguments or reference to a non-constant symbol
  ../src/function.cc(52): note: see usage of 'n_callable_args'
../src/function.cc(63): error C2228: left of '.type' must have class/struct/union [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
  ../src/function.cc(63): note: type is 'GNodeJS::Parameter [n_callable_args]'
../src/function.cc(64): error C2228: left of '.type' must have class/struct/union [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
  ../src/function.cc(64): note: type is 'GNodeJS::Parameter [n_callable_args]'
../src/function.cc(71): error C2228: left of '.type' must have class/struct/union [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
  ../src/function.cc(71): note: type is 'GNodeJS::Parameter [n_callable_args]'
../src/function.cc(95): error C2131: expression did not evaluate to a constant [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
  ../src/function.cc(95): note: failure was caused by non-constant arguments or reference to a non-constant symbol
  ../src/function.cc(95): note: see usage of 'n_total_args'
../src/function.cc(108): error C2228: left of '.type' must have class/struct/union [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
  ../src/function.cc(108): note: type is 'GNodeJS::Parameter [n_callable_args]'
../src/function.cc(124): error C2228: left of '.type' must have class/struct/union [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
  ../src/function.cc(124): note: type is 'GNodeJS::Parameter [n_callable_args]'
../src/function.cc(144): error C2131: expression did not evaluate to a constant [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
  ../src/function.cc(144): note: failure was caused by non-constant arguments or reference to a non-constant symbol
  ../src/function.cc(144): note: see usage of 'n_total_args'
../src/function.cc(146): error C3863: array type 'void *[n_total_args]' is not assignable [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
  gobject.cc
  closure.cc
  boxed.cc
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2628: 'ffi_arg' followed by 'unsigned' is illegal (did you forget a ';'?) (compiling source file ../src/gobject.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2628: 'ffi_arg' followed by 'int' is illegal (did you forget a ';'?) (compiling source file ../src/gobject.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2208: 'unsigned __int64': no members defined using this type (compiling source file ../src/gobject.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2628: 'ffi_arg' followed by 'unsigned' is illegal (did you forget a ';'?) (compiling source file ../src/closure.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2628: 'ffi_arg' followed by 'int' is illegal (did you forget a ';'?) (compiling source file ../src/closure.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2208: 'unsigned __int64': no members defined using this type (compiling source file ../src/closure.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2628: 'ffi_arg' followed by 'unsigned' is illegal (did you forget a ';'?) (compiling source file ../src/boxed.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2628: 'ffi_arg' followed by 'int' is illegal (did you forget a ';'?) (compiling source file ../src/boxed.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
C:\msys64\mingw64\lib\libffi-3.2.1\include\ffi.h(264): error C2208: 'unsigned __int64': no members defined using this type (compiling source file ../src/boxed.cc) [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.vcxproj]
../src/loop.cc(61): error C3861: 'g_source_add_unix_fd': identifier not found [C:\msys64\home\samsung\oss\node-gtk\build\node-gtk.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 (C:\msys64\home\samsung\oss\node-gtk\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\msys64\\home\\samsung\\oss\\node-gtk\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\msys64\\home\\samsung\\oss\\node-gtk\\build\\Release\\node-v47-win32-x64\\node-gtk.node" "--module_name=node-gtk" "--module_path=C:\\msys64\\home\\samsung\\oss\\node-gtk\\build\\Release\\node-v47-win32-x64"
gyp ERR! cwd C:\msys64\home\samsung\oss\node-gtk
gyp ERR! node -v v5.7.0
gyp ERR! node-gyp -v v3.3.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\msys64\home\samsung\oss\node-gtk\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\msys64\home\samsung\oss\node-gtk\build\Release\node-v47-win32-x64\node-gtk.node --module_name=node-gtk --module_path=C:\msys64\home\samsung\oss\node-gtk\build\Release\node-v47-win32-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\msys64\home\samsung\oss\node-gtk\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:100:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:827:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 10.0.10586
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\msys64\\home\\samsung\\oss\\node-gtk\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\msys64\home\samsung\oss\node-gtk
node-pre-gyp ERR! node -v v5.7.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.21
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\msys64\home\samsung\oss\node-gtk\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\msys64\home\samsung\oss\node-gtk\build\Release\node-v47-win32-x64\node-gtk.node --module_name=node-gtk --module_path=C:\msys64\home\samsung\oss\node-gtk\build\Release\node-v47-win32-x64' (1)

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v5.7.0
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE
npm ERR! node-gtk@0.0.18 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-gtk@0.0.18 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 node-gtk 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 node-gtk
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-gtk
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\msys64\home\samsung\oss\node-gtk\npm-debug.log
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

1 participant