Hi experts,

when trying to build a checkout from yesterday, I got an error:

 /usr/bin/ld: cannot find -lboost_filesystem 

[More output below the mail]

I'm using boost-1.46.
I think that the problem might be related to the fact that I have built boost 
with --threading=multi --layout=tagged.

I do have libboost_filesystem-mt.a in the relevant lib directory, but no 
libboost_filesystem.a (and this is true for all other boost-related libraries, 
too). I can spot in the output below that the -mt tag is added correctly in the 
-l instructions for some of the other boost libraries that are included, but 
not for boost_filesystem.

Also some grepping showed me that boost_filesystem occurs in src/moses/Jamfile, 
and it seems to be the only thing from boost that's mentioned there explicitly.

My environment is quite non-standard and the build is happening as part of a 
script that does a lot of other things, so there's a lot of stuff that may be 
wrong or lead to complications. But maybe you have some idea. The same script 
worked fine for building with a checkout from late 2011.

Thanks
Stephan

========================
I'm building in an environment containing:
LIBRARY_PATH=/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps/lib
CPATH=/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps/include

The command was:
$ linkflags="-Wl,-rpath=$DEP_INSTALLDIR/lib" ./bjam 
linkflags=-Wl,-rpath=/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps/lib
 
--prefix=/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25
 
--install-scripts=/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/bin/moses-scripts
 
--with-srilm=/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/INSTALL/src/srilm-1.5.12
 
--with-irstlm=/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25
 
--with-boost=/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps
 
--with-xmlrpc-c=/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps
 
--with-cmph=/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps
 
--with-giza=/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/bin
 --max-kenlm-order=!
 7 -j8 -a -q -d+2

....


The part of the output containing the error:

gcc.link 
moses-cmd/src/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/moses

    "g++" 
-L"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/INSTALL/src/srilm-1.5.12/flm/obj/i686"
 
-L"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/INSTALL/src/srilm-1.5.12/lib"
 
-L"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/INSTALL/src/srilm-1.5.12/lib/i686"
 
-L"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/INSTALL/src/srilm-1.5.12/lib64"
 
-L"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps/lib"
 
-L"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps/lib64"
 
-L"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/lib"
 
-L"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/lib64"
 -Wl,-R 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/INSTALL/src/srilm-1.5.12/flm/obj/i686"
 -Wl,-R -Wl,"/e!
 
c/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/INSTALL/src/srilm-1.5.12/lib"
 -Wl,-R 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/INSTALL/src/srilm-1.5.12/lib/i686"
 -Wl,-R 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/INSTALL/src/srilm-1.5.12/lib64"
 -Wl,-R 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps/lib"
 -Wl,-R 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps/lib64"
 -Wl,-R 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/lib"
 -Wl,-R 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/lib64"
 -Wl,-rpath-link 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/INSTALL/src/srilm-1.5.12/flm/obj/i686"
 -Wl,-rpath-link 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b!
 23_2012-09-25/INSTALL/src/srilm-1.5.12/lib" -Wl,-rpath-link -Wl,"/ec/d
g
t/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/INSTALL/src/srilm-1.5.12/lib/i686"
 -Wl,-rpath-link 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/INSTALL/src/srilm-1.5.12/lib64"
 -Wl,-rpath-link 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps/lib"
 -Wl,-rpath-link 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps/lib64"
 -Wl,-rpath-link 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/lib"
 -Wl,-rpath-link 
-Wl,"/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/lib64"
 -o 
"moses-cmd/src/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/moses"
 -Wl,--start-group 
"moses-cmd/src/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/Main.o"
 
"moses-cmd/src/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/mbr.o"
 "moses-cmd/src/bin/g!
 cc-4.1.2/release/debug-symbols-on/link-static/threading-multi/IOWrapper.o" 
"moses-cmd/src/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/TranslationAnalysis.o"
 
"moses-cmd/src/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/LatticeMBR.o"
 
"moses/src/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/libmoses.a"
 
"OnDiskPt/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/libOnDiskPt.a"
 
"moses/src/RuleTable/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/libRuleTable.a"
 
"moses/src/fuzzy-match/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/libfuzzy-match.a"
 
"moses/src/Scope3Parser/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/libScope3Parser.a"
 
"moses/src/LM/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/libLM.a"
 
"lm/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/libkenlm.a"
 "moses/src/CompactPT/bin/gcc-4.1.2/!
 release/debug-symbols-on/link-static/threading-multi/libCompactPT.a" "
m
oses/src/CYKPlusParser/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/libCYKPlusParser.a"
 
"moses/src/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/libmoses_internal.a"
 
"util/bin/gcc-4.1.2/release/debug-symbols-on/link-static/threading-multi/libkenutil.a"
  -Wl,-Bstatic -loolm -ldstruct -lmisc -lflm -lirstlm -lcmph -lz -Wl,-Bdynamic 
-lboost_filesystem -lrt -lboost_system-mt -lboost_thread-mt -lSegFault -lrt 
-Wl,--end-group -g -pthread 
-Wl,-rpath=/ec/dgt/shared/exodus/MosesSuite_installations/MosesSuite_24a6425b23_2012-09-25/deps/lib


/usr/bin/ld: cannot find -lboost_filesystem
collect2: ld returned 1 exit status

Stephan Walter
Directorate-General for Translation (DGT)
R.3 - Informatics
JMO A/2 003
Rue Alcide de Gasperi
L-2920 Luxembourg
Tel.: (+352) 4301-31806



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

Reply via email to