* installing *source* package ‘nametagger’ ... ** this is package ‘nametagger’ version ‘0.1.5’ ** package ‘nametagger’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.6.3.2)’ using SDK: ‘MacOSX26.2.sdk’ clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/bilou/bilou_probabilities.cpp -o nametag/src/bilou/bilou_probabilities.o In file included from nametag/src/bilou/bilou_probabilities.cpp:10: In file included from nametag/src/bilou/bilou_probabilities.h:14: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/bilou/ner_sentence.cpp -o nametag/src/bilou/ner_sentence.o In file included from nametag/src/bilou/ner_sentence.cpp:12: In file included from nametag/src/bilou/ner_sentence.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/classifier/network_classifier.cpp -o nametag/src/classifier/network_classifier.o In file included from nametag/src/classifier/network_classifier.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/classifier/network_classifier.cpp:16: In file included from nametag/src/classifier/network_classifier.h:15: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/classifier/network_classifier.cpp:16: In file included from nametag/src/classifier/network_classifier.h:16: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ nametag/src/classifier/network_classifier.cpp:79:50: warning: implicit conversion loses floating-point precision: 'double' to 'result_type' (aka 'float') [-Wimplicit-float-conversion] 79 | uniform_real_distribution uniform(-0.1, 0.1); | ~~~~~~~ ^~~ nametag/src/classifier/network_classifier.cpp:79:44: warning: implicit conversion loses floating-point precision: 'double' to 'result_type' (aka 'float') [-Wimplicit-float-conversion] 79 | uniform_real_distribution uniform(-0.1, 0.1); | ~~~~~~~ ^~~~ nametag/src/classifier/network_classifier.cpp:130:39: warning: implicit conversion turns floating-point number into integer: 'const double' to 'bool' [-Wfloat-conversion] 130 | double learning_rate = parameters.final_learning_rate && parameters.iterations > 1 ? | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ~~ nametag/src/classifier/network_classifier.cpp:238:80: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'value_type' (aka 'float') [-Wimplicit-float-conversion] 238 | weights[feature][i] += learning_rate * output_error[indices[feature][i]] - weights[feature][i] * gaussian_sigma; | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/classifier/network_classifier.cpp:253:86: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'value_type' (aka 'float') [-Wimplicit-float-conversion] 253 | hidden_weights[1][h][i] += learning_rate * hidden_layer[h] * output_error[i] - hidden_weights[1][h][i] * gaussian_sigma; | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/classifier/network_classifier.cpp:258:74: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'value_type' (aka 'float') [-Wimplicit-float-conversion] 258 | hidden_weights[0][feature][i] += learning_rate * hidden_error[i] - hidden_weights[0][feature][i] * gaussian_sigma; | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/classifier/network_classifier.cpp:59:60: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 59 | memcpy((unsigned char*) row.data(), data.next(row.size()), row.size() * sizeof(T)); | ~~~~ ~~~~^~~~~~ nametag/src/classifier/network_classifier.cpp:29:5: note: in instantiation of function template specialization 'ufal::nametag::network_classifier::load_matrix' requested here 29 | load_matrix(data, indices); | ^ nametag/src/classifier/network_classifier.cpp:59:60: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 59 | memcpy((unsigned char*) row.data(), data.next(row.size()), row.size() * sizeof(T)); | ~~~~ ~~~~^~~~~~ nametag/src/classifier/network_classifier.cpp:31:5: note: in instantiation of function template specialization 'ufal::nametag::network_classifier::load_matrix' requested here 31 | load_matrix(data, weights); | ^ 13 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/classifier/network_classifier_encoder.cpp -o nametag/src/classifier/network_classifier_encoder.o In file included from nametag/src/classifier/network_classifier_encoder.cpp:10: In file included from nametag/src/classifier/network_classifier.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/classifier/network_classifier_encoder.cpp:10: In file included from nametag/src/classifier/network_classifier.h:15: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/classifier/network_classifier_encoder.cpp:10: In file included from nametag/src/classifier/network_classifier.h:16: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ nametag/src/classifier/network_classifier_encoder.cpp:25:27: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 25 | enc.add_2B(hidden_layer.size()); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~ nametag/src/classifier/network_classifier_encoder.cpp:32:27: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 32 | enc.add_2B(output_layer.size()); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~ nametag/src/classifier/network_classifier_encoder.cpp:39:16: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 39 | enc.add_4B(m.size()); | ~~~~~~ ~~^~~~~~ nametag/src/classifier/network_classifier_encoder.cpp:20:3: note: in instantiation of function template specialization 'ufal::nametag::network_classifier::save_matrix' requested here 20 | save_matrix(enc, indices); | ^ nametag/src/classifier/network_classifier_encoder.cpp:41:20: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 41 | enc.add_2B(row.size()); | ~~~~~~ ~~~~^~~~~~ nametag/src/classifier/network_classifier_encoder.cpp:39:16: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 39 | enc.add_4B(m.size()); | ~~~~~~ ~~^~~~~~ nametag/src/classifier/network_classifier_encoder.cpp:22:3: note: in instantiation of function template specialization 'ufal::nametag::network_classifier::save_matrix' requested here 22 | save_matrix(enc, weights); | ^ nametag/src/classifier/network_classifier_encoder.cpp:41:20: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 41 | enc.add_2B(row.size()); | ~~~~~~ ~~~~^~~~~~ 11 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/features/feature_processor.cpp -o nametag/src/features/feature_processor.o In file included from nametag/src/features/feature_processor.cpp:12: In file included from nametag/src/features/feature_processor.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/features/feature_processor.cpp:12: In file included from nametag/src/features/feature_processor.h:17: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/features/feature_processor.cpp:12: In file included from nametag/src/features/feature_processor.h:18: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ nametag/src/features/feature_processor.cpp:48:18: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 48 | enc.add_4B(map.bucket_count()); | ~~~~~~ ~~~~^~~~~~~~~~~~~~ nametag/src/features/feature_processor.cpp:49:18: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 49 | enc.add_4B(map.size()); | ~~~~~~ ~~~~^~~~~~ 7 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/features/feature_processor_instances.cpp -o nametag/src/features/feature_processor_instances.o In file included from nametag/src/features/feature_processor_instances.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/features/feature_processor_instances.cpp:15: In file included from nametag/src/features/feature_processor.h:17: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/features/feature_processor_instances.cpp:15: In file included from nametag/src/features/feature_processor.h:18: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/features/feature_processor_instances.cpp:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ nametag/src/features/feature_processor_instances.cpp:87:32: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 87 | unsigned id = clusters.size(); | ~~ ~~~~~~~~~^~~~~~ nametag/src/features/feature_processor_instances.cpp:115:25: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 115 | enc.add_4B(clusters.size()); | ~~~~~~ ~~~~~~~~~^~~~~~ nametag/src/features/feature_processor_instances.cpp:117:26: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 117 | enc.add_4B(cluster.size()); | ~~~~~~ ~~~~~~~~^~~~~~ nametag/src/features/feature_processor_instances.cpp:285:55: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 285 | if (tokens.size() > longest) longest = tokens.size(); | ~ ~~~~~~~^~~~~~ nametag/src/features/feature_processor_instances.cpp:322:32: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 322 | enc.add_4B(gazetteers_info.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ nametag/src/features/feature_processor_instances.cpp:325:37: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 325 | enc.add_1B(gazetteer.features.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/features/feature_processor_instances.cpp:443:32: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 443 | enc.add_4B(gazetteer_metas.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ nametag/src/features/feature_processor_instances.cpp:451:34: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 451 | enc.add_4B(gazetteer_lists.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ nametag/src/features/feature_processor_instances.cpp:453:46: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 453 | enc.add_4B(gazetteer_list.gazetteers.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/features/feature_processor_instances.cpp:464:28: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 464 | enc.add_4B(entity_list.size()); | ~~~~~~ ~~~~~~~~~~~~^~~~~~ nametag/src/features/feature_processor_instances.cpp:542:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 542 | entity_until = i + entities[e].length; | ~ ~~^~~~~~~~~~~~~~~~~~~~ nametag/src/features/feature_processor_instances.cpp:548:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 548 | unsigned free_until = e < entities.size() ? entities[e].start : sentence.size; | ~~~~~~~~~~ ~~~~~~~~~~~~^~~~~ nametag/src/features/feature_processor_instances.cpp:681:49: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 681 | unsigned new_node = gazetteers_trie.size(); | ~~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ 26 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/features/feature_templates.cpp -o nametag/src/features/feature_templates.o In file included from nametag/src/features/feature_templates.cpp:10: In file included from nametag/src/features/feature_templates.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/features/feature_templates.cpp:10: In file included from nametag/src/features/feature_templates.h:13: In file included from nametag/src/features/feature_processor.h:17: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/features/feature_templates.cpp:10: In file included from nametag/src/features/feature_templates.h:13: In file included from nametag/src/features/feature_processor.h:18: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ 5 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/features/feature_templates_encoder.cpp -o nametag/src/features/feature_templates_encoder.o In file included from nametag/src/features/feature_templates_encoder.cpp:10: In file included from nametag/src/features/feature_templates.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/features/feature_templates_encoder.cpp:10: In file included from nametag/src/features/feature_templates.h:13: In file included from nametag/src/features/feature_processor.h:17: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/features/feature_templates_encoder.cpp:10: In file included from nametag/src/features/feature_templates.h:13: In file included from nametag/src/features/feature_processor.h:18: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ nametag/src/features/feature_templates_encoder.cpp:59:25: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 59 | enc.add_4B(processors.size()); | ~~~~~~ ~~~~~~~~~~~^~~~~~ 6 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/derivator/derivation_formatter.cpp -o nametag/src/morphodita/derivator/derivation_formatter.o In file included from nametag/src/morphodita/derivator/derivation_formatter.cpp:10: In file included from nametag/src/morphodita/derivator/derivation_formatter.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/derivator/derivator_dictionary.cpp -o nametag/src/morphodita/derivator/derivator_dictionary.o In file included from nametag/src/morphodita/derivator/derivator_dictionary.cpp:10: In file included from nametag/src/morphodita/derivator/derivator_dictionary.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/derivator/derivator_dictionary.cpp:10: In file included from nametag/src/morphodita/derivator/derivator_dictionary.h:15: In file included from ./nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/derivator/derivator_dictionary.cpp:10: In file included from nametag/src/morphodita/derivator/derivator_dictionary.h:15: In file included from ./nametag/src/morphodita/morpho/persistent_unordered_map.h:19: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/derivator/derivator_dictionary.cpp:10: In file included from nametag/src/morphodita/derivator/derivator_dictionary.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/derivator/derivator_dictionary.cpp:10: In file included from nametag/src/morphodita/derivator/derivator_dictionary.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/derivator/derivator_dictionary.cpp:10: In file included from nametag/src/morphodita/derivator/derivator_dictionary.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:39: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_map:601: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:19: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/derivator/derivator_dictionary.cpp:10: In file included from nametag/src/morphodita/derivator/derivator_dictionary.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:22:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 22 | auto lemma_data = derinet.at(lemma.str, lemma.len, [](pointer_decoder& data) { | ~~ ~~~~~~^~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:45:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 45 | auto lemma_data = derinet.at(lemma.str, lemma.len, [](pointer_decoder& data) { | ~~ ~~~~~~^~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:86:32: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 86 | lemma.push_back(data.next_1B()); | ~~~~~~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:88:48: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 88 | unsigned char lemma_comment_len = data.next_1B(); | ~~~~~~~~~~~~~~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:119:53: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned short' [-Wimplicit-int-conversion] 119 | unaligned_store_inc(lemma_data, children); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:113:43: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 113 | derinet.add(lemma.data(), lemma.size(), 1 + lemma_comment_len + 4 + 2 + 4 * children); | ~~~ ~~~~~~^~~~~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:115:72: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 115 | unsigned char* lemma_data = derinet.fill(lemma.data(), lemma.size(), 1 + lemma_comment_len + 4 + 2 + 4 * children); | ~~~~ ~~~~~~^~~~~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:122:60: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 122 | auto lemma_data = derinet.at(lemma.data(), lemma.size(), [](pointer_decoder& data) { | ~~ ~~~~~~^~~~~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:127:63: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 127 | auto parent_data = derinet.at(parent.data(), parent.size(), [](pointer_decoder& data) { | ~~ ~~~~~~~^~~~~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:134:64: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 134 | unsigned parent_offset = parent_data - parent.size() - derinet.data_start(parent.size()); | ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:134:92: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 134 | unsigned parent_offset = parent_data - parent.size() - derinet.data_start(parent.size()); | ~~~~~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:136:98: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 136 | unaligned_store((void *)(lemma_data + 1 + *lemma_data), (parent_offset << 8) | parent.size()); | ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:138:61: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 138 | unsigned lemma_offset = lemma_data - lemma.size() - derinet.data_start(lemma.size()); | ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:138:88: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 138 | unsigned lemma_offset = lemma_data - lemma.size() - derinet.data_start(lemma.size()); | ~~~~~~~~~~ ~~~~~~^~~~~~ nametag/src/morphodita/derivator/derivator_dictionary.cpp:143:81: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 143 | unaligned_store(children + child_index, (lemma_offset << 8) | lemma.size()); | ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 21 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/derivator/derivator_dictionary.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/derivator/derivator_dictionary_encoder.cpp -o nametag/src/morphodita/derivator/derivator_dictionary_encoder.o In file included from nametag/src/morphodita/derivator/derivator_dictionary_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/derivator/derivator_dictionary_encoder.cpp:19: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ nametag/src/morphodita/derivator/derivator_dictionary_encoder.cpp:204:23: warning: implicit conversion loses integer precision: 'int_type' (aka 'int') to 'char_type' (aka 'char') [-Wimplicit-int-conversion] 204 | os.put(dictionary.get()); | ~~~ ~~~~~~~~~~~^~~~~ nametag/src/morphodita/derivator/derivator_dictionary_encoder.cpp:150:22: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 150 | enc.add_1B(lengths.size()); | ~~~~~~ ~~~~~~~~^~~~~~ nametag/src/morphodita/derivator/derivator_dictionary_encoder.cpp:154:22: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 154 | enc.add_4B(derinet.size()); | ~~~~~~ ~~~~~~~~^~~~~~ nametag/src/morphodita/derivator/derivator_dictionary_encoder.cpp:159:28: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 159 | enc.add_1B(prev.size() - cpl); | ~~~~~~ ~~~~~~~~~~~~^~~~~ nametag/src/morphodita/derivator/derivator_dictionary_encoder.cpp:160:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 160 | enc.add_1B(lemma.first.size() - cpl); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~ nametag/src/morphodita/derivator/derivator_dictionary_encoder.cpp:163:37: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 163 | enc.add_1B(lemma.second.comment.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/derivator/derivator_dictionary_encoder.cpp:186:108: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 186 | if (best_lemma_from + best_len < lemma.first.size()) enc.add_1B(lemma.first.size() - best_lemma_from - best_len); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ nametag/src/morphodita/derivator/derivator_dictionary_encoder.cpp:192:66: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 192 | enc.add_1B(lemma.second.parent.size() - best_parent_from - best_len); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ 12 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/czech_morpho.cpp -o nametag/src/morphodita/morpho/czech_morpho.o In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:15: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/czech_morpho.h:13: nametag/src/morphodita/morpho/czech_lemma_addinfo.h:41:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 41 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/czech_lemma_addinfo.h:55:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 55 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/czech_lemma_addinfo.h:92:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 92 | lemma_num = strtol(lemma_info + 1, (char**) &lemma_additional_info, 10); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/morpho/czech_lemma_addinfo.h:113:21: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 113 | return lemma_info - lemma.str; | ~~~~~~ ~~~~~~~~~~~^~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/czech_morpho.h:14: In file included from nametag/src/morphodita/morpho/morpho_dictionary.h:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/czech_morpho.h:14: In file included from nametag/src/morphodita/morpho/morpho_dictionary.h:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:19: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/algorithm:1854: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/for_each.h:16: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__ranges/movable_box.h:21: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1300: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator:715: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/common_iterator.h:32: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/variant:1634: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:97: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:94: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/czech_morpho.h:14: nametag/src/morphodita/morpho/morpho_dictionary.h:62:35: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 62 | lemma[lemma_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:63:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 63 | unsigned char lemma_info_len = data.next_1B(); | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:78:25: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 78 | *lemma_data++ = lemma_roots; | ~ ^~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:89:55: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 89 | for (int i = 0; i < to; i++) root[i] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:93:37: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 93 | root[root_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:94:30: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 94 | uint16_t clas = data.next_2B(); | ~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:104:51: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 104 | unaligned_store_inc(root_data, lemma_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:108:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 108 | unaligned_store_inc(lemma_data, root_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:176:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 176 | uint16_t root_class = root_data.next_2B(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:162:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 162 | for (int i = form.len; i >= 0 && suff_len < max_suffix_len; i--, suff_len++) { | ~ ~~~~~^~~ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/czech_morpho.h:15: nametag/src/morphodita/morpho/morpho_prefix_guesser.h:97:45: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 97 | unsigned lemmas_ori_size = lemmas.size(); | ~~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/czech_morpho.cpp:145:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 145 | return form.len; | ~~~~~~ ~~~~~^~~ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/czech_morpho.h:14: nametag/src/morphodita/morpho/morpho_dictionary.h:62:35: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 62 | lemma[lemma_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/czech_morpho.cpp:41:16: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary::load' requested here 41 | dictionary.load(data); | ^ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/czech_morpho.h:14: nametag/src/morphodita/morpho/morpho_dictionary.h:63:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 63 | unsigned char lemma_info_len = data.next_1B(); | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:78:25: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 78 | *lemma_data++ = lemma_roots; | ~ ^~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:89:55: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 89 | for (int i = 0; i < to; i++) root[i] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:93:37: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 93 | root[root_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:94:30: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 94 | uint16_t clas = data.next_2B(); | ~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:104:51: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 104 | unaligned_store_inc(root_data, lemma_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:108:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 108 | unaligned_store_inc(lemma_data, root_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:129:21: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 129 | tag[i] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:74:47: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 74 | lemma_offset = lemma_data - lemma_len - lemmas.data_start(lemma_len); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:100:55: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 100 | unsigned root_offset = root_data - root_len - roots.data_start(root_len); | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:176:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 176 | uint16_t root_class = root_data.next_2B(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:175:88: note: while substituting into a lambda expression here 175 | roots.iter(form.str, root_len, [&](const char* root, pointer_decoder& root_data) { | ^ nametag/src/morphodita/morpho/czech_morpho.cpp:73:16: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary::analyze' requested here 73 | dictionary.analyze(form, lemmas); | ^ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/czech_morpho.h:14: nametag/src/morphodita/morpho/morpho_dictionary.h:162:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 162 | for (int i = form.len; i >= 0 && suff_len < max_suffix_len; i--, suff_len++) { | ~ ~~~~~^~~ nametag/src/morphodita/morpho/czech_morpho.cpp:73:16: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary::analyze' requested here 73 | dictionary.analyze(form, lemmas); | ^ In file included from nametag/src/morphodita/morpho/czech_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/czech_morpho.h:15: nametag/src/morphodita/morpho/morpho_prefix_guesser.h:97:45: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 97 | unsigned lemmas_ori_size = lemmas.size(); | ~~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/czech_morpho.cpp:84:23: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_prefix_guesser>::analyze' requested here 84 | prefix_guesser->analyze(form_lc.empty() ? form : form_lc, lemmas); | ^ 44 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/morpho/czech_morpho.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/czech_morpho_encoder.cpp -o nametag/src/morphodita/morpho/czech_morpho_encoder.o In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:11: nametag/src/morphodita/morpho/czech_lemma_addinfo.h:41:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 41 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/czech_lemma_addinfo.h:55:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 55 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/czech_lemma_addinfo.h:92:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 92 | lemma_num = strtol(lemma_info + 1, (char**) &lemma_additional_info, 10); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/morpho/czech_lemma_addinfo.h:113:21: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 113 | return lemma_info - lemma.str; | ~~~~~~ ~~~~~~~~~~~^~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: In file included from nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:13: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: In file included from nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:13: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:19: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:39: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_map:601: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:19: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:86:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 86 | enc.add_4B(hash.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:89:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 89 | enc.add_4B(data.size()); | ~~~~~~ ~~~~~^~~~~~ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:13: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:179:34: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 179 | int common_prefix = prefix.size(); | ~~~~~~~~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:270:23: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 270 | enc.add_2B(suffix.size()); | ~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:223:30: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 223 | enc.add_1B(prev.length() - cpl); | ~~~~~~ ~~~~~~~~~~~~~~^~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:244:102: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 244 | if (best_prev_from + best_len < prev_form.size()) enc.add_1B(prev_form.size() - best_prev_from - best_len); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:179:34: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 179 | int common_prefix = prefix.size(); | ~~~~~~~~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:136:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::load' requested here 136 | dict.load(is, max_suffix_len); | ^ nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:29:51: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 29 | morpho_dictionary_encoder::encode(in_dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:13: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:270:23: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 270 | enc.add_2B(suffix.size()); | ~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:139:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::encode' requested here 139 | dict.encode(enc); | ^ nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:29:51: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 29 | morpho_dictionary_encoder::encode(in_dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:13: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:218:21: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 218 | enc.add_4B(lemmas.size()); | ~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:223:30: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 223 | enc.add_1B(prev.length() - cpl); | ~~~~~~ ~~~~~~~~~~~~~~^~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 224 | enc.add_1B(lemma.lemma.size() - cpl); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:226:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 226 | enc.add_1B(lemma.addinfo.data.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:228:28: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 228 | enc.add_1B(lemma.forms.size()); | ~~~~~~ ~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:244:102: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 244 | if (best_prev_from + best_len < prev_form.size()) enc.add_1B(prev_form.size() - best_prev_from - best_len); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:250:60: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 250 | enc.add_1B(lemma_form.form.size() - best_form_from - best_len); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:262:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 262 | enc.add_2B(tags.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:264:20: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 264 | enc.add_1B(tag.size()); | ~~~~~~ ~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:92:26: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 92 | enc.add_1B(lengths.size()); | ~~~~~~ ~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:214:15: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::histogram::encode' requested here 214 | lemmas_hist.encode(enc); | ^ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:139:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::encode' requested here 139 | dict.encode(enc); | ^ nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:29:51: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 29 | morpho_dictionary_encoder::encode(in_dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:13: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:94:24: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 94 | enc.add_4B(set.size()); | ~~~~~~ ~~~~^~~~~~ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:34:36: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 34 | for (unsigned i = key.size() - 1; i; i--) | ~ ~~~~~~~~~~~^~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map>, (lambda at nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:54)>' requested here 269 | persistent_unordered_map(suffixes, 5, false, true, [](binary_encoder& enc, const map>& suffix) { | ^ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:139:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::encode' requested here 139 | dict.encode(enc); | ^ nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:29:51: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 29 | morpho_dictionary_encoder::encode(in_dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:54:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 54 | unsigned len = elem.first.size(); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:42:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::construct>, (lambda at nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:54)>' requested here 42 | construct(enlarged_map, load_factor, entry_encode); | ^ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map>, (lambda at nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:54)>' requested here 269 | persistent_unordered_map(suffixes, 5, false, true, [](binary_encoder& enc, const map>& suffix) { | ^ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:139:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::encode' requested here 139 | dict.encode(enc); | ^ nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:29:51: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 29 | morpho_dictionary_encoder::encode(in_dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/czech_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:57: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:71: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:54: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~~~^~~~~~ 35 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/morpho/czech_morpho_encoder.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/english_morpho.cpp -o nametag/src/morphodita/morpho/english_morpho.o In file included from nametag/src/morphodita/morpho/english_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/english_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:15: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/english_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/english_morpho.h:13: nametag/src/morphodita/morpho/english_lemma_addinfo.h:51:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 51 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/english_lemma_addinfo.h:56:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 56 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/english_lemma_addinfo.h:74:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 74 | return len; | ~~~~~~ ^~~ In file included from nametag/src/morphodita/morpho/english_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/english_morpho.h:14: In file included from nametag/src/morphodita/morpho/english_morpho_guesser.h:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/english_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/english_morpho.h:14: In file included from nametag/src/morphodita/morpho/english_morpho_guesser.h:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:19: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/morpho/english_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/english_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/english_morpho.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/algorithm:1854: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/for_each.h:16: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__ranges/movable_box.h:21: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1300: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator:715: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/common_iterator.h:32: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/variant:1634: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:97: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:94: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/english_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/morpho/english_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/english_morpho.h:15: nametag/src/morphodita/morpho/morpho_dictionary.h:62:35: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 62 | lemma[lemma_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:63:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 63 | unsigned char lemma_info_len = data.next_1B(); | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:78:25: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 78 | *lemma_data++ = lemma_roots; | ~ ^~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:89:55: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 89 | for (int i = 0; i < to; i++) root[i] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:93:37: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 93 | root[root_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:94:30: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 94 | uint16_t clas = data.next_2B(); | ~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:104:51: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 104 | unaligned_store_inc(root_data, lemma_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:108:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 108 | unaligned_store_inc(lemma_data, root_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:176:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 176 | uint16_t root_class = root_data.next_2B(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:162:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 162 | for (int i = form.len; i >= 0 && suff_len < max_suffix_len; i--, suff_len++) { | ~ ~~~~~^~~ nametag/src/morphodita/morpho/english_morpho.cpp:91:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 91 | return form.len; | ~~~~~~ ~~~~~^~~ In file included from nametag/src/morphodita/morpho/english_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/english_morpho.h:15: nametag/src/morphodita/morpho/morpho_dictionary.h:62:35: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 62 | lemma[lemma_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/english_morpho.cpp:30:16: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary::load' requested here 30 | dictionary.load(data); | ^ In file included from nametag/src/morphodita/morpho/english_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/english_morpho.h:15: nametag/src/morphodita/morpho/morpho_dictionary.h:63:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 63 | unsigned char lemma_info_len = data.next_1B(); | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:78:25: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 78 | *lemma_data++ = lemma_roots; | ~ ^~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:89:55: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 89 | for (int i = 0; i < to; i++) root[i] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:93:37: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 93 | root[root_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:94:30: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 94 | uint16_t clas = data.next_2B(); | ~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:104:51: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 104 | unaligned_store_inc(root_data, lemma_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:108:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 108 | unaligned_store_inc(lemma_data, root_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:129:21: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 129 | tag[i] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:74:47: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 74 | lemma_offset = lemma_data - lemma_len - lemmas.data_start(lemma_len); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:100:55: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 100 | unsigned root_offset = root_data - root_len - roots.data_start(root_len); | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:176:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 176 | uint16_t root_class = root_data.next_2B(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:175:88: note: while substituting into a lambda expression here 175 | roots.iter(form.str, root_len, [&](const char* root, pointer_decoder& root_data) { | ^ nametag/src/morphodita/morpho/english_morpho.cpp:49:16: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary::analyze' requested here 49 | dictionary.analyze(form, lemmas); | ^ In file included from nametag/src/morphodita/morpho/english_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/english_morpho.h:15: nametag/src/morphodita/morpho/morpho_dictionary.h:162:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 162 | for (int i = form.len; i >= 0 && suff_len < max_suffix_len; i--, suff_len++) { | ~ ~~~~~^~~ nametag/src/morphodita/morpho/english_morpho.cpp:49:16: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary::analyze' requested here 49 | dictionary.analyze(form, lemmas); | ^ 41 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/morpho/english_morpho.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/english_morpho_encoder.cpp -o nametag/src/morphodita/morpho/english_morpho_encoder.o In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:11: nametag/src/morphodita/morpho/english_lemma_addinfo.h:51:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 51 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/english_lemma_addinfo.h:56:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 56 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/english_lemma_addinfo.h:74:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 74 | return len; | ~~~~~~ ^~~ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.h:13: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:14: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: In file included from nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:13: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:39: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_map:601: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:19: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:14: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:86:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 86 | enc.add_4B(hash.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:89:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 89 | enc.add_4B(data.size()); | ~~~~~~ ~~~~~^~~~~~ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:14: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:179:34: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 179 | int common_prefix = prefix.size(); | ~~~~~~~~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:270:23: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 270 | enc.add_2B(suffix.size()); | ~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:223:30: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 223 | enc.add_1B(prev.length() - cpl); | ~~~~~~ ~~~~~~~~~~~~~~^~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:244:102: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 244 | if (best_prev_from + best_len < prev_form.size()) enc.add_1B(prev_form.size() - best_prev_from - best_len); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:179:34: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 179 | int common_prefix = prefix.size(); | ~~~~~~~~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:136:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::load' requested here 136 | dict.load(is, max_suffix_len); | ^ nametag/src/morphodita/morpho/english_morpho_encoder.cpp:26:53: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 26 | morpho_dictionary_encoder::encode(dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:14: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:270:23: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 270 | enc.add_2B(suffix.size()); | ~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:139:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::encode' requested here 139 | dict.encode(enc); | ^ nametag/src/morphodita/morpho/english_morpho_encoder.cpp:26:53: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 26 | morpho_dictionary_encoder::encode(dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:14: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:218:21: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 218 | enc.add_4B(lemmas.size()); | ~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:223:30: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 223 | enc.add_1B(prev.length() - cpl); | ~~~~~~ ~~~~~~~~~~~~~~^~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 224 | enc.add_1B(lemma.lemma.size() - cpl); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:226:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 226 | enc.add_1B(lemma.addinfo.data.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:228:28: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 228 | enc.add_1B(lemma.forms.size()); | ~~~~~~ ~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:244:102: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 244 | if (best_prev_from + best_len < prev_form.size()) enc.add_1B(prev_form.size() - best_prev_from - best_len); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:250:60: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 250 | enc.add_1B(lemma_form.form.size() - best_form_from - best_len); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:262:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 262 | enc.add_2B(tags.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:264:20: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 264 | enc.add_1B(tag.size()); | ~~~~~~ ~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:92:26: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 92 | enc.add_1B(lengths.size()); | ~~~~~~ ~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:214:15: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::histogram::encode' requested here 214 | lemmas_hist.encode(enc); | ^ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:139:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::encode' requested here 139 | dict.encode(enc); | ^ nametag/src/morphodita/morpho/english_morpho_encoder.cpp:26:53: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 26 | morpho_dictionary_encoder::encode(dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:14: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:94:24: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 94 | enc.add_4B(set.size()); | ~~~~~~ ~~~~^~~~~~ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:14: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:34:36: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 34 | for (unsigned i = key.size() - 1; i; i--) | ~ ~~~~~~~~~~~^~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map>, (lambda at nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:54)>' requested here 269 | persistent_unordered_map(suffixes, 5, false, true, [](binary_encoder& enc, const map>& suffix) { | ^ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:139:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::encode' requested here 139 | dict.encode(enc); | ^ nametag/src/morphodita/morpho/english_morpho_encoder.cpp:26:53: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 26 | morpho_dictionary_encoder::encode(dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:14: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:54:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 54 | unsigned len = elem.first.size(); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:42:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::construct>, (lambda at nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:54)>' requested here 42 | construct(enlarged_map, load_factor, entry_encode); | ^ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map>, (lambda at nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:54)>' requested here 269 | persistent_unordered_map(suffixes, 5, false, true, [](binary_encoder& enc, const map>& suffix) { | ^ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:139:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::encode' requested here 139 | dict.encode(enc); | ^ nametag/src/morphodita/morpho/english_morpho_encoder.cpp:26:53: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 26 | morpho_dictionary_encoder::encode(dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/english_morpho_encoder.cpp:14: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:57: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:71: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:54: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~~~^~~~~~ 34 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/morpho/english_morpho_encoder.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/english_morpho_guesser.cpp -o nametag/src/morphodita/morpho/english_morpho_guesser.o In file included from nametag/src/morphodita/morpho/english_morpho_guesser.cpp:20: In file included from nametag/src/morphodita/morpho/english_morpho_guesser.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/english_morpho_guesser.cpp:20: In file included from nametag/src/morphodita/morpho/english_morpho_guesser.h:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/english_morpho_guesser.cpp:20: In file included from nametag/src/morphodita/morpho/english_morpho_guesser.h:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:19: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/morpho/english_morpho_guesser.cpp:20: In file included from nametag/src/morphodita/morpho/english_morpho_guesser.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/english_morpho_guesser.cpp:20: In file included from nametag/src/morphodita/morpho/english_morpho_guesser.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/english_morpho_guesser.cpp:20: In file included from nametag/src/morphodita/morpho/english_morpho_guesser.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:39: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_map:601: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:19: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/english_morpho_guesser.cpp:20: In file included from nametag/src/morphodita/morpho/english_morpho_guesser.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ nametag/src/morphodita/morpho/english_morpho_guesser.cpp:170:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 170 | auto* exception = exceptions.at(form_lc.str, form_lc.len, [](pointer_decoder& data){ | ~~ ~~~~~~~~^~~ 7 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/morpho/english_morpho_guesser.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp -o nametag/src/morphodita/morpho/english_morpho_guesser_encoder.o In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:14: In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:14: In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.h:13: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:15: In file included from nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:13: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/map:2202: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/map:2202: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/map:590: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:19: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/map:2202: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:15: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:86:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 86 | enc.add_4B(hash.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:89:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 89 | enc.add_4B(data.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:74:23: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 74 | enc.add_1B(lemmas.size()); | ~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:76:30: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 76 | enc.add_1B(lemma.first.size()); | ~~~~~~ ~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:78:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 78 | enc.add_1B(lemma.second.size()); | ~~~~~~ ~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:66:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 66 | enc.add_2B(tags.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:68:20: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 68 | enc.add_1B(tag.size()); | ~~~~~~ ~~~~^~~~~~ In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:15: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:54:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 54 | unsigned len = elem.first.size(); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:22:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::construct>, (lambda at nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:73:40)>' requested here 22 | construct(std::map(map.begin(), map.end()), load_factor, entry_encode); | ^ nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:73:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map>, (lambda at nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:73:40)>' requested here 73 | persistent_unordered_map(guesser, 5, [&tags_map](binary_encoder& enc, const lemma_info& lemmas) { | ^ In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:15: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:57: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:71: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:54: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:34:36: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 34 | for (unsigned i = key.size() - 1; i; i--) | ~ ~~~~~~~~~~~^~~ nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:85:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map' requested here 85 | persistent_unordered_map(negations, 5, true, false, [](binary_encoder& enc, const negation_info& negation) { | ^ In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:15: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:54:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 54 | unsigned len = elem.first.size(); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:42:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::construct' requested here 42 | construct(enlarged_map, load_factor, entry_encode); | ^ nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:85:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map' requested here 85 | persistent_unordered_map(negations, 5, true, false, [](binary_encoder& enc, const negation_info& negation) { | ^ In file included from nametag/src/morphodita/morpho/english_morpho_guesser_encoder.cpp:15: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:57: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:71: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:54: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~~~^~~~~~ 24 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/morpho/english_morpho_guesser_encoder.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/external_morpho.cpp -o nametag/src/morphodita/morpho/external_morpho.o In file included from nametag/src/morphodita/morpho/external_morpho.cpp:10: In file included from nametag/src/morphodita/morpho/external_morpho.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/external_morpho.cpp:12: In file included from ./nametag/src/morphodita/tokenizer/generic_tokenizer.h:13: In file included from ./nametag/src/morphodita/tokenizer/ragel_tokenizer.h:15: In file included from ./nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/external_morpho.cpp:13: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ 10 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/external_morpho_encoder.cpp -o nametag/src/morphodita/morpho/external_morpho_encoder.o In file included from nametag/src/morphodita/morpho/external_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/external_morpho_encoder.cpp:12: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ nametag/src/morphodita/morpho/external_morpho_encoder.cpp:23:26: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 23 | enc.add_1B(unknown_tag.size()); | ~~~~~~ ~~~~~~~~~~~~^~~~~~ 5 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/generic_morpho.cpp -o nametag/src/morphodita/morpho/generic_morpho.o In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:15: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/generic_morpho.h:13: nametag/src/morphodita/morpho/generic_lemma_addinfo.h:36:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 36 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/generic_lemma_addinfo.h:40:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 40 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/generic_lemma_addinfo.h:52:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 52 | return lemma.len; | ~~~~~~ ~~~~~~^~~ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/generic_morpho.h:14: In file included from nametag/src/morphodita/morpho/morpho_dictionary.h:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/generic_morpho.h:14: In file included from nametag/src/morphodita/morpho/morpho_dictionary.h:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:19: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/algorithm:1854: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/for_each.h:16: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__ranges/movable_box.h:21: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1300: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator:715: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/common_iterator.h:32: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/variant:1634: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:97: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:94: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:12: In file included from nametag/src/morphodita/morpho/casing_variants.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/generic_morpho.h:14: nametag/src/morphodita/morpho/morpho_dictionary.h:62:35: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 62 | lemma[lemma_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:63:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 63 | unsigned char lemma_info_len = data.next_1B(); | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:78:25: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 78 | *lemma_data++ = lemma_roots; | ~ ^~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:89:55: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 89 | for (int i = 0; i < to; i++) root[i] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:93:37: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 93 | root[root_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:94:30: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 94 | uint16_t clas = data.next_2B(); | ~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:104:51: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 104 | unaligned_store_inc(root_data, lemma_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:108:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 108 | unaligned_store_inc(lemma_data, root_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:176:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 176 | uint16_t root_class = root_data.next_2B(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:162:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 162 | for (int i = form.len; i >= 0 && suff_len < max_suffix_len; i--, suff_len++) { | ~ ~~~~~^~~ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:16: nametag/src/morphodita/morpho/morpho_prefix_guesser.h:97:45: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 97 | unsigned lemmas_ori_size = lemmas.size(); | ~~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/generic_morpho.cpp:119:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 119 | return form.len; | ~~~~~~ ~~~~~^~~ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/generic_morpho.h:14: nametag/src/morphodita/morpho/morpho_dictionary.h:62:35: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 62 | lemma[lemma_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/generic_morpho.cpp:45:16: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary::load' requested here 45 | dictionary.load(data); | ^ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/generic_morpho.h:14: nametag/src/morphodita/morpho/morpho_dictionary.h:63:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 63 | unsigned char lemma_info_len = data.next_1B(); | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:78:25: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 78 | *lemma_data++ = lemma_roots; | ~ ^~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:89:55: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 89 | for (int i = 0; i < to; i++) root[i] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:93:37: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 93 | root[root_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:94:30: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 94 | uint16_t clas = data.next_2B(); | ~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:104:51: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 104 | unaligned_store_inc(root_data, lemma_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:108:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 108 | unaligned_store_inc(lemma_data, root_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:129:21: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 129 | tag[i] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:74:47: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 74 | lemma_offset = lemma_data - lemma_len - lemmas.data_start(lemma_len); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:100:55: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 100 | unsigned root_offset = root_data - root_len - roots.data_start(root_len); | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:176:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 176 | uint16_t root_class = root_data.next_2B(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:175:88: note: while substituting into a lambda expression here 175 | roots.iter(form.str, root_len, [&](const char* root, pointer_decoder& root_data) { | ^ nametag/src/morphodita/morpho/generic_morpho.cpp:70:16: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary::analyze' requested here 70 | dictionary.analyze(form, lemmas); | ^ In file included from nametag/src/morphodita/morpho/generic_morpho.cpp:13: In file included from nametag/src/morphodita/morpho/generic_morpho.h:14: nametag/src/morphodita/morpho/morpho_dictionary.h:162:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 162 | for (int i = form.len; i >= 0 && suff_len < max_suffix_len; i--, suff_len++) { | ~ ~~~~~^~~ nametag/src/morphodita/morpho/generic_morpho.cpp:70:16: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary::analyze' requested here 70 | dictionary.analyze(form, lemmas); | ^ 42 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/morpho/generic_morpho.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/generic_morpho_encoder.cpp -o nametag/src/morphodita/morpho/generic_morpho_encoder.o In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:11: nametag/src/morphodita/morpho/generic_lemma_addinfo.h:36:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 36 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/generic_lemma_addinfo.h:40:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 40 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/generic_lemma_addinfo.h:52:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 52 | return lemma.len; | ~~~~~~ ~~~~~~^~~ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: In file included from nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:13: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: In file included from nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:13: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:19: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:39: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_map:601: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:19: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:86:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 86 | enc.add_4B(hash.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:89:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 89 | enc.add_4B(data.size()); | ~~~~~~ ~~~~~^~~~~~ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:13: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:179:34: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 179 | int common_prefix = prefix.size(); | ~~~~~~~~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:270:23: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 270 | enc.add_2B(suffix.size()); | ~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:223:30: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 223 | enc.add_1B(prev.length() - cpl); | ~~~~~~ ~~~~~~~~~~~~~~^~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:244:102: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 244 | if (best_prev_from + best_len < prev_form.size()) enc.add_1B(prev_form.size() - best_prev_from - best_len); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:26:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 26 | enc.add_1B(tags.unknown_tag.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:28:30: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 28 | enc.add_1B(tags.number_tag.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:30:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 30 | enc.add_1B(tags.punctuation_tag.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:32:30: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 32 | enc.add_1B(tags.symbol_tag.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:13: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:179:34: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 179 | int common_prefix = prefix.size(); | ~~~~~~~~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:136:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::load' requested here 136 | dict.load(is, max_suffix_len); | ^ nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:36:53: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 36 | morpho_dictionary_encoder::encode(in_dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:13: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:270:23: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 270 | enc.add_2B(suffix.size()); | ~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:139:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::encode' requested here 139 | dict.encode(enc); | ^ nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:36:53: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 36 | morpho_dictionary_encoder::encode(in_dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:13: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:218:21: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 218 | enc.add_4B(lemmas.size()); | ~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:223:30: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 223 | enc.add_1B(prev.length() - cpl); | ~~~~~~ ~~~~~~~~~~~~~~^~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 224 | enc.add_1B(lemma.lemma.size() - cpl); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:226:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 226 | enc.add_1B(lemma.addinfo.data.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:228:28: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 228 | enc.add_1B(lemma.forms.size()); | ~~~~~~ ~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:244:102: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 244 | if (best_prev_from + best_len < prev_form.size()) enc.add_1B(prev_form.size() - best_prev_from - best_len); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:250:60: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 250 | enc.add_1B(lemma_form.form.size() - best_form_from - best_len); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:262:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 262 | enc.add_2B(tags.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:264:20: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 264 | enc.add_1B(tag.size()); | ~~~~~~ ~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:92:26: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 92 | enc.add_1B(lengths.size()); | ~~~~~~ ~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:214:15: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::histogram::encode' requested here 214 | lemmas_hist.encode(enc); | ^ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:139:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::encode' requested here 139 | dict.encode(enc); | ^ nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:36:53: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 36 | morpho_dictionary_encoder::encode(in_dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:13: nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:94:24: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 94 | enc.add_4B(set.size()); | ~~~~~~ ~~~~^~~~~~ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:34:36: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 34 | for (unsigned i = key.size() - 1; i; i--) | ~ ~~~~~~~~~~~^~~ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map>, (lambda at nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:54)>' requested here 269 | persistent_unordered_map(suffixes, 5, false, true, [](binary_encoder& enc, const map>& suffix) { | ^ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:139:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::encode' requested here 139 | dict.encode(enc); | ^ nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:36:53: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 36 | morpho_dictionary_encoder::encode(in_dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:54:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 54 | unsigned len = elem.first.size(); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:42:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::construct>, (lambda at nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:54)>' requested here 42 | construct(enlarged_map, load_factor, entry_encode); | ^ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map>, (lambda at nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:269:54)>' requested here 269 | persistent_unordered_map(suffixes, 5, false, true, [](binary_encoder& enc, const map>& suffix) { | ^ nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:139:8: note: in instantiation of member function 'ufal::nametag::morphodita::dictionary::encode' requested here 139 | dict.encode(enc); | ^ nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:36:53: note: in instantiation of member function 'ufal::nametag::morphodita::morpho_dictionary_encoder::encode' requested here 36 | morpho_dictionary_encoder::encode(in_dictionary, max_suffix_len, enc); | ^ In file included from nametag/src/morphodita/morpho/generic_morpho_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_dictionary_encoder.h:19: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:57: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:71: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:54: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~~~^~~~~~ 38 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/morpho/generic_morpho_encoder.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/morpho.cpp -o nametag/src/morphodita/morpho/morpho.o In file included from nametag/src/morphodita/morpho/morpho.cpp:12: In file included from nametag/src/morphodita/morpho/czech_morpho.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/morpho.cpp:12: In file included from nametag/src/morphodita/morpho/czech_morpho.h:13: nametag/src/morphodita/morpho/czech_lemma_addinfo.h:41:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 41 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/czech_lemma_addinfo.h:55:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 55 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/czech_lemma_addinfo.h:92:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 92 | lemma_num = strtol(lemma_info + 1, (char**) &lemma_additional_info, 10); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/morpho/czech_lemma_addinfo.h:113:21: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 113 | return lemma_info - lemma.str; | ~~~~~~ ~~~~~~~~~~~^~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/morpho.cpp:12: In file included from nametag/src/morphodita/morpho/czech_morpho.h:14: In file included from nametag/src/morphodita/morpho/morpho_dictionary.h:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/morpho.cpp:12: In file included from nametag/src/morphodita/morpho/czech_morpho.h:14: In file included from nametag/src/morphodita/morpho/morpho_dictionary.h:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:19: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/morpho/morpho.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/fstream:198: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__filesystem/path.h:29: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:556: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/deque:2647: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/morpho.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/fstream:198: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__filesystem/path.h:29: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:556: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/deque:2647: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/morpho.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/fstream:198: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__filesystem/path.h:25: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:611: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:19: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/morpho.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/fstream:198: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__filesystem/path.h:29: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:556: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/deque:2647: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/morpho/morpho.cpp:12: In file included from nametag/src/morphodita/morpho/czech_morpho.h:14: nametag/src/morphodita/morpho/morpho_dictionary.h:62:35: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 62 | lemma[lemma_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:63:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 63 | unsigned char lemma_info_len = data.next_1B(); | ~~~~~~~~~~~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:78:25: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 78 | *lemma_data++ = lemma_roots; | ~ ^~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:89:55: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 89 | for (int i = 0; i < to; i++) root[i] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:93:37: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 93 | root[root_len++] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:94:30: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 94 | uint16_t clas = data.next_2B(); | ~~~~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:104:51: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 104 | unaligned_store_inc(root_data, lemma_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:108:52: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 108 | unaligned_store_inc(lemma_data, root_len); | ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:176:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 176 | uint16_t root_class = root_data.next_2B(); | ~~~~~~~~~~ ~~~~~~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_dictionary.h:162:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 162 | for (int i = form.len; i >= 0 && suff_len < max_suffix_len; i--, suff_len++) { | ~ ~~~~~^~~ In file included from nametag/src/morphodita/morpho/morpho.cpp:12: In file included from nametag/src/morphodita/morpho/czech_morpho.h:15: nametag/src/morphodita/morpho/morpho_prefix_guesser.h:97:45: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 97 | unsigned lemmas_ori_size = lemmas.size(); | ~~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ In file included from nametag/src/morphodita/morpho/morpho.cpp:12: In file included from nametag/src/morphodita/morpho/czech_morpho.h:17: In file included from ./nametag/src/morphodita/tokenizer/czech_tokenizer.h:14: In file included from ./nametag/src/morphodita/tokenizer/ragel_tokenizer.h:15: In file included from ./nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/morpho.cpp:14: In file included from nametag/src/morphodita/morpho/english_morpho.h:13: nametag/src/morphodita/morpho/english_lemma_addinfo.h:51:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 51 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/english_lemma_addinfo.h:56:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 56 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/english_lemma_addinfo.h:74:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 74 | return len; | ~~~~~~ ^~~ In file included from nametag/src/morphodita/morpho/morpho.cpp:16: In file included from nametag/src/morphodita/morpho/generic_morpho.h:13: nametag/src/morphodita/morpho/generic_lemma_addinfo.h:36:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 36 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/generic_lemma_addinfo.h:40:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 40 | return lemma.len; | ~~~~~~ ~~~~~~^~~ nametag/src/morphodita/morpho/generic_lemma_addinfo.h:52:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 52 | return lemma.len; | ~~~~~~ ~~~~~~^~~ 35 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/morpho/morpho.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp -o nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.o In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.h:13: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:13: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/algorithm:1854: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/for_each.h:16: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__ranges/movable_box.h:21: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1300: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator:715: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/common_iterator.h:32: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/variant:1634: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:97: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:94: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:14: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:86:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 86 | enc.add_4B(hash.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:89:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 89 | enc.add_4B(data.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:49:22: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 49 | enc.add_1B(filters.size()); | ~~~~~~ ~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:51:23: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 51 | enc.add_1B(filter.size()); | ~~~~~~ ~~~~~~~^~~~~~ In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:14: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:34:36: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 34 | for (unsigned i = key.size() - 1; i; i--) | ~ ~~~~~~~~~~~^~~ nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:55:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map' requested here 55 | persistent_unordered_map(prefixes_initial, 5, true, false, [](binary_encoder& enc, uint32_t mask) { enc.add_4B(mask); }).save(enc); | ^ In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:14: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:54:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 54 | unsigned len = elem.first.size(); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:42:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::construct' requested here 42 | construct(enlarged_map, load_factor, entry_encode); | ^ nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:55:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map' requested here 55 | persistent_unordered_map(prefixes_initial, 5, true, false, [](binary_encoder& enc, uint32_t mask) { enc.add_4B(mask); }).save(enc); | ^ In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:14: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:57: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:71: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:54: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:34:36: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 34 | for (unsigned i = key.size() - 1; i; i--) | ~ ~~~~~~~~~~~^~~ nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:56:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map' requested here 56 | persistent_unordered_map(prefixes_middle, 5, true, false, [](binary_encoder& enc, uint32_t mask) { enc.add_4B(mask); }).save(enc); | ^ In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:14: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:54:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 54 | unsigned len = elem.first.size(); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:42:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::construct' requested here 42 | construct(enlarged_map, load_factor, entry_encode); | ^ nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:56:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map' requested here 56 | persistent_unordered_map(prefixes_middle, 5, true, false, [](binary_encoder& enc, uint32_t mask) { enc.add_4B(mask); }).save(enc); | ^ In file included from nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.cpp:14: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:57: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:71: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:54: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~~~^~~~~~ 22 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/morpho/morpho_prefix_guesser_encoder.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/morpho_statistical_guesser.cpp -o nametag/src/morphodita/morpho/morpho_statistical_guesser.o In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.cpp:10: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.cpp:10: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.h:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.cpp:10: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.h:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:19: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.cpp:10: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.cpp:10: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.cpp:10: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:39: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_map:601: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:19: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.cpp:10: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ nametag/src/morphodita/morpho/morpho_statistical_guesser.cpp:25:21: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 25 | tag[i] = data.next_1B(); | ~ ~~~~~^~~~~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser.cpp:46:41: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 46 | unsigned lemmas_initial_size = lemmas.size(); | ~~~~~~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser.cpp:54:50: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 54 | if (!rules.at(rule_label.c_str(), rule_label.size(), [](pointer_decoder& data){ data.next(data.next_2B()); })) | ~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser.cpp:66:76: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 66 | const unsigned char* found = rules.at(rule_label.c_str(), rule_label.size(), [](pointer_decoder& data){ data.next(data.next_2B()); }); | ~~ ~~~~~~~~~~~^~~~~~ 10 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/morpho/morpho_statistical_guesser.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp -o nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.o In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.h:13: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:14: In file included from nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:13: In file included from nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/algorithm:1854: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/for_each.h:16: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__ranges/movable_box.h:21: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1300: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator:715: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/common_iterator.h:32: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/variant:1634: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:97: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:94: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:13: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/r/headers.h:66: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/platform/compiler.h:41: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_set:1842: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:14: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:86:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 86 | enc.add_4B(hash.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:89:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 89 | enc.add_4B(data.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:71:20: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 71 | e.add_1B(rules.size()); | ~~~~~~ ~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:75:24: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 75 | e.add_1B(affix.size()); | ~~~~~~ ~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:78:28: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 78 | e.add_1B(rule.second.size()); | ~~~~~~ ~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:82:23: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 82 | enc.add_2B(e.data.size()); | ~~~~~~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:62:19: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 62 | enc.add_2B(tags.size()); | ~~~~~~ ~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:64:20: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 64 | enc.add_1B(tag.size()); | ~~~~~~ ~~~~^~~~~~ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:14: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:34:36: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 34 | for (unsigned i = key.size() - 1; i; i--) | ~ ~~~~~~~~~~~^~~ nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:69:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map, std::vector>>, (lambda at nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:69:65)>' requested here 69 | persistent_unordered_map(statistical_guesser, 5, true, false, [](binary_encoder& enc, vector, vector>> rules) { | ^ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:14: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:54:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 54 | unsigned len = elem.first.size(); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:42:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::construct, std::vector>>, (lambda at nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:69:65)>' requested here 42 | construct(enlarged_map, load_factor, entry_encode); | ^ nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:69:3: note: in instantiation of function template specialization 'ufal::nametag::morphodita::persistent_unordered_map::persistent_unordered_map, std::vector>>, (lambda at nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:69:65)>' requested here 69 | persistent_unordered_map(statistical_guesser, 5, true, false, [](binary_encoder& enc, vector, vector>> rules) { | ^ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.cpp:14: nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:57: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:65:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 65 | add(elem.first.c_str(), elem.first.size(), enc.data.size()); | ~~~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:71: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/persistent_unordered_map_encoder.h:73:54: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 73 | small_memcpy(fill(elem.first.c_str(), elem.first.size(), enc.data.size()), enc.data.data(), enc.data.size()); | ~~~~ ~~~~~~~~~~~^~~~~~ 20 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/morpho/morpho_statistical_guesser_encoder.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/morpho_statistical_guesser_trainer.cpp -o nametag/src/morphodita/morpho/morpho_statistical_guesser_trainer.o In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_trainer.cpp:15: In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_trainer.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/morpho/morpho_statistical_guesser_trainer.cpp:16: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser_trainer.cpp:84:32: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 84 | prefix_length = prefix.size(); | ~ ~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser_trainer.cpp:100:81: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 100 | most_frequent_tag.assign(tag.first), most_frequent_tag_count = tag.second.size(); | ~ ~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser_trainer.cpp:119:57: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 119 | unsigned rules_counts_original = rules_counts.size(); | ~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/morpho/morpho_statistical_guesser_trainer.cpp:140:49: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 140 | unsigned tab = rules_counts[i].second.find('\t'); | ~~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ 13 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/raw_morpho_dictionary_reader.cpp -o nametag/src/morphodita/morpho/raw_morpho_dictionary_reader.o In file included from nametag/src/morphodita/morpho/raw_morpho_dictionary_reader.cpp:10: In file included from nametag/src/morphodita/morpho/raw_morpho_dictionary_reader.h:15: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/morpho/tag_filter.cpp -o nametag/src/morphodita/morpho/tag_filter.o In file included from nametag/src/morphodita/morpho/tag_filter.cpp:12: In file included from nametag/src/morphodita/morpho/tag_filter.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tagger/tagger.cpp -o nametag/src/morphodita/tagger/tagger.o In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:12: In file included from nametag/src/morphodita/tagger/elementary_features.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:12: In file included from nametag/src/morphodita/tagger/elementary_features.h:13: In file included from ./nametag/src/morphodita/morpho/persistent_unordered_map.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:12: In file included from nametag/src/morphodita/tagger/elementary_features.h:13: In file included from ./nametag/src/morphodita/morpho/persistent_unordered_map.h:19: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/fstream:198: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__filesystem/path.h:29: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:556: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/deque:2647: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:385:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 385 | return static_cast(this->__end_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:530:28: note: in instantiation of member function 'std::vector::size' requested here 530 | size_type __old_size = size(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/fstream:198: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__filesystem/path.h:29: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:556: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/deque:2647: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:749:65: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 749 | __alloc_traits::destroy(this->__alloc_, std::__to_address(--__soon_to_be_end)); | ^ ~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:531:5: note: in instantiation of member function 'std::vector::__base_destruct_at_end' requested here 531 | __base_destruct_at_end(this->__begin_); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:248:16: note: in instantiation of member function 'std::vector::clear' requested here 248 | __vec_.clear(); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/fstream:198: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__filesystem/path.h:25: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:611: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:19: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__new/allocate.h:102:74: error: invalid application of 'alignof' to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 102 | __type_identity_t<_Tp>* __ptr, __element_count __n, size_t __align = _LIBCPP_ALIGNOF(_Tp)) _NOEXCEPT { | ^~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:300:34: note: expanded from macro '_LIBCPP_ALIGNOF' 300 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) | ^~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:120:7: note: in instantiation of default function argument expression for '__libcpp_deallocate' required here 120 | std::__libcpp_deallocate<_Tp>(__p, __element_count(__n)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:302:9: note: in instantiation of member function 'std::allocator::deallocate' requested here 302 | __a.deallocate(__p, __n); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:25: note: in instantiation of member function 'std::allocator_traits>::deallocate' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/fstream:198: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__filesystem/path.h:29: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:556: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/deque:2647: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:557: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:25: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:388:48: error: arithmetic on a pointer to an incomplete type 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 388 | return static_cast(this->__cap_ - this->__begin_); | ~~~~~~~~~~~~ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:250:77: note: in instantiation of member function 'std::vector::capacity' requested here 250 | __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__vector/vector.h:259:67: note: in instantiation of member function 'std::vector::__destroy_vector::operator()' requested here 259 | _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~vector() { __destroy_vector (*this)(); } | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:48:3: note: in instantiation of member function 'std::vector::~vector' requested here 48 | persistent_unordered_map() {} | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:66:10: note: forward declaration of 'ufal::nametag::morphodita::persistent_unordered_map::fnv_hash' 66 | struct fnv_hash; | ^ ./nametag/src/morphodita/morpho/persistent_unordered_map.h:224:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 224 | for (int i = hash.hash.size() - 1; i >= 0; i--) | ~ ~~~~~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:14: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: In file included from nametag/src/morphodita/tagger/viterbi.h:14: In file included from nametag/src/morphodita/tagger/feature_sequences.h:18: nametag/src/morphodita/tagger/vli.h:36:32: warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'char' [-Wimplicit-int-conversion] 36 | if (value < 0x80) *where++ = value; | ~ ^~~~~ nametag/src/morphodita/tagger/vli.h:37:52: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 37 | else if (value < 0x4000) *where++ = (value >> 7) | 0x80u, *where++ = value & 0x7Fu; | ~ ~~~~~~~~~~~~~^~~~~~~ nametag/src/morphodita/tagger/vli.h:38:55: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 38 | else if (value < 0x200000) *where++ = (value >> 14) | 0x80u, *where++ = ((value >> 7) & 0x7Fu) | 0x80u, *where++ = value & 0x7Fu; | ~ ~~~~~~~~~~~~~~^~~~~~~ nametag/src/morphodita/tagger/vli.h:39:57: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 39 | else if (value < 0x10000000) *where++ = (value >> 21) | 0x80u, *where++ = ((value >> 14) & 0x7Fu) | 0x80u, *where++ = ((value >> 7) & 0x7Fu) | 0x80u, *where++ = value & 0x7Fu; | ~ ~~~~~~~~~~~~~~^~~~~~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: nametag/src/morphodita/tagger/viterbi.h:120:29: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 120 | for (int i = forms.size() - 1; i >= 0; i--, best = c.nodes[best].prev) | ~ ~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: nametag/src/morphodita/tagger/conllu_elementary_features.h:99:27: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 99 | for (unsigned i = forms.size(); i--;) { | ~ ~~~~~~^~~~~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:13: nametag/src/morphodita/tagger/czech_elementary_features.h:86:27: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 86 | for (unsigned i = forms.size(); i--;) { | ~ ~~~~~~^~~~~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:14: nametag/src/morphodita/tagger/generic_elementary_features.h:98:27: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 98 | for (unsigned i = forms.size(); i--;) { | ~ ~~~~~~^~~~~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: In file included from nametag/src/morphodita/tagger/viterbi.h:14: nametag/src/morphodita/tagger/feature_sequences.h:133:108: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 133 | if (int(sequence.elements.size()) > max_sequence_elements) max_sequence_elements = sequence.elements.size(); | ~ ~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tagger/viterbi.h:46:50: note: in instantiation of member function 'ufal::nametag::morphodita::feature_sequences, ufal::nametag::morphodita::persistent_feature_sequence_map>::cache::cache' requested here 46 | cache(const viterbi& self) : features_cache(self.features) {} | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:43:62: note: in instantiation of member function 'ufal::nametag::morphodita::viterbi, ufal::nametag::morphodita::persistent_feature_sequence_map>>::cache::cache' requested here 43 | cache(const perceptron_tagger& self) : decoder_cache(self.decoder) {} | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:75:19: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::cache::cache' requested here 75 | if (!c) c = new cache(*this); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:53:38: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 53 | perceptron_tagger::perceptron_tagger(int decoding_order, int window_size) | ^ ./nametag/src/utils/new_unique_ptr.h:22:28: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::perceptron_tagger' requested here 22 | return unique_ptr(new T(std::forward(args)...)); | ^ nametag/src/morphodita/tagger/tagger.cpp:32:20: note: in instantiation of function template specialization 'ufal::nametag::utils::new_unique_ptr, ufal::nametag::morphodita::persistent_feature_sequence_map>>, int, int>' requested here 32 | auto res = new_unique_ptr>>(tagger_ids::decoding_order(id), tagger_ids::window_size(id)); | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: nametag/src/morphodita/tagger/viterbi.h:65:104: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 65 | states = (i+1 >= unsigned(decoding_order) ? states / analyses[i-decoding_order+1].size() : states) * analyses[i].size(); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/perceptron_tagger.h:86:11: note: in instantiation of member function 'ufal::nametag::morphodita::viterbi, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 86 | decoder.tag(c->forms, c->analyses, c->decoder_cache, c->tags); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:53:38: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 53 | perceptron_tagger::perceptron_tagger(int decoding_order, int window_size) | ^ ./nametag/src/utils/new_unique_ptr.h:22:28: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::perceptron_tagger' requested here 22 | return unique_ptr(new T(std::forward(args)...)); | ^ nametag/src/morphodita/tagger/tagger.cpp:32:20: note: in instantiation of function template specialization 'ufal::nametag::utils::new_unique_ptr, ufal::nametag::morphodita::persistent_feature_sequence_map>>, int, int>' requested here 32 | auto res = new_unique_ptr>>(tagger_ids::decoding_order(id), tagger_ids::window_size(id)); | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: nametag/src/morphodita/tagger/viterbi.h:120:29: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 120 | for (int i = forms.size() - 1; i >= 0; i--, best = c.nodes[best].prev) | ~ ~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:13: nametag/src/morphodita/tagger/czech_elementary_features.h:86:27: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 86 | for (unsigned i = forms.size(); i--;) { | ~ ~~~~~~^~~~~~ nametag/src/morphodita/tagger/feature_sequences.h:157:14: note: in instantiation of member function 'ufal::nametag::morphodita::czech_elementary_features::compute_features' requested here 157 | elementary.compute_features(forms, analyses, c.elementary_per_form, c.elementary_per_tag); | ^ nametag/src/morphodita/tagger/viterbi.h:71:12: note: in instantiation of member function 'ufal::nametag::morphodita::feature_sequences, ufal::nametag::morphodita::persistent_feature_sequence_map>::initialize_sentence' requested here 71 | features.initialize_sentence(forms, analyses, c.features_cache); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:86:11: note: in instantiation of member function 'ufal::nametag::morphodita::viterbi, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 86 | decoder.tag(c->forms, c->analyses, c->decoder_cache, c->tags); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:53:38: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 53 | perceptron_tagger::perceptron_tagger(int decoding_order, int window_size) | ^ ./nametag/src/utils/new_unique_ptr.h:22:28: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::perceptron_tagger' requested here 22 | return unique_ptr(new T(std::forward(args)...)); | ^ nametag/src/morphodita/tagger/tagger.cpp:32:20: note: in instantiation of function template specialization 'ufal::nametag::utils::new_unique_ptr, ufal::nametag::morphodita::persistent_feature_sequence_map>>, int, int>' requested here 32 | auto res = new_unique_ptr>>(tagger_ids::decoding_order(id), tagger_ids::window_size(id)); | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:13: nametag/src/morphodita/tagger/czech_elementary_features.h:92:102: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 92 | per_tag[i][j].values[TAG] = maps[MAP_TAG].value(analyses[i][j].tag.c_str(), analyses[i][j].tag.size()); | ~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tagger/czech_elementary_features.h:97:84: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 97 | maps[MAP_LEMMA].value(analyses[i][j].lemma.c_str(), analyses[i][j].lemma.size()); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tagger/czech_elementary_features.h:106:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 106 | per_form[i].values[FORM] = maps[MAP_FORM].value(forms[i].str, forms[i].len); | ~~~~~ ~~~~~~~~~^~~ nametag/src/morphodita/tagger/czech_elementary_features.h:141:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 141 | per_form[i].values[PREFIX1] = maps[MAP_PREFIX1].value(form_start, indices[1]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/czech_elementary_features.h:142:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 142 | per_form[i].values[PREFIX2] = maps[MAP_PREFIX2].value(form_start, indices[2]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/czech_elementary_features.h:143:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 143 | per_form[i].values[PREFIX3] = maps[MAP_PREFIX3].value(form_start, indices[3]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/czech_elementary_features.h:144:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 144 | per_form[i].values[PREFIX4] = maps[MAP_PREFIX4].value(form_start, indices[4]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/czech_elementary_features.h:147:118: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 147 | per_form[i].values[SUFFIX1] = maps[MAP_SUFFIX1].value(form_start + indices[(index-1)&7], form.str - form_start - indices[(index-1)&7]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/czech_elementary_features.h:148:118: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 148 | per_form[i].values[SUFFIX2] = maps[MAP_SUFFIX2].value(form_start + indices[(index-2)&7], form.str - form_start - indices[(index-2)&7]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/czech_elementary_features.h:149:118: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 149 | per_form[i].values[SUFFIX3] = maps[MAP_SUFFIX3].value(form_start + indices[(index-3)&7], form.str - form_start - indices[(index-3)&7]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/czech_elementary_features.h:150:118: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 150 | per_form[i].values[SUFFIX4] = maps[MAP_SUFFIX4].value(form_start + indices[(index-4)&7], form.str - form_start - indices[(index-4)&7]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: In file included from nametag/src/morphodita/tagger/viterbi.h:14: nametag/src/morphodita/tagger/feature_sequences.h:207:24: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 207 | int key_size = key - c.key.data(); | ~~~~~~~~ ~~~~^~~~~~~~~~~~~~ nametag/src/morphodita/tagger/viterbi.h:96:88: note: in instantiation of member function 'ufal::nametag::morphodita::feature_sequences, ufal::nametag::morphodita::persistent_feature_sequence_map>::score' requested here 96 | score = (nodes_prev + 1 == nodes_now && analyses[i].size() == 1 ? 0 : features.score(i, window, same_tags, dynamic, c.features_cache)) + | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:86:11: note: in instantiation of member function 'ufal::nametag::morphodita::viterbi, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 86 | decoder.tag(c->forms, c->analyses, c->decoder_cache, c->tags); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:53:38: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 53 | perceptron_tagger::perceptron_tagger(int decoding_order, int window_size) | ^ ./nametag/src/utils/new_unique_ptr.h:22:28: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::perceptron_tagger' requested here 22 | return unique_ptr(new T(std::forward(args)...)); | ^ nametag/src/morphodita/tagger/tagger.cpp:32:20: note: in instantiation of function template specialization 'ufal::nametag::utils::new_unique_ptr, ufal::nametag::morphodita::persistent_feature_sequence_map>>, int, int>' requested here 32 | auto res = new_unique_ptr>>(tagger_ids::decoding_order(id), tagger_ids::window_size(id)); | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: In file included from nametag/src/morphodita/tagger/viterbi.h:14: nametag/src/morphodita/tagger/feature_sequences.h:133:108: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 133 | if (int(sequence.elements.size()) > max_sequence_elements) max_sequence_elements = sequence.elements.size(); | ~ ~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tagger/viterbi.h:46:50: note: in instantiation of member function 'ufal::nametag::morphodita::feature_sequences, ufal::nametag::morphodita::persistent_feature_sequence_map>::cache::cache' requested here 46 | cache(const viterbi& self) : features_cache(self.features) {} | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:43:62: note: in instantiation of member function 'ufal::nametag::morphodita::viterbi, ufal::nametag::morphodita::persistent_feature_sequence_map>>::cache::cache' requested here 43 | cache(const perceptron_tagger& self) : decoder_cache(self.decoder) {} | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:75:19: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::cache::cache' requested here 75 | if (!c) c = new cache(*this); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:53:38: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 53 | perceptron_tagger::perceptron_tagger(int decoding_order, int window_size) | ^ ./nametag/src/utils/new_unique_ptr.h:22:28: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::perceptron_tagger' requested here 22 | return unique_ptr(new T(std::forward(args)...)); | ^ nametag/src/morphodita/tagger/tagger.cpp:41:20: note: in instantiation of function template specialization 'ufal::nametag::utils::new_unique_ptr, ufal::nametag::morphodita::persistent_feature_sequence_map>>, int, int>' requested here 41 | auto res = new_unique_ptr>>(tagger_ids::decoding_order(id), tagger_ids::window_size(id)); | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: nametag/src/morphodita/tagger/viterbi.h:65:104: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 65 | states = (i+1 >= unsigned(decoding_order) ? states / analyses[i-decoding_order+1].size() : states) * analyses[i].size(); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/perceptron_tagger.h:86:11: note: in instantiation of member function 'ufal::nametag::morphodita::viterbi, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 86 | decoder.tag(c->forms, c->analyses, c->decoder_cache, c->tags); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:53:38: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 53 | perceptron_tagger::perceptron_tagger(int decoding_order, int window_size) | ^ ./nametag/src/utils/new_unique_ptr.h:22:28: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::perceptron_tagger' requested here 22 | return unique_ptr(new T(std::forward(args)...)); | ^ nametag/src/morphodita/tagger/tagger.cpp:41:20: note: in instantiation of function template specialization 'ufal::nametag::utils::new_unique_ptr, ufal::nametag::morphodita::persistent_feature_sequence_map>>, int, int>' requested here 41 | auto res = new_unique_ptr>>(tagger_ids::decoding_order(id), tagger_ids::window_size(id)); | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: nametag/src/morphodita/tagger/viterbi.h:120:29: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 120 | for (int i = forms.size() - 1; i >= 0; i--, best = c.nodes[best].prev) | ~ ~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:14: nametag/src/morphodita/tagger/generic_elementary_features.h:98:27: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 98 | for (unsigned i = forms.size(); i--;) { | ~ ~~~~~~^~~~~~ nametag/src/morphodita/tagger/feature_sequences.h:157:14: note: in instantiation of member function 'ufal::nametag::morphodita::generic_elementary_features::compute_features' requested here 157 | elementary.compute_features(forms, analyses, c.elementary_per_form, c.elementary_per_tag); | ^ nametag/src/morphodita/tagger/viterbi.h:71:12: note: in instantiation of member function 'ufal::nametag::morphodita::feature_sequences, ufal::nametag::morphodita::persistent_feature_sequence_map>::initialize_sentence' requested here 71 | features.initialize_sentence(forms, analyses, c.features_cache); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:86:11: note: in instantiation of member function 'ufal::nametag::morphodita::viterbi, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 86 | decoder.tag(c->forms, c->analyses, c->decoder_cache, c->tags); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:53:38: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 53 | perceptron_tagger::perceptron_tagger(int decoding_order, int window_size) | ^ ./nametag/src/utils/new_unique_ptr.h:22:28: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::perceptron_tagger' requested here 22 | return unique_ptr(new T(std::forward(args)...)); | ^ nametag/src/morphodita/tagger/tagger.cpp:41:20: note: in instantiation of function template specialization 'ufal::nametag::utils::new_unique_ptr, ufal::nametag::morphodita::persistent_feature_sequence_map>>, int, int>' requested here 41 | auto res = new_unique_ptr>>(tagger_ids::decoding_order(id), tagger_ids::window_size(id)); | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:14: nametag/src/morphodita/tagger/generic_elementary_features.h:103:102: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 103 | per_tag[i][j].values[TAG] = maps[MAP_TAG].value(analyses[i][j].tag.c_str(), analyses[i][j].tag.size()); | ~~~~~ ~~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:110:84: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 110 | maps[MAP_LEMMA].value(analyses[i][j].lemma.c_str(), analyses[i][j].lemma.size()); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:119:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 119 | per_form[i].values[FORM] = maps[MAP_FORM].value(forms[i].str, forms[i].len); | ~~~~~ ~~~~~~~~~^~~ nametag/src/morphodita/tagger/generic_elementary_features.h:162:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 162 | per_form[i].values[PREFIX1] = maps[MAP_PREFIX1].value(form_start, indices[1]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:163:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 163 | per_form[i].values[PREFIX2] = maps[MAP_PREFIX2].value(form_start, indices[2]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:164:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 164 | per_form[i].values[PREFIX3] = maps[MAP_PREFIX3].value(form_start, indices[3]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:165:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 165 | per_form[i].values[PREFIX4] = maps[MAP_PREFIX4].value(form_start, indices[4]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:166:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 166 | per_form[i].values[PREFIX5] = maps[MAP_PREFIX5].value(form_start, indices[5]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:167:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 167 | per_form[i].values[PREFIX6] = maps[MAP_PREFIX6].value(form_start, indices[6]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:168:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 168 | per_form[i].values[PREFIX7] = maps[MAP_PREFIX7].value(form_start, indices[7]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:169:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 169 | per_form[i].values[PREFIX8] = maps[MAP_PREFIX8].value(form_start, indices[8]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:170:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 170 | per_form[i].values[PREFIX9] = maps[MAP_PREFIX9].value(form_start, indices[9]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:173:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 173 | per_form[i].values[SUFFIX1] = maps[MAP_SUFFIX1].value(form_start + indices[(index+18-1) % 18], form.str - form_start - indices[(index+18-1) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:174:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 174 | per_form[i].values[SUFFIX2] = maps[MAP_SUFFIX2].value(form_start + indices[(index+18-2) % 18], form.str - form_start - indices[(index+18-2) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:175:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 175 | per_form[i].values[SUFFIX3] = maps[MAP_SUFFIX3].value(form_start + indices[(index+18-3) % 18], form.str - form_start - indices[(index+18-3) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:176:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 176 | per_form[i].values[SUFFIX4] = maps[MAP_SUFFIX4].value(form_start + indices[(index+18-4) % 18], form.str - form_start - indices[(index+18-4) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:177:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 177 | per_form[i].values[SUFFIX5] = maps[MAP_SUFFIX5].value(form_start + indices[(index+18-5) % 18], form.str - form_start - indices[(index+18-5) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:178:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 178 | per_form[i].values[SUFFIX6] = maps[MAP_SUFFIX6].value(form_start + indices[(index+18-6) % 18], form.str - form_start - indices[(index+18-6) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:179:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 179 | per_form[i].values[SUFFIX7] = maps[MAP_SUFFIX7].value(form_start + indices[(index+18-7) % 18], form.str - form_start - indices[(index+18-7) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:180:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 180 | per_form[i].values[SUFFIX8] = maps[MAP_SUFFIX8].value(form_start + indices[(index+18-8) % 18], form.str - form_start - indices[(index+18-8) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/generic_elementary_features.h:181:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 181 | per_form[i].values[SUFFIX9] = maps[MAP_SUFFIX9].value(form_start + indices[(index+18-9) % 18], form.str - form_start - indices[(index+18-9) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: In file included from nametag/src/morphodita/tagger/viterbi.h:14: nametag/src/morphodita/tagger/feature_sequences.h:207:24: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 207 | int key_size = key - c.key.data(); | ~~~~~~~~ ~~~~^~~~~~~~~~~~~~ nametag/src/morphodita/tagger/viterbi.h:96:88: note: in instantiation of member function 'ufal::nametag::morphodita::feature_sequences, ufal::nametag::morphodita::persistent_feature_sequence_map>::score' requested here 96 | score = (nodes_prev + 1 == nodes_now && analyses[i].size() == 1 ? 0 : features.score(i, window, same_tags, dynamic, c.features_cache)) + | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:86:11: note: in instantiation of member function 'ufal::nametag::morphodita::viterbi, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 86 | decoder.tag(c->forms, c->analyses, c->decoder_cache, c->tags); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:53:38: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 53 | perceptron_tagger::perceptron_tagger(int decoding_order, int window_size) | ^ ./nametag/src/utils/new_unique_ptr.h:22:28: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::perceptron_tagger' requested here 22 | return unique_ptr(new T(std::forward(args)...)); | ^ nametag/src/morphodita/tagger/tagger.cpp:41:20: note: in instantiation of function template specialization 'ufal::nametag::utils::new_unique_ptr, ufal::nametag::morphodita::persistent_feature_sequence_map>>, int, int>' requested here 41 | auto res = new_unique_ptr>>(tagger_ids::decoding_order(id), tagger_ids::window_size(id)); | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: In file included from nametag/src/morphodita/tagger/viterbi.h:14: nametag/src/morphodita/tagger/feature_sequences.h:133:108: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 133 | if (int(sequence.elements.size()) > max_sequence_elements) max_sequence_elements = sequence.elements.size(); | ~ ~~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tagger/viterbi.h:46:50: note: in instantiation of member function 'ufal::nametag::morphodita::feature_sequences, ufal::nametag::morphodita::persistent_feature_sequence_map>::cache::cache' requested here 46 | cache(const viterbi& self) : features_cache(self.features) {} | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:43:62: note: in instantiation of member function 'ufal::nametag::morphodita::viterbi, ufal::nametag::morphodita::persistent_feature_sequence_map>>::cache::cache' requested here 43 | cache(const perceptron_tagger& self) : decoder_cache(self.decoder) {} | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:75:19: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::cache::cache' requested here 75 | if (!c) c = new cache(*this); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:53:38: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 53 | perceptron_tagger::perceptron_tagger(int decoding_order, int window_size) | ^ ./nametag/src/utils/new_unique_ptr.h:22:28: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::perceptron_tagger' requested here 22 | return unique_ptr(new T(std::forward(args)...)); | ^ nametag/src/morphodita/tagger/tagger.cpp:49:20: note: in instantiation of function template specialization 'ufal::nametag::utils::new_unique_ptr, ufal::nametag::morphodita::persistent_feature_sequence_map>>, int, int>' requested here 49 | auto res = new_unique_ptr>>(tagger_ids::decoding_order(id), tagger_ids::window_size(id)); | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: nametag/src/morphodita/tagger/viterbi.h:65:104: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 65 | states = (i+1 >= unsigned(decoding_order) ? states / analyses[i-decoding_order+1].size() : states) * analyses[i].size(); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/perceptron_tagger.h:86:11: note: in instantiation of member function 'ufal::nametag::morphodita::viterbi, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 86 | decoder.tag(c->forms, c->analyses, c->decoder_cache, c->tags); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:53:38: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 53 | perceptron_tagger::perceptron_tagger(int decoding_order, int window_size) | ^ ./nametag/src/utils/new_unique_ptr.h:22:28: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::perceptron_tagger' requested here 22 | return unique_ptr(new T(std::forward(args)...)); | ^ nametag/src/morphodita/tagger/tagger.cpp:49:20: note: in instantiation of function template specialization 'ufal::nametag::utils::new_unique_ptr, ufal::nametag::morphodita::persistent_feature_sequence_map>>, int, int>' requested here 49 | auto res = new_unique_ptr>>(tagger_ids::decoding_order(id), tagger_ids::window_size(id)); | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: nametag/src/morphodita/tagger/viterbi.h:120:29: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 120 | for (int i = forms.size() - 1; i >= 0; i--, best = c.nodes[best].prev) | ~ ~~~~~~~~~~~~~^~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: nametag/src/morphodita/tagger/conllu_elementary_features.h:99:27: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 99 | for (unsigned i = forms.size(); i--;) { | ~ ~~~~~~^~~~~~ nametag/src/morphodita/tagger/feature_sequences.h:157:14: note: in instantiation of member function 'ufal::nametag::morphodita::conllu_elementary_features::compute_features' requested here 157 | elementary.compute_features(forms, analyses, c.elementary_per_form, c.elementary_per_tag); | ^ nametag/src/morphodita/tagger/viterbi.h:71:12: note: in instantiation of member function 'ufal::nametag::morphodita::feature_sequences, ufal::nametag::morphodita::persistent_feature_sequence_map>::initialize_sentence' requested here 71 | features.initialize_sentence(forms, analyses, c.features_cache); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:86:11: note: in instantiation of member function 'ufal::nametag::morphodita::viterbi, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 86 | decoder.tag(c->forms, c->analyses, c->decoder_cache, c->tags); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:53:38: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 53 | perceptron_tagger::perceptron_tagger(int decoding_order, int window_size) | ^ ./nametag/src/utils/new_unique_ptr.h:22:28: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::perceptron_tagger' requested here 22 | return unique_ptr(new T(std::forward(args)...)); | ^ nametag/src/morphodita/tagger/tagger.cpp:49:20: note: in instantiation of function template specialization 'ufal::nametag::utils::new_unique_ptr, ufal::nametag::morphodita::persistent_feature_sequence_map>>, int, int>' requested here 49 | auto res = new_unique_ptr>>(tagger_ids::decoding_order(id), tagger_ids::window_size(id)); | ^ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: nametag/src/morphodita/tagger/conllu_elementary_features.h:111:72: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 111 | per_tag[i][j].values[TAG] = maps[MAP_TAG].value(tag.c_str(), tag.size()); | ~~~~~ ~~~~^~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:115:54: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 115 | maps[MAP_LEMMA].value(lemma.c_str(), lemma.size()); | ~~~~~ ~~~~~~^~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:120:102: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 120 | per_tag[i][j].values[TAG_UPOS] = maps[MAP_TAG_UPOS].value(tag.c_str() + (index ? 1 : 0), index - (index ? 1 : 0)); | ~~~~~ ~~~~~~^~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:147:119: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 147 | per_tag[i][j].values[value] = maps[map].value(tag.c_str() + index + equal_sign + 1, length - equal_sign - 1); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:159:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 159 | per_form[i].values[FORM] = maps[MAP_FORM].value(forms[i].str, forms[i].len); | ~~~~~ ~~~~~~~~~^~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:202:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 202 | per_form[i].values[PREFIX1] = maps[MAP_PREFIX1].value(form_start, indices[1]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:203:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 203 | per_form[i].values[PREFIX2] = maps[MAP_PREFIX2].value(form_start, indices[2]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:204:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 204 | per_form[i].values[PREFIX3] = maps[MAP_PREFIX3].value(form_start, indices[3]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:205:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 205 | per_form[i].values[PREFIX4] = maps[MAP_PREFIX4].value(form_start, indices[4]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:206:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 206 | per_form[i].values[PREFIX5] = maps[MAP_PREFIX5].value(form_start, indices[5]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:207:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 207 | per_form[i].values[PREFIX6] = maps[MAP_PREFIX6].value(form_start, indices[6]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:208:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 208 | per_form[i].values[PREFIX7] = maps[MAP_PREFIX7].value(form_start, indices[7]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:209:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 209 | per_form[i].values[PREFIX8] = maps[MAP_PREFIX8].value(form_start, indices[8]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:210:77: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 210 | per_form[i].values[PREFIX9] = maps[MAP_PREFIX9].value(form_start, indices[9]); | ~~~~~ ^~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:213:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 213 | per_form[i].values[SUFFIX1] = maps[MAP_SUFFIX1].value(form_start + indices[(index+18-1) % 18], form.str - form_start - indices[(index+18-1) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:214:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 214 | per_form[i].values[SUFFIX2] = maps[MAP_SUFFIX2].value(form_start + indices[(index+18-2) % 18], form.str - form_start - indices[(index+18-2) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:215:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 215 | per_form[i].values[SUFFIX3] = maps[MAP_SUFFIX3].value(form_start + indices[(index+18-3) % 18], form.str - form_start - indices[(index+18-3) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:216:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 216 | per_form[i].values[SUFFIX4] = maps[MAP_SUFFIX4].value(form_start + indices[(index+18-4) % 18], form.str - form_start - indices[(index+18-4) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:217:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 217 | per_form[i].values[SUFFIX5] = maps[MAP_SUFFIX5].value(form_start + indices[(index+18-5) % 18], form.str - form_start - indices[(index+18-5) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:218:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 218 | per_form[i].values[SUFFIX6] = maps[MAP_SUFFIX6].value(form_start + indices[(index+18-6) % 18], form.str - form_start - indices[(index+18-6) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:219:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 219 | per_form[i].values[SUFFIX7] = maps[MAP_SUFFIX7].value(form_start + indices[(index+18-7) % 18], form.str - form_start - indices[(index+18-7) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:220:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 220 | per_form[i].values[SUFFIX8] = maps[MAP_SUFFIX8].value(form_start + indices[(index+18-8) % 18], form.str - form_start - indices[(index+18-8) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tagger/conllu_elementary_features.h:221:124: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 221 | per_form[i].values[SUFFIX9] = maps[MAP_SUFFIX9].value(form_start + indices[(index+18-9) % 18], form.str - form_start - indices[(index+18-9) % 18]); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/tagger/tagger.cpp:12: In file included from nametag/src/morphodita/tagger/conllu_elementary_features.h:15: In file included from nametag/src/morphodita/tagger/viterbi.h:14: nametag/src/morphodita/tagger/feature_sequences.h:207:24: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 207 | int key_size = key - c.key.data(); | ~~~~~~~~ ~~~~^~~~~~~~~~~~~~ nametag/src/morphodita/tagger/viterbi.h:96:88: note: in instantiation of member function 'ufal::nametag::morphodita::feature_sequences, ufal::nametag::morphodita::persistent_feature_sequence_map>::score' requested here 96 | score = (nodes_prev + 1 == nodes_now && analyses[i].size() == 1 ? 0 : features.score(i, window, same_tags, dynamic, c.features_cache)) + | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:86:11: note: in instantiation of member function 'ufal::nametag::morphodita::viterbi, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 86 | decoder.tag(c->forms, c->analyses, c->decoder_cache, c->tags); | ^ nametag/src/morphodita/tagger/perceptron_tagger.h:53:38: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::tag' requested here 53 | perceptron_tagger::perceptron_tagger(int decoding_order, int window_size) | ^ ./nametag/src/utils/new_unique_ptr.h:22:28: note: in instantiation of member function 'ufal::nametag::morphodita::perceptron_tagger, ufal::nametag::morphodita::persistent_feature_sequence_map>>::perceptron_tagger' requested here 22 | return unique_ptr(new T(std::forward(args)...)); | ^ nametag/src/morphodita/tagger/tagger.cpp:49:20: note: in instantiation of function template specialization 'ufal::nametag::utils::new_unique_ptr, ufal::nametag::morphodita::persistent_feature_sequence_map>>, int, int>' requested here 49 | auto res = new_unique_ptr>>(tagger_ids::decoding_order(id), tagger_ids::window_size(id)); | ^ 92 warnings and 4 errors generated. make[1]: *** [nametag/src/morphodita/tagger/tagger.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/czech_tokenizer.cpp -o nametag/src/morphodita/tokenizer/czech_tokenizer.o In file included from nametag/src/morphodita/tokenizer/czech_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/czech_tokenizer.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/czech_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/czech_tokenizer.h:14: In file included from nametag/src/morphodita/tokenizer/ragel_tokenizer.h:15: In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/czech_tokenizer.cpp:208:43: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 208 | unsigned first_hyphen = tokens.size() - 2*hyphens; | ~~~~~~~~~~~~ ~~~~~~~~~~~~~~^~~~~~~~~~~ nametag/src/morphodita/tokenizer/czech_tokenizer.cpp:220:56: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 220 | unsigned first = tokens.size() - 2*matched_hyphens - 1; | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ 11 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/english_tokenizer.cpp -o nametag/src/morphodita/tokenizer/english_tokenizer.o In file included from nametag/src/morphodita/tokenizer/english_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/english_tokenizer.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/english_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/english_tokenizer.h:13: In file included from nametag/src/morphodita/tokenizer/ragel_tokenizer.h:15: In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ 9 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/generic_tokenizer.cpp -o nametag/src/morphodita/tokenizer/generic_tokenizer.o In file included from nametag/src/morphodita/tokenizer/generic_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/generic_tokenizer.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/generic_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/generic_tokenizer.h:13: In file included from nametag/src/morphodita/tokenizer/ragel_tokenizer.h:15: In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ 9 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/generic_tokenizer_factory.cpp -o nametag/src/morphodita/tokenizer/generic_tokenizer_factory.o In file included from nametag/src/morphodita/tokenizer/generic_tokenizer_factory.cpp:10: In file included from nametag/src/morphodita/tokenizer/generic_tokenizer.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/generic_tokenizer_factory.cpp:10: In file included from nametag/src/morphodita/tokenizer/generic_tokenizer.h:13: In file included from nametag/src/morphodita/tokenizer/ragel_tokenizer.h:15: In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ 9 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/generic_tokenizer_factory_encoder.cpp -o nametag/src/morphodita/tokenizer/generic_tokenizer_factory_encoder.o In file included from nametag/src/morphodita/tokenizer/generic_tokenizer_factory_encoder.cpp:10: In file included from nametag/src/morphodita/tokenizer/generic_tokenizer_factory_encoder.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ nametag/src/morphodita/tokenizer/generic_tokenizer_factory_encoder.cpp:17:10: warning: implicit conversion loses integer precision: 'unsigned int' to 'char_type' (aka 'char') [-Wimplicit-int-conversion] 17 | os.put(version); | ~~~ ^~~~~~~ 2 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/gru_tokenizer.cpp -o nametag/src/morphodita/tokenizer/gru_tokenizer.o In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.h:13: In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.h:14: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_network.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ 10 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/gru_tokenizer_factory.cpp -o nametag/src/morphodita/tokenizer/gru_tokenizer_factory.o In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_factory.cpp:10: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_factory.cpp:10: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.h:13: In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_factory.cpp:10: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.h:14: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_network.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ 10 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/gru_tokenizer_network.cpp -o nametag/src/morphodita/tokenizer/gru_tokenizer_network.o In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_network.cpp:10: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_network.h:16: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_network.cpp:10: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_network.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ 2 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp -o nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.o In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:18: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.h:13: In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:18: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.h:14: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_network.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:22: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:308:9: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 308 | if (learning_rate_final && learning_rate_final != learning_rate_initial) | ^~~~~~~~~~~~~~~~~~~ ~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:326:29: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 326 | if (early_stopping && best_combined_f1 && epoch - best_combined_f1_epoch > 30) { | ~~ ^~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:335:25: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 335 | if (early_stopping && best_combined_f1) { | ~~ ^~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:71:28: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 71 | enc.add_1B(unknown_chars.size()); | ~~~~~~ ~~~~~~~~~~~~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:322:41: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 322 | best_combined_f1 = sentences.f1 + tokens.f1; | ~ ~~~~~~~~~~~~~^~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:41:18: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<16>::train' requested here 41 | if (!network.train(url_email_tokenizer, segment, allow_spaces, epochs, batch_size, learning_rate, learning_rate_final, | ^ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:130:103: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'value_type' (aka 'int') [-Wshorten-64-to-32] 130 | vector permutation; for (size_t i = 0; i < data.size(); i++) permutation.push_back(permutation.size()); | ~~~~~~~~~ ~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:170:43: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 170 | embedding_dropouts[i].w[0][k] = dropout && dropout_distribution(generator) ? 0.f : dropout_multiplier; | ^~~~~~~ ~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:205:39: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 205 | gru.dropouts[i].w[0][j] = dropout && dropout_distribution(generator) ? 0.f : dropout_multiplier * gru.states[i+1].w[0][j]; | ^~~~~~~ ~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:247:17: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 247 | if (gru.dropouts[i].w[0][j]) | ~~ ^~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:308:9: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 308 | if (learning_rate_final && learning_rate_final != learning_rate_initial) | ^~~~~~~~~~~~~~~~~~~ ~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:326:29: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 326 | if (early_stopping && best_combined_f1 && epoch - best_combined_f1_epoch > 30) { | ~~ ^~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:335:25: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 335 | if (early_stopping && best_combined_f1) { | ~~ ^~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:348:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 348 | enc.add_4B(this->embeddings.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:365:35: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 365 | w_m[i][j] = 0.9 * w_m[i][j] + (1-0.9) * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:298:31: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<16>::matrix_trainer<1, 16>::update_weights' requested here 298 | chosen_embedding->update_weights(learning_rate_biased); | ^ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:41:18: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<16>::train' requested here 41 | if (!network.train(url_email_tokenizer, segment, allow_spaces, epochs, batch_size, learning_rate, learning_rate_final, | ^ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:366:37: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 366 | w_v[i][j] = 0.999 * w_v[i][j] + (1-0.999) * w_g[i][j] * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:367:53: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 367 | original.w[i][j] += learning_rate * w_m[i][j] / (sqrt(w_v[i][j]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:369:27: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 369 | b_m[i] = 0.9 * b_m[i] + (1-0.9) * b_g[i]; | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:370:29: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 370 | b_v[i] = 0.999 * b_v[i] + (1-0.999) * b_g[i] * b_g[i]; | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:371:45: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 371 | original.b[i] += learning_rate * b_m[i] / (sqrt(b_v[i]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:365:35: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 365 | w_m[i][j] = 0.9 * w_m[i][j] + (1-0.9) * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:383:5: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<16>::matrix_trainer<16, 16>::update_weights' requested here 383 | X.update_weights(learning_rate); | ^ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:302:17: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<16>::gru_trainer::update_weights' requested here 302 | gru_fwd.update_weights(learning_rate_biased); | ^ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:41:18: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<16>::train' requested here 41 | if (!network.train(url_email_tokenizer, segment, allow_spaces, epochs, batch_size, learning_rate, learning_rate_final, | ^ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:366:37: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 366 | w_v[i][j] = 0.999 * w_v[i][j] + (1-0.999) * w_g[i][j] * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:367:53: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 367 | original.w[i][j] += learning_rate * w_m[i][j] / (sqrt(w_v[i][j]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:369:27: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 369 | b_m[i] = 0.9 * b_m[i] + (1-0.9) * b_g[i]; | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:370:29: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 370 | b_v[i] = 0.999 * b_v[i] + (1-0.999) * b_g[i] * b_g[i]; | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:371:45: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 371 | original.b[i] += learning_rate * b_m[i] / (sqrt(b_v[i]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:365:35: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 365 | w_m[i][j] = 0.9 * w_m[i][j] + (1-0.9) * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:304:24: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<16>::matrix_trainer<3, 16>::update_weights' requested here 304 | projection_fwd.update_weights(learning_rate_biased); | ^ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:41:18: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<16>::train' requested here 41 | if (!network.train(url_email_tokenizer, segment, allow_spaces, epochs, batch_size, learning_rate, learning_rate_final, | ^ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:366:37: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 366 | w_v[i][j] = 0.999 * w_v[i][j] + (1-0.999) * w_g[i][j] * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:367:53: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 367 | original.w[i][j] += learning_rate * w_m[i][j] / (sqrt(w_v[i][j]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:369:27: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 369 | b_m[i] = 0.9 * b_m[i] + (1-0.9) * b_g[i]; | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:370:29: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 370 | b_v[i] = 0.999 * b_v[i] + (1-0.999) * b_g[i] * b_g[i]; | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:371:45: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 371 | original.b[i] += learning_rate * b_m[i] / (sqrt(b_v[i]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:322:41: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 322 | best_combined_f1 = sentences.f1 + tokens.f1; | ~ ~~~~~~~~~~~~~^~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:45:18: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<24>::train' requested here 45 | if (!network.train(url_email_tokenizer, segment, allow_spaces, epochs, batch_size, learning_rate, learning_rate_final, | ^ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:130:103: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'value_type' (aka 'int') [-Wshorten-64-to-32] 130 | vector permutation; for (size_t i = 0; i < data.size(); i++) permutation.push_back(permutation.size()); | ~~~~~~~~~ ~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:170:43: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 170 | embedding_dropouts[i].w[0][k] = dropout && dropout_distribution(generator) ? 0.f : dropout_multiplier; | ^~~~~~~ ~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:205:39: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 205 | gru.dropouts[i].w[0][j] = dropout && dropout_distribution(generator) ? 0.f : dropout_multiplier * gru.states[i+1].w[0][j]; | ^~~~~~~ ~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:247:17: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 247 | if (gru.dropouts[i].w[0][j]) | ~~ ^~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:308:9: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 308 | if (learning_rate_final && learning_rate_final != learning_rate_initial) | ^~~~~~~~~~~~~~~~~~~ ~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:326:29: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 326 | if (early_stopping && best_combined_f1 && epoch - best_combined_f1_epoch > 30) { | ~~ ^~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:335:25: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 335 | if (early_stopping && best_combined_f1) { | ~~ ^~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:348:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 348 | enc.add_4B(this->embeddings.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:365:35: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 365 | w_m[i][j] = 0.9 * w_m[i][j] + (1-0.9) * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:298:31: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<24>::matrix_trainer<1, 24>::update_weights' requested here 298 | chosen_embedding->update_weights(learning_rate_biased); | ^ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:45:18: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<24>::train' requested here 45 | if (!network.train(url_email_tokenizer, segment, allow_spaces, epochs, batch_size, learning_rate, learning_rate_final, | ^ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:366:37: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 366 | w_v[i][j] = 0.999 * w_v[i][j] + (1-0.999) * w_g[i][j] * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:367:53: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 367 | original.w[i][j] += learning_rate * w_m[i][j] / (sqrt(w_v[i][j]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:369:27: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 369 | b_m[i] = 0.9 * b_m[i] + (1-0.9) * b_g[i]; | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:370:29: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 370 | b_v[i] = 0.999 * b_v[i] + (1-0.999) * b_g[i] * b_g[i]; | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:371:45: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 371 | original.b[i] += learning_rate * b_m[i] / (sqrt(b_v[i]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:365:35: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 365 | w_m[i][j] = 0.9 * w_m[i][j] + (1-0.9) * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:383:5: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<24>::matrix_trainer<24, 24>::update_weights' requested here 383 | X.update_weights(learning_rate); | ^ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:302:17: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<24>::gru_trainer::update_weights' requested here 302 | gru_fwd.update_weights(learning_rate_biased); | ^ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:45:18: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<24>::train' requested here 45 | if (!network.train(url_email_tokenizer, segment, allow_spaces, epochs, batch_size, learning_rate, learning_rate_final, | ^ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:366:37: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 366 | w_v[i][j] = 0.999 * w_v[i][j] + (1-0.999) * w_g[i][j] * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:367:53: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 367 | original.w[i][j] += learning_rate * w_m[i][j] / (sqrt(w_v[i][j]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:369:27: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 369 | b_m[i] = 0.9 * b_m[i] + (1-0.9) * b_g[i]; | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:370:29: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 370 | b_v[i] = 0.999 * b_v[i] + (1-0.999) * b_g[i] * b_g[i]; | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:371:45: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 371 | original.b[i] += learning_rate * b_m[i] / (sqrt(b_v[i]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:365:35: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 365 | w_m[i][j] = 0.9 * w_m[i][j] + (1-0.9) * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:304:24: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<24>::matrix_trainer<3, 24>::update_weights' requested here 304 | projection_fwd.update_weights(learning_rate_biased); | ^ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:45:18: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<24>::train' requested here 45 | if (!network.train(url_email_tokenizer, segment, allow_spaces, epochs, batch_size, learning_rate, learning_rate_final, | ^ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:366:37: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 366 | w_v[i][j] = 0.999 * w_v[i][j] + (1-0.999) * w_g[i][j] * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:367:53: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 367 | original.w[i][j] += learning_rate * w_m[i][j] / (sqrt(w_v[i][j]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:369:27: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 369 | b_m[i] = 0.9 * b_m[i] + (1-0.9) * b_g[i]; | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:370:29: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 370 | b_v[i] = 0.999 * b_v[i] + (1-0.999) * b_g[i] * b_g[i]; | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:371:45: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 371 | original.b[i] += learning_rate * b_m[i] / (sqrt(b_v[i]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:322:41: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 322 | best_combined_f1 = sentences.f1 + tokens.f1; | ~ ~~~~~~~~~~~~~^~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:49:18: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<64>::train' requested here 49 | if (!network.train(url_email_tokenizer, segment, allow_spaces, epochs, batch_size, learning_rate, learning_rate_final, | ^ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:130:103: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'value_type' (aka 'int') [-Wshorten-64-to-32] 130 | vector permutation; for (size_t i = 0; i < data.size(); i++) permutation.push_back(permutation.size()); | ~~~~~~~~~ ~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:170:43: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 170 | embedding_dropouts[i].w[0][k] = dropout && dropout_distribution(generator) ? 0.f : dropout_multiplier; | ^~~~~~~ ~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:205:39: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 205 | gru.dropouts[i].w[0][j] = dropout && dropout_distribution(generator) ? 0.f : dropout_multiplier * gru.states[i+1].w[0][j]; | ^~~~~~~ ~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:247:17: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 247 | if (gru.dropouts[i].w[0][j]) | ~~ ^~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:308:9: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 308 | if (learning_rate_final && learning_rate_final != learning_rate_initial) | ^~~~~~~~~~~~~~~~~~~ ~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:326:29: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 326 | if (early_stopping && best_combined_f1 && epoch - best_combined_f1_epoch > 30) { | ~~ ^~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:335:25: warning: implicit conversion turns floating-point number into integer: 'float' to 'bool' [-Wfloat-conversion] 335 | if (early_stopping && best_combined_f1) { | ~~ ^~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:348:31: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 348 | enc.add_4B(this->embeddings.size()); | ~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:365:35: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 365 | w_m[i][j] = 0.9 * w_m[i][j] + (1-0.9) * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:298:31: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<64>::matrix_trainer<1, 64>::update_weights' requested here 298 | chosen_embedding->update_weights(learning_rate_biased); | ^ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:49:18: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<64>::train' requested here 49 | if (!network.train(url_email_tokenizer, segment, allow_spaces, epochs, batch_size, learning_rate, learning_rate_final, | ^ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:366:37: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 366 | w_v[i][j] = 0.999 * w_v[i][j] + (1-0.999) * w_g[i][j] * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:367:53: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 367 | original.w[i][j] += learning_rate * w_m[i][j] / (sqrt(w_v[i][j]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:369:27: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 369 | b_m[i] = 0.9 * b_m[i] + (1-0.9) * b_g[i]; | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:370:29: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 370 | b_v[i] = 0.999 * b_v[i] + (1-0.999) * b_g[i] * b_g[i]; | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:371:45: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 371 | original.b[i] += learning_rate * b_m[i] / (sqrt(b_v[i]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:365:35: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 365 | w_m[i][j] = 0.9 * w_m[i][j] + (1-0.9) * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:383:5: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<64>::matrix_trainer<64, 64>::update_weights' requested here 383 | X.update_weights(learning_rate); | ^ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:302:17: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<64>::gru_trainer::update_weights' requested here 302 | gru_fwd.update_weights(learning_rate_biased); | ^ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:49:18: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<64>::train' requested here 49 | if (!network.train(url_email_tokenizer, segment, allow_spaces, epochs, batch_size, learning_rate, learning_rate_final, | ^ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:366:37: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 366 | w_v[i][j] = 0.999 * w_v[i][j] + (1-0.999) * w_g[i][j] * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:367:53: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 367 | original.w[i][j] += learning_rate * w_m[i][j] / (sqrt(w_v[i][j]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:369:27: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 369 | b_m[i] = 0.9 * b_m[i] + (1-0.9) * b_g[i]; | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:370:29: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 370 | b_v[i] = 0.999 * b_v[i] + (1-0.999) * b_g[i] * b_g[i]; | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:371:45: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 371 | original.b[i] += learning_rate * b_m[i] / (sqrt(b_v[i]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:365:35: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 365 | w_m[i][j] = 0.9 * w_m[i][j] + (1-0.9) * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:304:24: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<64>::matrix_trainer<3, 64>::update_weights' requested here 304 | projection_fwd.update_weights(learning_rate_biased); | ^ nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:49:18: note: in instantiation of member function 'ufal::nametag::morphodita::gru_tokenizer_network_trainer<64>::train' requested here 49 | if (!network.train(url_email_tokenizer, segment, allow_spaces, epochs, batch_size, learning_rate, learning_rate_final, | ^ In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_trainer.cpp:12: nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:366:37: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 366 | w_v[i][j] = 0.999 * w_v[i][j] + (1-0.999) * w_g[i][j] * w_g[i][j]; | ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:367:53: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 367 | original.w[i][j] += learning_rate * w_m[i][j] / (sqrt(w_v[i][j]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:369:27: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 369 | b_m[i] = 0.9 * b_m[i] + (1-0.9) * b_g[i]; | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:370:29: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 370 | b_v[i] = 0.999 * b_v[i] + (1-0.999) * b_g[i] * b_g[i]; | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/morphodita/tokenizer/gru_tokenizer_network_trainer.h:371:45: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 371 | original.b[i] += learning_rate * b_m[i] / (sqrt(b_v[i]) + 1e-8); | ~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 98 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/ragel_tokenizer.cpp -o nametag/src/morphodita/tokenizer/ragel_tokenizer.o In file included from nametag/src/morphodita/tokenizer/ragel_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/ragel_tokenizer.h:14: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/ragel_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/ragel_tokenizer.h:15: In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ 9 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/tokenizer.cpp -o nametag/src/morphodita/tokenizer/tokenizer.o In file included from nametag/src/morphodita/tokenizer/tokenizer.cpp:12: In file included from nametag/src/morphodita/tokenizer/czech_tokenizer.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/tokenizer.cpp:12: In file included from nametag/src/morphodita/tokenizer/czech_tokenizer.h:14: In file included from nametag/src/morphodita/tokenizer/ragel_tokenizer.h:15: In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ 9 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/tokenizer_factory.cpp -o nametag/src/morphodita/tokenizer/tokenizer_factory.o In file included from nametag/src/morphodita/tokenizer/tokenizer_factory.cpp:12: In file included from nametag/src/morphodita/tokenizer/generic_tokenizer_factory.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/tokenizer_factory.cpp:13: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_factory.h:14: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.h:13: In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ In file included from nametag/src/morphodita/tokenizer/tokenizer_factory.cpp:13: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_factory.h:14: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer.h:14: In file included from nametag/src/morphodita/tokenizer/gru_tokenizer_network.h:18: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ 10 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/unicode_tokenizer.cpp -o nametag/src/morphodita/tokenizer/unicode_tokenizer.o In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.cpp:12: In file included from nametag/src/morphodita/tokenizer/ragel_tokenizer.h:14: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.cpp:12: In file included from nametag/src/morphodita/tokenizer/ragel_tokenizer.h:15: In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ 9 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/tokenizer/vertical_tokenizer.cpp -o nametag/src/morphodita/tokenizer/vertical_tokenizer.o In file included from nametag/src/morphodita/tokenizer/vertical_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/vertical_tokenizer.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/morphodita/tokenizer/vertical_tokenizer.cpp:10: In file included from nametag/src/morphodita/tokenizer/vertical_tokenizer.h:13: In file included from nametag/src/morphodita/tokenizer/unicode_tokenizer.h:17: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ 9 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/morphodita/version/version.cpp -o nametag/src/morphodita/version/version.o In file included from nametag/src/morphodita/version/version.cpp:13: In file included from nametag/src/morphodita/version/version.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/ner/bilou_ner.cpp -o nametag/src/ner/bilou_ner.o In file included from nametag/src/ner/bilou_ner.cpp:10: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/ner/bilou_ner.cpp:11: In file included from nametag/src/ner/bilou_ner.h:14: In file included from ./nametag/src/classifier/network_classifier.h:15: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/ner/bilou_ner.cpp:11: In file included from nametag/src/ner/bilou_ner.h:14: In file included from ./nametag/src/classifier/network_classifier.h:16: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ 5 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/ner/bilou_ner_trainer.cpp -o nametag/src/ner/bilou_ner_trainer.o In file included from nametag/src/ner/bilou_ner_trainer.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/ner/bilou_ner_trainer.cpp:14: In file included from nametag/src/ner/bilou_ner.h:14: In file included from ./nametag/src/classifier/network_classifier.h:15: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/ner/bilou_ner_trainer.cpp:14: In file included from nametag/src/ner/bilou_ner.h:14: In file included from ./nametag/src/classifier/network_classifier.h:16: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ nametag/src/ner/bilou_ner_trainer.cpp:73:15: warning: implicit conversion loses integer precision: 'int' to 'char_type' (aka 'char') [-Wimplicit-int-conversion] 73 | if (!os.put(stages)) runtime_error("Cannot save number of stages!"); | ~~~ ^~~~~~ 6 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/ner/entity_map.cpp -o nametag/src/ner/entity_map.o In file included from nametag/src/ner/entity_map.cpp:10: In file included from nametag/src/ner/entity_map.h:14: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/ner/entity_map.cpp:11: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ nametag/src/ner/entity_map.cpp:49:17: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'entity_type' (aka 'unsigned int') [-Wshorten-64-to-32] 49 | return id2str.size(); | ~~~~~~ ~~~~~~~^~~~~~ 3 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/ner/entity_map_encoder.cpp -o nametag/src/ner/entity_map_encoder.o In file included from nametag/src/ner/entity_map_encoder.cpp:10: In file included from nametag/src/ner/entity_map.h:14: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/ner/entity_map_encoder.cpp:11: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ nametag/src/ner/entity_map_encoder.cpp:20:21: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 20 | enc.add_4B(id2str.size()); | ~~~~~~ ~~~~~~~^~~~~~ 5 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/ner/ner.cpp -o nametag/src/ner/ner.o In file included from nametag/src/ner/ner.cpp:12: In file included from nametag/src/ner/bilou_ner.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/ner/ner.cpp:12: In file included from nametag/src/ner/bilou_ner.h:14: In file included from ./nametag/src/classifier/network_classifier.h:15: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from nametag/src/ner/ner.cpp:12: In file included from nametag/src/ner/bilou_ner.h:14: In file included from ./nametag/src/classifier/network_classifier.h:16: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ 5 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/tagger/external_tagger.cpp -o nametag/src/tagger/external_tagger.o In file included from nametag/src/tagger/external_tagger.cpp:10: In file included from nametag/src/tagger/external_tagger.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ nametag/src/tagger/external_tagger.cpp:33:25: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 33 | sentence.resize(forms.size()); | ~~~~~~ ~~~~~~^~~~~~ 2 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/tagger/morphodita_tagger.cpp -o nametag/src/tagger/morphodita_tagger.o In file included from nametag/src/tagger/morphodita_tagger.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/tagger/morphodita_tagger.cpp:16: ./nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ ./nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ ./nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ ./nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ nametag/src/tagger/morphodita_tagger.cpp:53:27: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 53 | sentence.resize(forms.size()); | ~~~~~~ ~~~~~~^~~~~~ 10 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/tagger/tagger.cpp -o nametag/src/tagger/tagger.o In file included from nametag/src/tagger/tagger.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/tagger/trivial_tagger.cpp -o nametag/src/tagger/trivial_tagger.o In file included from nametag/src/tagger/trivial_tagger.cpp:10: In file included from nametag/src/tagger/trivial_tagger.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ nametag/src/tagger/trivial_tagger.cpp:24:25: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 24 | sentence.resize(forms.size()); | ~~~~~~ ~~~~~~^~~~~~ 2 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/tokenizer/morphodita_tokenizer_wrapper.cpp -o nametag/src/tokenizer/morphodita_tokenizer_wrapper.o In file included from nametag/src/tokenizer/morphodita_tokenizer_wrapper.cpp:10: In file included from nametag/src/tokenizer/morphodita_tokenizer_wrapper.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/tokenizer/tokenizer.cpp -o nametag/src/tokenizer/tokenizer.o In file included from nametag/src/tokenizer/tokenizer.cpp:10: In file included from nametag/src/tokenizer/tokenizer.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/unilib/unicode.cpp -o nametag/src/unilib/unicode.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/unilib/uninorms.cpp -o nametag/src/unilib/uninorms.o nametag/src/unilib/uninorms.cpp:64:58: warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 64 | if (composition_data[m] <= str[old + 1]) l = m; | ~ ^ nametag/src/unilib/uninorms.cpp:65:58: warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion] 65 | if (composition_data[m] >= str[old + 1]) r = m; | ~ ^ 2 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/unilib/unistrip.cpp -o nametag/src/unilib/unistrip.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/unilib/utf16.cpp -o nametag/src/unilib/utf16.o In file included from nametag/src/unilib/utf16.cpp:13: nametag/src/unilib/utf16.h:188:31: warning: implicit conversion loses integer precision: 'char32_t' to 'char16_t' [-Wimplicit-int-conversion] 188 | if (chr <= 0xFFFF) *str++ = chr; | ~ ^~~ nametag/src/unilib/utf16.h:189:47: warning: implicit conversion loses integer precision: 'unsigned int' to 'char16_t' [-Wimplicit-int-conversion] 189 | else if (chr <= 0x10FFFF) { *str++ = 0xD800 + ((chr - 0x10000) >> 10); *str++ = 0xDC00 + ((chr - 0x10000) & 0x3FF); } | ~ ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ nametag/src/unilib/utf16.h:194:29: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char16_t') [-Wimplicit-int-conversion] 194 | if (chr <= 0xFFFF) str += chr; | ~~ ^~~ nametag/src/unilib/utf16.h:195:45: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char16_t') [-Wimplicit-int-conversion] 195 | else if (chr <= 0x10FFFF) { str += 0xD800 + ((chr - 0x10000) >> 10); str += 0xDC00 + ((chr - 0x10000) & 0x3FF); } | ~~ ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/unilib/utf8.cpp -o nametag/src/unilib/utf8.o In file included from nametag/src/unilib/utf8.cpp:13: nametag/src/unilib/utf8.h:220:28: warning: implicit conversion loses integer precision: 'char32_t' to 'char' [-Wimplicit-int-conversion] 220 | if (chr < 0x80) *str++ = chr; | ~ ^~~ nametag/src/unilib/utf8.h:221:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 221 | else if (chr < 0x800) { *str++ = 0xC0 + (chr >> 6); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~ nametag/src/unilib/utf8.h:222:43: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 222 | else if (chr < 0x10000) { *str++ = 0xE0 + (chr >> 12); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ nametag/src/unilib/utf8.h:223:44: warning: implicit conversion loses integer precision: 'unsigned int' to 'char' [-Wimplicit-int-conversion] 223 | else if (chr < 0x200000) { *str++ = 0xF0 + (chr >> 18); *str++ = 0x80 + ((chr >> 12) & 0x3F); *str++ = 0x80 + ((chr >> 6) & 0x3F); *str++ = 0x80 + (chr & 0x3F); } | ~ ~~~~~^~~~~~~~~~~~~ nametag/src/unilib/utf8.h:228:26: warning: implicit conversion loses integer precision: 'char32_t' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 228 | if (chr < 0x80) str += chr; | ~~ ^~~ nametag/src/unilib/utf8.h:229:39: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 229 | else if (chr < 0x800) { str += 0xC0 + (chr >> 6); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~ nametag/src/unilib/utf8.h:230:41: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 230 | else if (chr < 0x10000) { str += 0xE0 + (chr >> 12); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ nametag/src/unilib/utf8.h:231:42: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'char') [-Wimplicit-int-conversion] 231 | else if (chr < 0x200000) { str += 0xF0 + (chr >> 18); str += 0x80 + ((chr >> 12) & 0x3F); str += 0x80 + ((chr >> 6) & 0x3F); str += 0x80 + (chr & 0x3F); } | ~~ ~~~~~^~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/unilib/version.cpp -o nametag/src/unilib/version.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/utils/compressor_load.cpp -o nametag/src/utils/compressor_load.o In file included from nametag/src/utils/compressor_load.cpp:12: In file included from nametag/src/utils/compressor.h:12: In file included from nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/utils/compressor_load.cpp:13: nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ 2 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/utils/compressor_save.cpp -o nametag/src/utils/compressor_save.o In file included from nametag/src/utils/compressor_save.cpp:12: In file included from nametag/src/utils/binary_encoder.h:12: In file included from nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from nametag/src/utils/compressor_save.cpp:12: nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ nametag/src/utils/compressor_save.cpp:3325:79: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32] 3325 | uint32_t poor_crc = uncompressed_size * 19991 + compressed_size * 199999991 + 1234567890; | ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 5 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/utils/options.cpp -o nametag/src/utils/options.o In file included from nametag/src/utils/options.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/utils/url_detector.cpp -o nametag/src/utils/url_detector.o In file included from nametag/src/utils/url_detector.cpp:10: In file included from nametag/src/utils/url_detector.h:12: In file included from nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nametag/src/version/version.cpp -o nametag/src/version/version.o In file included from nametag/src/version/version.cpp:12: In file included from ./nametag/src/morphodita/version/version.h:12: In file included from ./nametag/src/common.h:12: In file included from ./nametag/src/utils/common.h:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c rcpp_nametag.cpp -o rcpp_nametag.o In file included from rcpp_nametag.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from rcpp_nametag.cpp:6: In file included from ./nametag/src/ner/bilou_ner_trainer.h:14: In file included from ./nametag/src/classifier/network_classifier.h:15: ./nametag/src/utils/binary_decoder.h:101:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32] 101 | return data - buffer.data(); | ~~~~~~ ~~~~~^~~~~~~~~~~~~~~ In file included from rcpp_nametag.cpp:6: In file included from ./nametag/src/ner/bilou_ner_trainer.h:14: In file included from ./nametag/src/classifier/network_classifier.h:16: ./nametag/src/utils/binary_encoder.h:50:18: warning: implicit conversion loses integer precision: 'unsigned int' to 'value_type' (aka 'unsigned char') [-Wimplicit-int-conversion] 50 | data.push_back(val); | ~~~~~~~~~ ^~~ ./nametag/src/utils/binary_encoder.h:72:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 72 | add_1B(str.len < 255 ? str.len : 255); | ~~~~~~ ~~~~^~~ ./nametag/src/utils/binary_encoder.h:73:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 73 | if (!(str.len < 255)) add_4B(str.len); | ~~~~~~ ~~~~^~~ rcpp_nametag.cpp:105:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 105 | in_entity = entities[e].length; | ~ ~~~~~~~~~~~~^~~~~~ 6 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DSTRICT_R_HEADERS -I./nametag/src -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. make[1]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘nametagger’ * removing ‘/Users/ripley/R/packages/tests-devel/nametagger.Rcheck/nametagger’