Hi all,
   I install moses on ubuntu 12.04 which is 32-bit but failed. Before 
installing moses, I have installed "libboost-all-dev". My command is "./bjam 
-j2".  The build.log is in attachment and the following is part of error 
information:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
...failed gcc.link 
moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/moses...
...skipped <p/home/yzx/mosesdecoder/bin>moses for lack of 
<pmoses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>moses...
...failed updating 1 target...
...skipped 1 target...
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thank you!
Zhenxin Yang

notice: found boost-build.jam at /usr/share/boost-build/boost-build.jam
notice: loading Boost.Build from /usr/share/boost-build/kernel
notice: Searching /etc /home/yzx /usr/share/boost-build/kernel 
/usr/share/boost-build /usr/share/boost-build/kernel 
/usr/share/boost-build/util /usr/share/boost-build/build 
/usr/share/boost-build/tools /usr/share/boost-build/contrib 
/usr/share/boost-build/. for site-config configuration file site-config.jam .
notice: Loading site-config configuration file site-config.jam from 
/home/yzx/site-config.jam .
notice: Searching /home/yzx /usr/share/boost-build/kernel 
/usr/share/boost-build /usr/share/boost-build/kernel 
/usr/share/boost-build/util /usr/share/boost-build/build 
/usr/share/boost-build/tools /usr/share/boost-build/contrib 
/usr/share/boost-build/. for user-config configuration file user-config.jam .
notice: Loading user-config configuration file user-config.jam from 
/home/yzx/user-config.jam .

file /home/yzx/mosesdecoder/previous.sh
#!/bin/sh
/usr/bin/bjam -j2 --debug-configuration -d2


bash -c "g++ -lSegFault -x c++ - <<<'int main() {}' -o 
/home/yzx/mosesdecoder/dummy >/dev/null 2>/dev/null && rm 
/home/yzx/mosesdecoder/dummy 2>/dev/null"
 0
bash -c "g++  -static -lSegFault -x c++ - <<<'int main() {}' -o 
/home/yzx/mosesdecoder/dummy >/dev/null 2>/dev/null && rm 
/home/yzx/mosesdecoder/dummy 2>/dev/null"
 1
bash -c "g++  -lboost_program_options-1_46_1 -x c++ - <<<'int main() {}' -o 
/home/yzx/mosesdecoder/dummy >/dev/null 2>/dev/null && rm 
/home/yzx/mosesdecoder/dummy 2>/dev/null"
 1
bash -c "g++  -static -lboost_program_options -x c++ - <<<'int main() {}' -o 
/home/yzx/mosesdecoder/dummy >/dev/null 2>/dev/null && rm 
/home/yzx/mosesdecoder/dummy 2>/dev/null"
 0
bash -c "g++  -lboost_system-mt  -static -x c++ - <<<'int main() {}' -o 
/home/yzx/mosesdecoder/dummy >/dev/null 2>/dev/null && rm 
/home/yzx/mosesdecoder/dummy 2>/dev/null"
 0
bash -c "g++  -lboost_thread-mt  -static -x c++ - <<<'int main() {}' -o 
/home/yzx/mosesdecoder/dummy >/dev/null 2>/dev/null && rm 
/home/yzx/mosesdecoder/dummy 2>/dev/null"
 0
bash -c "g++  -lboost_program_options-mt  -static -x c++ - <<<'int main() {}' 
-o /home/yzx/mosesdecoder/dummy >/dev/null 2>/dev/null && rm 
/home/yzx/mosesdecoder/dummy 2>/dev/null"
 0
bash -c "g++  -lboost_unit_test_framework-mt  -DBOOST_TEST_MODULE=CompileTest  
-include boost/test/unit_test.hpp  -static -x c++ - 
<<<'BOOST_AUTO_TEST_CASE(foo) {}' -o /home/yzx/mosesdecoder/dummy >/dev/null 
2>/dev/null && rm /home/yzx/mosesdecoder/dummy 2>/dev/null"
 0
bash -c "g++  -lboost_iostreams-mt  -static -x c++ - <<<'int main() {}' -o 
/home/yzx/mosesdecoder/dummy >/dev/null 2>/dev/null && rm 
/home/yzx/mosesdecoder/dummy 2>/dev/null"
 0
