I guess this time it was the out of tree rather than the tree itself that
got broken.

One could make a test file, vaguely like my test.c that starts off with

//gcc -Wall -I. -march=native -c test.c

//#include "vppinfra/types.h"
//#include "vppinfra/cache.h"
//#include "vppinfra/valgrind.h"
//#include "vppinfra/pipeline.h"
//#include "vppinfra/xy.h"
//#include "vlib/defs.h"
//#include "vnet/api_errno.h"
//#include "vnet/l3_types.h"
//#include "vnet/bfd/bfd_debug.h"
//#include "vnet/flow/ipfix_info_elements.h"
//#include "vnet/ip/ip4_error.h"
//#include "vnet/ip/ip6_error.h"
//#include "vnet/mpls/mpls_types.h"
//#include "vlibmemory/vl_memory_msg_enum.h"
//#include "vlibsocket/vl_socket_api_h.h"
//#include "vlibsocket/vl_socket_msg_enum.h"
//#include "plugins/acl/node_in.h"
//#include "plugins/acl/node_out.h"

//#include "vppinfra/clib.h"
//#include "vppinfra/error_bootstrap.h"
//#include "vppinfra/os.h"
#define __SSSE3__ 1
#define __AVX__ 1
#define NSTAGES 3
//#include "vppinfra/vector.h"
//#include "vppinfra/string.h"
//INCLUDED in string.h if __SSSE3__ #include "memcpy_sse3.h"
//#include "vppinfra/longjmp.h"
//#include "vppinfra/macros.h"
yada yada yada there is more...

This one here is for a slightly different purpose. What is needed is a
script that takes all the header file names that are exported and puts them
as #includes into a test.c file, uncommented, and then one tries to compile
test.c. If a needed file is missing, the compile will fail. That could be
part of the non developer build sequence. Undoubtedly a bit of tweaking to
the process would be necessary -- not all header files are created equal --
also don't forget to include .def files, too -- the process might be
doable, one never knows without trying it.

Burt

​
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to