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

Undefined references to thread when building tensorflow examples #84

Open
michaelgruner opened this issue May 25, 2020 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@michaelgruner
Copy link
Contributor

michaelgruner commented May 25, 2020

This is using the r2inference-ubuntu-16.04:v0.3.0 container

make[4]: Entering directory '/root/r2inference-leak/examples/r2i/tensorflow'
/bin/bash ../../../libtool  --tag=CXX   --mode=link g++ -std=gnu++11 -Werror -Wall -O0 -ggdb3   -I../common/ -I/usr/local/include/tensorflow/lite/tools/make/downloads/flatbuffers/include -O0 -ggdb3   ../../../r2i/libr2inference-0.0.la  -o inception inception.o
libtool: link: g++ -std=gnu++11 -Werror -Wall -O0 -ggdb3 -I../common/ -I/usr/local/include/tensorflow/lite/tools/make/downloads/flatbuffers/include -O0 -ggdb3 -o .libs/inception inception.o  ../../../r2i/.libs/libr2inference-0.0.so -pthread
../../../r2i/.libs/libr2inference-0.0.so: undefined reference to `typeinfo for std::thread::_State'
../../../r2i/.libs/libr2inference-0.0.so: undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())'
../../../r2i/.libs/libr2inference-0.0.so: undefined reference to `std::thread::_State::~_State()'
collect2: error: ld returned 1 exit status
Makefile:445: recipe for target 'inception' failed
@michaelgruner michaelgruner added the bug Something isn't working label May 25, 2020
@michaelgruner michaelgruner changed the title Missing pthread when building tensorflow examples Undefined references to thread when building tensorflow examples May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants