oops, sorry. Didn't check the single-threaded build. Fixed https://github.com/moses-smt/mosesdecoder/commit/d203f2bb6e11101472c1ecab9b9dff5fa701b081
You don't actually need to compile with single-thread to use 'alternatve weight setting'. You just need to run the decoder with 1 thread, ie. DON'T do ./moses -threads 20 On 1 July 2013 15:52, Fishkov, Alexander <[email protected]> wrote: > Hi!**** > > In order to use multiple translation models (‘Alternate Weight Settings’ > feature) I tried to build Moses in single-threaded mode. I encountered some > errors and attach a build log.**** > > My system is multi-core machine with Ubuntu 12.04 and I’m using latest > Moses version from GitHub. I had no problem building and using > multi-threaded version of Moses.**** > > Here are portions of the log file regarding errors:**** > > ** ** > > moses/TranslationOptionCollection.cpp: In member function ‘void > Moses::TranslationOptionCollection::CacheLexReordering()’:**** > > moses/TranslationOptionCollection.cpp:646:16: error: must #include > <typeinfo> before using typeid**** > > moses/TranslationOptionCollection.cpp:646:47: error: must #include > <typeinfo> before using typeid**** > > ...failed gcc.compile.c++ > moses/bin/gcc-4.6/release/debug-symbols-on/link-static/TranslationOptionCollection.o... > **** > > ** ** > > In file included from > moses/TranslationModel/CYKPlusParser/ChartRuleLookupManagerOnDisk.h:28:0,* > *** > > from > moses/TranslationModel/CYKPlusParser/ChartRuleLookupManagerOnDisk.cpp:20:* > *** > > ./moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.h:50:3: error: > ‘thread_specific_ptr’ in namespace ‘boost’ does not name a type**** > > ...failed gcc.compile.c++ > moses/bin/gcc-4.6/release/debug-symbols-on/link-static/TranslationModel/CYKPlusParser/ChartRuleLookupManagerOnDisk.o... > **** > > ** ** > > While the first error may be easily corrected by introducing the needed > #include, I have no clue with the second one.**** > > Has anybody encountered similar errors?**** > > ** ** > > Best regards, Alexander.**** > > ** ** > > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support > > -- Hieu Hoang Research Associate University of Edinburgh http://www.hoang.co.uk/hieu
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