bash -c "g++  -lboost_filesystem-mt  -static -x c++ - <<<'int main() {}' -o 
/home/yzx/mosesdecoder/dummy >/dev/null 2>/dev/null && rm 
/home/yzx/mosesdecoder/dummy 2>/dev/null"
 0
bash -c "g++  -static -lz -x c++ - <<<'int main() {}' -o 
/home/yzx/mosesdecoder/dummy >/dev/null 2>/dev/null && rm 
/home/yzx/mosesdecoder/dummy 2>/dev/null"
 0
bash -c "g++ -ltcmalloc_minimal -x c++ - <<<'int main() {}' -o 
/home/yzx/mosesdecoder/dummy >/dev/null 2>/dev/null && rm 
/home/yzx/mosesdecoder/dummy 2>/dev/null"
 1
warning: No toolsets are configured.
warning: Configuring default toolset "gcc".
warning: If the default is wrong, your build may not work correctly.
warning: Use the "toolset=xxxxx" option to override our guess.
warning: For more configuration options, please consult
warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html
notice: will use 'g++' for gcc, condition <toolset>gcc-4.6
notice: using gcc libraries :: <toolset>gcc-4.6 :: /usr/bin /usr/lib /usr/lib32 
/usr/lib64
notice: using gcc archiver :: <toolset>gcc-4.6 :: /usr/bin/ar
notice: using gcc ranlib :: <toolset>gcc-4.6 :: /usr/bin/ranlib
warning: toolset gcc initialization: can not find tool windres
warning: initialized from
notice: using rc compiler :: <toolset>gcc-4.6 :: /usr/bin/as
bash -c "g++ -lbz2 -x c++ - <<<'int main() {}' -o /home/yzx/mosesdecoder/dummy 
>/dev/null 2>/dev/null && rm /home/yzx/mosesdecoder/dummy 2>/dev/null"
 1
bash -c "g++ -llzma -x c++ - <<<'int main() {}' -o /home/yzx/mosesdecoder/dummy 
>/dev/null 2>/dev/null && rm /home/yzx/mosesdecoder/dummy 2>/dev/null"
 1
...patience...
...found 3160 targets...
...updating 2 targets...
gcc.link 
moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/moses

    "g++"    -o 
"moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/moses"
 -Wl,--start-group 
"moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/Main.o"
 
"moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/IOWrapper.o"
 
"moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/mbr.o"
 
"moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/LatticeMBR.o"
 
"moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/TranslationAnalysis.o"
 
"moses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/libmoses.a"
  -Wl,-Bstatic -lz -lboost_filesystem-mt -lboost_iostreams-mt -lboost_system-mt 
-lboost_thread-mt -lz -Wl,-Bdynamic -lrt -lSegFault -lrt -Wl,--end-group -g 
-pthread 


/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_iostreams-mt.a(bzip2.o):
 In function `boost::iostreams::detail::bzip2_base::do_init(bool, void* 
(*)(void*, int, int), void (*)(void*, void*), void*)':
(.text+0x2e9): undefined reference to `BZ2_bzDecompressInit'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_iostreams-mt.a(bzip2.o):
 In function `boost::iostreams::detail::bzip2_base::do_init(bool, void* 
(*)(void*, int, int), void (*)(void*, void*), void*)':
(.text+0x391): undefined reference to `BZ2_bzCompressInit'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_iostreams-mt.a(bzip2.o):
 In function `boost::iostreams::detail::bzip2_base::end(bool)':
(.text+0x455): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_iostreams-mt.a(bzip2.o):
 In function `boost::iostreams::detail::bzip2_base::end(bool)':
(.text+0x4d1): undefined reference to `BZ2_bzCompressEnd'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_iostreams-mt.a(bzip2.o):
 In function `boost::iostreams::detail::bzip2_base::compress(int)':
(.text+0x18c): undefined reference to `BZ2_bzCompress'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_iostreams-mt.a(bzip2.o):
 In function `boost::iostreams::detail::bzip2_base::decompress()':
(.text+0x19c): undefined reference to `BZ2_bzDecompress'
collect2: ld 返回 1
...failed gcc.link 
moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/moses...
...skipped <p/home/yzx/mosesdecoder/bin>moses for lack of 
<pmoses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>moses...
...failed updating 1 target...
...skipped 1 target...
The build failed with command line: 
  /usr/bin/bjam -j2 --debug-configuration -d2
If you need support, attach the full output to your e-mail.
ERROR
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to