[dpdk-dev] [RFC] rcu: build on Windows
Dmitry Kozlyuk
dmitry.kozliuk at gmail.com
Tue Oct 20 17:52:28 CEST 2020
On Tue, 20 Oct 2020 12:51:14 +0000, Dharmik Thakkar wrote:
> I tried cross-compilation on Linux (Ubuntu 18.04) with MinGW-w64 toolchain, but I am seeing some compilation error:
>
> ../lib/librte_eal/common/eal_common_dev.c: In function ‘rte_dev_probe’:
> ../lib/librte_eal/common/eal_common_dev.c:215:12: error: ‘ENOMSG’ undeclared (first use in this function); did you mean ‘NPMSG’?
> return -ENOMSG;
> ^~~~~~
> NPMSG
> ../lib/librte_eal/common/eal_common_dev.c:215:12: note: each undeclared identifier is reported only once for each function it appears in
> ../lib/librte_eal/common/eal_common_dev.c: In function ‘rte_dev_remove’:
> ../lib/librte_eal/common/eal_common_dev.c:361:12: error: ‘ENOMSG’ undeclared (first use in this function); did you mean ‘NPMSG’?
> return -ENOMSG;
> ^~~~~~
> NPMSG
>
> [52/178] Compiling C object 'lib/lib@@rte_eal at sta/librte_eal_windows_eal_memory.c.obj'.
> ninja: build stopped: subcommand failed.
>
>
> Any help is appreciated.
Ubuntu 18.04 has MinGW-w64 5.0.4, while 6.0.0 is required (note: MinGW-w64
version is not the same as GCC version). I've certainly hit this issue with
older MinGW.
More information about the dev
mailing list