pkg_config: checking for pkg-config for libffi... -------------------- not found

package configuration for libffi is not found
--------------------

have_header: checking for ffi.h... -------------------- yes

PATH=.;C:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib;D:\a\_temp\msys64\ucrt64\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;D:\a\_temp\msys64\cygdrive\c\Windows\system32;D:\a\_temp\msys64\cygdrive\c\Windows;D:\a\_temp\msys64\cygdrive\c\Windows\System32\WindowsPowerShell\v1.0;D:\a\_temp\msys64\ucrt64\bin;D:\a\_temp\msys64\usr\local\bin;D:\a\_temp\msys64\usr\bin;D:\a\_temp\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\a\_temp\msys64\usr\bin\site_perl;D:\a\_temp\msys64\usr\bin\vendor_perl;D:\a\_temp\msys64\usr\bin\core_perl LSAN_OPTIONS=detect_leaks=0 "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/x64-mingw-ucrt -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/ruby/backward -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0 -I. -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -I/ucrt64/include -I/ucrt64/include/readline -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include conftest.c -L. -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -L. -L/ucrt64/lib -L/ucrt64/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -Wl,--nxcompat -Wl,--dynamicbase -fstack-protector-strong  -Wl,--no-as-needed     -lx64-ucrt-ruby400  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt  "
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 !!argv[argc];
8: }
/* end */

PATH=.;C:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib;D:\a\_temp\msys64\ucrt64\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;D:\a\_temp\msys64\cygdrive\c\Windows\system32;D:\a\_temp\msys64\cygdrive\c\Windows;D:\a\_temp\msys64\cygdrive\c\Windows\System32\WindowsPowerShell\v1.0;D:\a\_temp\msys64\ucrt64\bin;D:\a\_temp\msys64\usr\local\bin;D:\a\_temp\msys64\usr\bin;D:\a\_temp\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\a\_temp\msys64\usr\bin\site_perl;D:\a\_temp\msys64\usr\bin\vendor_perl;D:\a\_temp\msys64\usr\bin\core_perl LSAN_OPTIONS=detect_leaks=0 "x86_64-w64-mingw32-gcc -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/x64-mingw-ucrt -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/ruby/backward -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0 -I. -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -I/ucrt64/include -I/ucrt64/include/readline -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include   -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <ffi.h>
/* end */

--------------------

have_library: checking for ffi_prep_closure_loc() in -lffi... -------------------- yes

PATH=.;C:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib;D:\a\_temp\msys64\ucrt64\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;D:\a\_temp\msys64\cygdrive\c\Windows\system32;D:\a\_temp\msys64\cygdrive\c\Windows;D:\a\_temp\msys64\cygdrive\c\Windows\System32\WindowsPowerShell\v1.0;D:\a\_temp\msys64\ucrt64\bin;D:\a\_temp\msys64\usr\local\bin;D:\a\_temp\msys64\usr\bin;D:\a\_temp\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\a\_temp\msys64\usr\bin\site_perl;D:\a\_temp\msys64\usr\bin\vendor_perl;D:\a\_temp\msys64\usr\bin\core_perl LSAN_OPTIONS=detect_leaks=0 "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/x64-mingw-ucrt -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/ruby/backward -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0 -I. -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -I/ucrt64/include -I/ucrt64/include/readline -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include conftest.c -L. -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -L. -L/ucrt64/lib -L/ucrt64/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -Wl,--nxcompat -Wl,--dynamicbase -fstack-protector-strong  -Wl,--no-as-needed     -lx64-ucrt-ruby400 -lffi  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: #include <ffi.h>
 6: 
 7: /*top*/
 8: extern int t(void);
 9: int main(int argc, char **argv)
10: {
11:   if (argc > 1000000) {
12:     int (* volatile tp)(void)=(int (*)(void))&t;
13:     printf("%d", (*tp)());
14:   }
15: 
16:   return !!argv[argc];
17: }
18: int t(void) { void ((*volatile p)()); p = (void ((*)()))ffi_prep_closure_loc; return !p; }
/* end */

--------------------

have_func: checking for ffi_prep_cif_var()... -------------------- yes

