openndr / ndr-build-env

NDR Build Environment Component
https://openndr.org
Other
0 stars 2 forks source link

Compile warning printed more than twice #83

Open Dry8r3aD opened 4 years ago

Dry8r3aD commented 4 years ago
/home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c: In function ‘pzmod_dei_init’:
/home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c:125:3: warning: ‘rte_lcore_phys’ is deprecated: Symbol is not part of the DPDK framework [-Wdeprecated-declarations]
   int lcore_phys = rte_lcore_phys( lcore_id );
   ^~~
In file included from /home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c:17:0:
/home/np/Workspace/Pretzel/pretzel/native/_include/pretzel_extension.h:94:34: note: declared here
 __pz_extension static inline int rte_lcore_phys( unsigned lcore_id )
                                  ^~~~~~~~~~~~~~
/home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c:189:3: warning: ‘rte_lcore_convidx’ is deprecated: Symbol is not part of the DPDK framework [-Wdeprecated-declarations]
   const unsigned mapper_id = rte_lcore_convidx( ((vidx % (lcore_count - 1)) + 1) );
   ^~~~~
In file included from /home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c:17:0:
/home/np/Workspace/Pretzel/pretzel/native/_include/pretzel_extension.h:48:39: note: declared here
 __pz_extension static inline unsigned rte_lcore_convidx( unsigned lcore_idx )
                                       ^~~~~~~~~~~~~~~~~
/home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c: In function ‘pzmod_dei_main’:
/home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c:487:3: warning: ‘rte_pktmbuf_capa’ is deprecated: Symbol is not part of the DPDK framework [-Wdeprecated-declarations]
   pmsg->size = rte_pktmbuf_capa( msg->pkt );
   ^~~~
In file included from /home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c:17:0:
/home/np/Workspace/Pretzel/pretzel/native/_include/pretzel_extension.h:239:39: note: declared here
 __pz_extension static inline uint16_t rte_pktmbuf_capa( struct rte_mbuf *mbuf )
                                       ^~~~~~~~~~~~~~~~
/home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c: In function ‘pzmod_dei_init’:
/home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c:125:3: warning: ‘rte_lcore_phys’ is deprecated: Symbol is not part of the DPDK framework [-Wdeprecated-declarations]
   int lcore_phys = rte_lcore_phys( lcore_id );
   ^~~
In file included from /home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c:17:0:
/home/np/Workspace/Pretzel/pretzel/native/_include/pretzel_extension.h:94:34: note: declared here
 __pz_extension static inline int rte_lcore_phys( unsigned lcore_id )
                                  ^~~~~~~~~~~~~~
/home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c:189:3: warning: ‘rte_lcore_convidx’ is deprecated: Symbol is not part of the DPDK framework [-Wdeprecated-declarations]
   const unsigned mapper_id = rte_lcore_convidx( ((vidx % (lcore_count - 1)) + 1) );
   ^~~~~
In file included from /home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c:17:0:
/home/np/Workspace/Pretzel/pretzel/native/_include/pretzel_extension.h:48:39: note: declared here
 __pz_extension static inline unsigned rte_lcore_convidx( unsigned lcore_idx )
                                       ^~~~~~~~~~~~~~~~~
/home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c: In function ‘pzmod_dei_main’:
/home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c:487:3: warning: ‘rte_pktmbuf_capa’ is deprecated: Symbol is not part of the DPDK framework [-Wdeprecated-declarations]
   pmsg->size = rte_pktmbuf_capa( msg->pkt );
   ^~~~
In file included from /home/np/Workspace/Pretzel/pretzel/module/pzmod_dei/pzmod_dei.c:17:0:
/home/np/Workspace/Pretzel/pretzel/native/_include/pretzel_extension.h:239:39: note: declared here
 __pz_extension static inline uint16_t rte_pktmbuf_capa( struct rte_mbuf *mbuf )

sometimes even 3 times. please take a look bye

Revimal commented 4 years ago

This issue can be considered as the side effect of expected and normal compiling steps. 'ndr.debug.mk' extract debugging information using GCC independent to object compiling. You can suppress duplicated warn/errors with removing 'ndr.debug.mk' from your Makefile. (Well... if you need debugging information such as preprocessed codes or assembly codes, this solution cannot be used.)

Anyway, the warn/error spamming can annoy developers so I'll classify this issue as Enhancement instead of closing it.