DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Not able to compile dpdk-18.02.2 in gcc version 4.4
@ 2019-01-14  9:12 Surendran Dhuruvan
  2019-01-14 15:04 ` Wiles, Keith
  0 siblings, 1 reply; 2+ messages in thread
From: Surendran Dhuruvan @ 2019-01-14  9:12 UTC (permalink / raw)
  To: users

Hi,

Am trying to compile dpdk-18.02.2 in rhel 6.10 which has gcc version 4.4.

while compiling am facing following error

In file included from
/root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_bus.h:53,
                 from /root/dpdk-stable-18.02.2/lib/librte_pci/rte_pci.c:17:
/root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_dev.h:189:
error: wrong number of arguments specified for ‘deprecated’ attribute
/root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_dev.h:205:
error: wrong number of arguments specified for ‘deprecated’ attribute
In file included from /root/dpdk-stable-18.02.2/lib/librte_pci/rte_pci.c:20:
/root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:188:
error: wrong number of arguments specified for ‘deprecated’ attribute
/root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:253:
error: wrong number of arguments specified for ‘deprecated’ attribute
/root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:270:
error: wrong number of arguments specified for ‘deprecated’ attribute
/root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:289:
error: wrong number of arguments specified for ‘deprecated’ attribute
/root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:318:
error: wrong number of arguments specified for ‘deprecated’ attribute
/root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:340:
error: wrong number of arguments specified for ‘deprecated’ attribute
/root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:464:
error: wrong number of arguments specified for ‘deprecated’ attribute
make[5]: *** [rte_pci.o] Error 1
make[4]: *** [librte_pci] Error 2
make[3]: *** [lib] Error 2
make[2]: *** [all] Error 2
make[1]: *** [pre_install] Error 2
make: *** [install] Error 2

it seems i need gcc 4.5 and above to overcome this error.
but my internal tools are running on gcc 4.4, so that am not able to
upgrade the version.

is there any other way to overcome this issue ?

Thanks in advance !

-- 
Surendran
software engineer,
HCL-CISCO,
chennai.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] Not able to compile dpdk-18.02.2 in gcc version 4.4
  2019-01-14  9:12 [dpdk-users] Not able to compile dpdk-18.02.2 in gcc version 4.4 Surendran Dhuruvan
@ 2019-01-14 15:04 ` Wiles, Keith
  0 siblings, 0 replies; 2+ messages in thread
From: Wiles, Keith @ 2019-01-14 15:04 UTC (permalink / raw)
  To: Surendran Dhuruvan; +Cc: users



> On Jan 14, 2019, at 3:12 AM, Surendran Dhuruvan <surendran.dhu@gmail.com> wrote:
> 
> Hi,
> 
> Am trying to compile dpdk-18.02.2 in rhel 6.10 which has gcc version 4.4.
> 
> while compiling am facing following error
> 
> In file included from
> /root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_bus.h:53,
>                 from /root/dpdk-stable-18.02.2/lib/librte_pci/rte_pci.c:17:
> /root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_dev.h:189:
> error: wrong number of arguments specified for ‘deprecated’ attribute
> /root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_dev.h:205:
> error: wrong number of arguments specified for ‘deprecated’ attribute
> In file included from /root/dpdk-stable-18.02.2/lib/librte_pci/rte_pci.c:20:
> /root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:188:
> error: wrong number of arguments specified for ‘deprecated’ attribute
> /root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:253:
> error: wrong number of arguments specified for ‘deprecated’ attribute
> /root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:270:
> error: wrong number of arguments specified for ‘deprecated’ attribute
> /root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:289:
> error: wrong number of arguments specified for ‘deprecated’ attribute
> /root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:318:
> error: wrong number of arguments specified for ‘deprecated’ attribute
> /root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:340:
> error: wrong number of arguments specified for ‘deprecated’ attribute
> /root/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc/include/rte_eal.h:464:
> error: wrong number of arguments specified for ‘deprecated’ attribute
> make[5]: *** [rte_pci.o] Error 1
> make[4]: *** [librte_pci] Error 2
> make[3]: *** [lib] Error 2
> make[2]: *** [all] Error 2
> make[1]: *** [pre_install] Error 2
> make: *** [install] Error 2

This normally means the define ALLOW_EXPERIMENTAL_API is not defined, which is normally put on the make command line using -D option.
> 
> it seems i need gcc 4.5 and above to overcome this error.
> but my internal tools are running on gcc 4.4, so that am not able to
> upgrade the version.
> 
> is there any other way to overcome this issue ?
> 
> Thanks in advance !
> 
> -- 
> Surendran
> software engineer,
> HCL-CISCO,
> chennai.

Regards,
Keith


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-14 15:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-14  9:12 [dpdk-users] Not able to compile dpdk-18.02.2 in gcc version 4.4 Surendran Dhuruvan
2019-01-14 15:04 ` Wiles, Keith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).