Hello, Guys,
I had problem for compiling the moses.

First, I tried to use boost1_50_0. It did not work.
Then, I tried to use boost1_46_1. It still did not work.
Basically they had the same error message "undefined reference to
`boost::system::generic_category()'".
Detailed messages are list as follows.
The command I used was:
sudo ./bjam threading=single variant=release debug-symbols=off
--with-boost=/home/moses/boost1461 -j22 -a -q
The error message is as follows:
Does anyone can help to solve this problem?

gcc.link moses-chart-cmd/src/bin/gcc-4.4.6/release/link-static/moses_chart
moses/src/bin/gcc-4.4.6/release/link-static/libmoses_internal.a(FactorCollection.o):
In function `global constructors keyed to
_ZN5Moses16FactorCollection10s_instanceE':
FactorCollection.cpp:(.text+0x55): undefined reference to
`boost::system::generic_category()'
FactorCollection.cpp:(.text+0x61): undefined reference to
`boost::system::generic_category()'
FactorCollection.cpp:(.text+0x6d): undefined reference to
`boost::system::system_category()'
collect2: ld returned 1 exit status

    "g++"    -o
"moses-chart-cmd/src/bin/gcc-4.4.6/release/link-static/moses_chart"
-Wl,--start-group
"moses-chart-cmd/src/bin/gcc-4.4.6/release/link-static/Main.o"
"moses-chart-cmd/src/bin/gcc-4.4.6/release/link-static/mbr.o"
"moses-chart-cmd/src/bin/gcc-4.4.6/release/link-static/IOWrapper.o"
"moses-chart-cmd/src/bin/gcc-4.4.6/release/link-static/TranslationAnalysis.o"
"moses-chart-cmd/src/bin/gcc-4.4.6/release/link-static/PhraseDictionary.o"
"moses/src/bin/gcc-4.4.6/release/link-static/libmoses_internal.a"
"util/bin/gcc-4.4.6/release/link-static/libkenutil.a"
"moses/src/Scope3Parser/bin/gcc-4.4.6/release/link-static/libScope3Parser.a"
"moses/src/CYKPlusParser/bin/gcc-4.4.6/release/link-static/libCYKPlusParser.a"
"OnDiskPt/bin/gcc-4.4.6/release/link-static/libOnDiskPt.a"
"moses/src/RuleTable/bin/gcc-4.4.6/release/link-static/libRuleTable.a"
"moses/src/Scope3Parser/bin/gcc-4.4.6/release/link-static/libScope3Parser.a"
"moses/src/LM/bin/gcc-4.4.6/release/link-static/libLM.a"
"lm/bin/gcc-4.4.6/release/link-static/libkenlm.a"
"moses/src/CYKPlusParser/bin/gcc-4.4.6/release/link-static/libCYKPlusParser.a"
"moses/src/bin/gcc-4.4.6/release/link-static/libmoses_internal.a"
"util/bin/gcc-4.4.6/release/link-static/libkenutil.a"  -Wl,-Bstatic
-Wl,-Bdynamic -lz -lSegFault -lz -Wl,--end-group


...failed gcc.link
moses-chart-cmd/src/bin/gcc-4.4.6/release/link-static/moses_chart...
gcc.compile.c++ mert/bin/gcc-4.4.6/release/link-static/TER/tools.o

Thanks a lot.
Best regards,
Ben
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to