Closed doried-a-a closed 7 years ago
Hi!
I've solved my issue with the following:
Firstly, bjam builder was issuing some g++ build commands without passing the libboost_serialization to them. So I fixed it with a small change on Jamroot (removed the line mentioning boost_serialozation as an external library).
There was another problem, prevented moses from building with OxLM, which is in the file
moses/TranslationModel/UG/mm/ug_typedefs.h
: here they defined a type named iptr
,
which was conflicting with a variable name in Eigen library used by OXLM.
I've fixed the problems in moses repository, and I've sent them a pull request, hoping they will accept it, so the problem be solved.
Best wishes!
Thanks for looking into this. Happy holidays!
Hello I'm trying to build moses with oxlm, I've been trying for many weeks with no results. When I try to build oxlm following the instructions described on this repo, it builds successfully. All I have to do is to set $BOOST_ROOT= path to boost installation on my PC. When I try to build moses, using the default configurations(static linking).. OXLM can not find any boost library.. and everything fails But when building moses with shared linking, specifically, with the following statement:
./bjam link=shared --shared -a -j24 --with-oxlm=/home/doried/tran/oxlm/ | tee out.txt
I get the following errors...
Tip: install tcmalloc for faster threading. See BUILD-INSTRUCTIONS.txt for more information. NOT BUILDING MOSES SERVER! Performing configuration checks
error: No best alternative for ./boost_serialization next alternative: required properties: shared matched next alternative: required properties: shared matched error: No best alternative for ./boost_serialization next alternative: required properties: shared matched next alternative: required properties: shared matched error: No best alternative for ./boost_serialization next alternative: required properties: shared matched next alternative: required properties: shared matched error: No best alternative for ./boost_serialization next alternative: required properties: shared matched next alternative: required properties: shared matched error: No best alternative for ./boost_serialization next alternative: required properties: shared matched next alternative: required properties: shared matched error: No best alternative for ./boost_serialization next alternative: required properties: shared matched next alternative: required properties: shared matched error: No best alternative for ./boost_serialization next alternative: required properties: shared matched next alternative: required properties: shared matched ...... ...... ...... HERE every thing seems to work normally ...... ......
and finally there is something like:
gcc.link moses/LM/bin/BackwardTest.test/gcc-4.8/release/threading-multi/BackwardTest /usr/bin/ld: moses/LM/bin/gcc-4.8/release/threading-multi/OxLM.o: undefined reference to symbol '_ZN5boost7archive23basic_binary_oprimitiveINS0_15binary_oarchiveEcSt11char_traitsIcEE4initEv' /home/doried/tran/boost_build/lib/libboost_serialization.so.1.61.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status
BOOST 1.61.0