* installing to library ‘/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages’
* installing *source* package ‘cld2’ ...
** package ‘cld2’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++-14 (Debian 14.2.0-6) 14.2.0’
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpqGDHkd/R.INSTALL1955cb48c97dba/cld2/src'
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
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c RcppExports.cpp -o RcppExports.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c wrapper.cpp -o wrapper.o
wrapper.cpp: In function ‘Rcpp::CharacterVector detect_language_cc(Rcpp::CharacterVector, bool, bool)’:
wrapper.cpp:12:23: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘R_xlen_t’ {aka ‘long int’} [-Wsign-compare]
   12 |   for(size_t i = 0; i < input.length(); i++){
      |                     ~~^~~~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/cldutil.cc -o libcld2/internal/cldutil.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/cldutil_shared.cc -o libcld2/internal/cldutil_shared.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/compact_lang_det.cc -o libcld2/internal/compact_lang_det.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/compact_lang_det_hint_code.cc -o libcld2/internal/compact_lang_det_hint_code.o
libcld2/internal/compact_lang_det_hint_code.cc: In function ‘std::string CLD2::TrimCLDLangTagsHint(const std::string&)’:
libcld2/internal/compact_lang_det_hint_code.cc:1060:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const std::__cxx11::basic_string<char>::size_type’ {aka ‘const long unsigned int’} [-Wsign-compare]
 1060 |     if (comma == string::npos) {comma = langtags.size();} // fake trailing comma
      |         ~~~~~~^~~~~~~~~~~~~~~
libcld2/internal/compact_lang_det_hint_code.cc: In function ‘void CLD2::SetCLDLangTagsHint(const std::string&, CLDLangPriors*)’:
libcld2/internal/compact_lang_det_hint_code.cc:1403:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const std::__cxx11::basic_string<char>::size_type’ {aka ‘const long unsigned int’} [-Wsign-compare]
 1403 |     if (comma == string::npos) {comma = langtags.size();} // fake trailing comma
      |         ~~~~~~^~~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/compact_lang_det_impl.cc -o libcld2/internal/compact_lang_det_impl.o
libcld2/internal/compact_lang_det_impl.cc: In function ‘void CLD2::CalcSummaryLang(DocTote*, int, const int*, const Language*, const int*, Language*, bool*, bool, bool, int)’:
libcld2/internal/compact_lang_det_impl.cc:1455:7: warning: unused variable ‘plang_second’ [-Wunused-variable]
 1455 |   int plang_second = PerScriptNumber(ULScript_Latin, language3[active_slot[1]]);
      |       ^~~~~~~~~~~~
libcld2/internal/compact_lang_det_impl.cc: In function ‘CLD2::Language CLD2::DetectLanguageSummaryV2(const char*, int, bool, const CLDHints*, bool, int, Language, Language*, int*, double*, ResultChunkVector*, int*, bool*)’:
libcld2/internal/compact_lang_det_impl.cc:1849:14: warning: unused variable ‘ulscript’ [-Wunused-variable]
 1849 |     ULScript ulscript = scriptspan.ulscript;
      |              ^~~~~~~~
libcld2/internal/compact_lang_det_impl.cc:1788:7: warning: unused variable ‘next_other_tote’ [-Wunused-variable]
 1788 |   int next_other_tote = 2;
      |       ^~~~~~~~~~~~~~~
libcld2/internal/compact_lang_det_impl.cc:1789:7: warning: unused variable ‘tote_num’ [-Wunused-variable]
 1789 |   int tote_num = 0;
      |       ^~~~~~~~
libcld2/internal/compact_lang_det_impl.cc:1793:8: warning: unused variable ‘tote_seen’ [-Wunused-variable]
 1793 |   bool tote_seen[4] = {false, false, false, false};
      |        ^~~~~~~~~
libcld2/internal/compact_lang_det_impl.cc:1794:7: warning: unused variable ‘tote_grams’ [-Wunused-variable]
 1794 |   int tote_grams[4] = {0, 0, 0, 0};     // Number in partial chunk
      |       ^~~~~~~~~~
libcld2/internal/compact_lang_det_impl.cc:1795:12: warning: unused variable ‘tote_script’ [-Wunused-variable]
 1795 |   ULScript tote_script[4] =
      |            ^~~~~~~~~~~
libcld2/internal/compact_lang_det_impl.cc:1814:7: warning: unused variable ‘advance_by’ [-Wunused-variable]
 1814 |   int advance_by = 2;                   // Advance 2 bytes
      |       ^~~~~~~~~~
libcld2/internal/compact_lang_det_impl.cc:1815:7: warning: unused variable ‘advance_limit’ [-Wunused-variable]
 1815 |   int advance_limit = textlimit >> 3;   // For first 1/8 of max document
      |       ^~~~~~~~~~~~~
libcld2/internal/compact_lang_det_impl.cc:1817:7: warning: variable ‘initial_word_span’ set but not used [-Wunused-but-set-variable]
 1817 |   int initial_word_span = kDefaultWordSpan;
      |       ^~~~~~~~~~~~~~~~~
libcld2/internal/compact_lang_det_impl.cc:1828:7: warning: unused variable ‘chunksizeunis’ [-Wunused-variable]
 1828 |   int chunksizeunis = (chunksizequads * 5) >> 1;
      |       ^~~~~~~~~~~~~
libcld2/internal/compact_lang_det_impl.cc:1832:7: warning: unused variable ‘spantooshortlimit’ [-Wunused-variable]
 1832 |   int spantooshortlimit = kShortSpanThresh;
      |       ^~~~~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/debug.cc -o libcld2/internal/debug.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/fixunicodevalue.cc -o libcld2/internal/fixunicodevalue.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/generated_entities.cc -o libcld2/internal/generated_entities.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/generated_language.cc -o libcld2/internal/generated_language.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/generated_ulscript.cc -o libcld2/internal/generated_ulscript.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/getonescriptspan.cc -o libcld2/internal/getonescriptspan.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/lang_script.cc -o libcld2/internal/lang_script.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/offsetmap.cc -o libcld2/internal/offsetmap.o
libcld2/internal/offsetmap.cc: In member function ‘void CLD2::OffsetMap::Printmap(const char*)’:
libcld2/internal/offsetmap.cc:84:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
   84 |     fprintf(fout, "%c%02d ", "&=+-"[OpPart(diffs_[i])], LenPart(diffs_[i]));
      |                                     ~~~~~~^~~~~~~~~~~
libcld2/internal/offsetmap.cc: In member function ‘void CLD2::OffsetMap::DumpString()’:
libcld2/internal/offsetmap.cc:210:45: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  210 |     fprintf(stderr, "%c%02d ", "&=+-"[OpPart(diffs_[i])], LenPart(diffs_[i]));
      |                                       ~~~~~~^~~~~~~~~~~
libcld2/internal/offsetmap.cc: In member function ‘bool CLD2::OffsetMap::MoveLeft()’:
libcld2/internal/offsetmap.cc:404:8: warning: variable ‘retval’ set but not used [-Wunused-but-set-variable]
  404 |   bool retval = true;
      |        ^~~~~~
libcld2/internal/offsetmap.cc: In static member function ‘static bool CLD2::OffsetMap::CopyInserts(CLD2::OffsetMap*, CLD2::OffsetMap*)’:
libcld2/internal/offsetmap.cc:484:40: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  484 |   while (ok && (source->next_diff_sub_ != source->diffs_.size())) {
      |                 ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
libcld2/internal/offsetmap.cc: In static member function ‘static bool CLD2::OffsetMap::CopyDeletes(CLD2::OffsetMap*, CLD2::OffsetMap*)’:
libcld2/internal/offsetmap.cc:498:40: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  498 |   while (ok && (source->next_diff_sub_ != source->diffs_.size())) {
      |                 ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/scoreonescriptspan.cc -o libcld2/internal/scoreonescriptspan.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/tote.cc -o libcld2/internal/tote.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/utf8statetable.cc -o libcld2/internal/utf8statetable.o
libcld2/internal/utf8statetable.cc: In function ‘int CLD2::UTF8GenericReplaceInternalTwoByte(const UTF8ReplaceObj_2*, const StringPiece&, StringPiece&, bool, int*, int*, int*, OffsetMap*)’:
libcld2/internal/utf8statetable.cc:905:7: warning: variable ‘src_lll’ set but not used [-Wunused-but-set-variable]
  905 |   int src_lll = srclimit - src;
      |       ^~~~~~~
libcld2/internal/utf8statetable.cc:906:7: warning: variable ‘dst_lll’ set but not used [-Wunused-but-set-variable]
  906 |   int dst_lll = dstlimit - dst;
      |       ^~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/cld_generated_cjk_uni_prop_80.cc -o libcld2/internal/cld_generated_cjk_uni_prop_80.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/cld2_generated_cjk_compatible.cc -o libcld2/internal/cld2_generated_cjk_compatible.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/cld_generated_cjk_delta_bi_4.cc -o libcld2/internal/cld_generated_cjk_delta_bi_4.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/generated_distinct_bi_0.cc -o libcld2/internal/generated_distinct_bi_0.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/cld2_generated_quadchrome_2.cc -o libcld2/internal/cld2_generated_quadchrome_2.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/cld2_generated_deltaoctachrome.cc -o libcld2/internal/cld2_generated_deltaoctachrome.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c libcld2/internal/cld2_generated_distinctoctachrome.cc -o libcld2/internal/cld2_generated_distinctoctachrome.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-release-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -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
g++-14 -std=gnu++17 -shared -L/home/hornik/tmp/R.check/r-release-gcc/Work/build/lib -Wl,-O1 -o cld2.so RcppExports.o wrapper.o -Llibcld2 -lstatcld2 -L/home/hornik/tmp/R.check/r-release-gcc/Work/build/lib -lR
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpqGDHkd/R.INSTALL1955cb48c97dba/cld2/src'
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpqGDHkd/R.INSTALL1955cb48c97dba/cld2/src'
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpqGDHkd/R.INSTALL1955cb48c97dba/cld2/src'
installing to /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/00LOCK-cld2/00new/cld2/libs
** 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)