hi guys

I am compiling moses on Ubuntu-14.04, but I cannot link it with tcmalloc 
correctly

I installed the tcmalloc lib with the command
sudo apt install libtcmalloc-minimal4
and it went well, because the dynamic library exists as shown here

$> ls -ltr /usr/lib/libtcmalloc_minimal*
lrwxrwxrwx 1 root root     28 Feb  4 21:49 /usr/lib/libtcmalloc_minimal.so.4 -> 
libtcmalloc_minimal.so.4.1.2
lrwxrwxrwx 1 root root     34 Feb  4 21:49 
/usr/lib/libtcmalloc_minimal_debug.so.4 -> libtcmalloc_minimal_debug.so.4.1.2
-rw-r--r-- 1 root root 155000 Feb  4 21:49 /usr/lib/libtcmalloc_minimal.so.4.1.2
-rw-r--r-- 1 root root 204184 Feb  4 21:49 
/usr/lib/libtcmalloc_minimal_debug.so.4.1.2

$>  file /usr/lib/libtcmalloc_minimal.so.4.1.2
/usr/lib/libtcmalloc_minimal.so.4.1.2: ELF 64-bit LSB  shared object, x86-64, 
version 1 (SYSV), dynamically linked, 
BuildID[sha1]=3f5d8c7638476e345c4f9c0345c4506179f186fe, stripped


but when I test whether Moses links it, with these commands (as suggested by 
Kenneth  (see his mail of November 18, 2012 7:04:39 PM)

$> bash -c "g++ -ltcmalloc_minimal -x c++ - <<<'int main() {}' -o 
/home/ubuntu/Software/MOSES/mosesdecoder-dynamic-models/dummy >/dev/null 
2>/dev/null && rm /home/ubuntu/Software/MOSES/mosesdecoder-dynamic-models/dummy 
2>/dev/null"
$> echo$?

I gor the value "1", instead of 0,   i.e.  error


What am I wrong?

cheers,
Nicola



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

Reply via email to