PolMine / RcppCWB

'Rcpp' Bindings for the 'Corpus Workbench' (CWB)
Other
2 stars 3 forks source link

Symbol not found error for macOS arm64 builds on CRAN #82

Closed ablaette closed 9 months ago

ablaette commented 1 year ago

Check results report an ERROR for arm64 architectures (macOS): Symbol not found: _objc_msgSend$UTF8String

The full output is as follows:

* installing *source* package ‘RcppCWB’ ...
** package ‘RcppCWB’ successfully unpacked and MD5 sums checked
** using staged installation
* operating system detected for CWB configuration: Darwin
* compiling for darwin-arm64
* using CWB platform configuration file: darwin-arm64
* adapt CWB configuration file to use compiler: clang -arch arm64
* using pkg-config to check whether glib-2.0 is available ... yes
* using pkg-config to get linker flags for glib-2.0: -L/opt/R/arm64/lib -lglib-2.0 -lintl -lm -framework Foundation -framework CoreFoundation -framework AppKit -framework Carbon -lpcre2-8
* check whether pcre2 is available ... yes (version: 10.42)
* checking whether pcre2test is available ... yes
* check whether pcre2 has been configured with unicode properties support ... yes
* using pcre2-config to get libdirs for pcre2 (8bit): -L/opt/R/arm64/lib -lpcre2-8
* using pcre2-config to get cflags for pcre2: -I/opt/R/arm64/include -DPCRE2_STATIC
* using build directory: /Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB
** libs
using C++ compiler: ‘Apple clang version 13.0.0 (clang-1300.0.29.30)’
using SDK: ‘MacOSX11.3.sdk’
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cqp -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cl -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/CQi -I/opt/R/arm64/include -DPCRE2_STATIC -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RcppExports.cpp -o RcppExports.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cqp -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cl -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/CQi -I/opt/R/arm64/include -DPCRE2_STATIC -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c addons.cpp -o addons.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cqp -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cl -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/CQi -I/opt/R/arm64/include -DPCRE2_STATIC -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c cl.cpp -o cl.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cqp -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cl -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/CQi -I/opt/R/arm64/include -DPCRE2_STATIC -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c cqp.cpp -o cqp.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cqp -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cl -I/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/CQi -I/opt/R/arm64/include -DPCRE2_STATIC -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c utils.cpp -o utils.o
cd cwb; R_PACKAGE_SOURCE=/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb PKG_CONFIG_PATH=/opt/R/arm64/lib/pkgconfig:/opt/R/arm64/share/pkgconfig:/usr/lib/pkgconfig:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig make clean
for i in cl cqp ; do if [ -f "$i/Makefile" ]; then cd $i; make clean; cd ..; fi; done;
rm -f *.o libcl.a registry.output *~
rm -f cqp cqpcl cqpserver  *.o ../CQi/*.o parser.output *~ ../CQi/*~
# TODO what is "parser.output" ? 
rm -f *~ config/*/*~ CQi/*~ CQi/*.o technical/*~ TAGS
rm -f -rf build
cd cwb; R_PACKAGE_SOURCE=/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb PKG_CONFIG_PATH=/opt/R/arm64/lib/pkgconfig:/opt/R/arm64/share/pkgconfig:/usr/lib/pkgconfig:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig make depend
for i in cl cqp  ; do cd $i; make depend.mk; cd ..; done;
make[2]: `depend.mk' is up to date.
make[2]: `depend.mk' is up to date.
cd cwb; R_PACKAGE_SOURCE=/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb PKG_CONFIG_PATH=/opt/R/arm64/lib/pkgconfig:/opt/R/arm64/share/pkgconfig:/usr/lib/pkgconfig:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig make cl
--------------------------------- BUILDING CORPUS LIBRARY (CL)
cd cl; make
clang -arch arm64 -c  -o globals.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:33 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   globals.c
clang -arch arm64 -c  -o macros.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:33 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   macros.c
clang -arch arm64 -c  -o ui-helpers.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:33 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   ui-helpers.c
clang -arch arm64 -c  -o list.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:33 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   list.c
clang -arch arm64 -c  -o lexhash.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:34 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   lexhash.c
clang -arch arm64 -c  -o ngram-hash.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:34 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   ngram-hash.c
clang -arch arm64 -c  -o bitfields.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:34 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   bitfields.c
clang -arch arm64 -c  -o storage.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:34 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   storage.c
clang -arch arm64 -c  -o fileutils.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:34 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   fileutils.c
clang -arch arm64 -c  -o special-chars.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:34 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   special-chars.c
clang -arch arm64 -c  -o regopt.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:34 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   regopt.c
clang -arch arm64 -c  -o corpus.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:35 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   corpus.c
clang -arch arm64 -c  -o attributes.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:35 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   attributes.c
clang -arch arm64 -c  -o makecomps.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:35 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   makecomps.c
clang -arch arm64 -c  -o registry.tab.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:35 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   registry.tab.c
clang -arch arm64 -c  -o lex.creg.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:35 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   lex.creg.c
clang -arch arm64 -c  -o cdaccess.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:35 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   cdaccess.c
clang -arch arm64 -c  -o bitio.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:36 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   bitio.c
clang -arch arm64 -c  -o endian.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:36 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   endian.c
clang -arch arm64 -c  -o compression.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:36 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   compression.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
clang -arch arm64 -c  -o dl_stub.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:36 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   dl_stub.c
cd cwb; R_PACKAGE_SOURCE=/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb PKG_CONFIG_PATH=/opt/R/arm64/lib/pkgconfig:/opt/R/arm64/share/pkgconfig:/usr/lib/pkgconfig:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig make cqp
--------------------------------- BUILDING CQP
cd cqp; make
clang -arch arm64 -c  -o cqp.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:36 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   cqp.c
clang -arch arm64 -c  -o symtab.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:36 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   symtab.c
clang -arch arm64 -c  -o eval.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:36 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   eval.c
clang -arch arm64 -c  -o tree.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:37 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   tree.c
clang -arch arm64 -c  -o options.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:37 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   options.c
clang -arch arm64 -c  -o corpmanag.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:38 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   corpmanag.c
clang -arch arm64 -c  -o regex2dfa.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:38 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   regex2dfa.c
clang -arch arm64 -c  -o output.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:38 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   output.c
clang -arch arm64 -c  -o ranges.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:38 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   ranges.c
clang -arch arm64 -c  -o builtins.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:38 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   builtins.c
clang -arch arm64 -c  -o groups.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:39 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   groups.c
clang -arch arm64 -c  -o targets.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:39 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   targets.c
clang -arch arm64 -c  -o matchlist.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:39 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   matchlist.c
clang -arch arm64 -c  -o concordance.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:39 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   concordance.c
clang -arch arm64 -c  -o parse_actions.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:39 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   parse_actions.c
clang -arch arm64 -c  -o attlist.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:40 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   attlist.c
clang -arch arm64 -c  -o context_descriptor.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:40 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   context_descriptor.c
clang -arch arm64 -c  -o print-modes.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:40 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   print-modes.c
clang -arch arm64 -c  -o ascii-print.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:40 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   ascii-print.c
clang -arch arm64 -c  -o sgml-print.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:40 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   sgml-print.c
clang -arch arm64 -c  -o html-print.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:40 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   html-print.c
clang -arch arm64 -c  -o latex-print.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:40 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   latex-print.c
clang -arch arm64 -c  -o variables.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:40 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   variables.c
clang -arch arm64 -c  -o print_align.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:41 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   print_align.c
clang -arch arm64 -c  -o macro.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:41 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   macro.c
clang -arch arm64 -c  -o parser.tab.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:41 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   parser.tab.c
clang -arch arm64 -c  -o lex.yy.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:41 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   lex.yy.c
clang -arch arm64 -c  -o ../CQi/server.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:42 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   ../CQi/server.c
clang -arch arm64 -c  -o ../CQi/auth.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:42 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   ../CQi/auth.c
clang -arch arm64 -c  -o ../CQi/log.o -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:42 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_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
cd cwb; R_PACKAGE_SOURCE=/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb PKG_CONFIG_PATH=/opt/R/arm64/lib/pkgconfig:/opt/R/arm64/share/pkgconfig:/usr/lib/pkgconfig:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig make utils
--------------------------------- BUILDING UTILITIES
cd utils; make
clang -arch arm64 -c -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:42 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   -o cwb-encode.o cwb-encode.c
clang -arch arm64 -c -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:42 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   -o cwb-makeall.o cwb-makeall.c
clang -arch arm64 -c -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:42 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_STATIC   -o cwb-huffcode.o cwb-huffcode.c
clang -arch arm64 -c -Wall -O3 -arch arm64 -mtune=native   -DUSE_TERMCAP -DCOMPILE_DATE=\""Wed Jun 14 21:30:43 NZST 2023"\" -DCWB_VERSION=\"3.4.33\" -DPCRE2_STATIC -I/opt/R/arm64/include/glib-2.0 -I/opt/R/arm64/lib/glib-2.0/include -I/opt/R/arm64/include -I/opt/R/arm64/include -DPCRE2_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
clang++ -arch arm64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o RcppCWB.so RcppExports.o addons.o cl.o cqp.o utils.o -L/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cl -L/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/cqp -L/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00_pkg_src/RcppCWB/src/cwb/utils -lcwb -lcqp -lcl -L/opt/R/arm64/lib -lglib-2.0 -lintl -lm -framework Foundation -framework CoreFoundation -framework AppKit -framework Carbon -lpcre2-8 -L/opt/R/arm64/lib -lpcre2-8 -framework Carbon -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00LOCK-RcppCWB/00new/RcppCWB/libs
** generating debug symbols (dSYM)
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘RcppCWB’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00LOCK-RcppCWB/00new/RcppCWB/libs/RcppCWB.so':
  dlopen(/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00LOCK-RcppCWB/00new/RcppCWB/libs/RcppCWB.so, 6): Symbol not found: _objc_msgSend$UTF8String
  Referenced from: /Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00LOCK-RcppCWB/00new/RcppCWB/libs/RcppCWB.so
  Expected in: flat namespace
 in /Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/00LOCK-RcppCWB/00new/RcppCWB/libs/RcppCWB.so
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Volumes/Builds/packages/big-sur-arm64/results/4.3/RcppCWB.Rcheck/RcppCWB’

This is a similar issue I find: https://github.com/xamarin/xamarin-macios/issues/16223

One potential solution seems to be to pass -fno-objc-msgsend-selector-stubs to clang.

ablaette commented 1 year ago

I tried to submit RcppCWB v0.6.2 with the conditional flag -fno-objc-msgsend-selector-stubs to clang, but clang 15 (running on the CRAN server for incoming packages) does not accept this flag any more.

So I wrote to R-devel, and this is the response:

Dear Simon, thanks a lot for your explanation, effort and great work! Andreas

Am 18.06.2023 um 00:29 schrieb Simon Urbanek [simon.urbanek@r-project.org](mailto:simon.urbanek@r-project.org):

Andreas,

that is actually not your problem - the stubs are generated in glib, so your package can do nothing about it, your compile flags won't change it. The only way to fix it is on my end, the proper way is to upgrade to Xcode 14 for the package builds, but that requires some changes to the build machine, so I'll do it on Monday when I'm at work, so hold on tight in the meantime.

Cheers, Simon

Explanation of the issue for posterity: the issue is caused by Xcode 14 which generates those stubs[1], but can also handle them. However, older Xcode versions cannot. We are using macOS 11 target and SDK to ensure compatibility with older macOS versions, but apparently Xcode 14 assumes that the linking will still happen with Xcode 14 even if libraries are compiled for older targets. Therefore the proper fix is to make sure that packages are also linked with Xcode 14. Another work-around would be to compile glib with -fno-objc-msgsend-selector-stubs so it would also work with older Xcode, but it's more future-proof to just upgrade Xcode.

[1] https://github.com/llvm/llvm-project/issues/56034

On Jun 17, 2023, at 7:07 PM, Andreas Blätte [andreas.blaette@uni-due.de](mailto:andreas.blaette@uni-due.de) wrote:

Dear colleagues,

after submitting a release of my package RcppCWB (no problems with test servers), CRAN check results reported ERRORS on the macOS check systems: https://cran.r-project.org/web/checks/check_results_RcppCWB.html

The core is that when test loading the package, you get the error: Symbol not found: _objc_msgSend$UTF8String

Picking up a solution discussed here (disable objc_msgSend stubs in clang), I modified the configure script of my package to pass the flag “-fno-objc-msgsend-selector-stubs“ to the linker, which I thought would solve the problem.

However: The CRAN Debian system for incoming R packages uses clang 15, which does not accept this flag any more, resulting in an error.

Certainly, I could refine my configure script to address a very specific scenario on CRAN macOS systems, i.e. making usage of the flag conditional on a specific clang version. But I am not sure whether this is the way to go. It would feel like a hack I would like to avoid.

Has anybody encountered this error? Is there a best practice or a recomended solution? I would be very glad to get your advice!

Kind regards

Andreas

Conclusion: We need to rely on the updates of the macOS CRAN test system. I undid the changes of the configure script according to the recommendation I received.

indoger1 commented 1 year ago

Actually I get a similar error trying to install RcppCWB on a Debian 11 virtual machine (R 4.3.2). Is there a solution for this problem? Error Message:

Error: package or namespace load failed for 'RcppCWB' in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/home/username/R/x86_64-pc-linux-gnu-library/4.3/00LOCK-RcppCWB/00new/RcppCWB/libs/RcppCWB.so': /home/username/R/x86_64-pc-linux-gnu-library/4.3/00LOCK-RcppCWB/00new/RcppCWB/libs/RcppCWB.so: undefined symbol: cl_get_p_attr_default Error: loading failed Execution halted ERROR: loading failed

ablaette commented 1 year ago

This issue has actually been resolved after an update on CRAN machines. Your issue seems to be a distinct one.

As you mention that you run a Debian 11 virtual machine. Is there a Docker file you could share?

indoger1 commented 1 year ago

Sorry, no docker file. The VM is provided by my IT department. Any hunch where I could start to search?

ablaette commented 9 months ago

The macOS issue has been resolved, and the VM question is a different issue. If it persists, please address it in a new, distinct issue!