Make fails at 59% @ Windows - 10.0.16299 - AMD64, no match for operator--


#1

I followed the installation guide step by step. Everything works fine until 59% of make.
Outcome of cmake (looks good to me)

cmake .. -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release

$ cmake … -G “MSYS Makefiles” -DCMAKE_BUILD_TYPE=Release
– Searching for ICU 58.2
– ICU version found is 61.1.0, expected 58.2; attempting to build ICU from scratch…
– ICU include dirs: C:/Users/trump/Documents/MetaBuild/meta/build/deps/icu-58.2/include
– ICU libraries: icui18n;icuuc;icudata
– Using jemalloc: C:/msys64/mingw64/lib/jemalloc.dll.a
– Locating libstdc++ filesystem library
– Found libstdc++ filesystem library: C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/8.2.0/libstdc++fs.a
– Determining experimental filesystem library capabilities
– No suitable experimental filesystem library found
– Configuring done
– Generating done
– Build files have been written to: C:/Users/trump/Documents/MetaBuild/meta/build

Outcome of make (here comes the error)

make

$ make
[ 2%] Built target ExternalICU
[ 2%] Built target meta-util
[ 3%] Built target meta-utf
[ 4%] Built target meta-tokenizers
[ 4%] Built target meta-mman-win32
[ 6%] Built target meta-io
[ 9%] Built target meta-filters
[ 12%] Built target meta-corpus
[ 14%] Built target meta-analyzers
[ 15%] Built target tokenize-test
[ 17%] Built target libsvm
[ 18%] Built target meta-kernel
[ 20%] Built target liblinear
[ 21%] Built target meta-eval
[ 24%] Built target meta-index
[ 27%] Built target meta-ranker
[ 30%] Built target meta-loss
[ 30%] Built target meta-learn
[ 35%] Built target meta-classify
[ 36%] Built target meta-embeddings
[ 36%] Built target meta-embeddings-analyzers
[ 37%] Built target meta-parser-trees
[ 38%] Built target meta-parser-io
[ 40%] Built target meta-tree-visitors
[ 42%] Built target meta-sequence
[ 45%] Built target meta-parser
[ 47%] Built target meta-parser-featurizers
[ 48%] Built target meta-greedy-tagger
[ 48%] Built target meta-parser-analyzers
[ 49%] Built target meta-crf
[ 50%] Built target meta-sequence-analyzers
[ 51%] Built target classify
[ 51%] Built target online-classify
[ 52%] Built target corpus-gen
[ 53%] Built target embedding-cooccur
[ 53%] Built target embedding-vocab
[ 54%] Built target glove
[ 54%] Built target interactive-embeddings
[ 55%] Built target meta-to-glove
[ 56%] Built target meta-succinct
[ 58%] Built target meta-features
[ 59%] Building CXX object src/features/tools/CMakeFiles/feature-summary.dir/feature_summary.cpp.obj
In file included from C:/msys64/mingw64/include/c++/8.2.0/bits/stl_algobase.h:66,
from C:/msys64/mingw64/include/c++/8.2.0/algorithm:61,
from C:/Users/trump/Documents/MetaBuild/meta/deps/cpptoml/include/cpptoml.h:10,
from C:/Users/trump/Documents/MetaBuild/meta/src/features/tools/feature_summary.cpp:10:
C:/msys64/mingw64/include/c++/8.2.0/bits/stl_iterator_base_funcs.h: In instantiation of ‘constexpr void std::__advance(_RandomAccessIterator&, _Distance, std::random_access_iterator_tag) [with _RandomAccessIterator = meta::learn::dataset_view::iterator; _Distance = long long int]’:
C:/msys64/mingw64/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:206:21: required from ‘void std::advance(_InputIterator&, _Distance) [with _InputIterator = meta::learn::dataset_view::iterator; _Distance = long long int]’
C:/Users/trump/Documents/MetaBuild/meta/include/meta/parallel/parallel_for.h:49:21: required from ‘std::vector<std::future<typename std::result_of<Function(Iterator, Iterator)>::type> > meta::parallel::for_each_block(Iterator, Iterator, meta::parallel::thread_pool&, Function&&) [with Iterator = meta::learn::dataset_view::iterator; Function = meta::parallel::reduction(Iterator, Iterator, meta::parallel::thread_pool&, LocalStorage&&, MappingFunction&&, ReductionFunction&&) [with Iterator = meta::learn::dataset_view::iterator; LocalStorage = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::<lambda()>&; MappingFunction = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::<lambda(meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts&, const instance_type&)>&; ReductionFunction = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::<lambda(meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts&, const meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts&)>&; typename std::result_of<LocalStorage()>::type = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts]::<lambda(meta::learn::dataset_view::iterator, meta::learn::dataset_view::iterator)>; typename std::result_of<Function(Iterator, Iterator)>::type = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts]’
C:/Users/trump/Documents/MetaBuild/meta/include/meta/parallel/algorithm.h:60:25: required from ‘typename std::result_of<LocalStorage()>::type meta::parallel::reduction(Iterator, Iterator, meta::parallel::thread_pool&, LocalStorage&&, MappingFunction&&, ReductionFunction&&) [with Iterator = meta::learn::dataset_view::iterator; LocalStorage = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::<lambda()>&; MappingFunction = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::<lambda(meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts&, const instance_type&)>&; ReductionFunction = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::<lambda(meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts&, const meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts&)>&; typename std::result_of<LocalStorage()>::type = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts]’
C:/Users/trump/Documents/MetaBuild/meta/include/meta/parallel/algorithm.h:84:21: required from ‘typename std::result_of<LocalStorage()>::type meta::parallel::reduction(Iterator, Iterator, LocalStorage&&, MappingFunction&&, ReductionFunction&&) [with Iterator = meta::learn::dataset_view::iterator; LocalStorage = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::<lambda()>; MappingFunction = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::<lambda(meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts&, const instance_type&)>; ReductionFunction = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::<lambda(meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts&, const meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts&)>; typename std::result_of<LocalStorage()>::type = meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]::prob_counts]’
C:/Users/trump/Documents/MetaBuild/meta/include/meta/features/feature_selector.h:253:42: required from ‘void meta::features::feature_selector::calc_probs(const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]’
C:/Users/trump/Documents/MetaBuild/meta/include/meta/features/feature_selector.h:207:9: required from ‘void meta::features::feature_selector::init(const LabeledDatasetContainer&, uint64_t) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view; uint64_t = long long unsigned int]’
C:/Users/trump/Documents/MetaBuild/meta/include/meta/features/selector_factory.h:112:5: required from ‘std::unique_ptrmeta::features::feature_selector meta::features::make_selector(const cpptoml::table&, const LabeledDatasetContainer&) [with LabeledDatasetContainer = meta::classify::multiclass_dataset_view]’
C:/Users/trump/Documents/MetaBuild/meta/src/features/tools/feature_summary.cpp:51:61: required from here
C:/msys64/mingw64/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:183:2: error: no match for ‘operator–’ (operand type is ‘meta::learn::dataset_view::iterator’)
–__i;
^~~~~
make[2]: *** [src/features/tools/CMakeFiles/feature-summary.dir/build.make:63: src/features/tools/CMakeFiles/feature-summary.dir/feature_summary.cpp.obj] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:1438: src/features/tools/CMakeFiles/feature-summary.dir/all] Fehler 2
make: *** [Makefile:130: all] Fehler 2

I tried to go with “-DMETA_HAS_EXPERIMENTAL_FILESYSTEM=OFF” and to build with the develop branch. Both didn’t help.

Any ideas?

Thanks
Max


#2

Solved

Graphviz was missing (which conatins doxygen dot component)


#3

Hi Maxxman,

My error is similar, although I already have doxygen and Graphviz in place.

When you succeeded, did you use the MeTA development version?
Did you keep the EXPERIMENTAL_FILESYSTEM=OFF?
Did you by chance got an error about META_HAS_ALIGNED_ALLOC - Failed?

Thanks


#4

Hi jcorro2,

when I succeeded:

  • I used MeTa development version
  • I started a completly fresh make after installing doxygen and Graphviz (which contains dot)
  • I did not pass the argument EXPERIMENTAL_FILESYSTEM=OFF
  • (updated) The error “META_HAS_ALIGNED_ALLOC - Failed” also occured during cmake, but it seems like it didn’t impact the build

Hope this helps…

BR
Max


#5

Hello,

I am having exactly the same problem although I have installed Graphviz and Doxygon. Can you please help me? I really cannot use MeTA on my system.


#6

Same problem here. also, how do i install graphviz and doxygen? pacman says graphviz target does not exist.


#7

Solved. Used the develop branch from git. installed doxygen from pacman.