r-lib / ps

R package to query, list, manipulate system processes
https://ps.r-lib.org/
Other
78 stars 20 forks source link

Install on Windows 7 fails #69

Closed Guillaume-Lombardo closed 5 years ago

Guillaume-Lombardo commented 5 years ago

Hello,

I'm trying to install ps (1.3.0) on a Windows 7 x64 (build 7601) Service Pack 1 computer with R version 3.3.0 (2016-05-03) and Rtools version 3.4.0.1964 (Platform: x86_64-w64-mingw32/x64 (64-bit)).

I cannot change this because of company Policy.

When I run install.packages('ps'), I get the following error (complete output below) :

* installing source package 'ps' ... * package 'ps' correctement décompressé et sommes MD5 vérifiées Erreur : '' inattendu(e) in "cat(sprintf('0x0%s', *" Exécution arrêtée

translated :

* installing source package 'ps' ... * package 'ps' correctly unpacked and MD5 sums verified Error : '' unexpected in "cat(sprintf('0x0%s', *" Execution stopped

I tried installing from github with devtools::install_github('r-lib/ps') but I've the same result.

My sessionInfo() are :

R version 3.3.0 (2016-05-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252 LC_NUMERIC=C                   LC_TIME=French_France.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] tools_3.3.0     withr_2.1.2     yaml_2.1.18     memoise_1.1.0   digest_0.6.18   devtools_1.13.5

The complete log of install is :

installing the source package ‘ps’

trying URL 'https://cran.rstudio.com/src/contrib/ps_1.3.0.tar.gz'
Content type 'application/x-gzip' length 261887 bytes (255 KB)
downloaded 255 KB

* installing *source* package 'ps' ...
** package 'ps' correctement décompressé et sommes MD5 vérifiées
Erreur : '*' inattendu(e) in "cat(sprintf('0x0%s', *"
Exécution arrêtée
** libs

*** arch - i386
C:/Produits/R/Rtools/mingw_32/bin/gcc  -O3 -Wall  -std=gnu99 -mtune=core2 -Wall px.c -o px
C:/Produits/R/Rtools/mingw_32/bin/gcc  -O3 -Wall  -std=gnu99 -mtune=core2 -Wall interrupt.c -o interrupt
C:/Produits/R/Rtools/mingw_32/bin/gcc  -I"C:/Produits/R/R-33~1.0/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -O3 -Wall  -std=gnu99 -mtune=core2 -c init.c -o init.o
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:10:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/sdkddkver.h:165:19: error: operator '<=' has no left operand
 #if (_WIN32_WINNT <= _WIN32_WINNT_NT4)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/sdkddkver.h:167:21: error: operator '<=' has no left operand
 #elif (_WIN32_WINNT <= _WIN32_WINNT_WIN2K)
                     ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/sdkddkver.h:169:21: error: operator '<=' has no left operand
 #elif (_WIN32_WINNT <= _WIN32_WINNT_WINXP)
                     ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/sdkddkver.h:171:21: error: operator '<=' has no left operand
 #elif (_WIN32_WINNT <= _WIN32_WINNT_WS03)
                     ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/sdkddkver.h:182:61: error: operator '!=' has no left operand
 #if ((OSVER(NTDDI_VERSION) == NTDDI_WIN2K) && (_WIN32_WINNT != _WIN32_WINNT_WIN2K)) || \
                                                             ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h:134:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/minwindef.h:146,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windef.h:8,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:69,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/basetsd.h:150:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600 || (defined (__cplusplus) && defined (WINDOWS_ENABLE_CPLUSPLUS))
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/minwindef.h:146:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windef.h:8,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:69,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h:290:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600 || (defined (__cplusplus) && defined (WINDOWS_ENABLE_CPLUSPLUS))
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/minwindef.h:146:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windef.h:8,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:69,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h:4418:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h:4890:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/minwindef.h:146:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windef.h:8,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:69,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h:7250:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600 && !defined (__WIDL__)
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h:7277:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/minwindef.h:146:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windef.h:8,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:69,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h:8049:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h: In function 'TpInitializeCallbackEnviron':
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h:8109:18: error: operator '<' has no left operand
 #if _WIN32_WINNT < 0x0601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h:8113:10: error: 'TP_CALLBACK_ENVIRON_V1' has no member named 'CallbackPriority'
       cbe->CallbackPriority = TP_CALLBACK_PRIORITY_NORMAL;
          ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h:8114:10: error: 'TP_CALLBACK_ENVIRON_V1' has no member named 'Size'
       cbe->Size = sizeof (TP_CALLBACK_ENVIRON);
          ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h: At top level:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h:8127:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/minwindef.h:146:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windef.h:8,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:69,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnt.h:8460:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0601)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:13:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/minwinbase.h:112:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:16:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/errhandlingapi.h:27:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:17:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/fibersapi.h:17:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/fibersapi.h:30:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:18:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/fileapi.h:119:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/fileapi.h:139:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/fileapi.h:185:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/fileapi.h:188:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:21:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/ioapiset.h:24:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:24:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/libloaderapi.h:117:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:25:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/memoryapi.h:23:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:25:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/memoryapi.h:84:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/memoryapi.h:91:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:26:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/namedpipeapi.h:27:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:28:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/processenv.h:33:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:29:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/processthreadsapi.h:139:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/processthreadsapi.h:150:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/processthreadsapi.h:155:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/processthreadsapi.h:169:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:30:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/processtopologyapi.h:18:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:32:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/realtimeapiset.h:17:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/realtimeapiset.h:23:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:32:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/realtimeapiset.h:29:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:34:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/securitybaseapi.h:51:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/securitybaseapi.h:55:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/securitybaseapi.h:68:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/securitybaseapi.h:154:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/securitybaseapi.h:169:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/securitybaseapi.h:180:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:35:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/synchapi.h:60:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/synchapi.h:129:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/synchapi.h:138:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:36:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/sysinfoapi.h:41:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:36:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/sysinfoapi.h:95:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/sysinfoapi.h:98:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:37:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/systemtopologyapi.h:20:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:38:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/threadpoolapiset.h:20:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:92:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:108:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:112:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:120:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1091:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1094:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1116:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1134:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1171:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1189:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1205:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1227:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1243:41: error: operator '&&' has no right operand
 #if !defined (__WIDL__) && _WIN32_WINNT >= 0x0600
                                         ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1251:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1472:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1502:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1524:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1533:68: error: operator '&&' has no right operand
 #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP) && _WIN32_WINNT >= 0x0602
                                                                    ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1538:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1575:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1587:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1658:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1747:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1797:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1827:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1835:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1851:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1873:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:1890:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2018:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2044:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2063:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2125:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600 && !defined (UNICODE)
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2137:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2182:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2185:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2211:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2290:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2373:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winerror.h:3197:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2374:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/timezoneapi.h:48:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/timezoneapi.h:51:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/timezoneapi.h:54:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/timezoneapi.h:65:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2411:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:70:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2449:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2597:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2600:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2623:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2635:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2865:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2904:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winbase.h:2924:5: error: operator '>=' has no left operand
 #if MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS && defined (__cplusplus)
     ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:71:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wingdi.h:138:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wingdi.h:324:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:71:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wingdi.h:1135:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wingdi.h:2050:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0602
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wingdi.h:2054:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:71:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wingdi.h:3095:47: error: operator '&&' has no right operand
 #if defined (COMBOX_SANDBOX) &&  _WIN32_WINNT >= 0x0600
                                               ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:72:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:1063:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0601)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:1115:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:1168:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0502)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:1754:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:1857:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0502)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:1880:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:72:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:2483:19: error: operator '<' has no left operand
 #if (_WIN32_WINNT < 0x0600)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:2492:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:2500:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0601)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:2507:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0601)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:4365:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:72:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:5341:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:5345:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0601)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:5395:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winuser.h:5445:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0601)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:74:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wincon.h:74:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:74:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wincon.h:336:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:76:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winreg.h:228:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:77:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winnetwk.h:123:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= _WIN32_WINNT_LONGHORN)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:78:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/virtdisk.h:9:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0601)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/rpc.h:74:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:88,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/rpcdce.h:568:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/rpc.h:96:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:88,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/rpcasync.h:253:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wincrypt.h:13:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:95,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/ncrypt.h:8:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:95:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wincrypt.h:204:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:95:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wincrypt.h:4166:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wincrypt.h:4242:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wincrypt.h:4763:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0601)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wtypes.h:8:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winscard.h:10,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:97,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/rpcndr.h:45:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x601
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/rpcndr.h:50:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x600
                  ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/combaseapi.h:155:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/objbase.h:14,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/ole2.h:17,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wtypes.h:12,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winscard.h:10,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:97,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/objidlbase.h:3635:20: error: operator '>=' has no left operand
 #if  (_WIN32_WINNT >= 0x0400 ) || defined(_WIN32_DCOM)
                    ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/objidlbase.h:3890:20: error: operator '>=' has no left operand
 #if  (_WIN32_WINNT >= 0x0400 ) || defined(_WIN32_DCOM)
                    ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/objbase.h:14:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/ole2.h:17,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/wtypes.h:12,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winscard.h:10,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:97,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/combaseapi.h:230:79: error: unknown type name 'SOLE_AUTHENTICATION_SERVICE'
 WINOLEAPI CoInitializeSecurity (PSECURITY_DESCRIPTOR pSecDesc, LONG cAuthSvc, SOLE_AUTHENTICATION_SERVICE *asAuthSvc, void *pReserved1, DWORD dwAuthnLevel, DWORD dwImpLevel, void *pAuthList, DWORD dwCapabilities, void *pReserved3);
                                                                               ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/combaseapi.h:245:18: error: operator '>=' has no left operand
 #if _WIN32_WINNT >= 0x0600
                  ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/combaseapi.h:255:60: error: unknown type name 'SOLE_AUTHENTICATION_SERVICE'
 WINOLEAPI CoQueryAuthenticationServices (DWORD *pcAuthSvc, SOLE_AUTHENTICATION_SERVICE **asAuthSvc);
                                                            ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winscard.h:11:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:97,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winioctl.h:168:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0601)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winioctl.h:342:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winioctl.h:349:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0601)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winscard.h:11:0,
                 from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:97,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winioctl.h:1795:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winioctl.h:2189:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0601)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:97:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winscard.h:388:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:102:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winspool.h:1351:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
In file included from C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:122:0,
                 from ps-internal.h:36,
                 from init.c:4:
C:/Produits/R/Rtools/mingw_32/i686-w64-mingw32/include/winsvc.h:328:19: error: operator '>=' has no left operand
 #if (_WIN32_WINNT >= 0x0600)
                   ^
make: *** [init.o] Error 1
Warning: l'exécution de la commande 'make -f "Makevars" -f "C:/Produits/R/R-33~1.0/etc/i386/Makeconf" -f "C:/Produits/R/R-33~1.0/share/make/winshlib.mk" SHLIB="ps.dll" ' renvoie un statut 2
ERROR: compilation failed for package 'ps'
* removing 'c:/Users/Public/R/RPackages/ps'
Warning in install.packages :
  running command '"C:/Produits/R/R-33~1.0/bin/x64/R" CMD INSTALL -l "c:\Users\Public\R\RPackages" C:\Users\#####\AppData\Local\Temp\RtmpmeXJMl/downloaded_packages/ps_1.3.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘ps’ had non-zero exit status
gaborcsardi commented 5 years ago

What's the output of

ver

in a CMD window?

Guillaume-Lombardo commented 5 years ago

Microsoft Windows [version 6.1.7601]

gaborcsardi commented 5 years ago

Hopefully c05d664f7a85387b29d75d9cd32eefc17212afdd fixed this, can you try to install from GitHub again? Thanks.

Guillaume-Lombardo commented 5 years ago

fixed ! I'm so impressed you fixed it so fast !!!

thank you very much !

gaborcsardi commented 5 years ago

Haha, no problem, we just got lucky...

guihigashi commented 5 years ago

the regex pattern doesn't work in in brazilian portuguese. cmd /c ver output is Microsoft Windows [versão 10.0.18362.207]

edit: i solved by creating a file getwinver.cmd, the 4th token is the major version and 5th is minor. The value is in exit code (that's weird, but that's what R captures)

@echo off
for /f "tokens=%1 delims=[. " %%g in ('ver') do (
    exit /b %%g
)

then in configure

    MAJOR=`$RBIN --vanilla --slave -e "cat(system('cmd /c getwinver.cmd 4'))"` 
    MINOR=`$RBIN --vanilla --slave -e "cat(system('cmd /c getwinver.cmd 5'))"`

creating another file isn't good, but i couldn't escape de quotes inside R's system()... Anyway, this sets the $WINVER fine

gaborcsardi commented 5 years ago

@guihigashi Thanks. I'll try to find a better way to get the version.

gaborcsardi commented 5 years ago

@guihigashi I added a new commit that hopefully fixes this, and works on all Windows versions.

Gidoin commented 5 years ago

Hello, I'm not really into computing or a dev guy, but I would like to install "devtools" package, in order to install other packages hosted on github, and since I try to install it, I encounter some issues especially when it deals with some dependencies such as "ps" package. My Rstudio version is 1.2.1335 and my Rtools version is 3.5.0.4 Here is my "error message" when I type install.packages("ps")

* installing *source* package 'ps' ...
** package 'ps' correctement décompressé et sommes MD5 vérifiées
Erreur : '*' inattendu(e) in "cat(sprintf('0x0%s', *"
Exécution arrêtée
** libs

*** arch - i386
C:/Program Files/Rtools/mingw_32/bin/gcc  -O3 -Wall  -std=gnu99 -mtune=core2 -Wall px.c -o px
make: C:/Program: Command not found
make: *** [Makevars:11: px] Error 127
Warning: l'exécution de la commande 'make -f "Makevars" -f "C:/PROGRA~1/R/R-33~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-33~1.2/share/make/winshlib.mk" SHLIB="ps.dll" ' renvoie un statut 2
ERROR: compilation failed for package 'ps'
* removing 'C:/Users/timot/Documents/R/win-library/3.3/ps'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\timot\Documents\R\win-library\3.3" C:\Users\timot\AppData\Local\Temp\RtmpErXP2K/downloaded_packages/ps_1.3.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘ps’ had non-zero exit status
* installing *source* package 'pkgbuild' ...
** package 'pkgbuild' correctement décompressé et sommes MD5 vérifiées
** R
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace 'callr' 2.0.3 is being loaded, but >= 3.2.0 is required
ERROR: lazy loading failed for package 'pkgbuild'
* removing 'C:/Users/timot/Documents/R/win-library/3.3/pkgbuild'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\timot\Documents\R\win-library\3.3" C:\Users\timot\AppData\Local\Temp\RtmpErXP2K/downloaded_packages/pkgbuild_1.0.5.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘pkgbuild’ had non-zero exit status
ERROR: dependency 'pkgbuild' is not available for package 'pkgload'
* removing 'C:/Users/timot/Documents/R/win-library/3.3/pkgload'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\timot\Documents\R\win-library\3.3" C:\Users\timot\AppData\Local\Temp\RtmpErXP2K/downloaded_packages/pkgload_1.0.2.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘pkgload’ had non-zero exit status
ERROR: dependency 'pkgbuild' is not available for package 'rcmdcheck'
* removing 'C:/Users/timot/Documents/R/win-library/3.3/rcmdcheck'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\timot\Documents\R\win-library\3.3" C:\Users\timot\AppData\Local\Temp\RtmpErXP2K/downloaded_packages/rcmdcheck_1.3.3.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘rcmdcheck’ had non-zero exit status
ERROR: dependencies 'pkgbuild', 'pkgload', 'rcmdcheck' are not available for package 'devtools'
* removing 'C:/Users/timot/Documents/R/win-library/3.3/devtools'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\timot\Documents\R\win-library\3.3" C:\Users\timot\AppData\Local\Temp\RtmpErXP2K/downloaded_packages/devtools_2.1.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘devtools’ had non-zero exit status

It seems to me my issue is close to Guillaume Lomba issue, I would really appreciate your help