Skip to contentSkip to conversation

Can't compile examples

DISCUSSION Tetsuya Mukawa 3 participants 4 messages Jun 25, 2015

lore
Share & tools
lore
#0 lore raw

Hi Jijiang,

It seems below patch introduces compile error of examples.
- a50245e examples/tep_term: initialize VXLAN sample

Here is log.
Could you please check it?

$ T=x86_64-native-linuxapp-gcc make examples -j12
================== Build examples for x86_64-native-linuxapp-gcc
== cmdline
== distributor
== bond
== helloworld
== exception_path
== kni
== ip_pipeline
== ipv4_multicast
== ip_reassembly
== l2fwd
== l3fwd
== l2fwd-jobstats
== l3fwd-power
== l3fwd-acl
== l3fwd-vf
== link_status_interrupt
== load_balancer
== multi_process
== packet_ordering
== qos_sched
== netmap_compat/bridge
== qos_meter
== quota_watermark
== rxtx_callbacks
== qw
== client_server_mp
== simple_mp
== skeleton
== qwctl
== tep_termination
== symmetric_mp
== timer
== vmdq
== vmdq_dcb
== mp_client
== mp_server
== vm_power_manager
  CC main.o
/home/mukawa/work/dpdk.org/dpdk/examples/tep_termination/main.c:52:28:
fatal error: rte_virtio_net.h: No such file or directory
compilation terminated.
/home/mukawa/work/dpdk.org/dpdk/mk/internal/rte.compile-pre.mk:126:
recipe for target 'main.o' failed
make[4]: *** [main.o] Error 1
/home/mukawa/work/dpdk.org/dpdk/mk/rte.extapp.mk:42: recipe for target
'all' failed
make[3]: *** [all] Error 2
/home/mukawa/work/dpdk.org/dpdk/mk/rte.extsubdir.mk:46: recipe for
target 'tep_termination' failed
make[2]: *** [tep_termination] Error 2
/home/mukawa/work/dpdk.org/dpdk/mk/rte.sdkexamples.mk:52: recipe for
target 'x86_64-native-linuxapp-gcc_examples' failed
make[1]: *** [x86_64-native-linuxapp-gcc_examples] Error 2
/home/mukawa/work/dpdk.org/dpdk/mk/rte.sdkroot.mk:120: recipe for target
'examples' failed
make: *** [examples] Error 2

Regards,
Tetsuya

#1 lore raw

2015-06-25 11:31, Tetsuya Mukawa:

Quoted 8 lines

Hi Jijiang,

It seems below patch introduces compile error of examples.
- a50245e examples/tep_term: initialize VXLAN sample

Here is log.
Could you please check it?

[...]

Quoted 2 lines

/home/mukawa/work/dpdk.org/dpdk/examples/tep_termination/main.c:52:28:
fatal error: rte_virtio_net.h: No such file or directory

The check before merging was with vhost enabled.

Jijiang, does it make sense to try make it without vhost? If not, examples/Makefile must contain

	DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += tep_termination
#2 lore raw
Quoted 19 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Thursday, June 25, 2015 4:27 PM
To: Liu, Jijiang
Cc: [email protected]; Tetsuya Mukawa
Subject: Re: [dpdk-dev] Can't compile examples

2015-06-25 11:31, Tetsuya Mukawa:

Quoted 8 lines

Hi Jijiang,

It seems below patch introduces compile error of examples.
- a50245e examples/tep_term: initialize VXLAN sample

Here is log.
Could you please check it?

[...]

Quoted 1 line
Quoted 8 lines

/home/mukawa/work/dpdk.org/dpdk/examples/tep_termination/main.c:52:28:

Quoted 1 line

fatal error: rte_virtio_net.h: No such file or directory

The check before merging was with vhost enabled.

Jijiang, does it make sense to try make it without vhost? If not, examples/Makefile must contain

	DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += tep_termination

The CONFIG_RTE_LIBRTE_VHOST must be set 'Y' when compiling the VXLAN example.

#3 lore raw

2015-06-25 08:39, Liu, Jijiang:

Quoted 15 lines

From: Thomas Monjalon [mailto:[email protected]]

Quoted 14 lines

2015-06-25 11:31, Tetsuya Mukawa:

Quoted 8 lines

Hi Jijiang,

It seems below patch introduces compile error of examples.
- a50245e examples/tep_term: initialize VXLAN sample

Here is log.
Could you please check it?

[...]

Quoted 1 line

/home/mukawa/work/dpdk.org/dpdk/examples/tep_termination/main.c:52:28:

Quoted 1 line

fatal error: rte_virtio_net.h: No such file or directory

Quoted 7 lines
Quoted 5 lines

The check before merging was with vhost enabled.

Jijiang, does it make sense to try make it without vhost? If not, examples/Makefile must contain

	DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += tep_termination

The CONFIG_RTE_LIBRTE_VHOST must be set 'Y' when compiling the VXLAN example.

Fixed:

	http://dpdk.org/browse/dpdk/commit/?id=8b22792abbfe