Difference between revisions of "VPP/Troubleshooting/BuildIssues"

From fd.io
Jump to: navigation, search
(Created page with "== rte_config.h not found == After a rebase or pulling latest master, a build may fail with following: <nowiki> In file included from /vpp/build-data/../vlib/vlib/vlib.h:...")
 
m
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
== rte_config.h not found ==
 
== rte_config.h not found ==
  
 +
'''Issue'''
 
After a rebase or pulling latest master, a build may fail with following:
 
After a rebase or pulling latest master, a build may fail with following:
  
 
  <nowiki>
 
  <nowiki>
  In file included from /vpp/build-data/../vlib/vlib/vlib.h:53:0,
+
In file included from /vpp/build-data/../vlib/vlib/vlib.h:53:0,
 
                 from /vpp/build-data/../vlib/vlib/cli.c:40:
 
                 from /vpp/build-data/../vlib/vlib/cli.c:40:
  /vpp/build-data/../vlib/vlib/buffer.h:50:24: fatal error: rte_config.h: No such file or directory
+
/vpp/build-data/../vlib/vlib/buffer.h:50:24: fatal error: rte_config.h: No such file or directory
  #include <rte_config.h>
+
#include <rte_config.h>
                          ^
+
                        ^
  compilation terminated.
+
compilation terminated.
In file included from /vpp/build-data/../vlib/vlib/vlib.h:53:0,
+
In file included from /vpp/build-data/../vlib/vlib/vlib.h:53:0,
                  from /vpp/build-data/../vlib/vlib/counter.c:40:
+
                from /vpp/build-data/../vlib/vlib/counter.c:40:
/vpp/build-data/../vlib/vlib/buffer.h:50:24: fatal error: rte_config.h: No such file or directory
+
/vpp/build-data/../vlib/vlib/buffer.h:50:24: fatal error: rte_config.h: No such file or directory
  #include <rte_config.h></nowiki>
+
#include <rte_config.h></nowiki>
 +
 
 +
'''Suggested fix'''
 +
 
 +
What has worked for me (alagalah) is:
 +
<nowiki>
 +
cd /vpp
 +
make wipe wipe-release
 +
make build</nowiki>
 +
 
 +
I did also try "autoreconf -i -f" without success (in vlib|vnet), not sure why they didn't work, as they often are the recommended and working solution:
 +
 
 +
'''Alternate workaround'''
 +
 
 +
The above solution might not always work. I had to do the following to get it to work:
 +
 
 +
<nowiki>
 +
''make dpdk-install-dev'' from the top.
 +
</nowiki>

Latest revision as of 19:36, 17 February 2017

rte_config.h not found

Issue After a rebase or pulling latest master, a build may fail with following:

In file included from /vpp/build-data/../vlib/vlib/vlib.h:53:0,
                 from /vpp/build-data/../vlib/vlib/cli.c:40:
/vpp/build-data/../vlib/vlib/buffer.h:50:24: fatal error: rte_config.h: No such file or directory
 #include <rte_config.h>
                        ^
compilation terminated.
In file included from /vpp/build-data/../vlib/vlib/vlib.h:53:0,
                 from /vpp/build-data/../vlib/vlib/counter.c:40:
/vpp/build-data/../vlib/vlib/buffer.h:50:24: fatal error: rte_config.h: No such file or directory
 #include <rte_config.h>

Suggested fix

What has worked for me (alagalah) is:

cd /vpp
make wipe wipe-release
make build

I did also try "autoreconf -i -f" without success (in vlib|vnet), not sure why they didn't work, as they often are the recommended and working solution:

Alternate workaround

The above solution might not always work. I had to do the following to get it to work:

''make dpdk-install-dev'' from the top.