flashlight / wav2letter

Facebook AI Research's Automatic Speech Recognition Toolkit
https://github.com/facebookresearch/wav2letter/wiki
Other
6.38k stars 1.01k forks source link

Cannot generate a safe runtime search path for target Train because files in some directories may conflict with libraries in implicit directories #418

Closed samin9796 closed 5 years ago

samin9796 commented 5 years ago

I get this warning while running the cmake .. -DCMAKE_BUILD_TYPE=Release command. Then make -j 4 gives me error.

-- ArrayFire found (include: /usr/local/include, library: ArrayFire::afcuda) -- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so) -- GLOG found -- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so) -- GFLAGS found -- OpenMP found -- flashlight found (include: lib: flashlight::flashlight ) -- flashlight built in distributed mode. -- flashlight built with contrib features. -- CUDA found (library: /usr/lib/x86_64-linux-gnu/libcudart_static.a;-lpthread;dl;/usr/lib/x86_64-linux-gnu/librt.so include: /usr/include) -- CUDA architecture flags: -gencodearch=compute_30,code=sm_30-gencodearch=compute_35,code=sm_35-gencodearch=compute_50,code=sm_50-gencodearch=compute_52,code=sm_52-gencodearch=compute_60,code=sm_60-gencodearch=compute_61,code=sm_61-gencodearch=compute_70,code=sm_70-gencodearch=compute_75,code=sm_75-gencodearch=compute_70,code=compute_70-gencodearch=compute_75,code=compute_75 -- Checking for module 'cblas' -- No package 'cblas' found -- Checking for [Accelerate] -- Checking for [vecLib] -- Checking for [cblas - atlas] -- Includes found -- CBLAS Symbols FOUND -- CBLAS library found -- CBLAS found (include: /usr/include/x86_64-linux-gnu, library: /usr/lib/x86_64-linux-gnu/libcblas.so;/usr/lib/x86_64-linux-gnu/libatlas.so) -- FFTW found -- Looking for KenLM -- Using kenlm library found in /data/ahnaf/wav2letter/kenlm/build/lib/libkenlm.a -- Using kenlm utils library found in /data/ahnaf/wav2letter/kenlm/build/lib/libkenlm.a -- kenlm lm/model.hh found in /data/ahnaf/wav2letter/kenlm/lm/model.hh -- Found kenlm (include: /data/ahnaf/wav2letter/kenlm, library: /data/ahnaf/wav2letter/kenlm/build/lib/libkenlm.a;/data/ahnaf/wav2letter/kenlm/build/lib/libkenlm_util.a) -- Adding warpctc: -- warpctc: cuda found TRUE -- warpctc: using CUDA 9.0 or above -- warpctc: Building shared library with GPU support -- Required SndFile dependency Ogg found. -- Required SndFile dependency Vorbis found. -- Required SndFile dependency VorbisEnc found. -- Required SndFile dependency FLAC found. -- Found libsndfile: (lib: /usr/lib/x86_64-linux-gnu/libsndfile.so include: /usr/include -- libsndfile found. -- Building recipes. -- Configuring done CMake Warning at CMakeLists.txt:207 (add_executable): Cannot generate a safe runtime search path for target Train because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly.

CMake Warning at CMakeLists.txt:229 (add_executable): Cannot generate a safe runtime search path for target Decoder because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly.

CMake Warning at CMakeLists.txt:218 (add_executable): Cannot generate a safe runtime search path for target Test because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly.

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target RuntimeTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:74 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target W2lModuleTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:72 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target PreEmphasisTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:67 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target AttentionTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:53 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target Seq2SeqTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:52 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target WindowTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:54 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target DataTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:56 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target DictionaryTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:39 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target SpeechUtilsTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:68 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target W2lCommonTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:38 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target CriterionTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:51 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target ListFileDatasetTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:57 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target WindowingTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:70 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target SoundTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:58 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target TriFilterbankTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:69 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target DitherTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:65 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target DecoderTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:60 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target MfccTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:66 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target CeplifterTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:62 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target DctTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:63 (build_test)

CMake Warning at src/tests/CMakeLists.txt:9 (add_executable): Cannot generate a safe runtime search path for target DerivativesTest because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly. Call Stack (most recent call first): src/tests/CMakeLists.txt:64 (build_test)

CMake Warning at recipes/models/utilities/convlm_serializer/CMakeLists.txt:5 (add_executable): Cannot generate a safe runtime search path for target SerializeConvLM because files in some directories may conflict with libraries in implicit directories:

runtime library [libsndfile.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /usr/local/lib

Some of these libraries may not be found correctly.

-- Generating done -- Build files have been written to: /data/ahnaf/wav2letter/wav2letter/build

samin9796 commented 5 years ago

I had libsndfile.so.1 file in two directories. So, I deleted one and the problem was solved.