Open ohsewon opened 6 years ago
Issue by sangjung-woo Wednesday Aug 08, 2018 at 06:29 GMT Originally opened as https://github.sec.samsung.net/STAR/nnstreamer/issues/393
Since tensorflow-lite-dev package for debian is built without -fPIC, so below error occurs when making debian package.
[ 21%] Linking CXX shared library libtensor_filter_tflitecore.so cd /home/again4you/nnstreamer_work/jy_review/nnstreamer/build/gst/tensor_filter && /usr/bin/cmake -E cmake_link_script CMakeFiles/tensor_filter_tflitecore.dir/link.txt --verbose=1 /usr/bin/x86_64-linux-gnu-g++ -fPIC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -fPIC -g -std=c++11 -Wl,-Bsymbolic-functions -Wl,-z,relro -shared -Wl,-soname,libtensor_filter_tflitecore.so -o libtensor_filter_tflitecore.so CMakeFiles/tensor_filter_tflitecore.dir/tensor_filter_tensorflow_lite_core.cc.o -lgstcontroller-1.0 -lgstvideo-1.0 -lgstaudio-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 ../../libcommon.a -ltensorflow-lite -lgstcontroller-1.0 -lgstvideo-1.0 -lgstaudio-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libtensorflow-lite.a(error_reporter.o): relocation R_X86_64_32S against `_ZN6tflite14StderrReporter6ReportEPKcP13__va_list_tag' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libtensorflow-lite.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status gst/tensor_filter/CMakeFiles/tensor_filter_tflitecore.dir/build.make:98: recipe for target 'gst/tensor_filter/libtensor_filter_tflitecore.so' failed make[3]: *** [gst/tensor_filter/libtensor_filter_tflitecore.so] Error 1
Comment by git-bot-sec Wednesday Aug 08, 2018 at 06:29 GMT
:octocat: cibot: Thank you for posting issue #393. The person in charge will reply soon.
Issue by sangjung-woo Wednesday Aug 08, 2018 at 06:29 GMT Originally opened as https://github.sec.samsung.net/STAR/nnstreamer/issues/393
Since tensorflow-lite-dev package for debian is built without -fPIC, so below error occurs when making debian package.