Hi,

I'm trying to compile current Moses and I'm getting errors in backward LM tests. On a 64bit Ubuntu (GCC 4.3, Boost 1.40), I get a linker error when building the test (see attached bjam64bit.log). On a 32bit Gentoo (GCC 4.6, Boost 1.52), the test compiles but fails (see bjam32bit.log). What could be the problem?

It works fine on my laptop though :)

Best,
Ales


gcc.link moses/LM/bin/BackwardTest.test/gcc-4.6.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest
testing.capture-output moses/LM/bin/BackwardTest.test/gcc-4.6.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest.run
====== BEGIN OUTPUT ======
Running 1 test case...
moses/LM/BackwardTest.cpp(162): error in "ProbingAll": difference{100%} between static_cast<double>(TransformLMScore( 0.0 )){0} and static_cast<double>(ngramScore){1.3724476843890443e-07} exceeds 0.01%

*** 1 failure detected in test suite "BackwardTest"

EXIT STATUS: 201
====== END OUTPUT ======

    LD_LIBRARY_PATH="/usr/bin:/usr/lib:/usr/lib32:/usr/lib64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

     "moses/LM/bin/BackwardTest.test/gcc-4.6.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest"  "moses/LM/backward.arpa" > "moses/LM/bin/BackwardTest.test/gcc-4.6.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest.output" 2>&1
    status=$?
    echo >> "moses/LM/bin/BackwardTest.test/gcc-4.6.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest.output"
    echo EXIT STATUS: $status >> "moses/LM/bin/BackwardTest.test/gcc-4.6.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest.output"
    if test $status -eq 0 ; then
        cp "moses/LM/bin/BackwardTest.test/gcc-4.6.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest.output" "moses/LM/bin/BackwardTest.test/gcc-4.6.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest.run"
    fi
    verbose=0
    if test $status -ne 0 ; then
        verbose=1
    fi
    if test $verbose -eq 1 ; then
        echo ====== BEGIN OUTPUT ======
        cat "moses/LM/bin/BackwardTest.test/gcc-4.6.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest.output"
        echo ====== END OUTPUT ======
    fi
    exit $status

...failed testing.capture-output moses/LM/bin/BackwardTest.test/gcc-4.6.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest.run...

gcc.link moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest
moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/Backward.o: In function `BackwardLanguageModel':
/a/merkur3/TMP/tamchyna/moses2/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::ProbingModel>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)'
/a/merkur3/TMP/tamchyna/moses2/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::ArrayTrieModel>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)'
/a/merkur3/TMP/tamchyna/moses2/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::QuantTrieModel>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)'
/a/merkur3/TMP/tamchyna/moses2/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::TrieModel>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)'
/a/merkur3/TMP/tamchyna/moses2/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::RestProbingModel>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)'
/a/merkur3/TMP/tamchyna/moses2/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::ProbingModel>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)'
/a/merkur3/TMP/tamchyna/moses2/moses/LM/Backward.cpp:42: undefined reference to `Moses::LanguageModelKen<lm::ngram::QuantArrayTrieModel>::LanguageModelKen(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool)'
collect2: ld returned 1 exit status

    "g++"    -o "moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest" -Wl,--start-group "moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest.o" "moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/Backward.o" "moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/BackwardLMState.o" "moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/Base.o" "moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/Implementation.o" "moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/Joint.o" "moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/Ken.o" "moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/MultiFactor.o" "moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/Remote.o" "moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/SingleFactor.o" "moses/LM/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/ORLM.o" "util/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/read_compressed.o" "util/double-conversion/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/bignum-dtoa.o" "util/double-conversion/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/bignum.o" "util/double-conversion/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/cached-powers.o" "util/double-conversion/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/diy-fp.o" "util/double-conversion/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/double-conversion.o" "util/double-conversion/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/fast-dtoa.o" "util/double-conversion/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/fixed-dtoa.o" "util/double-conversion/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/strtod.o" "util/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/bit_packing.o" "util/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/ersatz_progress.o" "util/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/exception.o" "util/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/file.o" "util/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/file_piece.o" "util/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/mmap.o" "util/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/murmur_hash.o" "util/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/pool.o" "util/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/scoped.o" "util/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/string_piece.o" "util/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/usage.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/bhiksha.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/binary_format.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/config.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/lm_exception.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/model.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/quantize.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/read_arpa.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/search_hashed.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/search_trie.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/sizes.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/trie.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/trie_sort.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/value_build.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/virtual_interface.o" "lm/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/vocab.o" "moses/bin/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/libmoses.a"  -Wl,-Bstatic -lbz2 -lz -lboost_unit_test_framework-mt -lbz2 -lboost_thread-mt -lboost_system-mt -lz -Wl,-Bdynamic -lrt -lSegFault -lrt -Wl,--end-group -g -pthread 


...failed gcc.link moses/LM/bin/BackwardTest.test/gcc-4.4.3/release/debug-symbols-on/link-static/threading-multi/BackwardTest...

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to