FDio / vpp

Mirror of VPP code base hosted at git.fd.io
Apache License 2.0
1.24k stars 619 forks source link

tcp debug error #74

Open nanfengnan1 opened 2 weeks ago

nanfengnan1 commented 2 weeks ago

CMakeFiles/vnet_objs.dir/tcp/tcp_input.c.o -c /opt/code/VPP/src/vnet/tcp/tcp_input.c In file included from /opt/code/VPP/src/vnet/session/transport_types.h:21, from /opt/code/VPP/src/vnet/session/session_types.h:20, from /opt/code/VPP/src/vnet/session/session.h:19, from /opt/code/VPP/src/vnet/tcp/tcp.h:21, from /opt/code/VPP/src/vnet/tcp/tcp_input.c:19: /opt/code/VPP/src/vnet/tcp/tcp_input.c: In function 'tcp_rcv_ack': /opt/code/VPP/src/vnet/tcp/tcp_debug.h:873:44: error: implicit declaration of function 'tcp_time_now'; did you mean 'tcp_time_now_us'? [-Werror=implicit-function-declaration] 873 | _tc->c_cc_stat_tstamp + STATS_INTERVAL < tcp_time_now() \ | ^~~~ /opt/code/VPP/src/vnet/tcp/tcp_debug.h:942:5: note: in expansion of macro 'tcp_cc_time_to_print_stats' 942 | if (tcp_cc_time_to_print_stats (_tc)) \ | ^~~~~~ /opt/code/VPP/src/vnet/tcp/tcp_debug.h:45:35: note: in expansion of macro 'TCP_EVT_CC_STAT_HANDLER' 45 | #define TCP_CONCAT_HELPER(_a, _b) _a##_b | ^~ /opt/code/VPP/src/vnet/tcp/tcp_debug.h:46:24: note: in expansion of macro 'TCP_CONCAT_HELPER' 46 | #define TCP_CC(_a, _b) TCP_CONCAT_HELPER(_a, _b) | ^~~~~ /opt/code/VPP/src/vnet/tcp/tcp_debug.h:50:41: note: in expansion of macro 'TCP_CC' 50 | #define tcp_evt_handler(_evt, _args...) TCP_CC(_evt, _HANDLER) (_args) | ^~ /opt/code/VPP/src/vnet/tcp/tcp_debug.h:139:5: note: in expansion of macro 'tcp_evt_handler' 139 | tcp_evt_handler (_evt, _args) | ^~~~~~~ /opt/code/VPP/src/vnet/tcp/tcp_input.c:975:3: note: in expansion of macro 'TCP_EVT' 975 | TCP_EVT (TCP_EVT_CC_STAT, tc); | ^~~ cc1: all warnings being treated as errors [846/2479] Building C object CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/tcp/tcp_timer.c.o ninja: build stopped: subcommand failed. make[1]: [Makefile:693: vpp-build] Error 1 make[1]: Leaving directory '/opt/code/VPP/build-root' make: [Makefile:385: build] Error 2

when i set

define TCP_DEBUG_ALWAYS (1)

define TCP_DEBUG_ENABLE (1)

and then make rebuild.

stable/22.06

nanfengnan1 commented 2 weeks ago

find fix in master, thanks!