Closed ablaette closed 2 years ago
These are the instructions issued by the CRAN team how to make the transition to UCRT:
Dear maintainers,
This concerns the CRAN packages
Cairo cepreader gpboost httpuv ipaddress lightgbm proj4 prophet RcppCWB RcppParallel RDieHarder re2 redux rgeolocate RGtk2 tth udunits2 unrtf
maintained by one of you:
Andreas Blaette andreas.blaette@uni-due.de: RcppCWB David Hall david.hall.physics@gmail.com: ipaddress Dirk Eddelbuettel edd@debian.org: RDieHarder Fabio Sigrist fabiosigrist@gmail.com: gpboost Friedrich Leisch Friedrich.Leisch@R-project.org: tth Girish Palya girishji@gmail.com: re2 James Hiebert hiebert@uvic.ca: udunits2 Jari Oksanen jhoksane@gmail.com: cepreader Kevin Ushey kevin@rstudio.com: RcppParallel ORPHANED: RGtk2 Os Keyes ironholds@gmail.com: rgeolocate Rich FitzJohn rich.fitzjohn@gmail.com: redux Sean Taylor sjtz@pm.me: prophet Simon Urbanek simon.urbanek@r-project.org: proj4 Simon Urbanek Simon.Urbanek@r-project.org: Cairo Winston Chang winston@rstudio.com: httpuv Yu Shi yushi2@microsoft.com: lightgbm
your packages need to be updated for R-devel/R 4.2 to work on Windows, following the recent switch to UCRT and Rtools42.
Sorry for the group message, please feel free to respond individually regarding your package or ask specifically about what needs to be fixed.
I've created patches for you, so please review them and fix your packages:
https://svn.r-project.org/R-dev-web/trunk/WindowsBuilds/winutf8/ucrt3/r_packages/patches/CRAN/
You can apply them as follows
tar xfz package_1.0.0.tar.gz
patch --binary < package.diff
These patches are currently automatically applied by R-devel on Windows at installation time, which makes most of your packages pass their checks (as OK or NOTE), but please check your results carefully and carefully review the patches. Usually these changes were because of newer GCC or newer MinGW in the toolchain, but some for other reasons, and some of them will definitely have to be improved so that the package keeps building also for older versions of R using Rtools40. We have only been testing the patches with UCRT (and Rtools42) on Windows.
For more information, please see
https://developer.r-project.org/Blog/public/2021/12/07/upcoming-changes-in-r-4.2-on-windows/ https://developer.r-project.org/WindowsBuilds/winutf8/ucrt3/howto.html
Once you add your patches/fix the issues, your package will probably show a warning during R CMD check (as patching would be attempted to be applied again). That's ok, at that point please let me know and I will remove my patch from the repository of automatically applied patches.
If you end up just applying the patch as is, there is probably no need testing on your end, but you can do so using Winbuilder, r-hub, github actions (e.g. https://github.com/kalibera/ucrt3).
If you wanted to test locally on your Windows machine and do not have a UCRT version of R-devel yet, please uninstall your old version of R-devel, delete the old library used with that, install a new UCRT version of R-devel , and install Rtools42. You can keep Rtools40 installed if you need it with R 4.1 or earlier.
Currently, the new R-devel can be downloaded from https://www.r-project.org/nosvn/winutf8/ucrt3/web/rdevel.html
And Rtools42 from https://www.r-project.org/nosvn/winutf8/ucrt3/web/rtools.html
If you end up testing locally, you can use _R_INSTALL_TIMEPATCHES environment variable to disable the automated patching, see the "howto" document above. That way you could also see what the original issue was causing.
If you wanted to find libraries to link for yourself, e.g. in a newer version of your package, please look for "Using findLinkingOrder with Rtools42 (tiff package example)" in the "howto" document above. I created the patches for you manually before we finished this script, so you may be able to create a shorter version using it, but - it's probably not worth the effort.
If you wanted to try in a virtual machine, but did not have a license, you can use also an automated setup of a free trial VM from https://developer.r-project.org/Blog/public/2021/03/18/virtual-windows-machine-for-checking-r-packages
(but that needs a very good and un-metered network connection to install)
Please let us know if you have any questions.
Thanks, Tomas & Uwe
As of January 26, this is the remaining errors I see when installing RcppCWB from the dev branch on a Windows machine:
> devtools::install_github("PolMine/RcppCWB", ref = "dev")
Downloading GitHub repo PolMine/RcppCWB@dev
checking for file 'C:\Users\Andreas Blaette\AppData\Local\Temp\RtmpqAYl6T\remotes150c46c47f55\PolMine-RcppCWB-39c1cc4/DESCRIPTION' ...
✔ checking for file 'C:\Users\Andreas Blaette\AppData\Local\Temp\RtmpqAYl6T\remotes150c46c47f55\PolMine-RcppCWB-39c1cc4/DESCRIPTION' (387ms)
─ preparing 'RcppCWB': (21.7s)
checking DESCRIPTION meta-information ...
checking DESCRIPTION meta-information ...
✔ checking DESCRIPTION meta-information
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts (1.9s)
─ checking for empty or unneeded directories (434ms)
─ building 'RcppCWB_0.4.4.9003.tar.gz'
Warnung:
Warnung: Datei 'RcppCWB/cleanup' hatte keine Ausführungsrechte: korrigiert
Warnung: Datei 'RcppCWB/configure' hatte keine Ausführungsrechte: korrigiert
Warnung:
Warnung: Datei 'RcppCWB/src/cwb/editline/configure' hatte keine Ausführungsrechte: korrigiert
Installiere Paket nach ‘C:/Users/Andreas Blaette/AppData/Local/R/win-library/4.2’
(da ‘lib’ nicht spezifiziert)
* installing *source* package 'RcppCWB' ...
** using staged installation
** applying installation-time patches
versuche URL 'https://www.r-project.org/nosvn/winutf8/ucrt3//patches/CRAN/RcppCWB.diff'
Content length 10101 bytes
==================================================
downloaded 10101 bytes
checking file src/Makevars.ucrt
Hunk #1 FAILED at 1.
Not deleting file src/Makevars.ucrt as content differs from patch
1 out of 1 hunk FAILED
checking file src/cwb/CQi/server.c
Hunk #1 FAILED at 15.
Hunk #2 FAILED at 31.
2 out of 2 hunks FAILED
checking file src/cwb/cl/Makefile
Hunk #1 FAILED at 44.
1 out of 1 hunk FAILED
checking file src/cwb/cl/fileutils.c
Hunk #1 FAILED at 23.
1 out of 1 hunk FAILED
checking file src/cwb/cl/storage.c
Hunk #1 succeeded at 17 with fuzz 2 (offset -1 lines).
Hunk #2 FAILED at 30.
1 out of 2 hunks FAILED
checking file src/cwb/config/platform/mingw-native
checking file src/cwb/config/platform/unix
Hunk #1 FAILED at 24.
1 out of 1 hunk FAILED
checking file src/cwb/config.mk
Hunk #1 succeeded at 45 with fuzz 1 (offset 6 lines).
Hunk #2 FAILED at 100.
1 out of 2 hunks FAILED
checking file src/cwb/cqp/parser.tab.c
Hunk #2 succeeded at 174 (offset -2 lines).
Hunk #3 succeeded at 289 (offset -4 lines).
checking file src/cwb/definitions.mk
Hunk #2 FAILED at 223.
Hunk #3 FAILED at 270.
2 out of 3 hunks FAILED
can't find file to patch at input line 243
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru orig/RcppCWB/src/cwb/utils/_cwb_huffcode.c patched/RcppCWB/src/cwb/utils/_cwb_huffcode.c
|--- orig/RcppCWB/src/cwb/utils/_cwb_huffcode.c 2021-06-25 13:16:53.000000000 -0700
|+++ patched/RcppCWB/src/cwb/utils/_cwb_huffcode.c 2021-06-26 03:36:07.493100500 -0700
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 270
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru orig/RcppCWB/src/globalvars.h patched/RcppCWB/src/globalvars.h
|--- orig/RcppCWB/src/globalvars.h 2021-06-25 13:15:53.000000000 -0700
|+++ patched/RcppCWB/src/globalvars.h 2021-06-26 03:50:52.808752600 -0700
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
WARNING: failed to apply patch https://www.r-project.org/nosvn/winutf8/ucrt3//patches/CRAN/RcppCWB.diff
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-devel/include" -DNDEBUG -I/c/Users/ANDREA~1/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/cqp -I/c/Users/ANDREA~1/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/cl -I/c/Users/ANDREA~1/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/CQi -DPCRE_STATIC -I'C:/Users/Andreas Blaette/AppData/Local/R/win-library/4.2/Rcpp/include' -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-devel/include" -DNDEBUG -I/c/Users/ANDREA~1/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/cqp -I/c/Users/ANDREA~1/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/cl -I/c/Users/ANDREA~1/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/CQi -DPCRE_STATIC -I'C:/Users/Andreas Blaette/AppData/Local/R/win-library/4.2/Rcpp/include' -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c sugar.cpp -o sugar.o
g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-devel/include" -DNDEBUG -I/c/Users/ANDREA~1/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/cqp -I/c/Users/ANDREA~1/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/cl -I/c/Users/ANDREA~1/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/CQi -DPCRE_STATIC -I'C:/Users/Andreas Blaette/AppData/Local/R/win-library/4.2/Rcpp/include' -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c wrappers.cpp -o wrappers.o
In file included from wrappers.cpp:16:
cwb/utils/globals.h:134:5: warning: 'p_encoder_ix' initialized and declared 'extern'
134 | int p_encoder_ix = 0;
| ^~~~~~~~~~~~
cd cwb; __MINGW__=1 /usr/bin/make cl
make[1]: Entering directory '/c/Users/Andreas Blaette/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb'
--------------------------------- BUILDING CORPUS LIBRARY (CL)
cd cl; /usr/bin/make
make[2]: Entering directory '/c/Users/Andreas Blaette/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/cl'
gcc -c -o globals.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:03 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC globals.c
gcc -c -o macros.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:03 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC macros.c
gcc -c -o ui-helpers.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:04 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC ui-helpers.c
gcc -c -o list.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:04 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC list.c
gcc -c -o lexhash.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:04 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC lexhash.c
gcc -c -o ngram-hash.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:05 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC ngram-hash.c
gcc -c -o bitfields.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:05 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC bitfields.c
gcc -c -o storage.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:05 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC storage.c
gcc -c -o fileutils.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:07 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC fileutils.c
fileutils.c: In function 'cl_close_stream':
fileutils.c:400:19: warning: variable 'was_pipe' set but not used [-Wunused-but-set-variable]
400 | int result = 0, was_pipe = 0;
| ^~~~~~~~
At top level:
fileutils.c:188:1: warning: 'cl_handle_sigpipe' defined but not used [-Wunused-function]
188 | cl_handle_sigpipe(int signum)
| ^~~~~~~~~~~~~~~~~
gcc -c -o special-chars.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:08 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC special-chars.c
gcc -c -o regopt.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:09 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC regopt.c
gcc -c -o corpus.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:09 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC corpus.c
corpus.c:582:1: warning: 'memberIDList' defined but not used [-Wunused-function]
582 | memberIDList(char *s, IDList l)
| ^~~~~~~~~~~~
gcc -c -o attributes.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:10 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC attributes.c
gcc -c -o makecomps.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:11 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC makecomps.c
gcc -c -o registry.tab.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:12 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC registry.tab.c
gcc -c -o lex.creg.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:13 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC lex.creg.c
gcc -c -o cdaccess.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:14 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC cdaccess.c
cdaccess.c: In function 'cl_read_stream':
cdaccess.c:982:5: warning: 'memcpy' specified bound between 18446744065119617024 and 18446744073709551612 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
982 | memcpy(buffer, ps->base + ps->nr_items, items_to_read * sizeof(int));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -c -o bitio.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:15 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC bitio.c
gcc -c -o endian.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:16 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC endian.c
gcc -c -o compression.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:17 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC compression.c
gcc -c -o windows-mmap.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:17 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC windows-mmap.c
rm -f libcl.a
ar cq libcl.a globals.o macros.o ui-helpers.o list.o lexhash.o ngram-hash.o bitfields.o storage.o fileutils.o special-chars.o regopt.o corpus.o attributes.o makecomps.o registry.tab.o lex.creg.o cdaccess.o bitio.o endian.o compression.o windows-mmap.o
gcc -c -o dl_stub.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:19 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC dl_stub.c
make[2]: Leaving directory '/c/Users/Andreas Blaette/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/cl'
make[1]: Leaving directory '/c/Users/Andreas Blaette/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb'
cd cwb; __MINGW__=1 /usr/bin/make cqp
make[1]: Entering directory '/c/Users/Andreas Blaette/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb'
--------------------------------- BUILDING CQP
cd cqp; /usr/bin/make
make[2]: Entering directory '/c/Users/Andreas Blaette/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/cqp'
gcc -c -o cqp.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:19 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC cqp.c
gcc -c -o symtab.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:20 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC symtab.c
gcc -c -o eval.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:21 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC eval.c
eval.c: In function 'simulate':
eval.c:546:37: warning: 'anchor' may be used uninitialized in this function [-Wmaybe-uninitialized]
546 | result = (anchor >= 0 && anchor == corppos) ;
| ~~~~~~~^~~~~~~~~~
eval.c:473:26: note: 'anchor' was declared here
473 | int start, end, struc, anchor, n, zero_width;
| ^~~~~~
eval.c: In function 'cqp_run_query':
eval.c:1984:13: warning: 'cpos' may be used uninitialized in this function [-Wmaybe-uninitialized]
1984 | cpos++; /* </target> anchor refers to point after target token etc. */
| ~~~~^~
eval.c:1862:50: note: 'cpos' was declared here
1862 | int nr_strucs, nr_ok, ok, i, k, n, start, end, cpos;
| ^~~~
gcc -c -o tree.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:23 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC tree.c
gcc -c -o options.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:24 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC options.c
gcc -c -o corpmanag.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:25 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC corpmanag.c
gcc -c -o regex2dfa.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:26 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC regex2dfa.c
gcc -c -o output.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:28 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC output.c
output.c: In function 'pt_get_anchor_cpos':
output.c:768:15: warning: 'cpos' may be used uninitialized in this function [-Wmaybe-uninitialized]
768 | return cpos + offset;
| ~~~~~^~~~~~~~
gcc -c -o ranges.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:29 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC ranges.c
ranges.c: In function 'SortExternally':
ranges.c:1032:17: warning: 'p1end' may be used uninitialized in this function [-Wmaybe-uninitialized]
1032 | else if (p1end >= text_size)
| ^
ranges.c:1027:17: warning: 'p1start' may be used uninitialized in this function [-Wmaybe-uninitialized]
1027 | else if (p1start >= text_size)
| ^
gcc -c -o builtins.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:30 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC builtins.c
gcc -c -o groups.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:31 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC groups.c
groups.c: In function 'get_group_id':
groups.c:170:7: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
170 | pos += offset; /* compute effective cpos */
| ~~~~^~~~~~~~~
gcc -c -o targets.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:32 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC targets.c
targets.c: In function 'set_target':
targets.c:174:14: warning: 'cpos' may be used uninitialized in this function [-Wmaybe-uninitialized]
174 | cpos += source_offset;
| ~~~~~^~~~~~~~~~~~~~~~
gcc -c -o matchlist.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:33 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC matchlist.c
gcc -c -o concordance.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:35 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC concordance.c
gcc -c -o parse_actions.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:36 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC parse_actions.c
In file included from corpmanag.h:22,
from parse_actions.h:31,
from parse_actions.c:18:
parse_actions.c: In function 'do_XMLTag':
../cl/cl.h:208:44: warning: 'pattern' may be used uninitialized in this function [-Wmaybe-uninitialized]
208 | #define cl_free(p) do { if ((p) != NULL) { free(p); p = NULL; } } while (0)
| ^~~~
parse_actions.c:1398:15: note: 'pattern' was declared here
1398 | char *pattern;
| ^~~~~~~
gcc -c -o attlist.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:37 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC attlist.c
gcc -c -o context_descriptor.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:38 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC context_descriptor.c
gcc -c -o print-modes.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:39 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC print-modes.c
gcc -c -o ascii-print.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:40 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC ascii-print.c
gcc -c -o sgml-print.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:41 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC sgml-print.c
gcc -c -o html-print.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:42 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC html-print.c
gcc -c -o latex-print.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:43 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC latex-print.c
gcc -c -o variables.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:44 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC variables.c
gcc -c -o print_align.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:45 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC print_align.c
gcc -c -o macro.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:46 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC macro.c
gcc -c -o parser.tab.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:48 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC parser.tab.c
gcc -c -o lex.yy.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:49 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC lex.yy.c
gcc -c -o ../CQi/server.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:50 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC ../CQi/server.c
../CQi/server.c: In function 'cqi_send_byte':
../CQi/server.c:417:25: warning: pointer targets in passing argument 2 of 'send' differ in signedness [-Wpointer-sign]
417 | 1 != send(connfd, &prep, 1, MSG_WAITALL)
| ^~~~~
| |
| unsigned char *
In file included from ../CQi/server.c:32:
c:\rtools42\x86_64-w64-mingw32.static.posix\include\winsock2.h:1027:60: note: expected 'const char *' but argument is of type 'unsigned char *'
1027 | WINSOCK_API_LINKAGE int WSAAPI send(SOCKET s,const char *buf,int len,int flags);
| ~~~~~~~~~~~~^~~
../CQi/server.c: In function 'cqi_recv_bytes':
../CQi/server.c:760:29: warning: pointer targets in passing argument 2 of 'recv' differ in signedness [-Wpointer-sign]
760 | if (bytes != recv(connfd, buf, bytes, MSG_WAITALL)) {
| ^~~
| |
| cqi_byte * {aka unsigned char *}
In file included from ../CQi/server.c:32:
c:\rtools42\x86_64-w64-mingw32.static.posix\include\winsock2.h:1022:54: note: expected 'char *' but argument is of type 'cqi_byte *' {aka 'unsigned char *'}
1022 | WINSOCK_API_LINKAGE int WSAAPI recv(SOCKET s,char *buf,int len,int flags);
| ~~~~~~^~~
../CQi/server.c: In function 'cqi_recv_byte':
../CQi/server.c:771:25: warning: pointer targets in passing argument 2 of 'recv' differ in signedness [-Wpointer-sign]
771 | if (1 != recv(connfd, &b, 1, MSG_WAITALL)) {
| ^~
| |
| cqi_byte * {aka unsigned char *}
In file included from ../CQi/server.c:32:
c:\rtools42\x86_64-w64-mingw32.static.posix\include\winsock2.h:1022:54: note: expected 'char *' but argument is of type 'cqi_byte *' {aka 'unsigned char *'}
1022 | WINSOCK_API_LINKAGE int WSAAPI recv(SOCKET s,char *buf,int len,int flags);
| ~~~~~~^~~
gcc -c -o ../CQi/auth.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:51 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC ../CQi/auth.c
gcc -c -o ../CQi/log.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:52 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC ../CQi/log.c
../CQi/log.c: In function 'cqiserver_debug_arglist':
../CQi/log.c:149:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
149 | sprintf(mark += strlen(mark), "'%s' ", (char *)((long)arg_list[i]));
| ^
rm -f libcqp.a
ar cq libcqp.a cqp.o symtab.o eval.o tree.o options.o corpmanag.o regex2dfa.o output.o ranges.o builtins.o groups.o targets.o matchlist.o concordance.o parse_actions.o attlist.o context_descriptor.o print-modes.o ascii-print.o sgml-print.o html-print.o latex-print.o variables.o print_align.o macro.o parser.tab.o lex.yy.o ../CQi/server.o ../CQi/auth.o ../CQi/log.o
make[2]: Leaving directory '/c/Users/Andreas Blaette/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/cqp'
make[1]: Leaving directory '/c/Users/Andreas Blaette/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb'
cd cwb; __MINGW__=1 /usr/bin/make utils
make[1]: Entering directory '/c/Users/Andreas Blaette/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb'
--------------------------------- BUILDING UTILITIES
cd utils; /usr/bin/make
make[2]: Entering directory '/c/Users/Andreas Blaette/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/utils'
gcc -c -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:54 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC -o cwb-encode.o cwb-encode.c
gcc -c -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:55 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC -o cwb-makeall.o cwb-makeall.c
gcc -c -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:56 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC -o cwb-huffcode.o cwb-huffcode.c
gcc -c -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Wed Jan 26 10:18:57 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools42/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -DPCRE_STATIC -o cwb-compress-rdx.o cwb-compress-rdx.c
--------------------------------- CREATING ARCHIVE
rm -f libcwb.a
ar cq libcwb.a cwb-encode.o cwb-makeall.o cwb-huffcode.o cwb-compress-rdx.o
make[2]: Leaving directory '/c/Users/Andreas Blaette/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/utils'
make[1]: Leaving directory '/c/Users/Andreas Blaette/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb'
C:\rtools42\x86_64-w64-mingw32.static.posix\bin\nm.exe: 'libcl.a': No such file
C:\rtools42\x86_64-w64-mingw32.static.posix\bin\nm.exe: 'libcqp.a': No such file
C:\rtools42\x86_64-w64-mingw32.static.posix\bin\nm.exe: 'libcwb.a': No such file
g++ -std=gnu++11 -shared -s -static-libgcc -o RcppCWB.dll tmp.def RcppExports.o sugar.o wrappers.o -L/c/Users/ANDREA~1/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/cl -L/c/Users/ANDREA~1/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/cqp -L/c/Users/ANDREA~1/AppData/Local/Temp/RtmpUnfRDZ/R.INSTALL38c052743eef/RcppCWB/src/cwb/utils -lcwb -lcqp -lcl -lglib-2.0 -lintl -liconv -lws2_32 -lpcre -lole32 -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~1/R/R-devel/bin/x64 -lR
installing to C:/Users/Andreas Blaette/AppData/Local/R/win-library/4.2/00LOCK-RcppCWB/00new/RcppCWB/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (RcppCWB)
RcppCWB is UCRT-compatible now.
Maybe this is helpful: https://github.com/PolMine/RcppCWB/runs/4888349474?check_suite_focus=true