# TensorRT make error

**URL:** https://forums.developer.nvidia.com/t/tensorrt-make-error/56566
**Category:** GPU-Accelerated Libraries
**Created:** [December 27, 2017, 9:38am UTC](https://forums.developer.nvidia.com/t/tensorrt-make-error/56566 "2017-12-27T09:38:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![a462428](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@a462428](https://forums.developer.nvidia.com/u/a462428)
#### Post date: [December 27, 2017, 9:38am UTC](https://forums.developer.nvidia.com/t/tensorrt-make-error/56566/1 "2017-12-27T09:38:09Z")

</div>

Hi,

when I build “sample\_FasterRCNN” based on TensorRT3.0.1 on TitanGPU

and error occurs:

TensorRT-3.0.1/lib/libnvinfer\_plugin.so: undefined reference to `std::\_\_throw\_out\_of\_range\_fmt(char const\*, …)@GLIBCXX\_3.4.20’

TensorRT-3.0.1/lib/libnvcaffe\_parser.so: undefined reference to `\_\_cxa\_throw\_bad\_array\_new\_length@CXXABI\_1.3.8’  
collect2: error: ld returned 1 exit status

but TensorRT3.0.0 has no such error when build despite couldn’t be runned after build for not supported in Titan

with ver3.0.0

thanks for your help!

---

<div class="post-metadata">

### Author: ![a462428](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@a462428](https://forums.developer.nvidia.com/u/a462428)
#### Post date: [January 4, 2018, 1:27am UTC](https://forums.developer.nvidia.com/t/tensorrt-make-error/56566/2 "2018-01-04T01:27:32Z")

</div>

Hi,

can anybody give some advice?

---

<div class="post-metadata">

### Author: ![thomas.deegan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@thomas.deegan](https://forums.developer.nvidia.com/u/thomas.deegan)
#### Post date: [January 5, 2018, 1:33am UTC](https://forums.developer.nvidia.com/t/tensorrt-make-error/56566/3 "2018-01-05T01:33:17Z")

</div>

Probably related to your libc and compiler versions. Did you make sure you downloaded the correct one? 14 vs 16 ubuntu?

---

<div class="post-metadata">

### Author: ![a462428](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@a462428](https://forums.developer.nvidia.com/u/a462428)
#### Post date: [January 8, 2018, 1:52am UTC](https://forums.developer.nvidia.com/t/tensorrt-make-error/56566/4 "2018-01-08T01:52:01Z")

</div>

Thx! Error is really caused by incorrect version for ubuntu

this time, I have checked my cuda and cudnn version already

However, I face another error:

cudnnLayerUtils.cpp(288)-Cuda Error in smVersion: 35

in IBuilder\* builder = createInferBuilder(gLogger);

---

<div class="post-metadata">

### Author: ![a462428](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@a462428](https://forums.developer.nvidia.com/u/a462428)
#### Post date: [January 16, 2018, 3:01am UTC](https://forums.developer.nvidia.com/t/tensorrt-make-error/56566/5 "2018-01-16T03:01:05Z")

</div>

Should I revise anything in makefile?

for avoiding error:

cudnnLayerUtils.cpp(288)-Cuda Error in smVersion: 35

---

<div class="post-metadata">

### Author: ![whitelok](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@whitelok](https://forums.developer.nvidia.com/u/whitelok)
#### Post date: [February 10, 2018, 10:06am UTC](https://forums.developer.nvidia.com/t/tensorrt-make-error/56566/6 "2018-02-10T10:06:51Z")

</div>

Hi  
I have met this issue too.  
This issue may cause by set wrong environment variable “CUDA\_VISIBLE\_DEVICES”.

There is 2 way to figure out:

1. export CUDA\_VISIBLE\_DEVIDES=;make clean;make

2. reboot the machine and make clean and make again.
