xxxpsyduck opened a new issue #19208:
URL: https://github.com/apache/incubator-mxnet/issues/19208
## Description
(A clear and concise description of what the bug is.)
Bug occurs when trying to build mxnet with tensorrt support (Ubuntu 18.04)
### Error Message
(Paste the complete error message. Please also include stack trace by
setting environment variable `DMLC_LOG_STACK_TRACE_DEPTH=10` before running
your script.)
```
-- CMAKE_CROSSCOMPILING FALSE
-- CMAKE_HOST_SYSTEM_PROCESSOR x86_64
-- CMAKE_SYSTEM_PROCESSOR x86_64
-- CMAKE_SYSTEM_NAME Linux
-- CMake version '3.18.2' using generator 'Unix Makefiles'
-- Using TensorRT
CMake Error at CMakeLists.txt:239 (find_library):
Could not find ONNX_LIBRARY using the following names: libonnx.so
-- Configuring incomplete, errors occurred!
See also "/home/indetail/work/mxnet/build/CMakeFiles/CMakeOutput.log".
See also "/home/indetail/work/mxnet/build/CMakeFiles/CMakeError.log".
```
## To Reproduce
(If you developed your own code, please provide a short script that
reproduces the error. For existing examples, please provide link.)
### Steps to reproduce
(Paste the commands you ran that produced the error.)
1. Clone mxnet repo
2. cd mxnet
3. mkdir build && cd build
4. cmake -DUSE_TENSORRT=1 ..
## What have you tried to solve it?
1. Try to build onnx-tensorrt in mxnet/3rdparty/onnx-tensorrt/build
2. Try to build onnx in /mxnet/3rdparty/onnx-tensorrt/third_party/onnx/build
## Environment
We recommend using our script for collecting the diagnositc information. Run
the following command and paste the outputs below:
```
curl --retry 10 -s
https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py
| python
# paste outputs here
```
----------Python Info----------
Version : 3.6.9
Compiler : GCC 8.4.0
Build : ('default', 'Jul 17 2020 12:50:27')
Arch : ('64bit', 'ELF')
------------Pip Info-----------
Version : 20.2.3
Directory : /home/indetail/.local/lib/python3.6/site-packages/pip
----------MXNet Info-----------
No MXNet installed.
----------System Info----------
Platform : Linux-5.4.0-47-generic-x86_64-with-Ubuntu-18.04-bionic
system : Linux
node : morhn1
release : 5.4.0-47-generic
version : #51~18.04.1-Ubuntu SMP Sat Sep 5 14:35:50 UTC 2020
----------Hardware Info----------
machine : x86_64
processor : x86_64
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 12
On-line CPU(s) list: 0-11
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 158
Model name: Intel(R) Core(TM) i7-8086K CPU @ 4.00GHz
Stepping: 10
CPU MHz: 4508.051
CPU max MHz: 5000.0000
CPU min MHz: 800.0000
BogoMIPS: 7999.96
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 12288K
NUMA node0 CPU(s): 0-11
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl
xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx
smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe
popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch
cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi
flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms
invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1
xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear
flush_l1d
----------Network Test----------
Setting timeout: 10
Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0014
sec, LOAD: 1.3762 sec.
Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0011 sec, LOAD:
0.7416 sec.
Error open Gluon Tutorial(cn): https://zh.gluon.ai, <urlopen error [SSL:
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)>, DNS
finished in 0.0010554790496826172 sec.
Timing for FashionMNIST:
https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz,
DNS: 0.0007 sec, LOAD: 0.8259 sec.
Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0846 sec, LOAD:
0.8990 sec.
Error open Conda: https://repo.continuum.io/pkgs/free/, HTTP Error 403:
Forbidden, DNS finished in 0.0008025169372558594 sec.
----------Environment----------
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]