Hi,
This looks like a mismatch between library and header versions. Does
/opt/boost_1_51_0/lib64/libboost_program_options-mt.so exist? Did you
use exactly this command for Boost, as recommended in
BUILD-INSTRUCTIONS.txt ?
./b2 --prefix=/opt/boost_1_51_0 --libdir=/opt/boost_1_51_0/lib64
--layout=tagged link=static,shared threading=multi,single install
Kenneth
On 12/28/12 14:37, Holger Schwenk wrote:
>
> Hello Hieu,
>
> thanks for you fast answer !
>
> I installed boost 1.51.0 and moses did compile (but I don't understand
> why Fedora doesn't upgrade the buggy boost version in FC 17 ...).
>
> However, there are a couple of errors when compiling mira and pro. I
> attached some of the error messages. It seems to me that this is related
> to linking.
>
> Hieu, do you manage to compile the current git version with boost_1_51_0
> ? Which compiler do you use ?
>
> Holger
>
> On 12/28/2012 01:00 PM, Hieu Hoang wrote:
>> hi holger
>>
>> i think there's a problem with boost 1.48.
>> http://article.gmane.org/gmane.comp.nlp.moses.user/7795/
>> i can't find any way around it.
>>
>> would you be able to compile with another boost lib and see if it works?
>>
>> in
>> BUILD-INSTRUCTIONS.txt
>> there's instructions on how to compile boost. Then link into moses using
>> ./bjam --with-boost=/Users/hieuhoang/workspace/boost/boost_1_51_0
>>
>> On 28/12/2012 11:35, Holger Schwenk wrote:
>>>
>>> Hello,
>>>
>>> I just installed Fedora Core 17(kernel 3.6.10, gcc 4.7.2, boost
>>> 1.48.0-13) and I get an error while compiling the latest version of
>>> Moses:
>>>
>>> ./bjam -j4 --with-srilm=$SRILM --with-giza=/usr/local/bin
>>> --prefix=/opt/mt/moses-smt/moses-2012-12-28
>>>
>>> fails with
>>>
>>> moses/FeatureVector.cpp:284:17: *warning: reference to local variable
>>> ‘backoff’ returned* [enabled by default]
>>>
>>> and
>>>
>>> ambiguous calls to boost in moses/FeatureVector.cpp
>>>
>>> The log file is attached.
>>>
>>> have you encountered this problem before or this seems to be rather
>>> an issue withmy installation ?
>>>
>>> thanks,
>>>
>>> Holger
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>
>
>
> _______________________________________________
> 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