Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused libwarpctc.so link in core.so and libpaddle_fluid.so #7761

Closed
luotao1 opened this issue Jan 23, 2018 · 0 comments · Fixed by #7762
Closed

Remove unused libwarpctc.so link in core.so and libpaddle_fluid.so #7761

luotao1 opened this issue Jan 23, 2018 · 0 comments · Fixed by #7762
Assignees

Comments

@luotao1
Copy link
Contributor

luotao1 commented Jan 23, 2018

related #7572 (review)
Now both core.so and libpaddle_fluid.so have the link to libwarpctc.so:

$ ldd core.so
        linux-vdso.so.1 =>  (0x00007ffeab6c5000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f49d87aa000)
        libpython2.7.so.1.0 => /home/luotao02/.jumbo/lib/libpython2.7.so.1.0 (0x00007f49d83ec000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f49d81e4000)
        libwarpctc.so => /home/luotao02/.jumbo/lib/libwarpctc.so (0x00007f49d7fdf000)
...
$ldd /home/luotao02/PaddleRoot/lib/libpaddle_fluid.so
        linux-vdso.so.1 =>  (0x00007ffd6e6e5000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fbc314e6000)
        libwarpctc.so => /home/luotao02/.jumbo/lib/libwarpctc.so (0x00007fbc312e2000)
...

It will cause following error when use libpaddle_fluid.so

$ ../run.sh 
./example: error while loading shared libraries: libwarpctc.so: cannot open shared object file: No such file or directory

However, as libwarpctc.so is dynamic loaded, it should not be linked into core.so and libpaddle_fluid.so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant