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

Tensorflow binding - setup.py showing error #127

Open
karanMal opened this issue Sep 19, 2018 · 0 comments
Open

Tensorflow binding - setup.py showing error #127

karanMal opened this issue Sep 19, 2018 · 0 comments

Comments

@karanMal
Copy link

Error: Unrecognised command line option -R in g++
please see the below logs -

python setup.py install --user CUDA_HOME not found in the environment so building without GPU support. To build with GPU support please define the CUDA_HOME environment variable. This should be a path which contains include/cuda.h setup.py:66: UserWarning: Assuming tensorflow was compiled without C++11 ABI. It is generally true if you are using binary pip package. If you compiled tensorflow from source with gcc >= 5 and didn't set -D_GLIBCXX_USE_CXX11_ABI=0 during compilation, you need to set environment variable TF_CXX11_ABI=1 when compiling this bindings. Also be sure to touch some files in src to trigger recompilation. Also, you need to set (or unsed) this environment variable if getting undefined symbol: _ZN10tensorflow... errors warnings.warn("Assuming tensorflow was compiled without C++11 ABI. " running install running bdist_egg running egg_info writing warpctc_tensorflow.egg-info/PKG-INFO writing dependency_links to warpctc_tensorflow.egg-info/dependency_links.txt writing top-level names to warpctc_tensorflow.egg-info/top_level.txt reading manifest file 'warpctc_tensorflow.egg-info/SOURCES.txt' writing manifest file 'warpctc_tensorflow.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py running build_ext building 'warpctc_tensorflow.kernels' extension /opt/rh/devtoolset-3/root/usr/bin/gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/state/partition1/softwares/Miniconda3/lib/python3.6/site-packages/tensorflow/include -I/home/karanm/tensorflow -I/home/karanm/warp-ctc/tensorflow_binding/../include -I/state/partition1/softwares/Miniconda3/include/python3.6m -c src/ctc_op_kernel.cc -o build/temp.linux-x86_64-3.6/src/ctc_op_kernel.o -std=c++11 -fPIC -D_GLIBCXX_USE_CXX11_ABI=1 -Wno-return-type In file included from /state/partition1/softwares/Miniconda3/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/platform/default/logging.h:24:0, from /state/partition1/softwares/Miniconda3/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/platform/logging.h:25, from /state/partition1/softwares/Miniconda3/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/framework/allocator.h:26, from /state/partition1/softwares/Miniconda3/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/framework/op_kernel.h:23, from src/ctc_op_kernel.cc:6: /state/partition1/softwares/Miniconda3/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/platform/default/logging.h: In instantiation of 'std::string* tensorflow::internal::Check_LTImpl(const T1&, const T2&, const char*) [with T1 = long long int; T2 = long unsigned int; std::string = std::basic_string<char>]': /state/partition1/softwares/Miniconda3/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/util/sparse/dim_comparator.h:56:7: required from here /state/partition1/softwares/Miniconda3/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/platform/default/logging.h:231:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] TF_DEFINE_CHECK_OP_IMPL(Check_LT, < ) ^ /state/partition1/softwares/Miniconda3/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/platform/macros.h:76:29: note: in definition of macro 'TF_PREDICT_TRUE' #define TF_PREDICT_TRUE(x) (x) ^ /state/partition1/softwares/Miniconda3/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/platform/default/logging.h:231:1: note: in expansion of macro 'TF_DEFINE_CHECK_OP_IMPL' TF_DEFINE_CHECK_OP_IMPL(Check_LT, < ) ^ /opt/rh/devtoolset-3/root/usr/bin/gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/state/partition1/softwares/Miniconda3/lib/python3.6/site-packages/tensorflow/include -I/home/karanm/tensorflow -I/home/karanm/warp-ctc/tensorflow_binding/../include -I/state/partition1/softwares/Miniconda3/include/python3.6m -c src/warpctc_op.cc -o build/temp.linux-x86_64-3.6/src/warpctc_op.o -std=c++11 -fPIC -D_GLIBCXX_USE_CXX11_ABI=1 -Wno-return-type /opt/rh/devtoolset-3/root/usr/bin/g++ -pthread -shared -B /state/partition1/softwares/Miniconda3/compiler_compat -L/state/partition1/softwares/Miniconda3/lib -Wl,-rpath=/state/partition1/softwares/Miniconda3/lib,--no-as-needed 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/karanm/warp-ctc/build -L/state/partition1/softwares/Miniconda3/lib -R/home/karanm/warp-ctc/build -lwarpctc -ltensorflow_framework -lpython3.6m -o build/lib.linux-x86_64-3.6/warpctc_tensorflow/kernels.cpython-36m-x86_64-linux-gnu.so g++: error: unrecognized command line option '-R' error: command '/opt/rh/devtoolset-3/root/usr/bin/g++' failed with exit status 1

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

No branches or pull requests

1 participant