* installing *source* package ‘cld2’ ...
** package ‘cld2’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’
using SDK: ‘MacOSX11.3.sdk’
rm -f cld2.so RcppExports.o wrapper.o libcld2/internal/cldutil.o libcld2/internal/cldutil_shared.o libcld2/internal/compact_lang_det.o libcld2/internal/compact_lang_det_hint_code.o libcld2/internal/compact_lang_det_impl.o libcld2/internal/debug.o libcld2/internal/fixunicodevalue.o libcld2/internal/generated_entities.o libcld2/internal/generated_language.o libcld2/internal/generated_ulscript.o libcld2/internal/getonescriptspan.o libcld2/internal/lang_script.o libcld2/internal/offsetmap.o libcld2/internal/scoreonescriptspan.o libcld2/internal/tote.o libcld2/internal/utf8statetable.o libcld2/internal/cld_generated_cjk_uni_prop_80.o libcld2/internal/cld2_generated_cjk_compatible.o libcld2/internal/cld_generated_cjk_delta_bi_4.o libcld2/internal/generated_distinct_bi_0.o libcld2/internal/cld2_generated_quadchrome_2.o libcld2/internal/cld2_generated_deltaoctachrome.o libcld2/internal/cld2_generated_distinctoctachrome.o libcld2/internal/cld_generated_score_quad_octa_2.o libcld2/libstatcld2.a
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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/Rlib/4.3/Rcpp/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c wrapper.cpp -o wrapper.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/cldutil.cc -o libcld2/internal/cldutil.o
libcld2/internal/cldutil.cc:49:22: warning: unused variable 'kSkipSpaceVowelContinue' [-Wunused-const-variable]
  static const uint8 kSkipSpaceVowelContinue[256] = {
                     ^
libcld2/internal/cldutil.cc:62:22: warning: unused variable 'kSkipSpaceContinue' [-Wunused-const-variable]
  static const uint8 kSkipSpaceContinue[256] = {
                     ^
libcld2/internal/cldutil.cc:89:22: warning: unused variable 'kAdvanceOneCharSpace' [-Wunused-const-variable]
  static const uint8 kAdvanceOneCharSpace[256] = {
                     ^
3 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/cldutil_shared.cc -o libcld2/internal/cldutil_shared.o
libcld2/internal/cldutil_shared.cc:49:18: warning: unused variable 'kMinCJKUTF8CharBytes' [-Wunused-const-variable]
static const int kMinCJKUTF8CharBytes = 3;
                 ^
libcld2/internal/cldutil_shared.cc:51:18: warning: unused variable 'kMinGramCount' [-Wunused-const-variable]
static const int kMinGramCount = 3;
                 ^
libcld2/internal/cldutil_shared.cc:52:18: warning: unused variable 'kMaxGramCount' [-Wunused-const-variable]
static const int kMaxGramCount = 16;
                 ^
libcld2/internal/cldutil_shared.cc:54:18: warning: unused variable 'UTFmax' [-Wunused-const-variable]
static const int UTFmax = 4;        // Max number of bytes in a UTF-8 character
                 ^
4 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/compact_lang_det.cc -o libcld2/internal/compact_lang_det.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/compact_lang_det_hint_code.cc -o libcld2/internal/compact_lang_det_hint_code.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/compact_lang_det_impl.cc -o libcld2/internal/compact_lang_det_impl.o
libcld2/internal/compact_lang_det_impl.cc:1001:7: warning: variable 'total_bytes' set but not used [-Wunused-but-set-variable]
  int total_bytes = 0;
      ^
libcld2/internal/compact_lang_det_impl.cc:1455:7: warning: unused variable 'plang_second' [-Wunused-variable]
  int plang_second = PerScriptNumber(ULScript_Latin, language3[active_slot[1]]);
      ^
libcld2/internal/compact_lang_det_impl.cc:1849:14: warning: unused variable 'ulscript' [-Wunused-variable]
    ULScript ulscript = scriptspan.ulscript;
             ^
libcld2/internal/compact_lang_det_impl.cc:1789:7: warning: unused variable 'tote_num' [-Wunused-variable]
  int tote_num = 0;
      ^
libcld2/internal/compact_lang_det_impl.cc:1828:7: warning: unused variable 'chunksizeunis' [-Wunused-variable]
  int chunksizeunis = (chunksizequads * 5) >> 1;
      ^
libcld2/internal/compact_lang_det_impl.cc:1795:12: warning: unused variable 'tote_script' [-Wunused-variable]
  ULScript tote_script[4] =
           ^
libcld2/internal/compact_lang_det_impl.cc:1788:7: warning: unused variable 'next_other_tote' [-Wunused-variable]
  int next_other_tote = 2;
      ^
libcld2/internal/compact_lang_det_impl.cc:1814:7: warning: unused variable 'advance_by' [-Wunused-variable]
  int advance_by = 2;                   // Advance 2 bytes
      ^
libcld2/internal/compact_lang_det_impl.cc:1815:7: warning: unused variable 'advance_limit' [-Wunused-variable]
  int advance_limit = textlimit >> 3;   // For first 1/8 of max document
      ^
libcld2/internal/compact_lang_det_impl.cc:1832:7: warning: unused variable 'spantooshortlimit' [-Wunused-variable]
  int spantooshortlimit = kShortSpanThresh;
      ^
libcld2/internal/compact_lang_det_impl.cc:1817:7: warning: variable 'initial_word_span' set but not used [-Wunused-but-set-variable]
  int initial_word_span = kDefaultWordSpan;
      ^
libcld2/internal/compact_lang_det_impl.cc:1794:7: warning: unused variable 'tote_grams' [-Wunused-variable]
  int tote_grams[4] = {0, 0, 0, 0};     // Number in partial chunk
      ^
libcld2/internal/compact_lang_det_impl.cc:1793:8: warning: unused variable 'tote_seen' [-Wunused-variable]
  bool tote_seen[4] = {false, false, false, false};
       ^
libcld2/internal/compact_lang_det_impl.cc:188:19: warning: unused variable 'FLAGS_cld_no_minimum_bytes' [-Wunused-const-variable]
static const bool FLAGS_cld_no_minimum_bytes = false;
                  ^
libcld2/internal/compact_lang_det_impl.cc:191:19: warning: unused variable 'FLAGS_cld_echotext' [-Wunused-const-variable]
static const bool FLAGS_cld_echotext = true;
                  ^
libcld2/internal/compact_lang_det_impl.cc:194:19: warning: unused variable 'FLAGS_cld_2011_hints' [-Wunused-const-variable]
static const bool FLAGS_cld_2011_hints = true;
                  ^
libcld2/internal/compact_lang_det_impl.cc:200:18: warning: unused variable 'kLangHintInitial' [-Wunused-const-variable]
static const int kLangHintInitial = 12;  // Boost language by N initially
                 ^
libcld2/internal/compact_lang_det_impl.cc:201:18: warning: unused variable 'kLangHintBoost' [-Wunused-const-variable]
static const int kLangHintBoost = 12;    // Boost language by N/16 per quadgram
                 ^
libcld2/internal/compact_lang_det_impl.cc:204:18: warning: unused variable 'kMaxSecondChanceLen' [-Wunused-const-variable]
static const int kMaxSecondChanceLen = 1024;  // Look at first 1K of short spans
                 ^
libcld2/internal/compact_lang_det_impl.cc:229:18: warning: unused variable 'kMinReliableSeq' [-Wunused-const-variable]
static const int kMinReliableSeq = 50;      // Record in seq if >= 50% reliable
                 ^
libcld2/internal/compact_lang_det_impl.cc:984:18: warning: unused variable 'kGoodFirstT3MinBytes' [-Wunused-const-variable]
static const int kGoodFirstT3MinBytes = 24;         // <this => no first
                 ^
libcld2/internal/compact_lang_det_impl.cc:1406:18: warning: unused variable 'kGoodSecondT3MinBytes' [-Wunused-const-variable]
static const int kGoodSecondT3MinBytes = 128;         // <this => no second
                 ^
22 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/debug.cc -o libcld2/internal/debug.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/fixunicodevalue.cc -o libcld2/internal/fixunicodevalue.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/generated_entities.cc -o libcld2/internal/generated_entities.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/generated_language.cc -o libcld2/internal/generated_language.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/generated_ulscript.cc -o libcld2/internal/generated_ulscript.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/getonescriptspan.cc -o libcld2/internal/getonescriptspan.o
libcld2/internal/getonescriptspan.cc:40:18: warning: unused variable 'kMaxUpToWordBoundary' [-Wunused-const-variable]
static const int kMaxUpToWordBoundary = 50;       // span < this make longer,
                 ^
libcld2/internal/getonescriptspan.cc:42:18: warning: unused variable 'kMaxAdvanceToWordBoundary' [-Wunused-const-variable]
static const int kMaxAdvanceToWordBoundary = 10;  // +/- this many bytes
                 ^
2 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/lang_script.cc -o libcld2/internal/lang_script.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/offsetmap.cc -o libcld2/internal/offsetmap.o
libcld2/internal/offsetmap.cc:84:36: warning: array subscript is of type 'char' [-Wchar-subscripts]
    fprintf(fout, "%c%02d ", "&=+-"[OpPart(diffs_[i])], LenPart(diffs_[i]));
                                   ^~~~~~~~~~~~~~~~~~
libcld2/internal/offsetmap.cc:210:38: warning: array subscript is of type 'char' [-Wchar-subscripts]
    fprintf(stderr, "%c%02d ", "&=+-"[OpPart(diffs_[i])], LenPart(diffs_[i]));
                                     ^~~~~~~~~~~~~~~~~~
libcld2/internal/offsetmap.cc:404:8: warning: variable 'retval' set but not used [-Wunused-but-set-variable]
  bool retval = true;
       ^
3 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/scoreonescriptspan.cc -o libcld2/internal/scoreonescriptspan.o
libcld2/internal/scoreonescriptspan.cc:307:7: warning: variable 'cs_bytes_sum' set but not used [-Wunused-but-set-variable]
  int cs_bytes_sum = 0;
      ^
1 warning generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/tote.cc -o libcld2/internal/tote.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/utf8statetable.cc -o libcld2/internal/utf8statetable.o
libcld2/internal/utf8statetable.cc:905:7: warning: variable 'src_lll' set but not used [-Wunused-but-set-variable]
  int src_lll = srclimit - src;
      ^
libcld2/internal/utf8statetable.cc:906:7: warning: variable 'dst_lll' set but not used [-Wunused-but-set-variable]
  int dst_lll = dstlimit - dst;
      ^
2 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/cld_generated_cjk_uni_prop_80.cc -o libcld2/internal/cld_generated_cjk_uni_prop_80.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/cld2_generated_cjk_compatible.cc -o libcld2/internal/cld2_generated_cjk_compatible.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/cld_generated_cjk_delta_bi_4.cc -o libcld2/internal/cld_generated_cjk_delta_bi_4.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/generated_distinct_bi_0.cc -o libcld2/internal/generated_distinct_bi_0.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/cld2_generated_quadchrome_2.cc -o libcld2/internal/cld2_generated_quadchrome_2.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/cld2_generated_deltaoctachrome.cc -o libcld2/internal/cld2_generated_deltaoctachrome.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/cld2_generated_distinctoctachrome.cc -o libcld2/internal/cld2_generated_distinctoctachrome.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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 libcld2/internal/cld_generated_score_quad_octa_2.cc -o libcld2/internal/cld_generated_score_quad_octa_2.o
ar rcs libcld2/libstatcld2.a libcld2/internal/cldutil.o libcld2/internal/cldutil_shared.o libcld2/internal/compact_lang_det.o libcld2/internal/compact_lang_det_hint_code.o libcld2/internal/compact_lang_det_impl.o libcld2/internal/debug.o libcld2/internal/fixunicodevalue.o libcld2/internal/generated_entities.o libcld2/internal/generated_language.o libcld2/internal/generated_ulscript.o libcld2/internal/getonescriptspan.o libcld2/internal/lang_script.o libcld2/internal/offsetmap.o libcld2/internal/scoreonescriptspan.o libcld2/internal/tote.o libcld2/internal/utf8statetable.o libcld2/internal/cld_generated_cjk_uni_prop_80.o libcld2/internal/cld2_generated_cjk_compatible.o libcld2/internal/cld_generated_cjk_delta_bi_4.o libcld2/internal/generated_distinct_bi_0.o libcld2/internal/cld2_generated_quadchrome_2.o libcld2/internal/cld2_generated_deltaoctachrome.o libcld2/internal/cld2_generated_distinctoctachrome.o libcld2/internal/cld_generated_score_quad_octa_2.o
clang++ -arch arm64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o cld2.so RcppExports.o wrapper.o -Llibcld2 -lstatcld2 -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Volumes/Builds/packages/big-sur-arm64/results/4.3/cld2.Rcheck/00LOCK-cld2/00new/cld2/libs
** generating debug symbols (dSYM)
** R
** 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
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (cld2)