thanks for letting us know

git pull and recompile, i've made a change that may correct your compile error:

https://github.com/moses-smt/mosesdecoder/commit/76469df5aab7af39100f31830676b9a7330d7589


On 22/07/2016 06:12, Zhe Su wrote:

Hi experts,

I have trouble in compiling moses with boost.

I downloaded the latest moses source code by command: git clone http://github.com/moses-smt/mosesdecoder.git, and I installed boost_1_59_0 successfully.

Then, I try to compile Moses with boost manually: ./bjam --with-boost=/scratch/zhesu/MT/boost_1_59_0

But always failed, the error snippet as follows:

gcc.compile.c++ 
moses/bin/gcc-4.4.7/release/link-static/threading-multi/FF/CorrectionPattern.o
moses/FF/CorrectionPattern.cpp: In member function ‘std::string 
Moses::CorrectionPattern::CreateSinglePattern(const Moses::Tokens&, const 
Moses::Tokens&) const’:
moses/FF/CorrectionPattern.cpp:146: error: using ‘typename’ outside of template
moses/FF/CorrectionPattern.cpp:147: error: using ‘typename’ outside of template

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread  -DKENLM_MAX_ORDER=6 -DMAX_NUM_FACTORS=4 
-DMOSES_VERSION_ID=\"mmt-mvp-v0.12.1-813-gef9d327\" -DNDEBUG -DTRACE_ENABLE=1 -DWITH_THREADS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  
-I"." -I"/scratch/zhesu/MT/boost_1_59_0/include" -I"util/double-conversion" -c -o 
"moses/bin/gcc-4.4.7/release/link-static/threading-multi/FF/CorrectionPattern.o" "moses/FF/CorrectionPattern.cpp"

...failed gcc.compile.c++ 
moses/bin/gcc-4.4.7/release/link-static/threading-multi/FF/CorrectionPattern.o...

I tried several times and turned to different host to do same operation, but all keep failing.

In earlier time, about May 25, I tried to compile Moses with boost manually, and on the same machine, it indeed success. So I am confused and wondering if there is something changed recently with moses source code?

I need your help and thanks a lot!!



--
Thanks,
Zhe Su



_______________________________________________
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

Reply via email to