Moses-support Digest, Vol 100, Issue 55

Send Moses-support mailing list submissions to
moses-support@mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.mit.edu/mailman/listinfo/moses-support
or, via email, send a message with subject or body 'help' to
moses-support-request@mit.edu

You can reach the person managing the list at
moses-support-owner@mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moses-support digest..."


Today's Topics:

1. compilation problems (Matt Post)
2. Re: compilation problems (Kenneth Heafield)


----------------------------------------------------------------------

Message: 1
Date: Mon, 16 Feb 2015 11:42:15 -0500
From: Matt Post <post@cs.jhu.edu>
Subject: [Moses-support] compilation problems
To: moses-support@mit.edu
Message-ID: <C2B26F6C-9907-44E2-895B-EC2E0182A5EE@cs.jhu.edu>
Content-Type: text/plain; charset="us-ascii"

Hi,

I am running into a number of problems compiling Moses 3.0. I am using GCC 4.9.2 and a custom (correct) install of Boost 1.57.0.

1. First, I had to add this:

<library>boost_filesystem

to line 174 of Jamroot (per this discussion: https://github.com/moses-smt/mosesdecoder/issues/89 <https://github.com/moses-smt/mosesdecoder/issues/89> )

2. Things like lmplz do not compile, and aren't even attempted, perhaps because all of the tests fail.

./bjam --max-factors=1 --max-kenlm-order=5 debug-symbols=off -j4 -d2 --with-boost=/opt/boost threading=single --notrace link=shared --without-libsegfault
[snip]
...failed updating 30 targets...
...skipped 36 targets...

It seems like something with boost unit tests? e.g.,

"g++" -L"/opt/boost/lib" -L"/opt/boost/lib64" -Wl,-R -Wl,"/home/hltcoe/mpost/code/mosesdecoder/mert/bin/gcc-4.9.2/release" -Wl,-R -Wl,"/opt/boost/lib" -Wl,-R -Wl,"/opt/boost/lib64" -Wl,-rpath-link -Wl,"/home/hltcoe/mpost/code/mosesdecoder/mert/bin/gcc-4.9.2/release" -Wl,-rpath-link -Wl,"/opt/boost/lib" -Wl,-rpath-link -Wl,"/opt/boost/lib64" -o "mert/bin/gcc-4.9.2/release/timer_test" -Wl,--start-group "mert/bin/gcc-4.9.2/release/TimerTest.o" "mert/bin/gcc-4.9.2/release/libmert_lib.so" -Wl,-Bstatic -Wl,-Bdynamic -lboost_unit_test_framework -ldl -lboost_system -lboost_filesystem -Wl,--end-group
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status

Debug file attached. Any ideas what's wrong?

matt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20150216/bf2e948e/attachment-0002.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log.gz
Type: application/x-gzip
Size: 3633 bytes
Desc: not available
Url : http://mailman.mit.edu/mailman/private/moses-support/attachments/20150216/bf2e948e/attachment-0001.bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20150216/bf2e948e/attachment-0003.htm

------------------------------

Message: 2
Date: Mon, 16 Feb 2015 11:50:04 -0500
From: Kenneth Heafield <moses@kheafield.com>
Subject: Re: [Moses-support] compilation problems
To: moses-support@mit.edu
Message-ID: <54E21FBC.70001@kheafield.com>
Content-Type: text/plain; charset=windows-1252

Hi Matt,

lmplz should be compiling anyway, despite the tests failing. Try
reverting this commit, which broke shared compilation for tests:

commit d7f5bb41faaac5ca93b9cbb723ad558b2c67d3c2
Author: Hieu Hoang <hieuhoang@gmail.com>
Date: Tue Jan 27 16:22:15 2015 +0000

Regarding boost_filesystem we'll probably have to add that dependency
since Boost doesn't really document which of their libraries depend on
other libraries.

Kenneth

On 02/16/2015 11:42 AM, Matt Post wrote:
> Hi,
>
> I am running into a number of problems compiling Moses 3.0. I am using
> GCC 4.9.2 and a custom (correct) install of Boost 1.57.0.
>
> 1. First, I had to add this:
>
> <library>boost_filesystem
>
> to line 174 of Jamroot (per this
> discussion: https://github.com/moses-smt/mosesdecoder/issues/89 )
>
> 2. Things like lmplz do not compile, and aren't even attempted, perhaps
> because all of the tests fail.
>
> ./bjam --max-factors=1 --max-kenlm-order=5 debug-symbols=off -j4 -d2
> --with-boost=/opt/boost threading=single --notrace link=shared
> --without-libsegfault
> [snip]
> ...failed updating 30 targets...
> ...skipped 36 targets...
>
> It seems like something with boost unit tests? e.g.,
>
> "g++" -L"/opt/boost/lib" -L"/opt/boost/lib64" -Wl,-R
> -Wl,"/home/hltcoe/mpost/code/mosesdecoder/mert/bin/gcc-4.9.2/release"
> -Wl,-R -Wl,"/opt/boost/lib" -Wl,-R -Wl,"/opt/boost/lib64"
> -Wl,-rpath-link
> -Wl,"/home/hltcoe/mpost/code/mosesdecoder/mert/bin/gcc-4.9.2/release"
> -Wl,-rpath-link -Wl,"/opt/boost/lib" -Wl,-rpath-link
> -Wl,"/opt/boost/lib64" -o "mert/bin/gcc-4.9.2/release/timer_test"
> -Wl,--start-group
> "mert/bin/gcc-4.9.2/release/TimerTest.o" "mert/bin/gcc-4.9.2/release/libmert_lib.so" -Wl,-Bstatic -Wl,-Bdynamic
> -lboost_unit_test_framework -ldl -lboost_system -lboost_filesystem
> -Wl,--end-group
> /usr/lib/../lib64/crt1.o: In function `_start':
> (.text+0x20): undefined reference to `main'
> collect2: error: ld returned 1 exit status
>
> Debug file attached. Any ideas what's wrong?
>
> matt
>
>
>
>
>
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support
>


------------------------------

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


End of Moses-support Digest, Vol 100, Issue 55
**********************************************

Related Posts :

0 Response to "Moses-support Digest, Vol 100, Issue 55"

Post a Comment