Build failed for V2.12

492 views
Skip to first unread message

jungh...@gmail.com

unread,
Dec 15, 2016, 7:29:29 PM12/15/16
to TRex Traffic Generator

The build is failed due to

../../src/dpdk/drivers/net/mlx5/mlx5_rxtx.c:45:32: fatal error: infiniband/mlx5_hw.h: No such file or directory


jim@onie-server:~/sdb/trex-core$ more VERSION
v2.12


jim@onie-server:~/sdb/trex-core/linux_dpdk$ ./b build
Waf: Entering directory `/media/storage/trex-core/linux_dpdk/build_dpdk'
update version files
[ 68/988] Compiling ../src/dpdk/drivers/net/mlx5/mlx5_mr.c
[ 69/988] Compiling ../src/dpdk/drivers/net/mlx5/mlx5_ethdev.c
[ 70/988] Compiling ../src/dpdk/drivers/net/mlx5/mlx5_mac.c
[ 71/988] Compiling ../src/dpdk/drivers/net/mlx5/mlx5_rxmode.c
[ 72/988] Compiling ../src/dpdk/drivers/net/mlx5/mlx5_rxtx.c
[ 73/988] Compiling ../src/dpdk/drivers/net/mlx5/mlx5_stats.c
[ 74/988] Compiling ../src/dpdk/drivers/net/mlx5/mlx5_txq.c
../../src/dpdk/drivers/net/mlx5/mlx5_rxtx.c:45:32: fatal error: infiniband/mlx5_hw.h: No such file or directory
compilation terminated.

In file included from ../../src/dpdk/drivers/net/mlx5/mlx5.h:67:0,
from ../../src/dpdk/drivers/net/mlx5/mlx5_mr.c:53:
../../src/dpdk/drivers/net/mlx5/mlx5_rxtx.h:46:32: fatal error: infiniband/mlx5_hw.h: No such file or directory
compilation terminated.

In file included from ../../src/dpdk/drivers/net/mlx5/mlx5.h:67:0,
from ../../src/dpdk/drivers/net/mlx5/mlx5_ethdev.c:66:
../../src/dpdk/drivers/net/mlx5/mlx5_rxtx.h:46:32: fatal error: infiniband/mlx5_hw.h: No such file or directory
compilation terminated.

In file included from ../../src/dpdk/drivers/net/mlx5/mlx5.h:67:0,
from ../../src/dpdk/drivers/net/mlx5/mlx5_mac.c:65:
../../src/dpdk/drivers/net/mlx5/mlx5_rxtx.h:46:32: fatal error: infiniband/mlx5_hw.h: No such file or directory
compilation terminated.

In file included from ../../src/dpdk/drivers/net/mlx5/mlx5.h:67:0,
from ../../src/dpdk/drivers/net/mlx5/mlx5_rxmode.c:57:
../../src/dpdk/drivers/net/mlx5/mlx5_rxtx.h:46:32: fatal error: infiniband/mlx5_hw.h: No such file or directory
compilation terminated.

In file included from ../../src/dpdk/drivers/net/mlx5/mlx5.h:67:0,
from ../../src/dpdk/drivers/net/mlx5/mlx5_stats.c:43:
../../src/dpdk/drivers/net/mlx5/mlx5_rxtx.h:46:32: fatal error: infiniband/mlx5_hw.h: No such file or directory
compilation terminated.

In file included from ../../src/dpdk/drivers/net/mlx5/mlx5.h:67:0,
from ../../src/dpdk/drivers/net/mlx5/mlx5_txq.c:64:
../../src/dpdk/drivers/net/mlx5/mlx5_rxtx.h:46:32: fatal error: infiniband/mlx5_hw.h: No such file or directory
compilation terminated.

Waf: Leaving directory `/media/storage/trex-core/linux_dpdk/build_dpdk'
Build failed
-> task in 'dpdk-64-debug' failed with exit status 1 (run with -v to display more information)
-> task in 'dpdk-64-debug' failed with exit status 1 (run with -v to display more information)
-> task in 'dpdk-64-debug' failed with exit status 1 (run with -v to display more information)
-> task in 'dpdk-64-debug' failed with exit status 1 (run with -v to display more information)
-> task in 'dpdk-64-debug' failed with exit status 1 (run with -v to display more information)
-> task in 'dpdk-64-debug' failed with exit status 1 (run with -v to display more information)
-> task in 'dpdk-64-debug' failed with exit status 1 (run with -v to display more information)

Yaroslav Brustinov

unread,
Dec 15, 2016, 8:26:58 PM12/15/16
to jungh...@gmail.com, TRex Traffic Generator
Hi, Jim.

Could you tell our OS and Kernel version?

Thanks,
Yaroslav.


--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/d0191eba-3024-4b54-8a1a-af9bf071f597%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jim Kao

