openvenues / libpostal

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

Makefile:461 and 370 error executing make -j4 #604

Open jtsalten opened 2 years ago

jtsalten commented 2 years ago

Hi!

I was trying to install libpostal in my Windows machine (Windows 10 Enterprise 64-x86). I installed MSys2/MinGW without issues, clone this repo and go through almost all the installation steps. But when executing make -j4 command I got this error (after a lot of previous warning messages/verbosity...):

address_parser-linenoise.Tpo -c -o linenoise/address_parser-linenoise.o `test -f 'linenoise/linenoise.c' || echo './'`linenoise/linenoise.c
mv -f klib/.deps/libscanner_la-drand48.Tpo klib/.deps/libscanner_la-drand48.Plo
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/c/_DEMOS/libpostaldata/libpostal"' -g -mfpmath=sse -msse2 -DINTEL_SSE -g -O2 -O3   -L/usr/local/lib -o build_address_dictionary.exe 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
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
  0 9951k    0  8259    0     0   1578      0  1mv -f linenoise/.deps/address_parser-linenoise.Tpo linenoise/.deps/address_parser-linenoise.Po
:47:37  0:00:05  1:47:32  1578/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/c/_DEMOS/libpostaldata/libpostal"' -g -mfpmath=sse -msse2 -DINTEL_SSE -g -O2 -O3   -L/usr/local/lib -o build_numex_table.exe 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
100 9951k  100 9951k    0     0  1377k      0  0:00:07  0:00:07 --:--:-- 4986k
libtool: link: gcc -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/c/_DEMOS/libpostaldata/libpostal\" -g -mfpmath=sse -msse2 -DINTEL_SSE -g -O2 -O3 -o .libs/build_address_dictionary.exe 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
libtool: link: gcc -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/c/_DEMOS/libpostaldata/libpostal\" -g -mfpmath=sse -msse2 -DINTEL_SSE -g -O2 -O3 -o .libs/build_numex_table.exe 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
address_expansions/
address_expansions/address_dictionary.dat
numex/
numex/numex.dat
transliteration/
transliteration/transliteration.dat
Checking for new libpostal parser data file...
New libpostal parser data file available
Downloading multipart: https://github.com/openvenues/libpostal/releases/download/v1.0.0/parser.tar.gz, num_chunks=12
Downloading part 1: filename=/c/_DEMOS/libpostaldata/libpostal/parser.tar.gz.1, offset=0, max=67108863
Downloading part 2: filename=/c/_DEMOS/libpostaldata/libpostal/parser.tar.gz.2, offset=67108864, max=134217727
Downloading part 3: filename=/c/_DEMOS/libpostaldata/libpostal/parser.tar.gz.3, offset=134217728, max=201326591
Downloading part 4: filename=/c/_DEMOS/libpostaldata/libpostal/parser.tar.gz.4, offset=201326592, max=268435455
Downloading part 5: filename=/c/_DEMOS/libpostaldata/libpostal/parser.tar.gz.5, offset=268435456, max=335544319
Downloading part 6: filename=/c/_DEMOS/libpostaldata/libpostal/parser.tar.gz.6, offset=335544320, max=402653183
Downloading part 7: filename=/c/_DEMOS/libpostaldata/libpostal/parser.tar.gz.7, offset=402653184, max=469762047
Downloading part 8: filename=/c/_DEMOS/libpostaldata/libpostal/parser.tar.gz.8, offset=469762048, max=536870911
Downloading part 9: filename=/c/_DEMOS/libpostaldata/libpostal/parser.tar.gz.9, offset=536870912, max=603979775
Downloading part 10: filename=/c/_DEMOS/libpostaldata/libpostal/parser.tar.gz.10, offset=603979776, max=671088639
Downloading part 11: filename=/c/_DEMOS/libpostaldata/libpostal/parser.tar.gz.11, offset=671088640, max=738197503
Downloading part 12: filename=/c/_DEMOS/libpostaldata/libpostal/parser.tar.gz.12, offset=738197504, max=805306367
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"/c/_DEMOS/libpostaldata/libpostal"' -g -mfpmath=sse -msse2 -DINTEL_SSE -g -O2 -O3   -L/usr/local/lib -o build_trans_table.exe 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
libtool: link: gcc -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/c/_DEMOS/libpostaldata/libpostal\" -g -mfpmath=sse -msse2 -DINTEL_SSE -g -O2 -O3 -o .libs/build_trans_table.exe 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
make[2]: *** [Makefile:4773: all-local] Error 123
make[2]: *** Waiting for unfinished jobs....
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=\"/c/_DEMOS/libpostaldata/libpostal\" -g -mfpmath=sse -msse2 -DINTEL_SSE -g -O2 -O0 -D LIBPOSTAL_EXPORTS -MT libscanner_la-scanner.lo -MD -MP -MF .deps/libscanner_la-scanner.Tpo -c scanner.c -o libscanner_la-scanner.o >/dev/null 2>&1
mv -f .deps/libscanner_la-scanner.Tpo .deps/libscanner_la-scanner.Plo
make[2]: Leaving directory '/c/_DEMOS/libpostal/src'
make[1]: *** [Makefile:461: all-recursive] Error 1
make[1]: Leaving directory '/c/_DEMOS/libpostal'
make: *** [Makefile:370: all] Error 2

What is it failing? Am I doing anything wrong?

albarrentine commented 9 months ago

think it occasionally has issues downloading the data files from Github, could be connectivity, bandwidth (it's about 2GB of model files), etc. Nothing looks wrong with compilation, can retry it.