baidu-research / warp-ctc

Fast parallel CTC.
Apache License 2.0
4.06k stars 1.04k forks source link

Error:liblto_plugin.so not found #122

Open JanzZhu opened 6 years ago

JanzZhu commented 6 years ago

g++ -pthread -shared -B /home/zhuzz/anaconda3/compiler_compat -L/home/zhuzz/anaconda3/lib -Wl,-rpath=/home/zhuzz/anaconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/src/ctc_op_kernel.o build/temp.linux-x86_64-3.6/src/warpctc_op.o -L/home/zhuzz/warp-ctc/build -Wl,--enable-new-dtags,-R/home/zhuzz/warp-ctc/build -lwarpctc -o build/lib.linux-x86_64-3.6/warpctc_tensorflow/kernels.cpython-36m-x86_64-linux-gnu.so

This error occurs when the program runs to this step:

g++: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
error: command 'g++' failed with exit status 1

I have liblto_plugin.so in my GCC Library

tanlx@SuperUbuntu:/usr/lib/gcc/x86_64-linux-gnu/4.8$ ls
32           crtend.o       include-fixed      libgcc.a         libgomp.so          liblto_plugin.so.0.0.0  libtsan.a
cc1          crtendS.o      libasan.a          libgcc_eh.a      libgomp.spec        libquadmath.a           libtsan.so
cc1plus      crtfastmath.o  libasan_preinit.o  libgcc_s_32.so   libitm.a            libquadmath.so          lto1
collect2     crtprec32.o    libasan.so         libgcc_s.so      libitm.so           libssp_nonshared.a      lto-wrapper
crtbegin.o   crtprec64.o    libatomic.a        libgcc_s_x32.so  libitm.spec         libstdc++.a             x32
crtbeginS.o  crtprec80.o    libatomic.so       libgcov.a        liblto_plugin.so    libstdc++.so
crtbeginT.o  include        libbacktrace.a     libgomp.a        liblto_plugin.so.0  libsupc++.a

Can anyone help me?

dzhwinter commented 6 years ago

Can you try it without anaconda python? This should not be related warpctc at all.