PATH=.;C:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib;D:\a\_temp\msys64\ucrt64\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;D:\a\_temp\msys64\cygdrive\c\Windows\system32;D:\a\_temp\msys64\cygdrive\c\Windows;D:\a\_temp\msys64\cygdrive\c\Windows\System32\WindowsPowerShell\v1.0;D:\a\_temp\msys64\ucrt64\bin;D:\a\_temp\msys64\usr\local\bin;D:\a\_temp\msys64\usr\bin;D:\a\_temp\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\a\_temp\msys64\usr\bin\site_perl;D:\a\_temp\msys64\usr\bin\vendor_perl;D:\a\_temp\msys64\usr\bin\core_perl LSAN_OPTIONS=detect_leaks=0 "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/x64-mingw-ucrt -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/ruby/backward -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0 -I. -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -I/ucrt64/include -I/ucrt64/include/readline -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include conftest.c -L. -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -L. -L/ucrt64/lib -L/ucrt64/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -Wl,--nxcompat -Wl,--dynamicbase -fstack-protector-strong  -Wl,--no-as-needed    -lffi  -lx64-ucrt-ruby400 -lffi  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt  "
conftest.c: In function 't':
conftest.c:17:57: error: 'ffi_prep_cif_var' undeclared (first use in this function)
   17 | int t(void) { void ((*volatile p)()); p = (void ((*)()))ffi_prep_cif_var; return !p; }
      |                                                         ^~~~~~~~~~~~~~~~
conftest.c:17: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:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: int t(void) { void ((*volatile p)()); p = (void ((*)()))ffi_prep_cif_var; return !p; }
/* end */

PATH=.;C:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib;D:\a\_temp\msys64\ucrt64\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;D:\a\_temp\msys64\cygdrive\c\Windows\system32;D:\a\_temp\msys64\cygdrive\c\Windows;D:\a\_temp\msys64\cygdrive\c\Windows\System32\WindowsPowerShell\v1.0;D:\a\_temp\msys64\ucrt64\bin;D:\a\_temp\msys64\usr\local\bin;D:\a\_temp\msys64\usr\bin;D:\a\_temp\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\a\_temp\msys64\usr\bin\site_perl;D:\a\_temp\msys64\usr\bin\vendor_perl;D:\a\_temp\msys64\usr\bin\core_perl LSAN_OPTIONS=detect_leaks=0 "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/x64-mingw-ucrt -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/ruby/backward -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0 -I. -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -I/ucrt64/include -I/ucrt64/include/readline -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include conftest.c -L. -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -L. -L/ucrt64/lib -L/ucrt64/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -Wl,--nxcompat -Wl,--dynamicbase -fstack-protector-strong  -Wl,--no-as-needed    -lffi  -lx64-ucrt-ruby400 -lffi  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt  "
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:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: extern void ffi_prep_cif_var();
18: int t(void) { ffi_prep_cif_var(); return 0; }
/* end */

--------------------

have_func: checking for ffi_raw_call()... -------------------- yes

PATH=.;C:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib;D:\a\_temp\msys64\ucrt64\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;D:\a\_temp\msys64\cygdrive\c\Windows\system32;D:\a\_temp\msys64\cygdrive\c\Windows;D:\a\_temp\msys64\cygdrive\c\Windows\System32\WindowsPowerShell\v1.0;D:\a\_temp\msys64\ucrt64\bin;D:\a\_temp\msys64\usr\local\bin;D:\a\_temp\msys64\usr\bin;D:\a\_temp\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\a\_temp\msys64\usr\bin\site_perl;D:\a\_temp\msys64\usr\bin\vendor_perl;D:\a\_temp\msys64\usr\bin\core_perl LSAN_OPTIONS=detect_leaks=0 "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/x64-mingw-ucrt -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/ruby/backward -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0 -I. -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -I/ucrt64/include -I/ucrt64/include/readline -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include conftest.c -L. -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -L. -L/ucrt64/lib -L/ucrt64/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -Wl,--nxcompat -Wl,--dynamicbase -fstack-protector-strong  -Wl,--no-as-needed    -lffi  -lx64-ucrt-ruby400 -lffi  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt  "
conftest.c: In function 't':
conftest.c:17:57: error: 'ffi_raw_call' undeclared (first use in this function)
   17 | int t(void) { void ((*volatile p)()); p = (void ((*)()))ffi_raw_call; return !p; }
      |                                                         ^~~~~~~~~~~~
conftest.c:17: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:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: int t(void) { void ((*volatile p)()); p = (void ((*)()))ffi_raw_call; return !p; }
/* end */

PATH=.;C:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib;D:\a\_temp\msys64\ucrt64\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;D:\a\_temp\msys64\cygdrive\c\Windows\system32;D:\a\_temp\msys64\cygdrive\c\Windows;D:\a\_temp\msys64\cygdrive\c\Windows\System32\WindowsPowerShell\v1.0;D:\a\_temp\msys64\ucrt64\bin;D:\a\_temp\msys64\usr\local\bin;D:\a\_temp\msys64\usr\bin;D:\a\_temp\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\a\_temp\msys64\usr\bin\site_perl;D:\a\_temp\msys64\usr\bin\vendor_perl;D:\a\_temp\msys64\usr\bin\core_perl LSAN_OPTIONS=detect_leaks=0 "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/x64-mingw-ucrt -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/ruby/backward -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0 -I. -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -I/ucrt64/include -I/ucrt64/include/readline -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include conftest.c -L. -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -L. -L/ucrt64/lib -L/ucrt64/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -Wl,--nxcompat -Wl,--dynamicbase -fstack-protector-strong  -Wl,--no-as-needed    -lffi  -lx64-ucrt-ruby400 -lffi  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt  "
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:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: extern void ffi_raw_call();
18: int t(void) { ffi_raw_call(); return 0; }
/* end */

--------------------

have_func: checking for ffi_prep_raw_closure()... -------------------- yes

PATH=.;C:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib;D:\a\_temp\msys64\ucrt64\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;D:\a\_temp\msys64\cygdrive\c\Windows\system32;D:\a\_temp\msys64\cygdrive\c\Windows;D:\a\_temp\msys64\cygdrive\c\Windows\System32\WindowsPowerShell\v1.0;D:\a\_temp\msys64\ucrt64\bin;D:\a\_temp\msys64\usr\local\bin;D:\a\_temp\msys64\usr\bin;D:\a\_temp\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\a\_temp\msys64\usr\bin\site_perl;D:\a\_temp\msys64\usr\bin\vendor_perl;D:\a\_temp\msys64\usr\bin\core_perl LSAN_OPTIONS=detect_leaks=0 "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/x64-mingw-ucrt -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/ruby/backward -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0 -I. -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -I/ucrt64/include -I/ucrt64/include/readline -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include conftest.c -L. -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -L. -L/ucrt64/lib -L/ucrt64/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -Wl,--nxcompat -Wl,--dynamicbase -fstack-protector-strong  -Wl,--no-as-needed    -lffi  -lx64-ucrt-ruby400 -lffi  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt  "
conftest.c: In function 't':
conftest.c:17:57: error: 'ffi_prep_raw_closure' undeclared (first use in this function)
   17 | int t(void) { void ((*volatile p)()); p = (void ((*)()))ffi_prep_raw_closure; return !p; }
      |                                                         ^~~~~~~~~~~~~~~~~~~~
conftest.c:17: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:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: int t(void) { void ((*volatile p)()); p = (void ((*)()))ffi_prep_raw_closure; return !p; }
/* end */

