openvenues / libpostal

A C library for parsing/normalizing street addresses around the world. Powered by statistical NLP and open geo data.
MIT License
4.03k stars 416 forks source link

Documentation for --datadir ownership during installation #321

Open nigelhorne opened 6 years ago

nigelhorne commented 6 years ago

"make" produces a lot of warnings. In there somewhere there is probably an error, since I also see this:

mv -f .deps/build_trans_table-transliteration_table_builder.Tpo .deps/build_trans_table-transliteration_table_builder.Po make[2]: Leaving directory '/home/njh/src/libpostal/src' Makefile:454: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/home/njh/src/libpostal' Makefile:363: recipe for target 'all' failed make: [all] Error 2

So I reran make, and this time the output is small enough to paste here. It looks like the problem is in writing to a system area, even though I'm yet to try to run "sudo make install". Why is a simple "make" attempting to write to a system area?

make all-recursive make[1]: Entering directory '/home/njh/src/libpostal' Making all in src make[2]: Entering directory '/home/njh/src/libpostal/src' /bin/bash ../libtool --tag=CC --mode=compile gcc-7 -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/usr/share/libpostal/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O2 -D LIBPOSTAL_EXPORTS -MT utf8proc/libpostal_la-utf8proc.lo -MD -MP -MF utf8proc/.deps/libpostal_la-utf8proc.Tpo -c -o utf8proc/libpostal_la-utf8proc.lo test -f 'utf8proc/utf8proc.c' || echo './'utf8proc/utf8proc.c /bin/bash ../libtool --tag=CC --mode=compile gcc-7 -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/usr/share/libpostal/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O2 -D LIBPOSTAL_EXPORTS -MT geohash/libpostal_la-geohash.lo -MD -MP -MF geohash/.deps/libpostal_la-geohash.Tpo -c -o geohash/libpostal_la-geohash.lo test -f 'geohash/geohash.c' || echo './'geohash/geohash.c /bin/bash ../libtool --tag=CC --mode=compile gcc-7 -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/usr/share/libpostal/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O0 -D LIBPOSTAL_EXPORTS -MT klib/libscanner_la-drand48.lo -MD -MP -MF klib/.deps/libscanner_la-drand48.Tpo -c -o klib/libscanner_la-drand48.lo test -f 'klib/drand48.c' || echo './'klib/drand48.c gcc-7 -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/usr/share/libpostal/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O3 -MT linenoise/address_parser-linenoise.o -MD -MP -MF linenoise/.deps/address_parser-linenoise.Tpo -c -o linenoise/address_parser-linenoise.o test -f 'linenoise/linenoise.c' || echo './'linenoise/linenoise.c linenoise/linenoise.c:127:36: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] static char unsupported_term[] = {"dumb","cons25","emacs",NULL}; ^~ linenoise/linenoise.c:127:43: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] static char unsupported_term[] = {"dumb","cons25","emacs",NULL}; ^~~~ linenoise/linenoise.c:127:52: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] static char unsupported_term[] = {"dumb","cons25","emacs",NULL}; ^~~ linenoise/linenoise.c: In function ‘refreshMultiLine’: linenoise/linenoise.c:554:27: warning: ISO C99 requires at least one argument for the "..." in a variadic macro lndebug("clear+up"); ^ linenoise/linenoise.c:560:20: warning: ISO C99 requires at least one argument for the "..." in a variadic macro lndebug("clear"); ^ linenoise/linenoise.c:574:28: warning: ISO C99 requires at least one argument for the "..." in a variadic macro lndebug(""); ^ linenoise/linenoise.c:602:17: warning: ISO C99 requires at least one argument for the "..." in a variadic macro lndebug("\n"); ^ linenoise/linenoise.c: At top level: linenoise/linenoise.c:621:5: warning: no previous prototype for ‘linenoiseEditInsert’ [-Wmissing-prototypes] int linenoiseEditInsert(struct linenoiseState l, char c) { ^~~~~~~ linenoise/linenoise.c:648:6: warning: no previous prototype for ‘linenoiseEditMoveLeft’ [-Wmissing-prototypes] void linenoiseEditMoveLeft(struct linenoiseState l) { ^~~~~ linenoise/linenoise.c:656:6: warning: no previous prototype for ‘linenoiseEditMoveRight’ [-Wmissing-prototypes] void linenoiseEditMoveRight(struct linenoiseState l) { ^~~~~~ linenoise/linenoise.c:664:6: warning: no previous prototype for ‘linenoiseEditMoveHome’ [-Wmissing-prototypes] void linenoiseEditMoveHome(struct linenoiseState l) { ^~~~~ linenoise/linenoise.c:672:6: warning: no previous prototype for ‘linenoiseEditMoveEnd’ [-Wmissing-prototypes] void linenoiseEditMoveEnd(struct linenoiseState l) { ^~~~~~~~ linenoise/linenoise.c:683:6: warning: no previous prototype for ‘linenoiseEditHistoryNext’ [-Wmissing-prototypes] void linenoiseEditHistoryNext(struct linenoiseState l, int dir) { ^~~~~~~~ linenoise/linenoise.c:707:6: warning: no previous prototype for ‘linenoiseEditDelete’ [-Wmissing-prototypes] void linenoiseEditDelete(struct linenoiseState l) { ^~~~~~~ linenoise/linenoise.c:717:6: warning: no previous prototype for ‘linenoiseEditBackspace’ [-Wmissing-prototypes] void linenoiseEditBackspace(struct linenoiseState l) { ^~~~~~ linenoise/linenoise.c:729:6: warning: no previous prototype for ‘linenoiseEditDeletePrevWord’ [-Wmissing-prototypes] void linenoiseEditDeletePrevWord(struct linenoiseState l) { ^~~~~~~ libtool: compile: gcc-7 -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/usr/share/libpostal/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O2 -D LIBPOSTAL_EXPORTS -MT utf8proc/libpostal_la-utf8proc.lo -MD -MP -MF utf8proc/.deps/libpostal_la-utf8proc.Tpo -c utf8proc/utf8proc.c -fPIC -DPIC -o utf8proc/.libs/libpostal_la-utf8proc.o libtool: compile: gcc-7 -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/usr/share/libpostal/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O2 -D LIBPOSTAL_EXPORTS -MT geohash/libpostal_la-geohash.lo -MD -MP -MF geohash/.deps/libpostal_la-geohash.Tpo -c geohash/geohash.c -fPIC -DPIC -o geohash/.libs/libpostal_la-geohash.o libtool: compile: gcc-7 -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/usr/share/libpostal/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O0 -D LIBPOSTAL_EXPORTS -MT klib/libscanner_la-drand48.lo -MD -MP -MF klib/.deps/libscanner_la-drand48.Tpo -c klib/drand48.c -fPIC -DPIC -o klib/.libs/libscanner_la-drand48.o geohash/geohash.c: In function ‘interleaved_to_geohashstr’: geohash/geohash.c:154:68: warning: unused parameter ‘length’ [-Wunused-paramete] static int interleaved_to_geohashstr(uint16_t interleaved, size_t length, char dst, size_t dst_length) { ^~ geohash/geohash.c: In function ‘geohash_neighbors’: geohash/geohash.c:478:57: warning: unused parameter ‘dst_length’ [-Wunused-parameter] int geohash_neighbors(char hashcode, char dst, size_t dst_length, int *string_count) { ^~~~~~ klib/drand48.c:76:0: warning: ISO C forbids an empty translation unit [-Wpedantic]

endif // HAVE_DRAND48

libtool: compile: gcc-7 -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/usr/share/libpostal/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O0 -D LIBPOSTAL_EXPORTS -MT klib/libscanner_la-drand48.lo -MD -MP -MF klib/.deps/libscanner_la-drand48.Tpo -c klib/drand48.c -o klib/libscanner_la-drand48.o >/dev/null 2>&1 mv -f klib/.deps/libscanner_la-drand48.Tpo klib/.deps/libscanner_la-drand48.Plo /bin/bash ../libtool --tag=CC --mode=link gcc-7 -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/usr/share/libpostal/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O3 -L/usr/local/lib -o build_address_dictionary build_address_dictionary-strndup.o build_address_dictionary-address_dictionary_builder.o build_address_dictionary-address_dictionary.o build_address_dictionary-file_utils.o build_address_dictionary-string_utils.o build_address_dictionary-trie.o build_address_dictionary-trie_search.o utf8proc/build_address_dictionary-utf8proc.o -lm linenoise/linenoise.c: In function ‘linenoisePrintKeyCodes’: linenoise/linenoise.c:930:6: warning: stack protector not protecting function: all local arrays are less than 8 bytes long [-Wstack-protector] void linenoisePrintKeyCodes(void) { ^~~~~~ geohash/geohash.c: In function ‘geohash_encode’: geohash/geohash.c:210:5: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector] int geohash_encode(double latitude, double longitude, char r, size_t capacity) { ^~~~~~ geohash/geohash.c: In function ‘geohash_neighbors’: geohash/geohash.c:478:5: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector] int geohash_neighbors(char hashcode, char dst, size_t dst_length, int string_count) { ^~~~~ mv -f linenoise/.deps/address_parser-linenoise.Tpo linenoise/.deps/address_parser-linenoise.Po /bin/bash ../libtool --tag=CC --mode=link gcc-7 -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/usr/share/libpostal/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O3 -L/usr/local/lib -o build_numex_table build_numex_table-strndup.o build_numex_table-numex_table_builder.o build_numex_table-numex.o build_numex_table-file_utils.o build_numex_table-string_utils.o build_numex_table-tokens.o build_numex_table-trie.o build_numex_table-trie_search.o utf8proc/build_numex_table-utf8proc.o -lm libtool: compile: gcc-7 -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/usr/share/libpostal/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O2 -D LIBPOSTAL_EXPORTS -MT geohash/libpostal_la-geohash.lo -MD -MP -MF geohash/.deps/libpostal_la-geohash.Tpo -c geohash/geohash.c -o geohash/libpostal_la-geohash.o >/dev/null 2>&1 libtool: link: gcc-7 -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/usr/share/libpostal/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O3 -o build_address_dictionary build_address_dictionary-strndup.o build_address_dictionary-address_dictionary_builder.o build_address_dictionary-address_dictionary.o build_address_dictionary-file_utils.o build_address_dictionary-string_utils.o build_address_dictionary-trie.o build_address_dictionary-trie_search.o utf8proc/build_address_dictionary-utf8proc.o -L/usr/local/lib -lm /bin/bash ../libtool --tag=CC --mode=link gcc-7 -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/usr/share/libpostal/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O3 -L/usr/local/lib -o build_trans_table build_trans_table-strndup.o build_trans_table-transliteration_table_builder.o build_trans_table-transliterate.o build_trans_table-trie.o build_trans_table-trie_search.o build_trans_table-file_utils.o build_trans_table-string_utils.o utf8proc/build_trans_table-utf8proc.o -lm libtool: link: gcc-7 -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/usr/share/libpostal/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O3 -o build_numex_table build_numex_table-strndup.o build_numex_table-numex_table_builder.o build_numex_table-numex.o build_numex_table-file_utils.o build_numex_table-string_utils.o build_numex_table-tokens.o build_numex_table-trie.o build_numex_table-trie_search.o utf8proc/build_numex_table-utf8proc.o -L/usr/local/lib -lm mv -f geohash/.deps/libpostal_la-geohash.Tpo geohash/.deps/libpostal_la-geohash.Plo ./libpostal_data download all /usr/share/libpostal/libpostal mkdir: cannot create directory ‘/usr/share/libpostal’: Permission denied Makefile:4118: recipe for target 'all-local' failed make[2]: [all-local] Error 1 make[2]: Waiting for unfinished jobs.... libtool: compile: gcc-7 -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/usr/share/libpostal/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O2 -D LIBPOSTAL_EXPORTS -MT utf8proc/libpostal_la-utf8proc.lo -MD -MP -MF utf8proc/.deps/libpostal_la-utf8proc.Tpo -c utf8proc/utf8proc.c -o utf8proc/libpostal_la-utf8proc.o >/dev/null 2>&1 libtool: link: gcc-7 -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/usr/share/libpostal/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -O2 -W -Wformat=2 -Wswitch -Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe -fomit-frame-pointer -pedantic -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse -mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto -mtune=native -march=native -O3 -o build_trans_table build_trans_table-strndup.o build_trans_table-transliteration_table_builder.o build_trans_table-transliterate.o build_trans_table-trie.o build_trans_table-trie_search.o build_trans_table-file_utils.o build_trans_table-string_utils.o utf8proc/build_trans_table-utf8proc.o -L/usr/local/lib -lm mv -f utf8proc/.deps/libpostal_la-utf8proc.Tpo utf8proc/.deps/libpostal_la-utf8proc.Plo make[2]: Leaving directory '/home/njh/src/libpostal/src' Makefile:454: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/home/njh/src/libpostal' Makefile:363: recipe for target 'all' failed make: [all] Error 2

albarrentine commented 6 years ago

The relevant line is mkdir: cannot create directory ‘/usr/share/libpostal’: Permission denied. Make sure your user owns the directory specified in --datadir in configure. If no directory was specified, the default prefix should be /usr/local/share (not sure if this is the default on all systems, possible that /usr/share was being used as the default if no datadir was specified).

albarrentine commented 6 years ago

the reason for this is a libpostal install needs to download the trained model files, which are 1.8GB untarred. Since the library requires the built models to function, and they're fairly large, we ask the user to explicitly set --datadir to somewhere that has enough space. Production-grade machine learning models are often this size or greater, but usually only engineers/data scientists at places like Google have access to them, and while Google et al. might open-source the model's code, the training data remains under lock and key (thus stripping the model of most of its value). This is one of the first ML models where there's a large amount of high-quality open training data, so we can give everyone access to production-quality models, but it requires some non-standard installation steps to use said models.

nigelhorne commented 6 years ago

I see that, but it’s not clear from the installation instructions.

albarrentine commented 6 years ago

The instructions say that --datadir is required: ./configure --datadir=[...some dir with a few GB of space...].

There's probably a slightly more clear way to word that. Feel free to make a pull request to the docs.

nigelhorne commented 6 years ago

But it's not clear that it's going to write to it in the make part, rather than the make install.

albarrentine commented 6 years ago

Not everyone runs sudo make install, has access to sudo, etc. so for the locally-built programs to work (the ones in src) we have to download during make.

Happy to add a PR if you want to revise the wording.

cameronrhamilton commented 6 years ago

I am also having an issue with the installation on Ubuntu 16.04. These are the installation steps I have followed: I opened a terminal in the /home/cameron/ folder

sudo apt-get install curl autoconf automake libtool pkg-config
git clone https://github.com/openvenues/libpostal
cd libpostal
./bootstrap.sh
./configure --datadir=/home/cameron/
sudo make -j4

The make appears to be running successfully until the very end, where I receive the following make errors:

Makefile:4118: recipe for target 'all-local' failed
make[2]: *** [all-local] Error 123
make[2]: Leaving directory '/home/cameron/libpostal/src'
Makefile:454: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/cameron/libpostal'
Makefile:363: recipe for target 'all' failed
make: *** [all] Error 2

Any help you could provide here would be greatly appreciated, @albarrentine. I do not see any mkdir errors in the output. The only detail I saw which unusual was how the -DLIBPOSTAL_DATA_DIR was specified in the terminal output:

libtool: link: gcc -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/cameron/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O3 -o .libs/address_parser address_parser-strndup.o address_parser-address_parser_cli.o address_parser-json_encode.o linenoise/address_parser-linenoise.o address_parser-string_utils.o utf8proc/address_parser-utf8proc.o -L/usr/local/lib ./.libs/libpostal.so -lcblas -latlas -lm

-DLIBPOSTAL_DATA_DIR=\"/home/cameron/libpostal\" does not look correct, but I am not sure. Would you please clarify how data_dir should be specified here?

albarrentine commented 6 years ago

@cameronrhamilton that is how it's supposed to work. The datadir is an autotools construct, and is a base directory (the default is /usr/local/share if it's not specified), so we tack a libpostal on to the end of that path to ensure that our files are kept neatly contained in a single directory that can be removed easily, in case e.g. the user didn't specify a datadir or specified something generic like /opt. In this case, if you're using your user's home directory, which, when adding the libpostal to the end, happens to be the same as the checkout dir, so that may cause some issue. I would try something like /home/cameron/libpostal_data.

Also note: it's usually better to run make -j4 without the sudo, and then sudo make install, otherwise sometimes it can create issues with files being owned by the root user.

Santoshpal300494 commented 5 years ago

HI @albarrentine ,

I am noob in this world of "Pypostal" and "make install" so would be flooding the entire log which I get after the sudo make install command fails. I followed all the steps that you had mentioned.

Kindly help me get out of this misery.

Thanks in advance.

LOG:

ubuntu@ip-172-31-23-201:~/libpostal$ sudo make install Making install in src make[1]: Entering directory '/home/ubuntu/libpostal/src' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-strndup.lo -MD -MP -MF .deps/libpostal_la-strndup.Tpo -c -o libpostal_la-strndup.lo test -f 'strndup.c' || echo './'strndup.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-strndup.lo -MD -MP -MF .deps/libpostal_la-strndup.Tpo -c strndup.c -fPIC -DPIC -o .libs/libpostal_la-strndup.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-strndup.lo -MD -MP -MF .deps/libpostal_la-strndup.Tpo -c strndup.c -o libpostal_la-strndup.o >/dev/null 2>&1 mv -f .deps/libpostal_la-strndup.Tpo .deps/libpostal_la-strndup.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-libpostal.lo -MD -MP -MF .deps/libpostal_la-libpostal.Tpo -c -o libpostal_la-libpostal.lo test -f 'libpostal.c' || echo './'libpostal.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-libpostal.lo -MD -MP -MF .deps/libpostal_la-libpostal.Tpo -c libpostal.c -fPIC -DPIC -o .libs/libpostal_la-libpostal.o In file included from sparse_matrix.h:46:0, from averaged_perceptron.h:27, from address_parser.h:52, from libpostal.c:10: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-libpostal.lo -MD -MP -MF .deps/libpostal_la-libpostal.Tpo -c libpostal.c -o libpostal_la-libpostal.o >/dev/null 2>&1 mv -f .deps/libpostal_la-libpostal.Tpo .deps/libpostal_la-libpostal.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-expand.lo -MD -MP -MF .deps/libpostal_la-expand.Tpo -c -o libpostal_la-expand.lo test -f 'expand.c' || echo './'expand.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-expand.lo -MD -MP -MF .deps/libpostal_la-expand.Tpo -c expand.c -fPIC -DPIC -o .libs/libpostal_la-expand.o In file included from logistic_regression.h:26:0, from language_classifier.h:11, from expand.c:10: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ expand.c: In function ‘add_affix_expansions’: expand.c:171:65: warning: unused parameter ‘lang’ [-Wunused-parameter] bool add_affix_expansions(string_tree_t tree, char str, char *lang, token_t token, phrase_t prefix, phrase_t suffix, libpostal_normalize_options_t options, bool with ^ In file included from collections.h:8:0, from address_dictionary.h:16, from expand.h:9, from expand.c:3: expand.c: In function ‘add_string_alternatives_phrase_option’: log/log.h:52:55: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 3 has type ‘uint32_t {aka unsigned int}’ [-Wformat=]

define log_debug(M, ...) do { if (0) fprintf(stderr, "\33[34mDEBUG\33[39m " M " \33[90m at %s (%s:%d) \33[39m\n", ##__VA_ARGS, func, FILE, LINE__); } whi

                                                   ^

expand.c:817:17: note: in expansion of macro ‘log_debug’ log_debug("phrase.start = %zu, prev_phrase_end = %zu\n", phrase.start, prev_phrase_end); ^ log/log.h:52:55: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 3 has type ‘int’ [-Wformat=]

define log_debug(M, ...) do { if (0) fprintf(stderr, "\33[34mDEBUG\33[39m " M " \33[90m at %s (%s:%d) \33[39m\n", ##__VA_ARGS, func, FILE, LINE__); } whi

                                                   ^

expand.c:864:21: note: in expansion of macro ‘log_debug’ log_debug("have_strictly_ignorable=%zu, phrase_is_canonical=%zu\n", have_strictly_ignorable, phrase_is_canonical); ^ log/log.h:52:55: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 4 has type ‘int’ [-Wformat=]

define log_debug(M, ...) do { if (0) fprintf(stderr, "\33[34mDEBUG\33[39m " M " \33[90m at %s (%s:%d) \33[39m\n", ##__VA_ARGS, func, FILE, LINE__); } whi

                                                   ^

expand.c:864:21: note: in expansion of macro ‘log_debug’ log_debug("have_strictly_ignorable=%zu, phrase_is_canonical=%zu\n", have_strictly_ignorable, phrase_is_canonical); ^ expand.c:924:26: warning: unused variable ‘have_period_affixes’ [-Wunused-variable] bool have_period_affixes = add_period_affixes_or_token(tree, str, token, options); ^ expand.c:1176:46: warning: unused variable ‘start_index’ [-Wunused-variable] uint32_t start_index = cstring_array_start_token(tree->strings); ^ expand.c:1194:38: warning: unused variable ‘start_index’ [-Wunused-variable] uint32_t start_index = cstring_array_start_token(tree->strings); ^ expand.c:1227:26: warning: unused variable ‘start_index’ [-Wunused-variable] uint32_t start_index = cstring_array_start_token(tree->strings); ^ expand.c:1302:22: warning: unused variable ‘have_period_affixes’ [-Wunused-variable] bool have_period_affixes = add_period_affixes_or_token(tree, str, token, options); ^ expand.c:1336:22: warning: unused variable ‘have_period_affixes’ [-Wunused-variable] bool have_period_affixes = add_period_affixes_or_token(tree, str, token, options); ^ expand.c: In function ‘normalize_ordinal_suffixes’: expand.c:1360:106: warning: unused parameter ‘i’ [-Wunused-parameter] inline bool normalize_ordinal_suffixes(string_tree_t tree, char str, char lang, token_t token, size_t i, token_t prev_token, libpostal_normalize_options_t options) ^ expand.c: In function ‘expand_alternative_phrase_option’: expand.c:1432:11: warning: unused variable ‘lang’ [-Wunused-variable] char lang; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-expand.lo -MD -MP -MF .deps/libpostal_la-expand.Tpo -c expand.c -o libpostal_la-expand.o >/dev/null 2>&1 mv -f .deps/libpostal_la-expand.Tpo .deps/libpostal_la-expand.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-address_dictionary.lo -MD -MP -MF .deps/libpostal_la-address_dictionary.Tpo -c -o libpostal_la-address_dictionary.lo test -f 'address_dictionary.c' || echo './'address_dictionary.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-address_dictionary.lo -MD -MP -MF .deps/libpostal_la-address_dictionary.Tpo -c address_dictionary.c -fPIC -DPIC -o .libs/libpostal_la-address_dictionary.o address_dictionary.c: In function ‘address_dictionary_add_expansion’: address_dictionary.c:173:10: warning: variable ‘is_phrase’ set but not used [-Wunused-but-set-variable] bool is_phrase = false; ^ In file included from address_dictionary.c:3:0: address_dictionary.c: In function ‘address_phrase_in_dictionaries’: address_dictionary.c:63:47: warning: ‘uint16_t {aka short unsigned int}’ is promoted to ‘int’ when passed through ‘...’ uint16_t dictionary_id = va_arg(args, uint16_t); ^ address_dictionary.c:63:47: note: (so you should pass ‘int’ not ‘uint16_t {aka short unsigned int}’ to ‘va_arg’) address_dictionary.c:63:47: note: if this code is reached, the program will abort libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-address_dictionary.lo -MD -MP -MF .deps/libpostal_la-address_dictionary.Tpo -c address_dictionary.c -o libpostal_la-address_dictionary.o >/dev/null 2>&1 mv -f .deps/libpostal_la-address_dictionary.Tpo .deps/libpostal_la-address_dictionary.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-transliterate.lo -MD -MP -MF .deps/libpostal_la-transliterate.Tpo -c -o libpostal_la-transliterate.lo test -f 'transliterate.c' || echo './'transliterate.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-transliterate.lo -MD -MP -MF .deps/libpostal_la-transliterate.Tpo -c transliterate.c -fPIC -DPIC -o .libs/libpostal_la-transliterate.o transliterate.c: In function ‘replace_groups’: transliterate.c:615:12: warning: variable ‘group_num_len’ set but not used [-Wunused-but-set-variable] size_t group_num_len = 0; ^ transliterate.c:614:12: warning: variable ‘group_num_start’ set but not used [-Wunused-but-set-variable] size_t group_num_start = 0; ^ transliterate.c: In function ‘transliterate’: transliterate.c:937:26: warning: variable ‘added_previous_phrase’ set but not used [-Wunused-but-set-variable] bool added_previous_phrase = false; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-transliterate.lo -MD -MP -MF .deps/libpostal_la-transliterate.Tpo -c transliterate.c -o libpostal_la-transliterate.o >/dev/null 2>&1 mv -f .deps/libpostal_la-transliterate.Tpo .deps/libpostal_la-transliterate.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-tokens.lo -MD -MP -MF .deps/libpostal_la-tokens.Tpo -c -o libpostal_la-tokens.lo test -f 'tokens.c' || echo './'tokens.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-tokens.lo -MD -MP -MF .deps/libpostal_la-tokens.Tpo -c tokens.c -fPIC -DPIC -o .libs/libpostal_la-tokens.o tokens.c: In function ‘tokenized_string_new_size’: tokens.c:13:66: warning: unused parameter ‘num_tokens’ [-Wunused-parameter] tokenized_string_t *tokenized_string_new_size(size_t len, size_t num_tokens) { ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-tokens.lo -MD -MP -MF .deps/libpostal_la-tokens.Tpo -c tokens.c -o libpostal_la-tokens.o >/dev/null 2>&1 mv -f .deps/libpostal_la-tokens.Tpo .deps/libpostal_la-tokens.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-trie.lo -MD -MP -MF .deps/libpostal_la-trie.Tpo -c -o libpostal_la-trie.lo test -f 'trie.c' || echo './'trie.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-trie.lo -MD -MP -MF .deps/libpostal_la-trie.Tpo -c trie.c -fPIC -DPIC -o .libs/libpostal_la-trie.o trie.c: In function ‘trie_read’: trie.c:1032:13: warning: unused variable ‘check’ [-Wunused-variable] int32_t check; ^ trie.c:1031:13: warning: unused variable ‘base’ [-Wunused-variable] int32_t base; ^ trie.c: In function ‘trie_get_from_index’: trie.c:853:14: warning: ‘next_id’ may be used uninitialized in this function [-Wmaybe-uninitialized] uint32_t next_id; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-trie.lo -MD -MP -MF .deps/libpostal_la-trie.Tpo -c trie.c -o libpostal_la-trie.o >/dev/null 2>&1 mv -f .deps/libpostal_la-trie.Tpo .deps/libpostal_la-trie.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-trie_search.lo -MD -MP -MF .deps/libpostal_la-trie_search.Tpo -c -o libpostal_la-trie_search.lo test -f 'trie_search.c' || echo './'trie_search.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-trie_search.lo -MD -MP -MF .deps/libpostal_la-trie_search.Tpo -c trie_search.c -fPIC -DPIC -o .libs/libpostal_la-trie_search.o trie_search.c: In function ‘trie_search_from_index’: trie_search.c:21:54: warning: variable ‘last_node’ set but not used [-Wunused-but-set-variable] trie_node_t node = trie_get_node(self, node_id), last_node = node; ^ In file included from collections.h:8:0, from trie.h:31, from trie_search.h:10, from trie_search.c:1: trie_search.c: In function ‘trie_search_prefixes_from_index’: log/log.h:52:55: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 3 has type ‘uint32_t {aka unsigned int}’ [-Wformat=]

define log_debug(M, ...) do { if (0) fprintf(stderr, "\33[34mDEBUG\33[39m " M " \33[90m at %s (%s:%d) \33[39m\n", ##__VA_ARGS, func, FILE, LINE__); } whi

                                                   ^

trie_search.c:670:21: note: in expansion of macro ‘log_debug’ log_debug("No space transition, phrase_len=%zu\n", phrase_len); ^ trie_search.c:627:12: warning: variable ‘separator_char_len’ set but not used [-Wunused-but-set-variable] size_t separator_char_len = 0; ^ In file included from collections.h:11:0, from trie.h:31, from trie_search.h:10, from trie_search.c:1: trie_search.c: In function ‘trie_search_from_index’: vector.h:124:30: warning: ‘data’ may be used uninitialized in this function [-Wmaybe-uninitialized] array->a[array->n++] = value; \ ^ trie_search.c:28:14: note: ‘data’ was declared here uint32_t data; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-trie_search.lo -MD -MP -MF .deps/libpostal_la-trie_search.Tpo -c trie_search.c -o libpostal_la-trie_search.o >/dev/null 2>&1 mv -f .deps/libpostal_la-trie_search.Tpo .deps/libpostal_la-trie_search.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-trie_utils.lo -MD -MP -MF .deps/libpostal_la-trie_utils.Tpo -c -o libpostal_la-trie_utils.lo test -f 'trie_utils.c' || echo './'trie_utils.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-trie_utils.lo -MD -MP -MF .deps/libpostal_la-trie_utils.Tpo -c trie_utils.c -fPIC -DPIC -o .libs/libpostal_la-trie_utils.o trie_utils.c: In function ‘trie_new_from_cstring_array_sorted’: trie_utils.c:55:14: warning: variable ‘i’ set but not used [-Wunused-but-set-variable] uint32_t i; ^ trie_utils.c: In function ‘trie_new_from_cstring_array’: trie_utils.c:86:14: warning: variable ‘i’ set but not used [-Wunused-but-set-variable] uint32_t i; ^ trie_utils.c:94:14: warning: ‘next_id’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (!trie_add(trie, key, next_id++)) { ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-trie_utils.lo -MD -MP -MF .deps/libpostal_la-trie_utils.Tpo -c trie_utils.c -o libpostal_la-trie_utils.o >/dev/null 2>&1 mv -f .deps/libpostal_la-trie_utils.Tpo .deps/libpostal_la-trie_utils.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-string_utils.lo -MD -MP -MF .deps/libpostal_la-string_utils.Tpo -c -o libpostal_la-string_utils.lo test -f 'string_utils.c' || echo './'string_utils.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-string_utils.lo -MD -MP -MF .deps/libpostal_la-string_utils.Tpo -c string_utils.c -fPIC -DPIC -o .libs/libpostal_la-string_utils.o string_utils.c: In function ‘utf8_reversed_string’: string_utils.c:193:18: warning: variable ‘remaining’ set but not used [-Wunused-but-set-variable] ssize_t len, remaining; ^ string_utils.c: In function ‘unicode_codepoints’: string_utils.c:383:13: warning: unused variable ‘num_utf8_chars’ [-Wunused-variable] ssize_t num_utf8_chars = 0; ^ string_utils.c: In function ‘utf8_compare_case_insensitive’: string_utils.c:503:85: warning: unused parameter ‘len’ [-Wunused-parameter] inline int utf8_compare_case_insensitive(const char str1, const char str2, size_t len) { ^ string_utils.c: In function ‘utf8_common_prefix_len’: string_utils.c:519:12: warning: unused variable ‘remaining’ [-Wunused-variable] size_t remaining = len; ^ string_utils.c: In function ‘string_is_digit’: string_utils.c:678:10: warning: unused variable ‘ignorable’ [-Wunused-variable] bool ignorable = true; ^ string_utils.c: In function ‘string_is_ignorable’: string_utils.c:704:10: warning: unused variable ‘ignorable’ [-Wunused-variable] bool ignorable = true; ^ string_utils.c: In function ‘cstring_array_get_offset’: string_utils.c:6:34: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

define INVALID_INDEX(i, n) ((i) < 0 || (i) >= (n))

                              ^

string_utils.c:1241:9: note: in expansion of macro ‘INVALID_INDEX’ if (INVALID_INDEX(i, self->indices->n)) { ^ string_utils.c: In function ‘cstring_array_token_length’: string_utils.c:6:34: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

define INVALID_INDEX(i, n) ((i) < 0 || (i) >= (n))

                              ^

string_utils.c:1254:9: note: in expansion of macro ‘INVALID_INDEX’ if (INVALID_INDEX(i, self->indices->n)) { ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-string_utils.lo -MD -MP -MF .deps/libpostal_la-string_utils.Tpo -c string_utils.c -o libpostal_la-string_utils.o >/dev/null 2>&1 mv -f .deps/libpostal_la-string_utils.Tpo .deps/libpostal_la-string_utils.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-file_utils.lo -MD -MP -MF .deps/libpostal_la-file_utils.Tpo -c -o libpostal_la-file_utils.lo test -f 'file_utils.c' || echo './'file_utils.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-file_utils.lo -MD -MP -MF .deps/libpostal_la-file_utils.Tpo -c file_utils.c -fPIC -DPIC -o .libs/libpostal_la-file_utils.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-file_utils.lo -MD -MP -MF .deps/libpostal_la-file_utils.Tpo -c file_utils.c -o libpostal_la-file_utils.o >/dev/null 2>&1 mv -f .deps/libpostal_la-file_utils.Tpo .deps/libpostal_la-file_utils.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT utf8proc/libpostal_la-utf8proc.lo -MD -MP -MF utf8proc/.deps/libpostal_la-utf8proc.Tpo -c -o utf8proc/libpostal_la-utf8proc.lo test -f 'utf8proc/utf8proc.c' || echo './'utf8proc/utf8proc.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT utf8proc/libpostal_la-utf8proc.lo -MD -MP -MF utf8proc/.deps/libpostal_la-utf8proc.Tpo -c utf8proc/utf8proc.c -fPIC -DPIC -o utf8proc/.libs/libpostal_la-utf8proc.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT utf8proc/libpostal_la-utf8proc.lo -MD -MP -MF utf8proc/.deps/libpostal_la-utf8proc.Tpo -c utf8proc/utf8proc.c -o utf8proc/libpostal_la-utf8proc.o >/dev/null 2>&1 mv -f utf8proc/.deps/libpostal_la-utf8proc.Tpo utf8proc/.deps/libpostal_la-utf8proc.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-normalize.lo -MD -MP -MF .deps/libpostal_la-normalize.Tpo -c -o libpostal_la-normalize.lo test -f 'normalize.c' || echo './'normalize.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-normalize.lo -MD -MP -MF .deps/libpostal_la-normalize.Tpo -c normalize.c -fPIC -DPIC -o .libs/libpostal_la-normalize.o normalize.c: In function ‘normalize_string_languages’: normalize.c:269:22: warning: unused variable ‘key’ [-Wunused-variable] khiter_t key = kh_put(int_set, scripts, (khint_t)script, &ret); ^ normalize.c:208:11: warning: unused variable ‘numex_replaced’ [-Wunused-variable] char numex_replaced = NULL; ^ normalize.c: In function ‘numeric_starts_with_alpha’: normalize.c:374:14: warning: unused variable ‘is_hyphen’ [-Wunused-variable] bool is_hyphen = utf8_is_hyphen(ch); ^ normalize.c:367:10: warning: unused variable ‘append_char’ [-Wunused-variable] bool append_char = true; ^ normalize.c: In function ‘add_normalized_token’: normalize.c:406:17: warning: variable ‘next_char_len’ set but not used [-Wunused-but-set-variable] ssize_t next_char_len; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-normalize.lo -MD -MP -MF .deps/libpostal_la-normalize.Tpo -c normalize.c -o libpostal_la-normalize.o >/dev/null 2>&1 mv -f .deps/libpostal_la-normalize.Tpo .deps/libpostal_la-normalize.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-numex.lo -MD -MP -MF .deps/libpostal_la-numex.Tpo -c -o libpostal_la-numex.lo test -f 'numex.c' || echo './'numex.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-numex.lo -MD -MP -MF .deps/libpostal_la-numex.Tpo -c numex.c -fPIC -DPIC -o .libs/libpostal_la-numex.o numex.c: In function ‘convert_numeric_expressions’: numex.c:795:18: warning: unused variable ‘rule_index’ [-Wunused-variable] uint32_t rule_index = phrase.data; ^ numex.c:705:17: warning: unused variable ‘number_str’ [-Wunused-variable] char_array number_str = NULL; ^ numex.c:697:10: warning: unused variable ‘advance_state’ [-Wunused-variable] bool advance_state = true; ^ numex.c:694:19: warning: unused variable ‘ch’ [-Wunused-variable] unsigned char ch = '\0'; ^ numex.c: In function ‘get_ordinal_namespace_prefix’: numex.c:968:10: warning: unused variable ‘whole_tokens_only’ [-Wunused-variable] bool whole_tokens_only = language->whole_tokens_only; ^ numex.c: In function ‘possible_ordinal_digit_len’: numex.c:1063:10: warning: unused variable ‘ignorable’ [-Wunused-variable] bool ignorable = true; ^ numex.c: In function ‘convert_numeric_expressions’: numex.c:923:17: warning: ‘stopword_phrase.start’ may be used uninitialized in this function [-Wmaybe-uninitialized] idx = stopword_phrase.start; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-numex.lo -MD -MP -MF .deps/libpostal_la-numex.Tpo -c numex.c -o libpostal_la-numex.o >/dev/null 2>&1 mv -f .deps/libpostal_la-numex.Tpo .deps/libpostal_la-numex.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-features.lo -MD -MP -MF .deps/libpostal_la-features.Tpo -c -o libpostal_la-features.lo test -f 'features.c' || echo './'features.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-features.lo -MD -MP -MF .deps/libpostal_la-features.Tpo -c features.c -fPIC -DPIC -o .libs/libpostal_la-features.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-features.lo -MD -MP -MF .deps/libpostal_la-features.Tpo -c features.c -o libpostal_la-features.o >/dev/null 2>&1 mv -f .deps/libpostal_la-features.Tpo .deps/libpostal_la-features.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-unicode_scripts.lo -MD -MP -MF .deps/libpostal_la-unicode_scripts.Tpo -c -o libpostal_la-unicode_scripts.lo test -f 'unicode_scripts.c' || echo './'unicode_scripts.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-unicode_scripts.lo -MD -MP -MF .deps/libpostal_la-unicode_scripts.Tpo -c unicode_scripts.c -fPIC -DPIC -o .libs/libpostal_la-unicode_scripts.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-unicode_scripts.lo -MD -MP -MF .deps/libpostal_la-unicode_scripts.Tpo -c unicode_scripts.c -o libpostal_la-unicode_scripts.o >/dev/null 2>&1 mv -f .deps/libpostal_la-unicode_scripts.Tpo .deps/libpostal_la-unicode_scripts.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-address_parser.lo -MD -MP -MF .deps/libpostal_la-address_parser.Tpo -c -o libpostal_la-address_parser.lo test -f 'address_parser.c' || echo './'address_parser.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-address_parser.lo -MD -MP -MF .deps/libpostal_la-address_parser.Tpo -c address_parser.c -fPIC -DPIC -o .libs/libpostal_la-address_parser.o In file included from sparse_matrix.h:46:0, from averaged_perceptron.h:27, from address_parser.h:52, from address_parser.c:1: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ address_parser.c: In function ‘word_vocab_frequency’: address_parser.c:349:10: warning: unused variable ‘has_key’ [-Wunused-variable] bool has_key = trie_get_data(parser->vocab, word, &count); ^ In file included from address_parser.c:1:0: address_parser.c: In function ‘address_parser_normalize_phrase_token’: address_parser.h:66:125: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]

define ADDRESS_PARSER_NORMALIZE_TOKEN_OPTIONS NORMALIZE_TOKEN_DELETE_FINAL_PERIOD | NORMALIZE_TOKEN_DELETE_ACRONYM_PERIODS | NORMALIZE_TOKEN_REPLACE_DIGITS

                                                                                                                         ^

address_parser.h:67:54: note: in expansion of macro ‘ADDRESS_PARSER_NORMALIZE_TOKEN_OPTIONS’

define ADDRESS_PARSER_NORMALIZE_ADMIN_TOKEN_OPTIONS ADDRESS_PARSER_NORMALIZE_TOKEN_OPTIONS ^ NORMALIZE_TOKEN_REPLACE_DIGITS

                                                  ^

address_parser.c:358:40: note: in expansion of macro ‘ADDRESS_PARSER_NORMALIZE_ADMIN_TOKEN_OPTIONS’ normalize_token(array, str, token, ADDRESS_PARSER_NORMALIZE_ADMIN_TOKEN_OPTIONS); ^ address_parser.c: In function ‘address_parser_context_fill’: address_parser.c:816:10: warning: unused variable ‘have_postal_code_phrases’ [-Wunused-variable] bool have_postal_code_phrases = trie_search_tokens_with_phrases(parser->postal_codes, normalized_str_admin, normalized_admin_tokens, &postal_code_phrases); ^ address_parser.c:798:10: warning: unused variable ‘have_component_phrases’ [-Wunused-variable] bool have_component_phrases = trie_search_tokens_with_phrases(parser->phrases, normalized_str_admin, normalized_admin_tokens, &component_phrases); ^ address_parser.c:762:10: warning: unused variable ‘have_address_phrases’ [-Wunused-variable] bool have_address_phrases = search_address_dictionaries_tokens_with_phrases(normalized_str, normalized_tokens, NULL, &address_dictionary_phrases); ^ address_parser.c:690:14: warning: unused variable ‘phrase’ [-Wunused-variable] phrase_t phrase; ^ address_parser.c:689:11: warning: variable ‘word’ set but not used [-Wunused-but-set-variable] char word; ^ address_parser.c: In function ‘phrase_prefix’: address_parser.c:835:40: warning: unused parameter ‘len’ [-Wunused-parameter] char phrase_prefix(char word, size_t len, phrase_t prefix_phrase, char_array prefix_phrase_array) { ^ address_parser.c: In function ‘word_or_phrase_at_index’: address_parser.c:925:13: warning: unused variable ‘token’ [-Wunused-variable] token_t token = tokenized->tokens->a[i]; ^ address_parser.c:883:74: warning: unused parameter ‘parser’ [-Wunused-parameter] static address_parser_phrase_t word_or_phrase_at_index(address_parser_t parser, tokenized_string_t tokenized, address_parser_context_t context, uint32_t i, bool lon ^ address_parser.c: In function ‘phrase_index’: address_parser.c:973:13: warning: unused variable ‘membership’ [-Wunused-variable] int64_t membership; ^ address_parser.c: In function ‘next_numeric_token_index’: address_parser.c:1001:14: warning: unused variable ‘phrase’ [-Wunused-variable] phrase_t phrase; ^ address_parser.c: In function ‘add_ngram_features’: address_parser.c:1046:14: warning: variable ‘idx’ set but not used [-Wunused-but-set-variable] uint32_t idx; ^ address_parser.c: In function ‘address_parser_features’: address_parser.c:1285:18: warning: unused variable ‘k’ [-Wunused-variable] khiter_t k; ^ address_parser.c:1283:18: warning: unused variable ‘postal_code_context’ [-Wunused-variable] uint64_t postal_code_context; ^ address_parser.c:1384:18: warning: variable ‘ngrams_added’ set but not used [-Wunused-but-set-variable] bool ngrams_added = false; ^ address_parser.c:1575:22: warning: unused variable ‘right_context_street’ [-Wunused-variable] bool right_context_street = false; ^ address_parser.c:1574:22: warning: unused variable ‘right_context_name’ [-Wunused-variable] bool right_context_name = false; ^ address_parser.c:1568:26: warning: unused variable ‘suffix_phrase’ [-Wunused-variable] phrase_t suffix_phrase = context->suffix_phrases->a[right_idx]; ^ address_parser.c:1510:16: warning: variable ‘next_word_len’ set but not used [-Wunused-but-set-variable] size_t next_word_len = 1; ^ address_parser.c:1329:10: warning: variable ‘known_suffix’ set but not used [-Wunused-but-set-variable] bool known_suffix = false; ^ address_parser.c:1328:10: warning: variable ‘known_prefix’ set but not used [-Wunused-but-set-variable] bool known_prefix = false; ^ address_parser.c:1326:10: warning: variable ‘is_unknown’ set but not used [-Wunused-but-set-variable] bool is_unknown = false; ^ address_parser.c:1109:19: warning: unused variable ‘separators’ [-Wunused-variable] uint32_array separators = context->separators; ^ address_parser.c:1099:11: warning: unused variable ‘country’ [-Wunused-variable] char country = context->country; ^ address_parser.c:1098:11: warning: unused variable ‘language’ [-Wunused-variable] char language = context->language; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-address_parser.lo -MD -MP -MF .deps/libpostal_la-address_parser.Tpo -c address_parser.c -o libpostal_la-address_parser.o >/dev/null 2>&1 mv -f .deps/libpostal_la-address_parser.Tpo .deps/libpostal_la-address_parser.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-address_parser_io.lo -MD -MP -MF .deps/libpostal_la-address_parser_io.Tpo -c -o libpostal_la-address_parser_io.lo test -f 'address_parser_io.c' || echo './'address_parser_io.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-address_parser_io.lo -MD -MP -MF .deps/libpostal_la-address_parser_io.Tpo -c address_parser_io.c -fPIC -DPIC -o .libs/libpostal_la-address_parser_io.o In file included from sparse_matrix.h:46:0, from averaged_perceptron.h:27, from address_parser.h:52, from address_parser_io.h:8, from address_parser_io.c:1: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ In file included from file_utils.h:12:0, from sparse_matrix.h:45, from averaged_perceptron.h:27, from address_parser.h:52, from address_parser_io.h:8, from address_parser_io.c:1: address_parser_io.c: In function ‘address_parser_data_set_tokenize_line’: address_parser_io.c:105:16: warning: unused variable ‘pair_len’ [-Wunused-variable] size_t pair_len = strlen(str); ^ string_utils.h:251:9: note: in definition of macro ‘cstring_array_foreach’ code; \ ^ address_parser_io.c:99:12: warning: unused variable ‘num_pairs’ [-Wunused-variable] size_t num_pairs = cstring_array_num_strings(pairs); ^ address_parser_io.c: In function ‘address_parser_data_set_next’: address_parser_io.c:246:12: warning: unused variable ‘len’ [-Wunused-variable] size_t len = strlen(normalized); ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-address_parser_io.lo -MD -MP -MF .deps/libpostal_la-address_parser_io.Tpo -c address_parser_io.c -o libpostal_la-address_parser_io.o >/dev/null 2>&1 mv -f .deps/libpostal_la-address_parser_io.Tpo .deps/libpostal_la-address_parser_io.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-averaged_perceptron.lo -MD -MP -MF .deps/libpostal_la-averaged_perceptron.Tpo -c -o libpostal_la-averaged_perceptron.lo test -f 'averaged_perceptron.c' || echo './'averaged_perceptron.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-averaged_perceptron.lo -MD -MP -MF .deps/libpostal_la-averaged_perceptron.Tpo -c averaged_perceptron.c -fPIC -DPIC -o .libs/libpostal_la-averaged_perceptron.o In file included from sparse_matrix.h:46:0, from averaged_perceptron.h:27, from averaged_perceptron.c:1: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ averaged_perceptron.c: In function ‘averaged_perceptron_predict_scores’: averaged_perceptron.c:16:14: warning: variable ‘i’ set but not used [-Wunused-but-set-variable] uint32_t i = 0; ^ averaged_perceptron.c: In function ‘averaged_perceptron_predict_scores_counts’: averaged_perceptron.c:45:14: warning: unused variable ‘i’ [-Wunused-variable] uint32_t i = 0; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-averaged_perceptron.lo -MD -MP -MF .deps/libpostal_la-averaged_perceptron.Tpo -c averaged_perceptron.c -o libpostal_la-averaged_perceptron.o >/dev/null 2>&1 mv -f .deps/libpostal_la-averaged_perceptron.Tpo .deps/libpostal_la-averaged_perceptron.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-crf.lo -MD -MP -MF .deps/libpostal_la-crf.Tpo -c -o libpostal_la-crf.lo test -f 'crf.c' || echo './'crf.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-crf.lo -MD -MP -MF .deps/libpostal_la-crf.Tpo -c crf.c -fPIC -DPIC -o .libs/libpostal_la-crf.o In file included from crf_context.h:20:0, from crf.h:20, from crf.c:1: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-crf.lo -MD -MP -MF .deps/libpostal_la-crf.Tpo -c crf.c -o libpostal_la-crf.o >/dev/null 2>&1 mv -f .deps/libpostal_la-crf.Tpo .deps/libpostal_la-crf.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-crf_context.lo -MD -MP -MF .deps/libpostal_la-crf_context.Tpo -c -o libpostal_la-crf_context.lo test -f 'crf_context.c' || echo './'crf_context.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-crf_context.lo -MD -MP -MF .deps/libpostal_la-crf_context.Tpo -c crf_context.c -fPIC -DPIC -o .libs/libpostal_la-crf_context.o In file included from crf_context.h:20:0, from crf_context.c:1: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ crf_context.c: In function ‘crf_context_reset’: crf_context.c:238:18: warning: unused variable ‘L’ [-Wunused-variable] const size_t L = context->num_labels; ^ crf_context.c:237:18: warning: unused variable ‘T’ [-Wunused-variable] const size_t T = context->num_items; ^ crf_context.c: In function ‘crf_context_alpha_score’: crf_context.c:366:23: warning: implicit declaration of function ‘double_equals’ [-Wimplicit-function-declaration] double scale_t = !double_equals(sum, 0.) ? 1. / sum : 1.; ^ crf_context.c: In function ‘crf_context_score’: crf_context.c:539:19: warning: unused variable ‘cur’ [-Wunused-variable] const double *cur = NULL; ^ crf_context.c:537:18: warning: unused variable ‘L’ [-Wunused-variable] const size_t L = self->num_labels; ^ crf_context.c: At top level: crf_context.c:295:12: warning: ‘double_matrix_get_row’ is static but used in inline function ‘exp_state_trans_score_all’ which is not static return double_matrix_get_row(self->exp_state_trans, t); ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-crf_context.lo -MD -MP -MF .deps/libpostal_la-crf_context.Tpo -c crf_context.c -o libpostal_la-crf_context.o >/dev/null 2>&1 mv -f .deps/libpostal_la-crf_context.Tpo .deps/libpostal_la-crf_context.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-sparse_matrix.lo -MD -MP -MF .deps/libpostal_la-sparse_matrix.Tpo -c -o libpostal_la-sparse_matrix.lo test -f 'sparse_matrix.c' || echo './'sparse_matrix.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-sparse_matrix.lo -MD -MP -MF .deps/libpostal_la-sparse_matrix.Tpo -c sparse_matrix.c -fPIC -DPIC -o .libs/libpostal_la-sparse_matrix.o In file included from sparse_matrix.h:46:0, from sparse_matrix.c:1: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ sparse_matrix.c: In function ‘sparse_matrix_sort_indices’: sparse_matrix.c:95:14: warning: variable ‘row’ set but not used [-Wunused-but-set-variable] uint32_t row, row_start, row_len, i; ^ sparse_matrix.c: In function ‘sparse_matrix_dot_vector’: sparse_matrix.c:119:12: warning: unused variable ‘val’ [-Wunused-variable] double val; ^ sparse_matrix.c: In function ‘sparse_matrix_sum_cols’: sparse_matrix.c:159:12: warning: unused variable ‘val’ [-Wunused-variable] double val; ^ sparse_matrix.c: In function ‘sparse_matrix_rows_sum_cols’: sparse_matrix.c:178:15: warning: unused variable ‘indices’ [-Wunused-variable] uint32_t indices = self->indices->a; ^ sparse_matrix.c: In function ‘sparse_matrix_sum_all_rows’: sparse_matrix.c:201:12: warning: unused variable ‘val’ [-Wunused-variable] double val; ^ sparse_matrix.c:200:14: warning: variable ‘row’ set but not used [-Wunused-but-set-variable] uint32_t row, row_start, row_len; ^ sparse_matrix.c: In function ‘sparse_matrix_sum_rows’: sparse_matrix.c:217:15: warning: unused variable ‘indices’ [-Wunused-variable] uint32_t indices = self->indices->a; ^ sparse_matrix.c: In function ‘sparse_matrix_dot_dense’: sparse_matrix.c:246:12: warning: unused variable ‘m2_rows’ [-Wunused-variable] size_t m2_rows = matrix->m; ^ sparse_matrix.c:244:12: warning: unused variable ‘m1_cols’ [-Wunused-variable] size_t m1_cols = self->n; ^ sparse_matrix.c:243:12: warning: unused variable ‘m1_rows’ [-Wunused-variable] size_t m1_rows = self->m; ^ sparse_matrix.c:239:15: warning: unused variable ‘indptr’ [-Wunused-variable] uint32_t indptr = self->indptr->a; ^ sparse_matrix.c: In function ‘sparse_matrix_dot_sparse’: sparse_matrix.c:280:12: warning: unused variable ‘m1_cols’ [-Wunused-variable] size_t m1_cols = self->n; ^ sparse_matrix.c:279:12: warning: unused variable ‘m1_rows’ [-Wunused-variable] size_t m1_rows = self->m; ^ sparse_matrix.c:275:15: warning: unused variable ‘indptr’ [-Wunused-variable] uint32_t indptr = self->indptr->a; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-sparse_matrix.lo -MD -MP -MF .deps/libpostal_la-sparse_matrix.Tpo -c sparse_matrix.c -o libpostal_la-sparse_matrix.o >/dev/null 2>&1 mv -f .deps/libpostal_la-sparse_matrix.Tpo .deps/libpostal_la-sparse_matrix.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-averaged_perceptron_tagger.lo -MD -MP -MF .deps/libpostal_la-averaged_perceptron_tagger.Tpo -c -o libpostal_la-averaged_perceptron_tagger.lo test -f 'averaged_perceptron_tagger.c' || echo './'averaged_perceptron_tagger.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-averaged_perceptron_tagger.lo -MD -MP -MF .deps/libpostal_la-averaged_perceptron_tagger.Tpo -c averaged_perceptron_tagger.c -fPIC -DPIC -o .libs/libpostal_la-averaged_perceptron_tagger.o In file included from sparse_matrix.h:46:0, from averaged_perceptron.h:27, from averaged_perceptron_tagger.h:20, from averaged_perceptron_tagger.c:1: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-averaged_perceptron_tagger.lo -MD -MP -MF .deps/libpostal_la-averaged_perceptron_tagger.Tpo -c averaged_perceptron_tagger.c -o libpostal_la-averaged_perceptron_tagger.o >/dev/null 2>&1 mv -f .deps/libpostal_la-averaged_perceptron_tagger.Tpo .deps/libpostal_la-averaged_perceptron_tagger.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-graph.lo -MD -MP -MF .deps/libpostal_la-graph.Tpo -c -o libpostal_la-graph.lo test -f 'graph.c' || echo './'graph.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-graph.lo -MD -MP -MF .deps/libpostal_la-graph.Tpo -c graph.c -fPIC -DPIC -o .libs/libpostal_la-graph.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-graph.lo -MD -MP -MF .deps/libpostal_la-graph.Tpo -c graph.c -o libpostal_la-graph.o >/dev/null 2>&1 mv -f .deps/libpostal_la-graph.Tpo .deps/libpostal_la-graph.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-graph_builder.lo -MD -MP -MF .deps/libpostal_la-graph_builder.Tpo -c -o libpostal_la-graph_builder.lo test -f 'graph_builder.c' || echo './'graph_builder.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-graph_builder.lo -MD -MP -MF .deps/libpostal_la-graph_builder.Tpo -c graph_builder.c -fPIC -DPIC -o .libs/libpostal_la-graph_builder.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-graph_builder.lo -MD -MP -MF .deps/libpostal_la-graph_builder.Tpo -c graph_builder.c -o libpostal_la-graph_builder.o >/dev/null 2>&1 mv -f .deps/libpostal_la-graph_builder.Tpo .deps/libpostal_la-graph_builder.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-language_classifier.lo -MD -MP -MF .deps/libpostal_la-language_classifier.Tpo -c -o libpostal_la-language_classifier.lo test -f 'language_classifier.c' || echo './'language_classifier.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-language_classifier.lo -MD -MP -MF .deps/libpostal_la-language_classifier.Tpo -c language_classifier.c -fPIC -DPIC -o .libs/libpostal_la-language_classifier.o In file included from logistic_regression.h:26:0, from language_classifier.h:11, from language_classifier.c:1: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-language_classifier.lo -MD -MP -MF .deps/libpostal_la-language_classifier.Tpo -c language_classifier.c -o libpostal_la-language_classifier.o >/dev/null 2>&1 mv -f .deps/libpostal_la-language_classifier.Tpo .deps/libpostal_la-language_classifier.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-language_features.lo -MD -MP -MF .deps/libpostal_la-language_features.Tpo -c -o libpostal_la-language_features.lo test -f 'language_features.c' || echo './'language_features.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-language_features.lo -MD -MP -MF .deps/libpostal_la-language_features.Tpo -c language_features.c -fPIC -DPIC -o .libs/libpostal_la-language_features.o In file included from logistic_regression.h:26:0, from language_classifier.h:11, from language_features.c:2: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ language_features.c: In function ‘add_ngram_features’: language_features.c:55:11: warning: unused variable ‘feature_namespace’ [-Wunused-variable] char feature_namespace; ^ language_features.c: In function ‘add_script_feature’: language_features.c:216:69: warning: unused parameter ‘prefix’ [-Wunused-parameter] static void add_script_feature(khash_t(str_double) features, char prefix, char_array feature_array, script_t script) { ^ language_features.c: In function ‘extract_language_features’: language_features.c:275:19: warning: unused variable ‘phrase’ [-Wunused-variable] char *phrase = NULL; ^ language_features.c:274:21: warning: unused variable ‘prev_token’ [-Wunused-variable] token_t prev_token; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-language_features.lo -MD -MP -MF .deps/libpostal_la-language_features.Tpo -c language_features.c -o libpostal_la-language_features.o >/dev/null 2>&1 mv -f .deps/libpostal_la-language_features.Tpo .deps/libpostal_la-language_features.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-logistic_regression.lo -MD -MP -MF .deps/libpostal_la-logistic_regression.Tpo -c -o libpostal_la-logistic_regression.lo test -f 'logistic_regression.c' || echo './'logistic_regression.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-logistic_regression.lo -MD -MP -MF .deps/libpostal_la-logistic_regression.Tpo -c logistic_regression.c -fPIC -DPIC -o .libs/libpostal_la-logistic_regression.o In file included from logistic_regression.h:26:0, from logistic_regression.c:3: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ logistic_regression.c: In function ‘logistic_regression_cost_function’: logistic_regression.c:63:13: warning: unused variable ‘expected_values’ [-Wunused-variable] double expected_values = p_y->values; ^ logistic_regression.c:45:12: warning: unused variable ‘n’ [-Wunused-variable] size_t n = x->n; ^ logistic_regression.c: In function ‘logistic_regression_gradient’: logistic_regression.c:105:13: warning: unused variable ‘gradient_values’ [-Wunused-variable] double gradient_values = gradient->values; ^ logistic_regression.c:104:13: warning: unused variable ‘predicted_values’ [-Wunused-variable] double predicted_values = p_y->values; ^ logistic_regression.c:103:13: warning: unused variable ‘theta_values’ [-Wunused-variable] double theta_values = theta->values; ^ logistic_regression.c:95:12: warning: unused variable ‘residual’ [-Wunused-variable] double residual; ^ logistic_regression.c:93:14: warning: unused variable ‘i’ [-Wunused-variable] uint32_t i, j; ^ logistic_regression.c:91:12: warning: unused variable ‘num_features’ [-Wunused-variable] size_t num_features = n; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-logistic_regression.lo -MD -MP -MF .deps/libpostal_la-logistic_regression.Tpo -c logistic_regression.c -o libpostal_la-logistic_regression.o >/dev/null 2>&1 mv -f .deps/libpostal_la-logistic_regression.Tpo .deps/libpostal_la-logistic_regression.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-logistic.lo -MD -MP -MF .deps/libpostal_la-logistic.Tpo -c -o libpostal_la-logistic.lo test -f 'logistic.c' || echo './'logistic.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-logistic.lo -MD -MP -MF .deps/libpostal_la-logistic.Tpo -c logistic.c -fPIC -DPIC -o .libs/libpostal_la-logistic.o In file included from logistic.h:7:0, from logistic.c:1: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ logistic.c: In function ‘softmax_vector’: logistic.c:16:12: warning: unused variable ‘sum’ [-Wunused-variable] double sum = 0.0; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-logistic.lo -MD -MP -MF .deps/libpostal_la-logistic.Tpo -c logistic.c -o libpostal_la-logistic.o >/dev/null 2>&1 mv -f .deps/libpostal_la-logistic.Tpo .deps/libpostal_la-logistic.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-minibatch.lo -MD -MP -MF .deps/libpostal_la-minibatch.Tpo -c -o libpostal_la-minibatch.lo test -f 'minibatch.c' || echo './'minibatch.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-minibatch.lo -MD -MP -MF .deps/libpostal_la-minibatch.Tpo -c minibatch.c -fPIC -DPIC -o .libs/libpostal_la-minibatch.o In file included from sparse_matrix.h:46:0, from minibatch.h:9, from minibatch.c:1: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ minibatch.c: In function ‘count_features_minibatch’: minibatch.c:12:12: warning: unused variable ‘m’ [-Wunused-variable] size_t m = minibatch->n; ^ minibatch.c:8:14: warning: unused variable ‘feature_id’ [-Wunused-variable] uint32_t feature_id; ^ minibatch.c: In function ‘count_labels_minibatch’: minibatch.c:30:14: warning: variable ‘i’ set but not used [-Wunused-but-set-variable] uint32_t i; ^ minibatch.c: In function ‘select_features_threshold’: minibatch.c:53:17: warning: unused variable ‘feature’ [-Wunused-variable] const char feature; ^ minibatch.c: In function ‘select_labels_threshold’: minibatch.c:102:17: warning: unused variable ‘label’ [-Wunused-variable] const char label; ^ minibatch.c: In function ‘label_vector’: minibatch.c:197:14: warning: variable ‘i’ set but not used [-Wunused-but-set-variable] uint32_t i; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-minibatch.lo -MD -MP -MF .deps/libpostal_la-minibatch.Tpo -c minibatch.c -o libpostal_la-minibatch.o >/dev/null 2>&1 mv -f .deps/libpostal_la-minibatch.Tpo .deps/libpostal_la-minibatch.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-float_utils.lo -MD -MP -MF .deps/libpostal_la-float_utils.Tpo -c -o libpostal_la-float_utils.lo test -f 'float_utils.c' || echo './'float_utils.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-float_utils.lo -MD -MP -MF .deps/libpostal_la-float_utils.Tpo -c float_utils.c -fPIC -DPIC -o .libs/libpostal_la-float_utils.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-float_utils.lo -MD -MP -MF .deps/libpostal_la-float_utils.Tpo -c float_utils.c -o libpostal_la-float_utils.o >/dev/null 2>&1 mv -f .deps/libpostal_la-float_utils.Tpo .deps/libpostal_la-float_utils.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-ngrams.lo -MD -MP -MF .deps/libpostal_la-ngrams.Tpo -c -o libpostal_la-ngrams.lo test -f 'ngrams.c' || echo './'ngrams.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-ngrams.lo -MD -MP -MF .deps/libpostal_la-ngrams.Tpo -c ngrams.c -fPIC -DPIC -o .libs/libpostal_la-ngrams.o ngrams.c: In function ‘add_ngrams’: ngrams.c:37:22: warning: unused variable ‘token_index’ [-Wunused-variable] uint32_t token_index = cstring_array_start_token(grams); ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-ngrams.lo -MD -MP -MF .deps/libpostal_la-ngrams.Tpo -c ngrams.c -o libpostal_la-ngrams.o >/dev/null 2>&1 mv -f .deps/libpostal_la-ngrams.Tpo .deps/libpostal_la-ngrams.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-place.lo -MD -MP -MF .deps/libpostal_la-place.Tpo -c -o libpostal_la-place.lo test -f 'place.c' || echo './'place.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-place.lo -MD -MP -MF .deps/libpostal_la-place.Tpo -c place.c -fPIC -DPIC -o .libs/libpostal_la-place.o In file included from logistic_regression.h:26:0, from language_classifier.h:11, from place.h:8, from place.c:1: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-place.lo -MD -MP -MF .deps/libpostal_la-place.Tpo -c place.c -o libpostal_la-place.o >/dev/null 2>&1 mv -f .deps/libpostal_la-place.Tpo .deps/libpostal_la-place.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-near_dupe.lo -MD -MP -MF .deps/libpostal_la-near_dupe.Tpo -c -o libpostal_la-near_dupe.lo test -f 'near_dupe.c' || echo './'near_dupe.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-near_dupe.lo -MD -MP -MF .deps/libpostal_la-near_dupe.Tpo -c near_dupe.c -fPIC -DPIC -o .libs/libpostal_la-near_dupe.o In file included from logistic_regression.h:26:0, from language_classifier.h:11, from place.h:8, from near_dupe.c:14: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ near_dupe.c: In function ‘add_quadgrams_or_string_to_array_if_unique’: near_dupe.c:272:16: warning: variable ‘i’ set but not used [-Wunused-but-set-variable] size_t i; ^ near_dupe.c: In function ‘name_word_hashes’: near_dupe.c:435:18: warning: variable ‘any_existing_acronyms’ set but not used [-Wunused-but-set-variable] bool any_existing_acronyms = false; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-near_dupe.lo -MD -MP -MF .deps/libpostal_la-near_dupe.Tpo -c near_dupe.c -o libpostal_la-near_dupe.o >/dev/null 2>&1 mv -f .deps/libpostal_la-near_dupe.Tpo .deps/libpostal_la-near_dupe.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-double_metaphone.lo -MD -MP -MF .deps/libpostal_la-double_metaphone.Tpo -c -o libpostal_la-double_metaphone.lo test -f 'double_metaphone.c' || echo './'double_metaphone.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-double_metaphone.lo -MD -MP -MF .deps/libpostal_la-double_metaphone.Tpo -c double_metaphone.c -fPIC -DPIC -o .libs/libpostal_la-double_metaphone.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-double_metaphone.lo -MD -MP -MF .deps/libpostal_la-double_metaphone.Tpo -c double_metaphone.c -o libpostal_la-double_metaphone.o >/dev/null 2>&1 mv -f .deps/libpostal_la-double_metaphone.Tpo .deps/libpostal_la-double_metaphone.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT geohash/libpostal_la-geohash.lo -MD -MP -MF geohash/.deps/libpostal_la-geohash.Tpo -c -o geohash/libpostal_la-geohash.lo test -f 'geohash/geohash.c' || echo './'geohash/geohash.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT geohash/libpostal_la-geohash.lo -MD -MP -MF geohash/.deps/libpostal_la-geohash.Tpo -c geohash/geohash.c -fPIC -DPIC -o geohash/.libs/libpostal_la-geohash.o geohash/geohash.c: In function ‘interleaved_to_geohashstr’: geohash/geohash.c:154:68: warning: unused parameter ‘length’ [-Wunused-parameter] static int interleaved_to_geohashstr(uint16_t interleaved, size_t length, char dst, size_t dst_length) { ^ geohash/geohash.c: In function ‘geohash_neighbors’: geohash/geohash.c:478:57: warning: unused parameter ‘dst_length’ [-Wunused-parameter] int geohash_neighbors(char hashcode, char dst, size_t dst_length, int *string_count) { ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT geohash/libpostal_la-geohash.lo -MD -MP -MF geohash/.deps/libpostal_la-geohash.Tpo -c geohash/geohash.c -o geohash/libpostal_la-geohash.o >/dev/null 2>&1 mv -f geohash/.deps/libpostal_la-geohash.Tpo geohash/.deps/libpostal_la-geohash.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-dedupe.lo -MD -MP -MF .deps/libpostal_la-dedupe.Tpo -c -o libpostal_la-dedupe.lo test -f 'dedupe.c' || echo './'dedupe.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-dedupe.lo -MD -MP -MF .deps/libpostal_la-dedupe.Tpo -c dedupe.c -fPIC -DPIC -o .libs/libpostal_la-dedupe.o In file included from sparse_matrix.h:46:0, from averaged_perceptron.h:27, from address_parser.h:52, from dedupe.c:2: matrix.h:19:2: warning: #warning "No CBLAS" [-Wcpp]

warning "No CBLAS"

^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-dedupe.lo -MD -MP -MF .deps/libpostal_la-dedupe.Tpo -c dedupe.c -o libpostal_la-dedupe.o >/dev/null 2>&1 mv -f .deps/libpostal_la-dedupe.Tpo .deps/libpostal_la-dedupe.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-string_similarity.lo -MD -MP -MF .deps/libpostal_la-string_similarity.Tpo -c -o libpostal_la-string_similarity.lo test -f 'string_similarity.c' || echo './'string_similarity.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-string_similarity.lo -MD -MP -MF .deps/libpostal_la-string_similarity.Tpo -c string_similarity.c -fPIC -DPIC -o .libs/libpostal_la-string_similarity.o string_similarity.c: In function ‘affine_gap_distance_unicode_costs’: string_similarity.c:124:16: warning: variable ‘min_at’ set but not used [-Wunused-but-set-variable] size_t min_at = 0; ^ string_similarity.c:122:17: warning: unused variable ‘match_at’ [-Wunused-variable] ssize_t match_at = -1; ^ string_similarity.c:101:10: warning: unused variable ‘in_gap’ [-Wunused-variable] bool in_gap = false; ^ string_similarity.c: In function ‘damerau_levenshtein_distance_unicode’: string_similarity.c:356:101: warning: unused parameter ‘replace_cost’ [-Wunused-parameter] ssize_t damerau_levenshtein_distance_unicode(uint32_array u1_array, uint32_array u2_array, size_t replace_cost) { ^ string_similarity.c: In function ‘jaro_distance_unicode’: string_similarity.c:454:12: warning: unused variable ‘i’ [-Wunused-variable] size_t i = 0; ^ string_similarity.c: In function ‘jaro_winkler_distance_unicode_prefix_threshold’: string_similarity.c:532:12: warning: unused variable ‘j’ [-Wunused-variable] double j; ^ string_similarity.c: In function ‘multi_word_token_alignments’: string_similarity.c:647:51: warning: pointer targets in passing argument 1 of ‘utf8_compare_len_case_insensitive’ differ in signedness [-Wpointer-sign] if (utf8_compare_len_case_insensitive(ptr1 + ti.offset + ti_pos, ptr2 + tj.offset, tj.len) == 0) { ^ In file included from file_utils.h:12:0, from trie.h:32, from trie_search.h:10, from string_similarity.h:8, from string_similarity.c:1: string_utils.h:82:5: note: expected ‘const char ’ but argument is of type ‘uint8_t {aka unsigned char }’ int utf8_compare_len_case_insensitive(const char str1, const char str2, size_t len); ^ string_similarity.c:647:78: warning: pointer targets in passing argument 2 of ‘utf8_compare_len_case_insensitive’ differ in signedness [-Wpointer-sign] if (utf8_compare_len_case_insensitive(ptr1 + ti.offset + ti_pos, ptr2 + tj.offset, tj.len) == 0) { ^ In file included from file_utils.h:12:0, from trie.h:32, from trie_search.h:10, from string_similarity.h:8, from string_similarity.c:1: string_utils.h:82:5: note: expected ‘const char ’ but argument is of type ‘uint8_t {aka unsigned char }’ int utf8_compare_len_case_insensitive(const char str1, const char str2, size_t len); ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-string_similarity.lo -MD -MP -MF .deps/libpostal_la-string_similarity.Tpo -c string_similarity.c -o libpostal_la-string_similarity.o >/dev/null 2>&1 mv -f .deps/libpostal_la-string_similarity.Tpo .deps/libpostal_la-string_similarity.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-acronyms.lo -MD -MP -MF .deps/libpostal_la-acronyms.Tpo -c -o libpostal_la-acronyms.lo test -f 'acronyms.c' || echo './'acronyms.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-acronyms.lo -MD -MP -MF .deps/libpostal_la-acronyms.Tpo -c acronyms.c -fPIC -DPIC -o .libs/libpostal_la-acronyms.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-acronyms.lo -MD -MP -MF .deps/libpostal_la-acronyms.Tpo -c acronyms.c -o libpostal_la-acronyms.o >/dev/null 2>&1 mv -f .deps/libpostal_la-acronyms.Tpo .deps/libpostal_la-acronyms.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-soft_tfidf.lo -MD -MP -MF .deps/libpostal_la-soft_tfidf.Tpo -c -o libpostal_la-soft_tfidf.lo test -f 'soft_tfidf.c' || echo './'soft_tfidf.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-soft_tfidf.lo -MD -MP -MF .deps/libpostal_la-soft_tfidf.Tpo -c soft_tfidf.c -fPIC -DPIC -o .libs/libpostal_la-soft_tfidf.o soft_tfidf.c: In function ‘phrases_have_same_canonical’: soft_tfidf.c:72:41: warning: unused parameter ‘num_tokens1’ [-Wunused-parameter] bool phrases_have_same_canonical(size_t num_tokens1, char tokens1, size_t num_tokens2, char tokens2, phrase_t match1, phrase_t match2, canonical_match_t response) ^ soft_tfidf.c:72:77: warning: unused parameter ‘num_tokens2’ [-Wunused-parameter] bool phrases_have_same_canonical(size_t num_tokens1, char tokens1, size_t num_tokens2, char tokens2, phrase_t match1, phrase_t match2, canonical_match_t response) ^ In file included from collections.h:8:0, from soft_tfidf.h:5, from soft_tfidf.c:1: soft_tfidf.c: In function ‘soft_tfidf_similarity_with_phrases_and_acronyms’: log/log.h:52:55: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 3 has type ‘uint32_t {aka unsigned int}’ [-Wformat=]

define log_debug(M, ...) do { if (0) fprintf(stderr, "\33[34mDEBUG\33[39m " M " \33[90m at %s (%s:%d) \33[39m\n", ##__VA_ARGS, func, FILE, LINE__); } whi

                                                   ^

soft_tfidf.c:302:9: note: in expansion of macro ‘log_debug’ log_debug("p1.len = %zu, i = %zu, p1.start = %zu\n", p1.len, i, p1.start); ^ log/log.h:52:55: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 5 has type ‘uint32_t {aka unsigned int}’ [-Wformat=]

define log_debug(M, ...) do { if (0) fprintf(stderr, "\33[34mDEBUG\33[39m " M " \33[90m at %s (%s:%d) \33[39m\n", ##__VA_ARGS, func, FILE, LINE__); } whi

                                                   ^

soft_tfidf.c:302:9: note: in expansion of macro ‘log_debug’ log_debug("p1.len = %zu, i = %zu, p1.start = %zu\n", p1.len, i, p1.start); ^ soft_tfidf.c:273:14: warning: unused variable ‘have_strict_abbreviation’ [-Wunused-variable] bool have_strict_abbreviation = false; ^ soft_tfidf.c:582:19: warning: ‘norm1_offset’ may be used uninitialized in this function [-Wmaybe-uninitialized] double norm = sqrt(double_array_sum_sq(token_scores1, num_tokens1) + norm1_offset) sqrt(double_array_sum_sq(token_scores2, num_tokens2) + norm2_offset); ^ soft_tfidf.c:582:90: warning: ‘norm2_offset’ may be used uninitialized in this function [-Wmaybe-uninitialized] double norm = sqrt(double_array_sum_sq(token_scores1, num_tokens1) + norm1_offset) sqrt(double_array_sum_sq(token_scores2, num_tokens2) + norm2_offset); ^ soft_tfidf.c:319:34: warning: ‘suffixes2’ may be used uninitialized in this function [-Wmaybe-uninitialized] ordinal_suffix_j = suffixes2[j]; ^ soft_tfidf.c:285:30: warning: ‘suffixes1’ may be used uninitialized in this function [-Wmaybe-uninitialized] ordinal_suffix_i = suffixes1[i]; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-soft_tfidf.lo -MD -MP -MF .deps/libpostal_la-soft_tfidf.Tpo -c soft_tfidf.c -o libpostal_la-soft_tfidf.o >/dev/null 2>&1 mv -f .deps/libpostal_la-soft_tfidf.Tpo .deps/libpostal_la-soft_tfidf.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-jaccard.lo -MD -MP -MF .deps/libpostal_la-jaccard.Tpo -c -o libpostal_la-jaccard.lo test -f 'jaccard.c' || echo './'jaccard.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-jaccard.lo -MD -MP -MF .deps/libpostal_la-jaccard.Tpo -c jaccard.c -fPIC -DPIC -o .libs/libpostal_la-jaccard.o jaccard.c: In function ‘jaccard_similarity_string_arrays’: jaccard.c:38:14: warning: variable ‘k’ set but not used [-Wunused-but-set-variable] khiter_t k; ^ libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-jaccard.lo -MD -MP -MF .deps/libpostal_la-jaccard.Tpo -c jaccard.c -o libpostal_la-jaccard.o >/dev/null 2>&1 mv -f .deps/libpostal_la-jaccard.Tpo .deps/libpostal_la-jaccard.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O0 -D LIBPOSTAL_EXPORTS -MT klib/libscanner_la-drand48.lo -MD -MP -MF klib/.deps/libscanner_la-drand48.Tpo -c -o klib/libscanner_la-drand48.lo test -f 'klib/drand48.c' || echo './'klib/drand48.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O0 -D LIBPOSTAL_EXPORTS -MT klib/libscanner_la-drand48.lo -MD -MP -MF klib/.deps/libscanner_la-drand48.Tpo -c klib/drand48.c -fPIC -DPIC -o klib/.libs/libscanner_la-drand48.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O0 -D LIBPOSTAL_EXPORTS -MT klib/libscanner_la-drand48.lo -MD -MP -MF klib/.deps/libscanner_la-drand48.Tpo -c klib/drand48.c -o klib/libscanner_la-drand48.o >/dev/null 2>&1 mv -f klib/.deps/libscanner_la-drand48.Tpo klib/.deps/libscanner_la-drand48.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/home/ubuntu/santosh/libpostal"' -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O0 -D LIBPOSTAL_EXPORTS -MT libscanner_la-scanner.lo -MD -MP -MF .deps/libscanner_la-scanner.Tpo -c -o libscanner_la-scanner.lo test -f 'scanner.c' || echo './'scanner.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ubuntu/santosh/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O0 -D LIBPOSTAL_EXPORTS -MT libscanner_la-scanner.lo -MD -MP -MF .deps/libscanner_la-scanner.Tpo -c scanner.c -fPIC -DPIC -o .libs/libscanner_la-scanner.o gcc: internal compiler error: Killed (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-5/README.Bugs for instructions. Makefile:1484: recipe for target 'libscanner_la-scanner.lo' failed make[1]: [libscanner_la-scanner.lo] Error 1 make[1]: Leaving directory '/home/ubuntu/libpostal/src' Makefile:458: recipe for target 'install-recursive' failed make: [install-recursive] Error 1

cstork commented 2 years ago

Just wanted to quickly mention that I also was a bit stunned by having to make a choice about the datadir without really being presented with the relevant information:

(BTW, thanks for libpostal! :-) )