Debian "testing" (aka. "stretch") again. 2017-02-01 19:36, Hieu Hoang: > which debian do you use? Will try and replicate your issue in a VM > > Hieu Hoang > http://moses-smt.org/ > > On 1 February 2017 at 11:26, Hieu Hoang <hieuho...@gmail.com > <mailto:hieuho...@gmail.com>> wrote: > > in the Jamroot file, you can add > > requirements += <cxxflags>-fPIC ; > > > Hieu Hoang > http://moses-smt.org/ > > On 1 February 2017 at 09:27, Dingyuan Wang <abcdoyle...@gmail.com > <mailto:abcdoyle...@gmail.com>> wrote: > > Dear all, > > I would like to compile moses on Debian testing, but there is some > linking problem requires me to recompile it with -fPIC: > > /usr/bin/ld: > /usr/lib/x86_64-linux-gnu/liblzma.a(liblzma_la-common.o): relocation > R_X86_64_32 against `.rodata.str1.1' can not be used when making a > shared object; recompile with -fPIC > > I tried ./bjam cxxflags=-fPIC cflags=-fPIC but it doesn't work. The > actual commands are like: > > "g++" -L"/usr/lib" -L"/usr/lib/x86_64-linux-gnu" -Wl,-rpath-link > -Wl,"/usr/lib" -o "mert/sentence-bleu" -Wl,--start-group > > "mert/bin/gcc-6.3.0/release/link-static/threading-multi/sentence-bleu.o" > "mert/bin/gcc-6.3.0/release/link-static/threading-multi/libmert_lib.a" > -Wl,-Bstatic -lboost_filesystem -lz -lbz2 -llzma -lm > -lxmlrpc_xmltok > -lxmlrpc_xmlparse -lxmlrpc_util -lxmlrpc_server_abyss++ > -lxmlrpc_server_abyss -lboost_program_options -lboost_serialization > -lboost_thread -lboost_system -ltcmalloc_minimal -lxmlrpc -lxmlrpc++ > -lxmlrpc_abyss -lxmlrpc_server -lxmlrpc_server++ -Wl,-Bdynamic > -lSegFault -lrt -Wl,--end-group -pthread > > > -- > Dingyuan Wang > > > > _______________________________________________ > Moses-support mailing list > Moses-support@mit.edu <mailto:Moses-support@mit.edu> > http://mailman.mit.edu/mailman/listinfo/moses-support > <http://mailman.mit.edu/mailman/listinfo/moses-support> > > >
-- Dingyuan Wang _______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support