PATH=.;C:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib;D:\a\_temp\msys64\ucrt64\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;D:\a\_temp\msys64\cygdrive\c\Windows\system32;D:\a\_temp\msys64\cygdrive\c\Windows;D:\a\_temp\msys64\cygdrive\c\Windows\System32\WindowsPowerShell\v1.0;D:\a\_temp\msys64\ucrt64\bin;D:\a\_temp\msys64\usr\local\bin;D:\a\_temp\msys64\usr\bin;D:\a\_temp\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\a\_temp\msys64\usr\bin\site_perl;D:\a\_temp\msys64\usr\bin\vendor_perl;D:\a\_temp\msys64\usr\bin\core_perl LSAN_OPTIONS=detect_leaks=0 "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/x64-mingw-ucrt -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/ruby/backward -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0 -I. -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -I/ucrt64/include -I/ucrt64/include/readline -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include conftest.c -L. -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -L. -L/ucrt64/lib -L/ucrt64/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -Wl,--nxcompat -Wl,--dynamicbase -fstack-protector-strong  -Wl,--no-as-needed    -lffi  -lx64-ucrt-ruby400 -lffi  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt  "
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:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: extern void ffi_prep_raw_closure();
18: int t(void) { ffi_prep_raw_closure(); return 0; }
/* end */

--------------------

have_func: checking for rb_gc_mark_movable()... -------------------- yes

PATH=.;C:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib;D:\a\_temp\msys64\ucrt64\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;D:\a\_temp\msys64\cygdrive\c\Windows\system32;D:\a\_temp\msys64\cygdrive\c\Windows;D:\a\_temp\msys64\cygdrive\c\Windows\System32\WindowsPowerShell\v1.0;D:\a\_temp\msys64\ucrt64\bin;D:\a\_temp\msys64\usr\local\bin;D:\a\_temp\msys64\usr\bin;D:\a\_temp\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\a\_temp\msys64\usr\bin\site_perl;D:\a\_temp\msys64\usr\bin\vendor_perl;D:\a\_temp\msys64\usr\bin\core_perl LSAN_OPTIONS=detect_leaks=0 "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/x64-mingw-ucrt -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/ruby/backward -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0 -I. -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -I/ucrt64/include -I/ucrt64/include/readline -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include conftest.c -L. -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -L. -L/ucrt64/lib -L/ucrt64/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -Wl,--nxcompat -Wl,--dynamicbase -fstack-protector-strong  -Wl,--no-as-needed    -lffi  -lx64-ucrt-ruby400 -lffi  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt  "
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:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_gc_mark_movable; return !p; }
/* end */

--------------------

append_ldflags: checking for whether -pthread is accepted as LDFLAGS... -------------------- yes

PATH=.;C:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib;D:\a\_temp\msys64\ucrt64\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;C:\ProgramFiles64Folder\PuppetLabs\Puppet\puppet\bin;D:\a\_temp\msys64\cygdrive\c\Windows\system32;D:\a\_temp\msys64\cygdrive\c\Windows;D:\a\_temp\msys64\cygdrive\c\Windows\System32\WindowsPowerShell\v1.0;D:\a\_temp\msys64\ucrt64\bin;D:\a\_temp\msys64\usr\local\bin;D:\a\_temp\msys64\usr\bin;D:\a\_temp\msys64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\a\_temp\msys64\usr\bin\site_perl;D:\a\_temp\msys64\usr\bin\vendor_perl;D:\a\_temp\msys64\usr\bin\core_perl LSAN_OPTIONS=detect_leaks=0 "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/x64-mingw-ucrt -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0/ruby/backward -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include/ruby-4.0.0 -I. -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -I/ucrt64/include -I/ucrt64/include/readline -IC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/include conftest.c -L. -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -L. -L/ucrt64/lib -L/ucrt64/lib -LC:/ProgramFiles64Folder/PuppetLabs/Puppet/puppet/lib -Wl,--nxcompat -Wl,--dynamicbase -fstack-protector-strong  -Wl,--no-as-needed -pthread   -lffi  -lx64-ucrt-ruby400  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt  "
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 !!argv[argc];
8: }
/* end */

--------------------

extconf.h is:
/* begin */
1: #ifndef EXTCONF_H
2: #define EXTCONF_H
3: #define HAVE_FFI_H 1
4: #define HAVE_FFI_PREP_CIF_VAR 1
5: #define HAVE_FFI_RAW_CALL 1
6: #define HAVE_FFI_PREP_RAW_CLOSURE 1
7: #define HAVE_RAW_API 1
8: #define HAVE_RB_GC_MARK_MOVABLE 1
9: #endif
/* end */

