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

Reply via email to