Moses used to compile with macOS but it may be there's a divergence between
macOS's compiler and gcc. I don't have a mac anymore and I'm not sure who
on this mailing list has who can debug this.

Download a clean version of the sourcecode again and try to simplify the
compilation by giving the minimum minimum argumrents to bjam
  ./bjam --with-boost=/opt/local/ -j4 toolset=clang
If that doesn't work, may may need to try:

if you're not interested in syntax-based SMT, you might want to exclude the
files & programs that requires the offending files.
   1. delete
         phrase-extract/XmlTree.cpp
         phrase-extract/SyntaxNodeCollection.h
         phrase-extract/SyntaxTree.h
         phrase-extract/syntax-common/tree.h
         phrase-extract/syntax-common/tree-inl.h
   2. In Jamroot file, comment out the line lines that says
         phrase-extract//extract-ghkm
         phrase-extract//pcfg-extract
         phrase-extract//pcfg-score
         phrase-extract//extract-mixed-syntax
         phrase-extract//score-stsg
there will be some additionally tidying up to do in the code

Hieu Hoang
http://statmt.org/hieu


On Sat, 6 Apr 2019 at 19:20, liu shihao <[email protected]> wrote:

> Hi,
>
> I have trouble in building the Moses on the mac(macOS high Sierra 10.13).
> I have installed Boost successfully (at least I think so) and the log file
> is as attached.
> It seems that the namespace of the source code in Xcode is wrong.
> I would appreciate your help!
>
> Regards,
> Shihao
>
> _______________________________________________
> 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