unread,
Dec 15, 2016, 8:31:57 PM12/15/16
to Yaroslav Brustinov, TRex Traffic Generator
Yaroslav

ubuntu 16.04 Kernel 4.4.0-53-generic

Jim

Yaroslav Brustinov

unread,
Dec 15, 2016, 8:52:20 PM12/15/16
to Jim Kao, TRex Traffic Generator
Could you try downgrading to older Kernel?

Latest has issues with building DPDK.
Also, do you have any packages of Mellanox installed?

Jim Kao

unread,
Dec 15, 2016, 10:26:16 PM12/15/16
to Yaroslav Brustinov, TRex Traffic Generator
Yaroslav

What shall be the right kernel version ? What is the Mellanox package I shall have ?

Jim

Jim Kao

unread,
Dec 15, 2016, 11:52:46 PM12/15/16
to Yaroslav Brustinov, TRex Traffic Generator
I checked that I have all mlx5 lib but infiniband/mlx5_hw.h still is missed.

jim@onie-server:/usr/include/infiniband$ ls -l
total 104
-rw-r--r-- 1 root root  4423 Feb 15  2016 arch.h
-rw-r--r-- 1 root root  8563 Feb 15  2016 driver.h
-rw-r--r-- 1 root root 19818 Feb 15  2016 kern-abi.h
-rw-r--r-- 1 root root  2250 Feb 15  2016 marshall.h
-rw-r--r-- 1 root root  5694 Feb 15  2016 opcode.h
-rw-r--r-- 1 root root  4055 Feb 15  2016 sa.h
-rw-r--r-- 1 root root  2057 Feb 15  2016 sa-kern-abi.h
-rw-r--r-- 1 root root 41056 Feb 15  2016 verbs.h


jim@onie-server:~/sdb/trex-core/linux_dpdk$ sudo apt-get install libmlx5*
[sudo] password for jim: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libmlx5-1' for glob 'libmlx5*'
Note, selecting 'libmlx5-1-dbg' for glob 'libmlx5*'
Note, selecting 'libmlx5-dev' for glob 'libmlx5*'
libmlx5-1 is already the newest version (1.0.2-1ubuntu2).
libmlx5-1-dbg is already the newest version (1.0.2-1ubuntu2).
libmlx5-dev is already the newest version (1.0.2-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

hanoh haim

unread,
Dec 16, 2016, 12:35:39 AM12/16/16
to Jim Kao, Yaroslav Brustinov, TRex Traffic Generator
Hi Jim,
You should follow  the instruction from the manual.

Only specific Distro is supported and only specific OFED.

Mellanox is looking into those issues 

Hanoh

To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.



To post to this group, send email to trex...@googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/d0191eba-3024-4b54-8a1a-af9bf071f597%40googlegroups.com.


For more options, visit https://groups.google.com/d/optout.


--


You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.


To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.



To post to this group, send email to trex...@googlegroups.com.


Yaroslav Brustinov

unread,
Dec 16, 2016, 3:46:13 AM12/16/16
to hanoh haim, Jim Kao, TRex Traffic Generator
Jim, are you using the Mellanox NICs?

To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.



To post to this group, send email to trex...@googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/d0191eba-3024-4b54-8a1a-af9bf071f597%40googlegroups.com.


For more options, visit https://groups.google.com/d/optout.










--


You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.


To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.



To post to this group, send email to trex...@googlegroups.com.


Yaroslav Brustinov

unread,
Dec 16, 2016, 3:48:57 AM12/16/16
to hanoh haim, Jim Kao, TRex Traffic Generator
Regarding Kernel, can't tell exact version from which it's starting to fail, but with default Kernel of Ubuntu 16 DPDK can compile (4.4.0-31-generic).
Unattended-upgrades tend to upgrade it in the background, so we suggest to disable it.

hanoh haim

unread,
Dec 16, 2016, 6:14:01 AM12/16/16
to Yaroslav Brustinov, Jim Kao, TRex Traffic Generator
Hi,
Let me explain how the our makefile works.
In case of installed Mellanox driver it uses the installed, otherwise it compiled using our header (inside trex source code)

What happened in your case that makefile identified Mellanox drivers but they are not the latest.

If you want to build TRex for ConnectX-4 follow the manual instructions

If you want to build TRex for other NICS either uninstall Mellanox drivers or hack the make file here


To let it uses internal headers.

In any case it is not recommended to use Ubuntu 16 with TRex.

Thanks
Hanoh

To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.



To post to this group, send email to trex...@googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/d0191eba-3024-4b54-8a1a-af9bf071f597%40googlegroups.com.


For more options, visit https://groups.google.com/d/optout.










--


You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.


To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.



To post to this group, send email to trex...@googlegroups.com.


Reply all
Reply to author
Forward
0 new messages