Hi guys, Thanks for your quick reply. Unfortunately the problem remains with some other file now.
Just to answer Hieu's questions. I am compiling on Ubuntu 10.04 (64 bits). I am using the default boost library libboost-all-dev (version 1.40). And for moses I have cloned the git repository as suggested on http://www.statmt.org/moses/?n=Development.GetStarted ( git clone git:// github.com/moses-smt/mosesdecoder.git). I pulled new updates but unfortunately it still fails. Build.log does not change but the failure report is attached below. Thank you very much for your help. Shashi $ ./bjam -j2 Tip: install tcmalloc for faster threading. See BUILD-INSTRUCTIONS.txt for more information. ...patience... ...found 3443 targets... ...updating 3 targets... gcc.link moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/Backward.o: In function `BackwardLanguageModel': ~/Softwares/moses/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::*ProbingModel*>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)' ~/Softwares/moses/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::*ProbingModel*>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)' ~/Softwares/moses/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::*RestProbingModel*>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)' ~/Softwares/moses/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::*TrieModel*>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)' ~/Softwares/moses/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::*QuantTrieModel*>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)' ~/Softwares/moses/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::*ArrayTrieModel*>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)' ~/Softwares/moses/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::*QuantArrayTrieModel*>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)' collect2: ld returned 1 exit status "g++" -o "moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest" -Wl,--start-group "moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest.o" "moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/Backward.o" "moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/BackwardLMState.o" "moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/Base.o" "moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/Implementation.o" "moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/Joint.o" "moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/Ken.o" "moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/MultiFactor.o" "moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/Remote.o" "moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/SingleFactor.o" "moses/LM/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/ORLM.o" "util/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/read_compressed.o" "util/double-conversion/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/diy-fp.o" "util/double-conversion/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/strtod.o" "util/double-conversion/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/fast-dtoa.o" "util/double-conversion/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/cached-powers.o" "util/double-conversion/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/bignum-dtoa.o" "util/double-conversion/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/fixed-dtoa.o" "util/double-conversion/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/bignum.o" "util/double-conversion/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/double-conversion.o" "util/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/bit_packing.o" "util/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/ersatz_progress.o" "util/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/exception.o" "util/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/file.o" "util/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/file_piece.o" "util/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/mmap.o" "util/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/murmur_hash.o" "util/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/pool.o" "util/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/scoped.o" "util/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/string_piece.o" "util/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/usage.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/search_hashed.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/quantize.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/read_arpa.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/bhiksha.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/vocab.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/trie.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/config.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/lm_exception.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/trie_sort.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/virtual_interface.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/sizes.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/search_trie.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/value_build.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/binary_format.o" "lm/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/model.o" "moses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/libmoses.a" -Wl,-Bstatic -lbz2 -lz -lboost_unit_test_framework -lbz2 -lboost_thread-mt -lboost_system-mt -lz -Wl,-Bdynamic -lrt -lSegFault -lrt -Wl,--end-group -g -pthread ...failed gcc.link moses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest... ...skipped <pmoses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>BackwardTest.run for lack of <pmoses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>BackwardTest... ...failed updating 1 target... ...skipped 2 targets... The build failed. If you need support, run: ./jam-files/bjam -j2 --debug-configuration -d2 >build.log then attach build.log to your e-mail. ERROR On Sat, Sep 7, 2013 at 10:54 AM, Kenneth Heafield <[email protected]>wrote: > Fixed. > > In 841ce108a5258117920289448b57abe684375348, Hieu added an explicit copy > constructor for TargetPhraseCollection but technically its use as a > value in std::map (which happens with ancient Boost) requires that it be > implicitly copyable. > > On 09/07/13 09:36, Hieu Hoang wrote: > > That seems a little strange. I'll try and debug it > > > > Can you please tell me a few things. > > 1. What OS are you using? Include version number too. Is it 32 or 64 > bit? > > 2. What boost version do you have installed? This information is in > > the file boost/version.hpp. On my Mac: > > cat /usr/local/include/boost/version.hpp > > It may be slightly different on your machine > > 3. Where, how, and when did you download Moses? > > > > > > > > > > On 6 September 2013 23:51, Shashi Narayan <[email protected] > > <mailto:[email protected]>> wrote: > > > > Hi all, > > > > I am new to moses and having problem building it. > > > > ./bjam -j2 fails with 1 update failure while compiling UTrieNode.cpp. > > > > It would be a great help if someone could point out the problem. > > > > Thanks, > > Shashi > > > > > > XXXXX#~/Softwares/moses$ sudo ./bjam -j2 > > Tip: install tcmalloc for faster threading. See > > BUILD-INSTRUCTIONS.txt for more information. > > ...patience... > > ...found 3443 <tel:3443> targets... > > ...updating 29 targets... > > gcc.compile.c++ > > > moses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/TranslationModel/RuleTable/UTrieNode.o > > /usr/include/c++/4.1.3/bits/stl_map.h: In member function ‘_Tp& > > std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with > > _Key = std::vector<int, std::allocator<int> >, _Tp = > > Moses::TargetPhraseCollection, _Compare = std::less<std::vector<int, > > std::allocator<int> > >, _Alloc = std::allocator<std::pair<const > > std::vector<int, std::allocator<int> >, > > Moses::TargetPhraseCollection> >]’: > > moses/TranslationModel/RuleTable/UTrieNode.cpp:111: instantiated > > from here > > /usr/include/c++/4.1.3/bits/stl_map.h:348: error: no matching > > function for call to > > > ‘Moses::TargetPhraseCollection::TargetPhraseCollection(Moses::TargetPhraseCollection)’ > > > > "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline > > -Wall -g -pthread -DKENLM_MAX_ORDER=6 -DMAX_NUM_FACTORS=4 -DNDEBUG > > -DTRACE_ENABLE=1 -DWITH_THREADS -D_FILE_OFFSET_BITS=64 > > -D_LARGE_FILES -I"." -I"moses/TranslationModel/DynSAInclude" > > -I"util/double-conversion" -c -o > > > "moses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/TranslationModel/RuleTable/UTrieNode.o" > > "moses/TranslationModel/RuleTable/UTrieNode.cpp" > > > > ...failed gcc.compile.c++ > > > moses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi/TranslationModel/RuleTable/UTrieNode.o... > > ...skipped > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a(clean) > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>TranslationModel/RuleTable/UTrieNode.o... > > ...skipped > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>TranslationModel/RuleTable/UTrieNode.o... > > ...skipped > > > <pmoses-chart-cmd/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>moses_chart > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped <p/home/shashito/Softwares/moses/bin>moses_chart for lack > > of > > > <pmoses-chart-cmd/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>moses_chart... > > ...skipped > > > <pmoses-cmd/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>moses > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped <p/home/shashito/Softwares/moses/bin>moses for lack of > > > <pmoses-cmd/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>moses... > > ...skipped > > > <pmoses-cmd/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>lmbrgrid > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped <p/home/shashito/Softwares/moses/bin>lmbrgrid for lack of > > > <pmoses-cmd/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>lmbrgrid... > > ...skipped > > > <pOnDiskPt/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>CreateOnDiskPt > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped <p/home/shashito/Softwares/moses/bin>CreateOnDiskPt for > > lack of > > > <pOnDiskPt/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>CreateOnDiskPt... > > ...skipped > > > <pOnDiskPt/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>queryOnDiskPt > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped <p/home/shashito/Softwares/moses/bin>queryOnDiskPt for > > lack of > > > <pOnDiskPt/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>queryOnDiskPt... > > ...skipped > > > <pmisc/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>processPhraseTable > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped <p/home/shashito/Softwares/moses/bin>processPhraseTable > > for lack of > > > <pmisc/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>processPhraseTable... > > ...skipped > > > <pmisc/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>processLexicalTable > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped <p/home/shashito/Softwares/moses/bin>processLexicalTable > > for lack of > > > <pmisc/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>processLexicalTable... > > ...skipped > > > <pmisc/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>queryPhraseTable > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped <p/home/shashito/Softwares/moses/bin>queryPhraseTable for > > lack of > > > <pmisc/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>queryPhraseTable... > > ...skipped > > > <pmisc/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>queryLexicalTable > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped <p/home/shashito/Softwares/moses/bin>queryLexicalTable > > for lack of > > > <pmisc/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>queryLexicalTable... > > ...skipped > > > <pmira/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>mira > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped <p/home/shashito/Softwares/moses/bin>mira for lack of > > > <pmira/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>mira... > > ...skipped > > > <pcontrib/server/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>mosesserver > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped <p/home/shashito/Softwares/moses/bin>mosesserver for lack > > of > > > <pcontrib/server/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>mosesserver... > > ...skipped <p/home/shashito/Softwares/moses/lib>libmoses.a for lack > > of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped > > > <pmoses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>BackwardTest > > for lack of > > > <pmoses/bin/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > ...skipped > > > <pmoses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>BackwardTest.run > > for lack of > > > <pmoses/LM/bin/BackwardTest.test/gcc-4.1.3/release/debug-symbols-on/link-static/threading-multi>BackwardTest... > > ...failed updating 1 target... > > ...skipped 28 targets... > > The build failed. If you need support, run: > > ./jam-files/bjam -j2 --debug-configuration -d2 >build.log > > then attach build.log to your e-mail. > > ERROR > > > > OUTPUT: BUILD.LOG > > notice: found boost-build.jam at > /usr/share/boost-build/boost-build.jam > > notice: loading Boost.Build from /usr/share/boost-build/kernel > > notice: searching "/etc" "/home/shashito" > > "/usr/share/boost-build/kernel" "/usr/share/boost-build" > > "/usr/share/boost-build/kernel" "/usr/share/boost-build/util" > > "/usr/share/boost-build/build" "/usr/share/boost-build/tools" > > "/usr/share/boost-build/new" "/usr/share/boost-build/." for > > "site-config.jam" > > notice: loading site-config.jam from /etc/site-config.jam > > notice: using gcc libraries :: <toolset>gcc-4.1.3 :: /usr/bin > > /usr/lib /usr/lib32 /usr/lib64 > > notice: using gcc archiver :: <toolset>gcc-4.1.3 :: /usr/bin/ar > > warning: toolset gcc initialization: can't find tool windres > > warning: initialized from > > notice: using rc compiler :: <toolset>gcc-4.1.3 :: /usr/bin/as > > notice: searching "/home/shashito" "/usr/share/boost-build/kernel" > > "/usr/share/boost-build" "/usr/share/boost-build/kernel" > > "/usr/share/boost-build/util" "/usr/share/boost-build/build" > > "/usr/share/boost-build/tools" "/usr/share/boost-build/new" > > "/usr/share/boost-build/." for "user-config.jam" > > notice: loading user-config.jam from > > /usr/share/boost-build/user-config.jam > > /home/shashito/Softwares/moses/jam-files/sanity.jam:54: in > modules.load > > *** argument error > > * rule option.get ( name : default-value ? ) > > * called with: ( static : : yes ) > > * extra argument yes > > /usr/share/boost-build/util/option.jam:11:see definition of rule > > 'option.get' being called > > /usr/share/boost-build/build/project.jam:312: in load-jamfile > > /usr/share/boost-build/build/project.jam:68: in load > > /usr/share/boost-build/build/project.jam:170: in project.find > > /usr/share/boost-build/build-system.jam:248: in load > > /usr/share/boost-build/kernel/modules.jam:261: in import > > /usr/share/boost-build/kernel/bootstrap.jam:132: in boost-build > > /usr/share/boost-build/boost-build.jam:1: in module scope > > > > > > > > > > > > > > > > > > _______________________________________________ > > Moses-support mailing list > > [email protected] <mailto:[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 > > > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support > -- Shashi Narayan Second year PhD Student University of Lorraine/Synalp LORIA INRIA Nancy Grand Est, Batiment B 615, rue du Jardin Botanique 54600 Villers les Nancy, France
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
