openvenues / libpostal

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

Makefile is not available until after configure #605

Closed missinglink closed 2 years ago

missinglink commented 2 years ago

The make command fails when run before configure, this is confusing users which are not familiar with automake.

make distclean
make: *** No rule to make target `distclean'.  Stop.

make
make: *** No targets specified and no makefile found.  Stop.

resolves https://github.com/openvenues/libpostal/issues/595

bdmapman commented 2 years ago

I don't know if I am missing something or not but it still fails

CleanShot 2022-10-29 at 02 50 11@2x
missinglink commented 2 years ago

@bdmapman I can't help you unless you provide something I can reproduce.

missinglink commented 2 years ago

At very least paste the commands you are executing

bdmapman commented 2 years ago

Here I am providing the output of every command

Bootstrap

./bootstrap.sh
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:19: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:19: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:19: the top level
configure.ac:29: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:29: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:29: the top level
configure.ac:30: warning: The macro `AC_HEADER_TIME' is obsolete.
configure.ac:30: You should run autoupdate.
./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from...
configure.ac:30: the top level
configure.ac:127: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:127: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from...
m4/ax_cblas.m4:67: AX_CBLAS is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/headers.m4:89: _AC_CHECK_HEADER_COMPILE is expanded from...
./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from...
configure.ac:127: the top level
configure.ac:14: installing './compile'
configure.ac:12: installing './missing'
src/Makefile.am: installing './depcomp'

Configure

./configure --datadir=/usr/local/libpostal/data_dir
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for library containing log... -lm
checking for egrep... (cached) /usr/bin/grep -E
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for fcntl.h... yes
checking for float.h... yes
checking for inttypes.h... (cached) yes
checking for limits.h... yes
checking for locale.h... yes
checking for malloc.h... yes
checking for memory.h... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for off_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for malloc... yes
checking for realloc... yes
checking for drand48... yes
checking for getcwd... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for regcomp... yes
checking for setlocale... yes
checking for sqrt... yes
checking for strdup... yes
checking for strndup... yes
checking for shuf... yes
checking for gshuf... no
checking for cblas.h... no
configure: extra cflags for scanner.c: 
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
chmod: cannot access 'src/libpostal_data': No such file or directory
config.status: creating libpostal.pc
chmod: cannot access 'src/libpostal_data': No such file or directory
config.status: creating src/Makefile
chmod: cannot access 'src/libpostal_data': No such file or directory
config.status: creating src/libpostal_data
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

make distclean

make distclean
Making distclean in src
make[1]: Entering directory '/usr/local/libpostal/src'
test -z "libpostal.la" || rm -f libpostal.la
rm -f ./so_locations
rm -rf .libs _libs
rm -rf geohash/.libs geohash/_libs
rm -rf klib/.libs klib/_libs
rm -rf utf8proc/.libs utf8proc/_libs
test -z "libscanner.la" || rm -f libscanner.la
rm -f ./so_locations
 rm -f libpostal bench address_parser address_parser_train address_parser_test build_address_dictionary build_numex_table build_trans_table address_parser_train address_parser_test language_classifier_train language_classifier language_classifier_test near_dupe_test
rm -f *.o
rm -f geohash/*.o
rm -f geohash/*.lo
rm -f klib/*.o
rm -f klib/*.lo
rm -f linenoise/*.o
rm -f utf8proc/*.o
rm -f utf8proc/*.lo
rm -f *.lo
rm -f *.tab.c
test -z "libpostal_data" || rm -f libpostal_data
test . = "." || test -z "" || rm -f 
rm -f geohash/.deps/.dirstamp
rm -f geohash/.dirstamp
rm -f klib/.deps/.dirstamp
rm -f klib/.dirstamp
rm -f linenoise/.deps/.dirstamp
rm -f linenoise/.dirstamp
rm -f utf8proc/.deps/.dirstamp
rm -f utf8proc/.dirstamp
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
rm -f ./.deps/address_parser-address_parser_cli.Po
rm -f ./.deps/address_parser-json_encode.Po
rm -f ./.deps/address_parser-string_utils.Po
rm -f ./.deps/address_parser-strndup.Po
rm -f ./.deps/address_parser_test-address_dictionary.Po
rm -f ./.deps/address_parser_test-address_parser.Po
rm -f ./.deps/address_parser_test-address_parser_io.Po
rm -f ./.deps/address_parser_test-address_parser_test.Po
rm -f ./.deps/address_parser_test-averaged_perceptron.Po
rm -f ./.deps/address_parser_test-averaged_perceptron_tagger.Po
rm -f ./.deps/address_parser_test-crf.Po
rm -f ./.deps/address_parser_test-crf_context.Po
rm -f ./.deps/address_parser_test-features.Po
rm -f ./.deps/address_parser_test-file_utils.Po
rm -f ./.deps/address_parser_test-float_utils.Po
rm -f ./.deps/address_parser_test-graph.Po
rm -f ./.deps/address_parser_test-graph_builder.Po
rm -f ./.deps/address_parser_test-ngrams.Po
rm -f ./.deps/address_parser_test-normalize.Po
rm -f ./.deps/address_parser_test-numex.Po
rm -f ./.deps/address_parser_test-sparse_matrix.Po
rm -f ./.deps/address_parser_test-string_utils.Po
rm -f ./.deps/address_parser_test-strndup.Po
rm -f ./.deps/address_parser_test-tokens.Po
rm -f ./.deps/address_parser_test-transliterate.Po
rm -f ./.deps/address_parser_test-trie.Po
rm -f ./.deps/address_parser_test-trie_search.Po
rm -f ./.deps/address_parser_test-trie_utils.Po
rm -f ./.deps/address_parser_test-unicode_scripts.Po
rm -f ./.deps/address_parser_train-address_dictionary.Po
rm -f ./.deps/address_parser_train-address_parser.Po
rm -f ./.deps/address_parser_train-address_parser_io.Po
rm -f ./.deps/address_parser_train-address_parser_train.Po
rm -f ./.deps/address_parser_train-averaged_perceptron.Po
rm -f ./.deps/address_parser_train-averaged_perceptron_tagger.Po
rm -f ./.deps/address_parser_train-averaged_perceptron_trainer.Po
rm -f ./.deps/address_parser_train-crf.Po
rm -f ./.deps/address_parser_train-crf_context.Po
rm -f ./.deps/address_parser_train-crf_trainer.Po
rm -f ./.deps/address_parser_train-crf_trainer_averaged_perceptron.Po
rm -f ./.deps/address_parser_train-features.Po
rm -f ./.deps/address_parser_train-file_utils.Po
rm -f ./.deps/address_parser_train-float_utils.Po
rm -f ./.deps/address_parser_train-graph.Po
rm -f ./.deps/address_parser_train-graph_builder.Po
rm -f ./.deps/address_parser_train-ngrams.Po
rm -f ./.deps/address_parser_train-normalize.Po
rm -f ./.deps/address_parser_train-numex.Po
rm -f ./.deps/address_parser_train-shuffle.Po
rm -f ./.deps/address_parser_train-sparse_matrix.Po
rm -f ./.deps/address_parser_train-string_utils.Po
rm -f ./.deps/address_parser_train-strndup.Po
rm -f ./.deps/address_parser_train-tokens.Po
rm -f ./.deps/address_parser_train-transliterate.Po
rm -f ./.deps/address_parser_train-trie.Po
rm -f ./.deps/address_parser_train-trie_search.Po
rm -f ./.deps/address_parser_train-trie_utils.Po
rm -f ./.deps/address_parser_train-unicode_scripts.Po
rm -f ./.deps/bench-bench.Po
rm -f ./.deps/build_address_dictionary-address_dictionary.Po
rm -f ./.deps/build_address_dictionary-address_dictionary_builder.Po
rm -f ./.deps/build_address_dictionary-file_utils.Po
rm -f ./.deps/build_address_dictionary-string_utils.Po
rm -f ./.deps/build_address_dictionary-strndup.Po
rm -f ./.deps/build_address_dictionary-trie.Po
rm -f ./.deps/build_address_dictionary-trie_search.Po
rm -f ./.deps/build_numex_table-file_utils.Po
rm -f ./.deps/build_numex_table-numex.Po
rm -f ./.deps/build_numex_table-numex_table_builder.Po
rm -f ./.deps/build_numex_table-string_utils.Po
rm -f ./.deps/build_numex_table-strndup.Po
rm -f ./.deps/build_numex_table-tokens.Po
rm -f ./.deps/build_numex_table-trie.Po
rm -f ./.deps/build_numex_table-trie_search.Po
rm -f ./.deps/build_trans_table-file_utils.Po
rm -f ./.deps/build_trans_table-string_utils.Po
rm -f ./.deps/build_trans_table-strndup.Po
rm -f ./.deps/build_trans_table-transliterate.Po
rm -f ./.deps/build_trans_table-transliteration_table_builder.Po
rm -f ./.deps/build_trans_table-trie.Po
rm -f ./.deps/build_trans_table-trie_search.Po
rm -f ./.deps/language_classifier-address_dictionary.Po
rm -f ./.deps/language_classifier-features.Po
rm -f ./.deps/language_classifier-file_utils.Po
rm -f ./.deps/language_classifier-float_utils.Po
rm -f ./.deps/language_classifier-language_classifier.Po
rm -f ./.deps/language_classifier-language_classifier_cli.Po
rm -f ./.deps/language_classifier-language_features.Po
rm -f ./.deps/language_classifier-logistic.Po
rm -f ./.deps/language_classifier-logistic_regression.Po
rm -f ./.deps/language_classifier-minibatch.Po
rm -f ./.deps/language_classifier-normalize.Po
rm -f ./.deps/language_classifier-numex.Po
rm -f ./.deps/language_classifier-sparse_matrix.Po
rm -f ./.deps/language_classifier-string_utils.Po
rm -f ./.deps/language_classifier-strndup.Po
rm -f ./.deps/language_classifier-transliterate.Po
rm -f ./.deps/language_classifier-trie.Po
rm -f ./.deps/language_classifier-trie_search.Po
rm -f ./.deps/language_classifier-trie_utils.Po
rm -f ./.deps/language_classifier-unicode_scripts.Po
rm -f ./.deps/language_classifier_test-address_dictionary.Po
rm -f ./.deps/language_classifier_test-features.Po
rm -f ./.deps/language_classifier_test-file_utils.Po
rm -f ./.deps/language_classifier_test-float_utils.Po
rm -f ./.deps/language_classifier_test-language_classifier.Po
rm -f ./.deps/language_classifier_test-language_classifier_io.Po
rm -f ./.deps/language_classifier_test-language_classifier_test.Po
rm -f ./.deps/language_classifier_test-language_features.Po
rm -f ./.deps/language_classifier_test-logistic.Po
rm -f ./.deps/language_classifier_test-logistic_regression.Po
rm -f ./.deps/language_classifier_test-minibatch.Po
rm -f ./.deps/language_classifier_test-normalize.Po
rm -f ./.deps/language_classifier_test-numex.Po
rm -f ./.deps/language_classifier_test-sparse_matrix.Po
rm -f ./.deps/language_classifier_test-string_utils.Po
rm -f ./.deps/language_classifier_test-strndup.Po
rm -f ./.deps/language_classifier_test-transliterate.Po
rm -f ./.deps/language_classifier_test-trie.Po
rm -f ./.deps/language_classifier_test-trie_search.Po
rm -f ./.deps/language_classifier_test-trie_utils.Po
rm -f ./.deps/language_classifier_test-unicode_scripts.Po
rm -f ./.deps/language_classifier_train-address_dictionary.Po
rm -f ./.deps/language_classifier_train-cartesian_product.Po
rm -f ./.deps/language_classifier_train-features.Po
rm -f ./.deps/language_classifier_train-file_utils.Po
rm -f ./.deps/language_classifier_train-float_utils.Po
rm -f ./.deps/language_classifier_train-ftrl.Po
rm -f ./.deps/language_classifier_train-language_classifier.Po
rm -f ./.deps/language_classifier_train-language_classifier_io.Po
rm -f ./.deps/language_classifier_train-language_classifier_train.Po
rm -f ./.deps/language_classifier_train-language_features.Po
rm -f ./.deps/language_classifier_train-logistic.Po
rm -f ./.deps/language_classifier_train-logistic_regression.Po
rm -f ./.deps/language_classifier_train-logistic_regression_trainer.Po
rm -f ./.deps/language_classifier_train-minibatch.Po
rm -f ./.deps/language_classifier_train-normalize.Po
rm -f ./.deps/language_classifier_train-numex.Po
rm -f ./.deps/language_classifier_train-regularization.Po
rm -f ./.deps/language_classifier_train-shuffle.Po
rm -f ./.deps/language_classifier_train-sparse_matrix.Po
rm -f ./.deps/language_classifier_train-sparse_matrix_utils.Po
rm -f ./.deps/language_classifier_train-stochastic_gradient_descent.Po
rm -f ./.deps/language_classifier_train-string_utils.Po
rm -f ./.deps/language_classifier_train-strndup.Po
rm -f ./.deps/language_classifier_train-transliterate.Po
rm -f ./.deps/language_classifier_train-trie.Po
rm -f ./.deps/language_classifier_train-trie_search.Po
rm -f ./.deps/language_classifier_train-trie_utils.Po
rm -f ./.deps/language_classifier_train-unicode_scripts.Po
rm -f ./.deps/libpostal-file_utils.Po
rm -f ./.deps/libpostal-json_encode.Po
rm -f ./.deps/libpostal-main.Po
rm -f ./.deps/libpostal-string_utils.Po
rm -f ./.deps/libpostal-strndup.Po
rm -f ./.deps/libpostal_la-acronyms.Plo
rm -f ./.deps/libpostal_la-address_dictionary.Plo
rm -f ./.deps/libpostal_la-address_parser.Plo
rm -f ./.deps/libpostal_la-address_parser_io.Plo
rm -f ./.deps/libpostal_la-averaged_perceptron.Plo
rm -f ./.deps/libpostal_la-averaged_perceptron_tagger.Plo
rm -f ./.deps/libpostal_la-crf.Plo
rm -f ./.deps/libpostal_la-crf_context.Plo
rm -f ./.deps/libpostal_la-dedupe.Plo
rm -f ./.deps/libpostal_la-double_metaphone.Plo
rm -f ./.deps/libpostal_la-expand.Plo
rm -f ./.deps/libpostal_la-features.Plo
rm -f ./.deps/libpostal_la-file_utils.Plo
rm -f ./.deps/libpostal_la-float_utils.Plo
rm -f ./.deps/libpostal_la-graph.Plo
rm -f ./.deps/libpostal_la-graph_builder.Plo
rm -f ./.deps/libpostal_la-jaccard.Plo
rm -f ./.deps/libpostal_la-language_classifier.Plo
rm -f ./.deps/libpostal_la-language_features.Plo
rm -f ./.deps/libpostal_la-libpostal.Plo
rm -f ./.deps/libpostal_la-logistic.Plo
rm -f ./.deps/libpostal_la-logistic_regression.Plo
rm -f ./.deps/libpostal_la-minibatch.Plo
rm -f ./.deps/libpostal_la-near_dupe.Plo
rm -f ./.deps/libpostal_la-ngrams.Plo
rm -f ./.deps/libpostal_la-normalize.Plo
rm -f ./.deps/libpostal_la-numex.Plo
rm -f ./.deps/libpostal_la-place.Plo
rm -f ./.deps/libpostal_la-soft_tfidf.Plo
rm -f ./.deps/libpostal_la-sparse_matrix.Plo
rm -f ./.deps/libpostal_la-string_similarity.Plo
rm -f ./.deps/libpostal_la-string_utils.Plo
rm -f ./.deps/libpostal_la-strndup.Plo
rm -f ./.deps/libpostal_la-tokens.Plo
rm -f ./.deps/libpostal_la-transliterate.Plo
rm -f ./.deps/libpostal_la-trie.Plo
rm -f ./.deps/libpostal_la-trie_search.Plo
rm -f ./.deps/libpostal_la-trie_utils.Plo
rm -f ./.deps/libpostal_la-unicode_scripts.Plo
rm -f ./.deps/libscanner_la-scanner.Plo
rm -f ./.deps/near_dupe_test-near_dupe_test.Po
rm -f ./.deps/near_dupe_test-string_utils.Po
rm -f ./.deps/near_dupe_test-strndup.Po
rm -f geohash/.deps/libpostal_la-geohash.Plo
rm -f klib/.deps/libscanner_la-drand48.Plo
rm -f linenoise/.deps/address_parser-linenoise.Po
rm -f utf8proc/.deps/address_parser-utf8proc.Po
rm -f utf8proc/.deps/address_parser_test-utf8proc.Po
rm -f utf8proc/.deps/address_parser_train-utf8proc.Po
rm -f utf8proc/.deps/build_address_dictionary-utf8proc.Po
rm -f utf8proc/.deps/build_numex_table-utf8proc.Po
rm -f utf8proc/.deps/build_trans_table-utf8proc.Po
rm -f utf8proc/.deps/language_classifier-utf8proc.Po
rm -f utf8proc/.deps/language_classifier_test-utf8proc.Po
rm -f utf8proc/.deps/language_classifier_train-utf8proc.Po
rm -f utf8proc/.deps/libpostal-utf8proc.Po
rm -f utf8proc/.deps/libpostal_la-utf8proc.Plo
rm -f utf8proc/.deps/near_dupe_test-utf8proc.Po
rm -f Makefile
make[1]: Leaving directory '/usr/local/libpostal/src'
Making distclean in test
make[1]: Entering directory '/usr/local/libpostal/test'
rm -rf .libs _libs
 rm -f test_libpostal
rm -f *.o
rm -f ../src/*.o
rm -f ../src/utf8proc/*.o
test -z "test_libpostal.log" || rm -f test_libpostal.log
test -z "test_libpostal.trs" || rm -f test_libpostal.trs
test -z "test-suite.log" || rm -f test-suite.log
rm -f *.lo
rm -f *.tab.c
test -z "" || rm -f 
test . = "." || test -z "" || rm -f 
rm -f ../src/.deps/.dirstamp
rm -f ../src/.dirstamp
rm -f ../src/utf8proc/.deps/.dirstamp
rm -f ../src/utf8proc/.dirstamp
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
rm -f ../src/.deps/test_libpostal-features.Po
rm -f ../src/.deps/test_libpostal-file_utils.Po
rm -f ../src/.deps/test_libpostal-numex.Po
rm -f ../src/.deps/test_libpostal-string_utils.Po
rm -f ../src/.deps/test_libpostal-strndup.Po
rm -f ../src/.deps/test_libpostal-transliterate.Po
rm -f ../src/.deps/test_libpostal-trie.Po
rm -f ../src/.deps/test_libpostal-trie_search.Po
rm -f ../src/utf8proc/.deps/test_libpostal-utf8proc.Po
rm -f ./.deps/test_libpostal-test.Po
rm -f ./.deps/test_libpostal-test_crf_context.Po
rm -f ./.deps/test_libpostal-test_expand.Po
rm -f ./.deps/test_libpostal-test_numex.Po
rm -f ./.deps/test_libpostal-test_parser.Po
rm -f ./.deps/test_libpostal-test_string_utils.Po
rm -f ./.deps/test_libpostal-test_transliterate.Po
rm -f ./.deps/test_libpostal-test_trie.Po
rm -f Makefile
make[1]: Leaving directory '/usr/local/libpostal/test'
make[1]: Entering directory '/usr/local/libpostal'
rm -rf .libs _libs
rm -f *.lo
test -z "libpostal.pc" || rm -f libpostal.pc
test . = "." || test -z "" || rm -f 
rm -f config.h stamp-h1
rm -f libtool config.lt
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
rm -f cscope.out cscope.in.out cscope.po.out cscope.files
make[1]: Leaving directory '/usr/local/libpostal'
rm -f config.status config.cache config.log configure.lineno config.status.lineno
rm -f Makefile

make -j4

make -j4
make: *** No targets specified and no makefile found.  Stop.
CleanShot 2022-10-29 at 23 46 02@2x
missinglink commented 2 years ago

The last line for make distclean is rm -f Makefile which means all subsequent invocations of make will fail.

I don't know why the make distclean line is there, I didn't write it, I would recommend just skipping running make distclean

bdmapman commented 2 years ago

Thanks, Peter @missinglink. Then I think the issue (actually I don't know whether it is an issue or not) still persists. There are a lot of issues currently open/closed #604 #593 #587 #330. I got something interesting here @albarrentine comment. It is a downloading issue. Actually, in a few issues, they stated j1/j2/j8 solved their problem. I think the second time running the command in a row solved their problem, not the j1/j2/j8. Since yesterday I am getting a similar problem with .bootstrap.sh too. That's also required running the command 2nd time in a row.

So the bypass of a clean install is to run the .bootstrap.sh and make -j4 for the second time in a row after the first fail respectively. Here I am giving the files output where you can find the 1st run error and 2nd run success.

The only problem is to run the installation in a automated scripted process like Docker.

bootstrap-1st-Run.txt - It provides error bootstrap-2nd-Run.txt - Soon after running the same command (.bootstrap.sh) is error free makeJ4-1st-Run.txt - It provides error makeJ4-2nd-Run.txt - Soon after running the same command (make -j4) is error free