Skip to content

Instantly share code, notes, and snippets.

@jo12bar
Last active June 22, 2016 03:50
Show Gist options
  • Save jo12bar/d52c6b37dbff610a796b2f7807785922 to your computer and use it in GitHub Desktop.
Save jo12bar/d52c6b37dbff610a796b2f7807785922 to your computer and use it in GitHub Desktop.
Error logs from attempting to install ruby wdm (https://github.com/Maher4Ever/wdm/issues/24)
current directory: C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/wdm-0.1.1/ext/wdm
C:/tools/ruby23/bin/ruby.exe -r ./siteconf20160621-18176-1cmz67l.rb extconf.rb
checking for main() in -lkernel32... yes
checking for windows.h... yes
checking for ruby.h... yes
checking for HAVE_RUBY_ENCODING_H... yes
checking for rb_thread_call_without_gvl()... yes
creating Makefile
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/tools/ruby23/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/wdm-0.1.1/mkmf.log
current directory: C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/wdm-0.1.1/ext/wdm
make "DESTDIR=" clean
current directory: C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/wdm-0.1.1/ext/wdm
make "DESTDIR="
make failed, exit code 1
have_library: checking for main() in -lkernel32... -------------------- yes
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/tools/ruby23/include/ruby-2.3.0/x64-mingw32 -IC:/tools/ruby23/include/ruby-2.3.0/ruby/backward -IC:/tools/ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/tools/ruby23/lib -L. -lx64-msvcrt-ruby230 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7: return 0;
8: }
/* end */
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/tools/ruby23/include/ruby-2.3.0/x64-mingw32 -IC:/tools/ruby23/include/ruby-2.3.0/ruby/backward -IC:/tools/ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/tools/ruby23/lib -L. -lx64-msvcrt-ruby230 -lkernel32 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: extern int t(void);
8: int main(int argc, char **argv)
9: {
10: if (argc > 1000000) {
11: printf("%p", &t);
12: }
13:
14: return 0;
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return !p; }
/* end */
--------------------
have_header: checking for windows.h... -------------------- yes
"x86_64-w64-mingw32-gcc -E -IC:/tools/ruby23/include/ruby-2.3.0/x64-mingw32 -IC:/tools/ruby23/include/ruby-2.3.0/ruby/backward -IC:/tools/ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <windows.h>
/* end */
--------------------
have_header: checking for ruby.h... -------------------- yes
"x86_64-w64-mingw32-gcc -E -IC:/tools/ruby23/include/ruby-2.3.0/x64-mingw32 -IC:/tools/ruby23/include/ruby-2.3.0/ruby/backward -IC:/tools/ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <ruby.h>
/* end */
--------------------
have_const: checking for HAVE_RUBY_ENCODING_H... -------------------- yes
"x86_64-w64-mingw32-gcc -IC:/tools/ruby23/include/ruby-2.3.0/x64-mingw32 -IC:/tools/ruby23/include/ruby-2.3.0/ruby/backward -IC:/tools/ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: typedef int conftest_type;
8: conftest_type conftestval = (int)HAVE_RUBY_ENCODING_H;
/* end */
--------------------
have_func: checking for rb_thread_call_without_gvl()... -------------------- yes
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/tools/ruby23/include/ruby-2.3.0/x64-mingw32 -IC:/tools/ruby23/include/ruby-2.3.0/ruby/backward -IC:/tools/ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/tools/ruby23/lib -L. -lkernel32 -lx64-msvcrt-ruby230 -lkernel32 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c: In function 't':
conftest.c:16:57: error: 'rb_thread_call_without_gvl' undeclared (first use in this function)
conftest.c:16:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: extern int t(void);
8: int main(int argc, char **argv)
9: {
10: if (argc > 1000000) {
11: printf("%p", &t);
12: }
13:
14: return 0;
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_call_without_gvl; return !p; }
/* end */
"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/tools/ruby23/include/ruby-2.3.0/x64-mingw32 -IC:/tools/ruby23/include/ruby-2.3.0/ruby/backward -IC:/tools/ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/tools/ruby23/lib -L. -lkernel32 -lx64-msvcrt-ruby230 -lkernel32 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: extern int t(void);
8: int main(int argc, char **argv)
9: {
10: if (argc > 1000000) {
11: printf("%p", &t);
12: }
13:
14: return 0;
15: }
16: extern void rb_thread_call_without_gvl();
17: int t(void) { rb_thread_call_without_gvl(); return 0; }
/* end */
--------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment