I do not yet manage to finalize the Github Action für Windows-2022/R4.2/UCRT. The RcppCWB and CWB files are compiled successfully, but at the very end, the linker is not found. Hard to understand because compiler and linker are in the same directory, so it is not an issue whether the PATH is set correctly. See the full output here.
Run kalibera/R-actions/pkg-check@master
with:
pkg-path: .
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM:
GITHUB_PAT: ***
R_LIBS_USER: NULL
R_LIBS_SITE: NULL
TZ: UTC
R_CUSTOM_TOOLS_SOFT: /c/Users/runneradmin/x86_64-w64-mingw32.static.posix
R_CUSTOM_TOOLS_PATH: /c/Users/runneradmin/x86_64-w64-mingw32.static.posix/bin;c:/msys64/usr/bin
_R_INSTALL_TIME_PATCHES_: no
Run PACKAGE=$(sed -n 's/^Package: *//p' ./DESCRIPTION)
=== Package RcppCWB ===
Run echo "::group::Building $PACKAGE tar ball"
R Under development (unstable) (2021-12-06 r81300 ucrt) -- "Unsuffered Consequences"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.
Building RcppCWB tar ball
Run if [ "Windows" = Linux -a -n "" ]; then
Run if [ "Windows" = macOS -a -n "" ]; then
Run echo "::group::Install $PACKAGE and dependencies"
Install RcppCWB and dependencies
Run echo "::group::R CMD check"
R CMD check
D:\a\_temp\5817ae20-b7f1-4a23-af41-6721338e0af0.sh: line 2: pdflatex: command not found
Warning: pdflatex not found, using --no-manual
R_LIBS=/d/a/RcppCWB/Rlib R CMD check --no-manual /d/a/RcppCWB/RcppCWB_0.4.4.9004.tar.gz
* using log directory 'D:/a/RcppCWB/RcppCWB.Rcheck'
* using R Under development (unstable) (2021-12-06 r81300 ucrt)
* using platform: x86_64-w64-mingw32 (64-bit)
* using session charset: UTF-8
* using option '--no-manual'
* checking for file 'RcppCWB/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'RcppCWB' version '0.4.4.9004'
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking whether package 'RcppCWB' can be installed ... ERROR
Installation failed.
See 'D:/a/RcppCWB/RcppCWB.Rcheck/00install.out' for details.
* DONE
Status: 1 ERROR
See
'D:/a/RcppCWB/RcppCWB.Rcheck/00check.log'
for details.
-------------- RcppCWB.Rcheck/00check.log ---------------
* using log directory 'D:/a/RcppCWB/RcppCWB.Rcheck'
* using R Under development (unstable) (2021-12-06 r81300 ucrt)
* using platform: x86_64-w64-mingw32 (64-bit)
* using session charset: UTF-8
* using option '--no-manual'
* checking for file 'RcppCWB/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'RcppCWB' version '0.4.4.9004'
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking whether package 'RcppCWB' can be installed ... ERROR
Installation failed.
See 'D:/a/RcppCWB/RcppCWB.Rcheck/00install.out' for details.
* DONE
Status: 1 ERROR
---------------------------------
-------------- RcppCWB.Rcheck/00install.out ---------------
* installing *source* package 'RcppCWB' ...
** using staged installation
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
g++ -std=gnu++11 -I"C:/Users/RUNNER~1/r/include" -DNDEBUG -ID:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cqp -ID:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cl -ID:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/CQi -DPCRE_STATIC -I'D:/a/RcppCWB/Rlib/Rcpp/include' -I"C:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -fexceptions -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"C:/Users/RUNNER~1/r/include" -DNDEBUG -ID:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cqp -ID:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cl -ID:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/CQi -DPCRE_STATIC -I'D:/a/RcppCWB/Rlib/Rcpp/include' -I"C:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -fexceptions -c addons.cpp -o addons.o
g++ -std=gnu++11 -I"C:/Users/RUNNER~1/r/include" -DNDEBUG -ID:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cqp -ID:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cl -ID:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/CQi -DPCRE_STATIC -I'D:/a/RcppCWB/Rlib/Rcpp/include' -I"C:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -fexceptions -c wrappers.cpp -o wrappers.o
cd cwb; __MINGW__=1 C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/mingw32-make cl
mingw32-make[1]: Entering directory 'D:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb'
--------------------------------- BUILDING CORPUS LIBRARY (CL)
cd cl; C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/mingw32-make
mingw32-make[2]: Entering directory 'D:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cl'
gcc -c -o globals.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:22 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC globals.c
gcc -c -o macros.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:22 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC macros.c
gcc -c -o ui-helpers.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:23 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC ui-helpers.c
gcc -c -o list.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:23 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC list.c
gcc -c -o lexhash.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:23 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC lexhash.c
gcc -c -o ngram-hash.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:23 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC ngram-hash.c
gcc -c -o bitfields.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:23 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC bitfields.c
gcc -c -o storage.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:23 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC storage.c
gcc -c -o fileutils.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:24 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC fileutils.c
gcc -c -o special-chars.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:25 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC special-chars.c
gcc -c -o regopt.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:25 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC regopt.c
gcc -c -o corpus.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:25 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC corpus.c
gcc -c -o attributes.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:26 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC attributes.c
gcc -c -o makecomps.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:27 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC makecomps.c
gcc -c -o registry.tab.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:28 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC registry.tab.c
gcc -c -o lex.creg.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:29 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC lex.creg.c
gcc -c -o cdaccess.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:29 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -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=\""Sun Jan 30 23:08:31 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC bitio.c
gcc -c -o endian.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:32 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC endian.c
gcc -c -o compression.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:32 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC compression.c
gcc -c -o windows-mmap.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:33 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -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=\""Sun Jan 30 23:08:33 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC dl_stub.c
mingw32-make[2]: Leaving directory 'D:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cl'
mingw32-make[1]: Leaving directory 'D:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb'
cd cwb; __MINGW__=1 C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/mingw32-make cqp
mingw32-make[1]: Entering directory 'D:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb'
--------------------------------- BUILDING CQP
cd cqp; C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/mingw32-make
mingw32-make[2]: Entering directory 'D:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cqp'
gcc -c -o cqp.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:34 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC cqp.c
gcc -c -o symtab.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:35 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC symtab.c
gcc -c -o eval.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:36 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC eval.c
gcc -c -o tree.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:37 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC tree.c
gcc -c -o options.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:38 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC options.c
gcc -c -o corpmanag.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:39 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC corpmanag.c
gcc -c -o regex2dfa.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:40 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC regex2dfa.c
gcc -c -o output.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:41 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC output.c
gcc -c -o ranges.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:42 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC ranges.c
gcc -c -o builtins.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:44 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC builtins.c
gcc -c -o groups.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:45 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC groups.c
gcc -c -o targets.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:46 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC targets.c
gcc -c -o matchlist.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:47 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC matchlist.c
gcc -c -o concordance.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:48 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC concordance.c
gcc -c -o parse_actions.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:49 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC parse_actions.c
gcc -c -o attlist.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:50 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC attlist.c
gcc -c -o context_descriptor.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:51 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC context_descriptor.c
gcc -c -o print-modes.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:52 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC print-modes.c
gcc -c -o ascii-print.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:53 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC ascii-print.c
gcc -c -o sgml-print.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:54 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC sgml-print.c
gcc -c -o html-print.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:55 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC html-print.c
gcc -c -o latex-print.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:56 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC latex-print.c
gcc -c -o variables.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:56 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC variables.c
gcc -c -o print_align.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:57 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC print_align.c
gcc -c -o macro.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:58 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC macro.c
gcc -c -o parser.tab.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:08:59 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC parser.tab.c
gcc -c -o lex.yy.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:09:01 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC lex.yy.c
gcc -c -o ../CQi/server.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:09:02 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC ../CQi/server.c
gcc -c -o ../CQi/auth.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:09:03 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC ../CQi/auth.c
gcc -c -o ../CQi/log.o -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:09:04 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC ../CQi/log.c
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
mingw32-make[2]: Leaving directory 'D:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cqp'
mingw32-make[1]: Leaving directory 'D:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb'
cd cwb; __MINGW__=1 C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/mingw32-make utils
mingw32-make[1]: Entering directory 'D:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb'
--------------------------------- BUILDING UTILITIES
cd utils; C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/mingw32-make
mingw32-make[2]: Entering directory 'D:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/utils'
gcc -c -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:09:05 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC -o cwb-encode.o cwb-encode.c
gcc -c -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:09:06 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC -o cwb-makeall.o cwb-makeall.c
gcc -c -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:09:07 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -DPCRE_STATIC -o cwb-huffcode.o cwb-huffcode.c
gcc -c -O2 -Wall -D__MINGW__ -DEMULATE_SETENV -DCOMPILE_DATE=\""Sun Jan 30 23:09:08 UTC 2022"\" -DCWB_VERSION=\"3.4.33\" -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -I/rtools42/x86_64-w64-mingw32.static.posix/include/glib-2.0 -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
mingw32-make[2]: Leaving directory 'D:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/utils'
mingw32-make[1]: Leaving directory 'D:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb'
C:\Users\runneradmin\x86_64-w64-mingw32.static.posix\bin\nm.exe: 'libcl.a': No such file
C:\Users\runneradmin\x86_64-w64-mingw32.static.posix\bin\nm.exe: 'libcqp.a': No such file
C:\Users\runneradmin\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 addons.o wrappers.o -LD:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cl -LD:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cqp -LD:/a/RcppCWB/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/utils -lcwb -lcqp -lcl -lglib-2.0 -lintl -liconv -lws2_32 -lpcre -lole32 -LC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/Users/runneradmin/x86_64-w64-mingw32.static.posix/lib -LC:/Users/RUNNER~1/r/bin/x64 -lR
/usr/bin/sh: line 9: g++ -std=gnu++11 : command not found
no DLL was created
ERROR: compilation failed for package 'RcppCWB'
* removing 'D:/a/RcppCWB/RcppCWB.Rcheck/RcppCWB'
---------------------------------
Error: ERROR: package RcppCWB check failed
Error: Process completed with exit code 1.
I do not yet manage to finalize the Github Action für Windows-2022/R4.2/UCRT. The RcppCWB and CWB files are compiled successfully, but at the very end, the linker is not found. Hard to understand because compiler and linker are in the same directory, so it is not an issue whether the PATH is set correctly. See the full output here.