Send Moses-support mailing list submissions to
moses-support@mit.edu
To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.mit.edu/mailman/listinfo/moses-support
or, via email, send a message with subject or body 'help' to
moses-support-request@mit.edu
You can reach the person managing the list at
moses-support-owner@mit.edu
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moses-support digest..."
Today's Topics:
1. Re: Building mosesdecoder on Mac OS (Hrafn Loftsson)
2. Re: Building mosesdecoder on Mac OS (Hieu Hoang)
----------------------------------------------------------------------
Message: 1
Date: Thu, 31 Oct 2019 19:55:10 +0000
From: Hrafn Loftsson <HRAFN@ru.is>
Subject: Re: [Moses-support] Building mosesdecoder on Mac OS
To: Hieu Hoang <hieuhoang@gmail.com>
Cc: moses-support <moses-support@mit.edu>
Message-ID: <f12b6ddb1cc945ee920c3c8f6e51b12e@ru.is>
Content-Type: text/plain; charset="iso-8859-1"
Thanks for a quick reply.
Yes, I was planning to use moses only for command line experiments.
Following your advice, I uninstalled the xmlrpc-c library and now I build using:
./bjam --with-boost=/Users/hrafn/nlp/smt/boost_1_71_0/ -j4 toolset=clang
Unfortunately, I get a similar error:
clang-darwin.compile.c symal/bin/clang-darwin-4.2.1/release/link-static/threading-multi/cmd.o
"clang++" -x c -O3 -std=c++0x -O3 -finline-functions -Wno-inline -Wall -DKENLM_MAX_ORDER=6 -DMOSES_VERSION_ID=\"mmt-mvp-v0.12.1-2869-g0fef8ebf4\" -DNDEBUG -DTRACE_ENABLE=1 -DWITH_THREADS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I"." -I"/Users/hrafn/nlp/smt/boost_1_71_0/include" -c -o "symal/bin/clang-darwin-4.2.1/release/link-static/threading-multi/cmd.o" "symal/cmd.c"
error: invalid argument '-std=c++0x' not allowed with 'C'
...failed clang-darwin.compile.c symal/bin/clang-darwin-4.2.1/release/link-static/threading-multi/cmd.o...
Regards,
Hrafn Loftsson, Ph.D., www.ru.is/~hrafn<http://www.ru.is/~hrafn>
D?sent | Associate Professor
T?lvunarfr??ideild | School of Computer Science
H?sk?linn ? Reykjav?k | Reykjavik University
________________________________
Fr?: Hieu Hoang <hieuhoang@gmail.com>
Sent: 31. okt?ber 2019 19:33
Til: Hrafn Loftsson
Afrit: moses-support
Efni: Re: [Moses-support] Building mosesdecoder on Mac OS
It's been a few years since I've used osx.
My advice is
1. Don't include cmph library. It's only used by the compact phrase table which crashes on osx
2. If you're only using the moses command line to do experiments, you don't need the server so you don't need to include xmlrpc-c library.
On Thu, Oct 31, 2019, 12:17 PM Hrafn Loftsson <HRAFN@ru.is<mailto:HRAFN@ru.is>> wrote:
Hi.
I'm trying to build moses on Mac OS Mojave (10.14.6).
I have downloaded and built boost with success.
According to http://www.statmt.org/moses/?n=Development.GetStarted, I need to install xmlrpc-c independently, which I did using brew.
This is the exact command I use when trying to build moses:
./bjam --with-boost=/Users/hrafn/nlp/smt/boost_1_71_0/ --with-cmph=/usr/local/Cellar/xmlrpc-c/1.39.12/ -j4 toolset=clang
I have attached the build.log
When inspecting the log, I can see the following:
"clang++" -x c -O3 -I/usr/local/Cellar/xmlrpc-c/1.39.12/include -std=c++0x -O3 -finline-functions -Wno-inline -Wall -DHAVE_CMPH -DHAVE_XMLRPC_C -DKENLM_MAX_ORDER=6 -DMOSES_VERSION_ID=\"mmt-mvp-v0.12.1-2869-g0fef8ebf4\" -DNDEBUG -DTRACE_ENABLE=1 -DWITH_THREADS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I"." -I"/Users/hrafn/nlp/smt/boost_1_71_0/include" -c -o "symal/bin/clang-darwin-4.2.1/release/link-static/threading-multi/cmd.o" "symal/cmd.c"
error: invalid argument '-std=c++0x' not allowed with 'C'
Does this mean that C code is being compiled here, with an invalid c++ option?
Regards,
Hrafn
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu<mailto:Moses-support@mit.edu>
http://mailman.mit.edu/mailman/listinfo/moses-support
------------------------------
Message: 2
Date: Thu, 31 Oct 2019 17:23:01 -0700
From: Hieu Hoang <hieuhoang@gmail.com>
Subject: Re: [Moses-support] Building mosesdecoder on Mac OS
To: Hrafn Loftsson <HRAFN@ru.is>
Cc: moses-support <moses-support@mit.edu>
Message-ID:
<CAEKMkbjaPC_31ZREyo3Gthe=a7D0NQu7fpAuNbDOqLvMq+t32w@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
That's odd, it should be using clang rather than clang++ to compile cmd.c
I've created a branch to try and fix it
https://github.com/moses-smt/mosesdecoder/tree/clang-error
so git checkout clang-error and try to compile again
It looks like clang/osx build is starting to seriously diverge from gcc and
could be a long-term problem. I don't have time to deal with it anymore so
you may have to retreat to gcc on linux if there are lots more issues
On Thu, Oct 31, 2019, 12:55 PM Hrafn Loftsson <HRAFN@ru.is> wrote:
> Thanks for a quick reply.
>
>
> Yes, I was planning to use moses only for command line experiments.
>
>
> Following your advice, I uninstalled the xmlrpc-c library and now I build
> using:
>
>
> ./bjam --with-boost=/Users/hrafn/nlp/smt/boost_1_71_0/ -j4 toolset=clang
>
>
> Unfortunately, I get a similar error:
>
>
> clang-darwin.compile.c
> symal/bin/clang-darwin-4.2.1/release/link-static/threading-multi/cmd.o
>
> "clang++" -x c -O3 -std=c++0x -O3 -finline-functions -Wno-inline -Wall
> -DKENLM_MAX_ORDER=6 -DMOSES_VERSION_ID=\"mmt-mvp-v0.12.1-2869-g0fef8ebf4\"
> -DNDEBUG -DTRACE_ENABLE=1 -DWITH_THREADS -D_FILE_OFFSET_BITS=64
> -D_LARGE_FILES -I"." -I"/Users/hrafn/nlp/smt/boost_1_71_0/include" -c -o
> "symal/bin/clang-darwin-4.2.1/release/link-static/threading-multi/cmd.o"
> "symal/cmd.c"
>
> error: invalid argument '-std=c++0x' not allowed with 'C'
> ...failed clang-darwin.compile.c
> symal/bin/clang-darwin-4.2.1/release/link-static/threading-multi/cmd.o...
>
>
>
> Regards,
>
> Hrafn Loftsson, Ph.D., www.ru.is/~hrafn<http://www.ru.is/~hrafn>
> D?sent | Associate Professor
> T?lvunarfr??ideild | School of Computer Science
> H?sk?linn ? Reykjav?k | Reykjavik University
>
>
> ________________________________
> Fr?: Hieu Hoang <hieuhoang@gmail.com>
> Sent: 31. okt?ber 2019 19:33
> Til: Hrafn Loftsson
> Afrit: moses-support
> Efni: Re: [Moses-support] Building mosesdecoder on Mac OS
>
> It's been a few years since I've used osx.
>
> My advice is
> 1. Don't include cmph library. It's only used by the compact phrase
> table which crashes on osx
> 2. If you're only using the moses command line to do experiments, you
> don't need the server so you don't need to include xmlrpc-c library.
>
> On Thu, Oct 31, 2019, 12:17 PM Hrafn Loftsson <HRAFN@ru.is<mailto:
> HRAFN@ru.is>> wrote:
> Hi.
>
>
> I'm trying to build moses on Mac OS Mojave (10.14.6).
>
>
> I have downloaded and built boost with success.
>
>
> According to http://www.statmt.org/moses/?n=Development.GetStarted, I
> need to install xmlrpc-c independently, which I did using brew.
>
>
> This is the exact command I use when trying to build moses:
>
>
> ./bjam --with-boost=/Users/hrafn/nlp/smt/boost_1_71_0/
> --with-cmph=/usr/local/Cellar/xmlrpc-c/1.39.12/ -j4 toolset=clang
>
>
> I have attached the build.log
>
>
> When inspecting the log, I can see the following:
>
>
> "clang++" -x c -O3 -I/usr/local/Cellar/xmlrpc-c/1.39.12/include
> -std=c++0x -O3 -finline-functions -Wno-inline -Wall -DHAVE_CMPH
> -DHAVE_XMLRPC_C -DKENLM_MAX_ORDER=6
> -DMOSES_VERSION_ID=\"mmt-mvp-v0.12.1-2869-g0fef8ebf4\" -DNDEBUG
> -DTRACE_ENABLE=1 -DWITH_THREADS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I"."
> -I"/Users/hrafn/nlp/smt/boost_1_71_0/include" -c -o
> "symal/bin/clang-darwin-4.2.1/release/link-static/threading-multi/cmd.o"
> "symal/cmd.c"
>
> error: invalid argument '-std=c++0x' not allowed with 'C'
>
>
> Does this mean that C code is being compiled here, with an invalid c++
> option?
>
>
> Regards,
> Hrafn
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu<mailto:Moses-support@mit.edu>
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20191031/13db1ad0/attachment.html
------------------------------
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support
End of Moses-support Digest, Vol 156, Issue 8
*********************************************
Subscribe to:
Post Comments (Atom)
0 Response to "Moses-support Digest, Vol 156, Issue 8"
Post a Comment