-
Notifications
You must be signed in to change notification settings - Fork 2.2k
undefined reference to pthread_create',
pthread_detach,
pthread_cancel,
pthread_join`
#1395
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
Comments
pthread_create',
pthread_detach,
pthread_cancel,
pthread_join`
build you project with -pthread |
Already linked with pthread by default. Still problematic. |
Hello @jiapei100 , have you tried using container? Thanks |
I had the same error, a little different Linking CXX executable cmTC_ebefe How did you solved this? |
I had the same error too, using container Linking CXX executable cmTC_10c48 any news about this issue? |
I had a similar error.
I solved it by replacing the variable with a path
Edit:
like this github issue suggested. |
Compatible with protobuf-3.19.4 ? [ 56%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/caffeParser.cpp.o
cd ....../TensorRT/build/parsers/caffe && /usr/local/bin/g++ -DGOOGLE_PROTOBUF_ARCH_64_BIT -Dgoogle=google_private -I/usr/local/cuda/include -I/include -I....../TensorRT/include -I....../TensorRT/parsers/caffe/. -I....../TensorRT/parsers/caffe/caffeParser -I....../TensorRT/parsers/caffe/caffeParser/opParsers -I....../TensorRT/parsers/caffe/caffeWeightFactory -I....../TensorRT/parsers/caffe/../common -I....../TensorRT/build/third_party.protobuf/include -I....../TensorRT/build/parsers/caffe/proto -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss -O3 -DNDEBUG -std=c++11 -MD -MT parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/caffeParser.cpp.o -MF CMakeFiles/nvcaffeparser_static.dir/caffeParser/caffeParser.cpp.o.d -o CMakeFiles/nvcaffeparser_static.dir/caffeParser/caffeParser.cpp.o -c ....../TensorRT/parsers/caffe/caffeParser/caffeParser.cpp
In file included from ....../TensorRT/parsers/caffe/caffeParser/caffeParser.cpp:23:
....../TensorRT/parsers/caffe/caffeParser/readProto.h: In function ‘bool nvcaffeparser1::readBinaryProto(trtcaffe::NetParameter*, const char*, size_t)’:
....../TensorRT/parsers/caffe/caffeParser/readProto.h:51:51: error: no matching function for call to ‘google_private::protobuf::io::CodedInputStream::SetTotalBytesLimit(int, int)’
51 | codedInput.SetTotalBytesLimit(int(bufSize), -1);
| ^
In file included from ....../TensorRT/build/parsers/caffe/proto/trtcaffe.pb.h:23,
from ....../TensorRT/parsers/caffe/caffeWeightFactory/caffeWeightFactory.h:26,
from ....../TensorRT/parsers/caffe/caffeParser/caffeParser.h:26,
from ....../TensorRT/parsers/caffe/caffeParser/caffeParser.cpp:20:
....../TensorRT/build/third_party.protobuf/include/google/protobuf/io/coded_stream.h:406:8: note: candidate: ‘void google_private::protobuf::io::CodedInputStream::SetTotalBytesLimit(int)’
406 | void SetTotalBytesLimit(int total_bytes_limit);
| ^~~~~~~~~~~~~~~~~~
....../TensorRT/build/third_party.protobuf/include/google/protobuf/io/coded_stream.h:406:8: note: candidate expects 1 argument, 2 provided
....../TensorRT/parsers/caffe/caffeParser/caffeParser.cpp: In member function ‘virtual const nvcaffeparser1::IBlobNameToTensor* nvcaffeparser1::CaffeParser::parseBuffers(const uint8_t*, std::size_t, const uint8_t*, std::size_t, nvinfer1::INetworkDefinition&, nvinfer1::DataType)’:
....../TensorRT/parsers/caffe/caffeParser/caffeParser.cpp:330:60: error: no matching function for call to ‘google_private::protobuf::io::CodedInputStream::SetTotalBytesLimit(std::size_t&, int)’
330 | codedModelStream.SetTotalBytesLimit(modelLength, -1);
| ^
In file included from ....../TensorRT/build/parsers/caffe/proto/trtcaffe.pb.h:23,
from ....../TensorRT/parsers/caffe/caffeWeightFactory/caffeWeightFactory.h:26,
from ....../TensorRT/parsers/caffe/caffeParser/caffeParser.h:26,
from ....../TensorRT/parsers/caffe/caffeParser/caffeParser.cpp:20:
....../TensorRT/build/third_party.protobuf/include/google/protobuf/io/coded_stream.h:406:8: note: candidate: ‘void google_private::protobuf::io::CodedInputStream::SetTotalBytesLimit(int)’
406 | void SetTotalBytesLimit(int total_bytes_limit);
| ^~~~~~~~~~~~~~~~~~
....../TensorRT/build/third_party.protobuf/include/google/protobuf/io/coded_stream.h:406:8: note: candidate expects 1 argument, 2 provided
....../TensorRT/parsers/caffe/caffeParser/caffeParser.cpp: In member function ‘virtual nvcaffeparser1::IBinaryProtoBlob* nvcaffeparser1::CaffeParser::parseBinaryProto(const char*)’:
....../TensorRT/parsers/caffe/caffeParser/caffeParser.cpp:627:46: error: no matching function for call to ‘google_private::protobuf::io::CodedInputStream::SetTotalBytesLimit(int, int)’
627 | codedInput.SetTotalBytesLimit(INT_MAX, -1);
| ^
In file included from ....../TensorRT/build/parsers/caffe/proto/trtcaffe.pb.h:23,
from ....../TensorRT/parsers/caffe/caffeWeightFactory/caffeWeightFactory.h:26,
from ....../TensorRT/parsers/caffe/caffeParser/caffeParser.h:26,
from ....../TensorRT/parsers/caffe/caffeParser/caffeParser.cpp:20:
....../TensorRT/build/third_party.protobuf/include/google/protobuf/io/coded_stream.h:406:8: note: candidate: ‘void google_private::protobuf::io::CodedInputStream::SetTotalBytesLimit(int)’
406 | void SetTotalBytesLimit(int total_bytes_limit);
| ^~~~~~~~~~~~~~~~~~
....../TensorRT/build/third_party.protobuf/include/google/protobuf/io/coded_stream.h:406:8: note: candidate expects 1 argument, 2 provided
make[2]: *** [parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/build.make:438: parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/caffeParser.cpp.o] Error 1
make[2]: Leaving directory '....../TensorRT/build'
make[1]: *** [CMakeFiles/Makefile2:1399: parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/all] Error 2
make[1]: Leaving directory '....../TensorRT/build'
make: *** [Makefile:159: all] Error 2 |
@jiapei100 Did you compile this within the docker image we provide in README? |
Closing due to >14 days without activity. Please feel free to reopen if the issue still exists. Thanks |
Description
Failed to build with the following error messages:
Environment
TensorRT Version: 8.0.1
NVIDIA GPU: GeForce RTX 2080 Ti
NVIDIA Driver Version: NVIDIA-SMI 460.84
CUDA Version: 11.3
CUDNN Version: 8.2.1
Operating System: Ubuntu 20.04
Python Version (if applicable): 3.8.10
Tensorflow Version (if applicable): 2.7.0
PyTorch Version (if applicable): 1.10.0
Baremetal or Container (if so, version): N/A
Relevant Files
....../TensorRT/build/CMakeFiles/CMakeTmp
Steps To Reproduce
Just build the source code via
git clone
.The text was updated successfully, but these errors were encountered: