Re: [Moses-support] Moses Build Error
I finally decided to start on a clean slate and restored back the machine to factory setting. a. downloaded all necessary tools required from http://www.statmt.org/moses/?n=Development.GetStarted b. installed dependencies using contrib/Makefiles/install-dependencies.gmake c. built moses using these: sudo ./bjam --with-boost=/opt toolset=clang -j4 and still got the build error. I am attaching the build log.. can anyone help me please :( On Fri, Aug 25, 2017 at 3:17 AM, Hieu Hoangwrote: > what version of clang do you have on your machine? It works fine on my Mac > with the following version > $clang --version > Apple LLVM version 8.1.0 (clang-802.0.42) > You may need to update if yours is older > > > Hieu Hoang > http://moses-smt.org/ > > > On 24 August 2017 at 09:18, Aileen Joan Vicente > wrote: > >> Hi all! I tried to compile moses again and found this error: >> >> error: invalid argument '-std=c++0x' not allowed with 'C/ObjC' >> >> >> "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-2766-g23cf6c4\" >> -DNDEBUG -DTRACE_ENABLE=1 -DWITH_THREADS -D_FILE_OFFSET_BITS=64 >> -D_LARGE_FILES -I"." -c -o "symal/bin/clang-darwin-4.2.1/ >> release/link-static/threading-multi/cmd.o" "symal/cmd.c" >> >> >> What does this mean? >> >> I am on Mac OS X Sierra. >> >> >> Thank you. >> >> ___ >> Moses-support mailing list >> Moses-support@mit.edu >> http://mailman.mit.edu/mailman/listinfo/moses-support >> >> > build.log.gz Description: GNU Zip compressed data ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
Re: [Moses-support] Moses Build Error
what version of clang do you have on your machine? It works fine on my Mac with the following version $clang --version Apple LLVM version 8.1.0 (clang-802.0.42) You may need to update if yours is older Hieu Hoang http://moses-smt.org/ On 24 August 2017 at 09:18, Aileen Joan Vicentewrote: > Hi all! I tried to compile moses again and found this error: > > error: invalid argument '-std=c++0x' not allowed with 'C/ObjC' > > > "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-2766-g23cf6c4\" > -DNDEBUG -DTRACE_ENABLE=1 -DWITH_THREADS -D_FILE_OFFSET_BITS=64 > -D_LARGE_FILES -I"." -c -o "symal/bin/clang-darwin-4.2.1/ > release/link-static/threading-multi/cmd.o" "symal/cmd.c" > > > What does this mean? > > I am on Mac OS X Sierra. > > > Thank you. > > ___ > Moses-support mailing list > Moses-support@mit.edu > http://mailman.mit.edu/mailman/listinfo/moses-support > > ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
[Moses-support] Moses Build Error
Hi all! I tried to compile moses again and found this error: error: invalid argument '-std=c++0x' not allowed with 'C/ObjC' "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-2766-g23cf6c4\" -DNDEBUG -DTRACE_ENABLE=1 -DWITH_THREADS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I"." -c -o "symal/bin/clang-darwin-4.2.1/release/link-static/threading-multi/cmd.o" "symal/cmd.c" What does this mean? I am on Mac OS X Sierra. Thank you. ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
[Moses-support] moses build error
...failed gcc.link mert/bin/gcc-5.2.1/release/link-static/threading-multi/vocabulary_test... ...skipped vocabulary_test.passed for lack of vocabulary_test... ...failed updating 38 targets... ...skipped 116 targets... ...updated 858 targets... The build failed. If you need support, run: /usr/bin/bjam --with-srilm=/SMT/srilm --with-irstlm=/SMT/irstlm --with-giza=/SMT/bin -j2 --debug-configuration -d2 |gzip >build.log.gz then attach build.log.gz to your e-mail. You MUST do 3 things before sending to the mailing list: 1. Subscribe to the mailing list at http://mailman.mit.edu/mailman/listinfo/moses-support 2. Attach build.log.gz to your e-mail 3. Say what is the EXACT command you executed when you got the error ERROR root@ubuntuSrv:~/SMT/moses# /usr/bin/bjam --with-srilm=/SMT/srilm --with-irstlm=/SMT/irstlm --with-giza=/SMT/bin -j2 --debug-configuration -d2 |gzip >build.log.gz sh: 1: /SMT/srilm/sbin/machine-type: not found build.log.gz Description: GNU Zip compressed data ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
Re: [Moses-support] moses build error
unless you have a specific reason to use SRILM or IRSTLM, stick with KenLM. This is built into Moses, you're less likely to get compile errors On 28/12/15 11:35, Adel Khalifa wrote: ...failed gcc.link mert/bin/gcc-5.2.1/release/link-static/threading-multi/vocabulary_test... ...skipped vocabulary_test.passed for lack of vocabulary_test... ...failed updating 38 targets... ...skipped 116 targets... ...updated 858 targets... The build failed. If you need support, run: /usr/bin/bjam --with-srilm=/SMT/srilm --with-irstlm=/SMT/irstlm --with-giza=/SMT/bin -j2 --debug-configuration -d2 |gzip >build.log.gz then attach build.log.gz to your e-mail. You MUST do 3 things before sending to the mailing list: 1. Subscribe to the mailing list at http://mailman.mit.edu/mailman/listinfo/moses-support 2. Attach build.log.gz to your e-mail 3. Say what is the EXACT command you executed when you got the error ERROR root@ubuntuSrv:~/SMT/moses# /usr/bin/bjam --with-srilm=/SMT/srilm --with-irstlm=/SMT/irstlm --with-giza=/SMT/bin -j2 --debug-configuration -d2 |gzip >build.log.gz sh: 1: /SMT/srilm/sbin/machine-type: not found ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support -- Hieu Hoang http://www.hoang.co.uk/hieu ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
[Moses-support] moses build error with cmph
Hello, I'm updating the Arch Linux package for moses release 3. First I tested building my package locally and moses compiled fine with cmph located in /opt/cmph. After I uploaded my package to Arch's repos, I had to change the path to cmph to /usr, because the cmph package is maintained by another person and he chose to install it there. So, here is the bjam command *** ./bjam --prefix=$pkgdir/opt/moses debug-symbols=off \ --with-xmlrpc-c \ --with-cmph=/usr \ --install-scripts=$pkgdir/opt/moses/moses-scripts \ -j2 ** and this is the linking error I get * gcc.link moses-cmd/bin/gcc-5.2.0/release/link-static/threading-multi/moses /usr/bin/ld: cannot find -lcmph collect2: error: ld returned 1 exit status ** Thanks in advance for any hints. Panos ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
Re: [Moses-support] moses build error with cmph [SOLVED]
It seems the cmph package specs in Arch's repos were missing the 'staticlibs' option. Now moses builds and links fine with cmph. Sorry for the noise. Panos On Saturday 03 of October 2015 18:02:10 Panos Kanavos wrote: > Hello, > > I'm updating the Arch Linux package for moses release 3. First I tested > building my package locally and moses compiled fine with cmph located in > /opt/cmph. After I uploaded my package to Arch's repos, I had to change the > path to cmph to /usr, because the cmph package is maintained by another > person and he chose to install it there. So, here is the bjam command > > *** > ./bjam --prefix=$pkgdir/opt/moses debug-symbols=off \ >--with-xmlrpc-c \ >--with-cmph=/usr \ >--install-scripts=$pkgdir/opt/moses/moses-scripts \ >-j2 > > ** > > and this is the linking error I get > > * > gcc.link moses-cmd/bin/gcc-5.2.0/release/link-static/threading-multi/moses > /usr/bin/ld: cannot find -lcmph > collect2: error: ld returned 1 exit status > > ** > > Thanks in advance for any hints. > > Panos ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
Re: [Moses-support] Moses build error
You should have the depedencies listed on the wiki page installed: http://www.statmt.org/moses/?n=Development.GetStarted You don't have the zlib headers installed according to the log, and others may also probably not installed. The -j parameter is for CPU core numbers, which is the number of parallel compile tasks. 在 2015年07月12日 17:31, gang tang 写道: Dear All, My name is Gary Tang and I am new to Moses and moses-support mailing list. I was building Moses when I got errors, which were attached to this message. The exact command I used was ./bjam -j4 Could someone help me with it? Thanks! Sincerely, Gary Tang ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
Re: [Moses-support] Moses build error
./bjam -j4 j4 is for your processor generation example : i3 .../bjam -j3 i5./bjam -j5 hope it helps you. Ashok Kumar Yadav Mechanical engineering (Dual Degree) 4th year Undergraduate Student Indian Institute Of Technology Madras Chennai 600036 Mob:9043429762 On Sun, Jul 12, 2015 at 3:01 PM, gang tang gangtang2...@126.com wrote: Dear All, My name is Gary Tang and I am new to Moses and moses-support mailing list. I was building Moses when I got errors, which were attached to this message. The exact command I used was ./bjam -j4 Could someone help me with it? Thanks! Sincerely, Gary Tang ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
Re: [Moses-support] Moses build error
I did an sudo apt-get install zlib1g-dev which solved the zlib.h missing problem. But I got linking problem when I continued building, error message attached. At 2015-07-12 18:08:46, Dingyuan Wang abcdoyle...@gmail.com wrote: You should have the depedencies listed on the wiki page installed: http://www.statmt.org/moses/?n=Development.GetStarted You don't have the zlib headers installed according to the log, and others may also probably not installed. The -j parameter is for CPU core numbers, which is the number of parallel compile tasks. 在 2015年07月12日 17:31, gang tang 写道: Dear All, My name is Gary Tang and I am new to Moses and moses-support mailing list. I was building Moses when I got errors, which were attached to this message. The exact command I used was ./bjam -j4 Could someone help me with it? Thanks! Sincerely, Gary Tang ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support build.log.gz Description: GNU Zip compressed data ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
Re: [Moses-support] Moses Build Error: Failed gcc.link
Hello Moses Support Group can you help me to fix this problem? On Fri, Nov 14, 2014 at 2:30 PM, Rajen Chatterjee rajen.k.chatter...@gmail.com wrote: Hi Everyone, When I build moses with the following command it works: ./bjam --with-boost=/home/chatterjee/Public/SMT/boost_1_55_0 -j4 but when I try to build with SRILM with the following command it shows error failed gcc.link:(PFA log file) ./bjam --with-boost=/home/chatterjee/Public/SMT/boost_1_55_0 --with-srilm=/home/chatterjee/Public/SMT/srilm-1.7.1 -j4 Did anyone face similar problem and any solution to it? PS: SRILM is installed successfully and all test cases produced identical result. So I guess there is no problem with SRILM installation. -- -Regards, Rajen Chatterjee. -- -Regards, Rajen Chatterjee. build.log.gz Description: GNU Zip compressed data ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
Re: [Moses-support] Moses Build Error: Failed gcc.link
Hi, You should probably try to recompile an earlier version of SRILM, earlier than 1.7.1. Cheers, Yu On Mon, Nov 17, 2014 at 10:48 AM, Rajen Chatterjee rajen.k.chatter...@gmail.com wrote: Hello Moses Support Group can you help me to fix this problem? On Fri, Nov 14, 2014 at 2:30 PM, Rajen Chatterjee rajen.k.chatter...@gmail.com wrote: Hi Everyone, When I build moses with the following command it works: ./bjam --with-boost=/home/chatterjee/Public/SMT/boost_1_55_0 -j4 but when I try to build with SRILM with the following command it shows error failed gcc.link:(PFA log file) ./bjam --with-boost=/home/chatterjee/Public/SMT/boost_1_55_0 --with-srilm=/home/chatterjee/Public/SMT/srilm-1.7.1 -j4 Did anyone face similar problem and any solution to it? PS: SRILM is installed successfully and all test cases produced identical result. So I guess there is no problem with SRILM installation. -- -Regards, Rajen Chatterjee. -- -Regards, Rajen Chatterjee. ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
Re: [Moses-support] Moses Build Error: Failed gcc.link
ok thanks On Mon, Nov 17, 2014 at 11:04 AM, Yu Tracy Chen yuc...@coli.uni-sb.de wrote: Hi, You should probably try to recompile an earlier version of SRILM, earlier than 1.7.1. Cheers, Yu On Mon, Nov 17, 2014 at 10:48 AM, Rajen Chatterjee rajen.k.chatter...@gmail.com wrote: Hello Moses Support Group can you help me to fix this problem? On Fri, Nov 14, 2014 at 2:30 PM, Rajen Chatterjee rajen.k.chatter...@gmail.com wrote: Hi Everyone, When I build moses with the following command it works: ./bjam --with-boost=/home/chatterjee/Public/SMT/boost_1_55_0 -j4 but when I try to build with SRILM with the following command it shows error failed gcc.link:(PFA log file) ./bjam --with-boost=/home/chatterjee/Public/SMT/boost_1_55_0 --with-srilm=/home/chatterjee/Public/SMT/srilm-1.7.1 -j4 Did anyone face similar problem and any solution to it? PS: SRILM is installed successfully and all test cases produced identical result. So I guess there is no problem with SRILM installation. -- -Regards, Rajen Chatterjee. -- -Regards, Rajen Chatterjee. ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support -- -Regards, Rajen Chatterjee. ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
Re: [Moses-support] Moses build error
Also I'm on Ubuntu 12.04 64 bits, it that detail rings any historic bell. 2014/1/11 Olalekan Houdan ABOU BAKAR hou...@jolome.com Hello All, Trying to build the github version of Moses. I made a git clone and followed the instructions at https://github.com/moses-smt/mosesdecoder/blob/master/BUILD-INSTRUCTIONS.txt Ran the following code to build: ~mosesdecoder# ./bjam -j8 -a --toolset=gcc --with-tcmalloc --with-boost=/my_src/boost_1_55_0 --with-irstlm=usr/local/irstlm --with-randlm=/usr/local/lib --with-srilm=/my_src/srilm --with-dalm=/my_src/DALM-master --with-cmph=/usr/local/bin/ --with-xmlrpc-c=/usr/local/ But it failed.. Please find attached the build.log The following was run to get the build.log as instructed: /usr/bin/bjam -j8 -a --toolset=gcc --with-tcmalloc --with-boost=/my_src/boost_1_55_0 --with-irstlm=usr/local/irstlm --with-randlm=/usr/local/lib --with-srilm=/my_src/srilm --with-dalm=/my_src/DALM-master --with-cmph=/usr/local/bin/ --with-xmlrpc-c=/usr/local/ --debug-configuration -d2 build.log ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
Re: [Moses-support] Moses build error
Build is now successful. I forgot a *slash* when point to the IRSTLM installation.. lol ./bjam -j8 -a --toolset=gcc --with-tcmalloc --with-boost=/my_src/boost_1_55_0 --with-irstlm=usr/local/irstlm --with-randlm=/usr/local/lib --with-srilm=/my_src/srilm --with-dalm=/my_src/DALM-master --with-cmph=/usr/local/bin/ --with-xmlrpc-c=/usr/local/ 2014/1/11 Olalekan Houdan ABOU BAKAR hou...@jolome.com Also I'm on Ubuntu 12.04 64 bits, it that detail rings any historic bell. 2014/1/11 Olalekan Houdan ABOU BAKAR hou...@jolome.com Hello All, Trying to build the github version of Moses. I made a git clone and followed the instructions at https://github.com/moses-smt/mosesdecoder/blob/master/BUILD-INSTRUCTIONS.txt Ran the following code to build: ~mosesdecoder# ./bjam -j8 -a --toolset=gcc --with-tcmalloc --with-boost=/my_src/boost_1_55_0 --with-irstlm=usr/local/irstlm --with-randlm=/usr/local/lib --with-srilm=/my_src/srilm --with-dalm=/my_src/DALM-master --with-cmph=/usr/local/bin/ --with-xmlrpc-c=/usr/local/ But it failed.. Please find attached the build.log The following was run to get the build.log as instructed: /usr/bin/bjam -j8 -a --toolset=gcc --with-tcmalloc --with-boost=/my_src/boost_1_55_0 --with-irstlm=usr/local/irstlm --with-randlm=/usr/local/lib --with-srilm=/my_src/srilm --with-dalm=/my_src/DALM-master --with-cmph=/usr/local/bin/ --with-xmlrpc-c=/usr/local/ --debug-configuration -d2 build.log ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support