DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] DPDK meson build failed on Windows
@ 2021-08-04 18:31 William Tu
  2021-08-04 18:45 ` Dmitry Kozlyuk
  0 siblings, 1 reply; 6+ messages in thread
From: William Tu @ 2021-08-04 18:31 UTC (permalink / raw)
  To: dev; +Cc: Dmitry Kozliuk, Sergey Madaminov

Hi,
I got DPDK compiled on Windows, but suddenly I got this error when
compiling DPDK on windows again. (And I don't know why it worked
before...)
[3/183] "clang" @lib/rte_eal-21.dll.rsp
FAILED: lib/rte_eal-21.dll
"clang" @lib/rte_eal-21.dll.rsp
clang: error: no such file or directory: 'librte_kvargs.lib'

Tested on main branch 45633c460c.
I also tried meson 0.55.0 but still failed. Any suggestions for
debugging or fixing it?
Thanks,
William

Full log below
-------------------
PS C:\dpdk> ninja -C build
ninja: Entering directory `build'
[0/1] Regenerating build files.
The Meson build system
Version: 0.59.0
Source dir: C:\dpdk
Build dir: C:\dpdk\build
Build type: native build
Program cat found: YES (C:\cygwin64\bin\cat.EXE)
Project name: DPDK
Project version: 21.08.0-rc3
C compiler for the host machine: clang (clang 12.0.0 "clang version 12.0.0")
C linker for the host machine: clang link 14.29.30040.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Message: ## Building in Developer Mode ##
Program pkg-config found: YES
(C:\ProgramData\chocolatey\lib\pkgconfiglite\tools\pkg-config-lite-0.
28-1\bin\pkg-config.EXE)
Program check-symbols.sh found: YES (sh C:\dpdk\buildtools\check-symbols.sh)
Program options-ibverbs-static.sh found: YES (sh
C:\dpdk\buildtools\options-ibverbs-static.sh)
Program binutils-avx512-check.sh found: YES (sh
C:\dpdk\buildtools\binutils-avx512-check.sh)
Program python3 found: YES (c:\python39\python.exe)
Program cat found: YES (C:\cygwin64\bin\cat.EXE)
Checking for size of "void *" : 8
Checking for size of "void *" : 8
Library m found: NO
Library numa found: NO
Library libfdt found: NO
Library libexecinfo found: NO
Found pkg-config:
C:\ProgramData\chocolatey\lib\pkgconfiglite\tools\pkg-config-lite-0.28-1\bin\pkg-
config.EXE (0.28)
Run-time dependency libarchive found: NO (tried pkgconfig)
Run-time dependency libbsd found: NO (tried pkgconfig)
Run-time dependency libpcap found: NO (tried pkgconfig)
Library wpcap found: NO
Compiler for C supports arguments -Wextra: YES (cached)
..\config\meson.build:284: WARNING: Consider using the built-in
warning_level option instead of usi
ng "-Wextra".
Compiler for C supports arguments -Wcast-qual: YES (cached)
Compiler for C supports arguments -Wdeprecated: YES (cached)
Compiler for C supports arguments -Wformat: YES (cached)
Compiler for C supports arguments -Wformat-nonliteral: YES (cached)
Compiler for C supports arguments -Wformat-security: YES (cached)
Compiler for C supports arguments -Wmissing-declarations: YES (cached)
Compiler for C supports arguments -Wmissing-prototypes: YES (cached)
Compiler for C supports arguments -Wnested-externs: YES (cached)
Compiler for C supports arguments -Wold-style-definition: YES (cached)
Compiler for C supports arguments -Wpointer-arith: YES (cached)
Compiler for C supports arguments -Wsign-compare: YES (cached)
Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
Compiler for C supports arguments -Wundef: YES (cached)
Compiler for C supports arguments -Wwrite-strings: YES (cached)
Compiler for C supports arguments -Wno-address-of-packed-member: YES (cached)
Compiler for C supports arguments -Wno-packed-not-aligned: NO (cached)
Compiler for C supports arguments -Wno-missing-field-initializers: YES (cached)
Compiler for C supports arguments -mavx512f: YES (cached)
Checking if "AVX512 checking" compiles: YES (cached)
Fetching value of define "__SSE4_2__" : 1 (cached)
Fetching value of define "__AES__" : 1 (cached)
Fetching value of define "__AVX__" : 1 (cached)
Fetching value of define "__AVX2__" : 1 (cached)
Fetching value of define "__AVX512BW__" :  (cached)
Fetching value of define "__AVX512CD__" :  (cached)
Fetching value of define "__AVX512DQ__" :  (cached)
Fetching value of define "__AVX512F__" :  (cached)
Fetching value of define "__AVX512VL__" :  (cached)
Fetching value of define "__PCLMUL__" : 1 (cached)
Fetching value of define "__RDRND__" : 1 (cached)
Fetching value of define "__RDSEED__" : 1 (cached)
Fetching value of define "__VPCLMULQDQ__" :  (cached)
Compiler for C supports arguments -Wno-format-truncation: NO (cached)
Message: lib/kvargs: Defining dependency "kvargs"
Message: lib/telemetry: Defining dependency "telemetry"
Checking for function "getentropy" : NO (cached)
Message: lib/eal: Defining dependency "eal"
Message: lib/ring: Defining dependency "ring"
Message: lib/rcu: Defining dependency "rcu"
Message: lib/mempool: Defining dependency "mempool"
Message: lib/mbuf: Defining dependency "mbuf"
Fetching value of define "__PCLMUL__" : 1 (cached)
Fetching value of define "__AVX512F__" :  (cached)
Compiler for C supports arguments -mpclmul: YES (cached)
Compiler for C supports arguments -maes: YES (cached)
Compiler for C supports arguments -mavx512f: YES (cached)
Compiler for C supports arguments -mavx512bw: YES (cached)
Compiler for C supports arguments -mavx512dq: YES (cached)
Compiler for C supports arguments -mavx512vl: YES (cached)
Compiler for C supports arguments -mvpclmulqdq: YES (cached)
Compiler for C supports arguments -mavx2: YES (cached)
Compiler for C supports arguments -mavx: YES (cached)
Message: lib/net: Defining dependency "net"
Message: lib/meter: Defining dependency "meter"
Message: lib/ethdev: Defining dependency "ethdev"
Message: lib/pci: Defining dependency "pci"
Message: lib/cmdline: Defining dependency "cmdline"
Run-time dependency jansson found: NO (tried pkgconfig)
Message: lib/metrics: Defining dependency "metrics"
Message: lib/hash: Defining dependency "hash"
Message: lib/timer: Defining dependency "timer"
Message: lib/bitratestats: Defining dependency "bitratestats"
Message: lib/cfgfile: Defining dependency "cfgfile"
Message: lib/gro: Defining dependency "gro"
Message: lib/gso: Defining dependency "gso"
Message: lib/latencystats: Defining dependency "latencystats"
Message: lib/pdump: Defining dependency "pdump"
Compiler for C supports arguments -Wno-format-truncation: NO (cached)
Compiler for C supports arguments -Wno-cast-qual: YES (cached)
Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
Compiler for C supports arguments -Wno-pointer-to-int-cast: YES (cached)
WARNING: extract_all_objects called without setting recursive
keyword argument. Meson currently defaults to
non-recursive to maintain backward compatibility but
the default will be changed in the future.

Message: drivers/common/iavf: Defining dependency "common_iavf"
WARNING: extract_all_objects called without setting recursive
keyword argument. Meson currently defaults to
non-recursive to maintain backward compatibility but
the default will be changed in the future.

Message: drivers/bus/auxiliary: Defining dependency "bus_auxiliary"
Compiler for C supports arguments -Wno-cast-qual: YES (cached)
Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
WARNING: extract_all_objects called without setting recursive
keyword argument. Meson currently defaults to
non-recursive to maintain backward compatibility but
the default will be changed in the future.

Message: drivers/bus/pci: Defining dependency "bus_pci"
WARNING: extract_all_objects called without setting recursive
keyword argument. Meson currently defaults to
non-recursive to maintain backward compatibility but
the default will be changed in the future.

Message: drivers/bus/vdev: Defining dependency "bus_vdev"
Compiler for C supports arguments -std=c11: YES (cached)
Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
Compiler for C supports arguments -Wdisabled-optimization: YES (cached)
Compiler for C supports arguments -Waggregate-return: YES (cached)
Compiler for C supports arguments -Wbad-function-cast: YES (cached)
Compiler for C supports arguments -Wno-sign-compare: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-unused-variable: YES (cached)
Compiler for C supports arguments -Wno-empty-body: YES (cached)
Compiler for C supports arguments -Wno-unused-but-set-variable: NO (cached)
WARNING: extract_all_objects called without setting recursive
keyword argument. Meson currently defaults to
non-recursive to maintain backward compatibility but
the default will be changed in the future.

Message: drivers/mempool/ring: Defining dependency "mempool_ring"
Compiler for C supports arguments -flax-vector-conversions: YES (cached)
Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
Message: Disabling cnxk [drivers/net/cnxk]: missing internal
dependency "cryptodev"
Message: Disabling cnxk [drivers/net/cnxk]: missing internal
dependency "eventdev"
Message: Disabling cnxk [drivers/net/cnxk]: missing internal
dependency "security"
Message: Disabling cnxk [drivers/net/cnxk]: missing internal
dependency "common_cnxk"
Message: Disabling cnxk [drivers/net/cnxk]: missing internal
dependency "mempool_cnxk"
Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
Compiler for C supports arguments -Wno-sign-compare: YES (cached)
Compiler for C supports arguments -Wno-unused-value: YES (cached)
Compiler for C supports arguments -Wno-format: YES (cached)
Compiler for C supports arguments -Wno-format-security: YES (cached)
Compiler for C supports arguments -Wno-format-nonliteral: YES (cached)
Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
Compiler for C supports arguments -Wno-unused-but-set-variable: NO (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
WARNING: extract_all_objects called without setting recursive
keyword argument. Meson currently defaults to
non-recursive to maintain backward compatibility but
the default will be changed in the future.

Fetching value of define "__AVX2__" : 1 (cached)
Fetching value of define "__AVX512F__" :  (cached)
Compiler for C supports arguments -mavx512f: YES (cached)
Compiler for C supports arguments -mavx512bw: YES (cached)
Compiler for C supports arguments -march=skylake-avx512: YES (cached)
WARNING: extract_all_objects called without setting recursive
keyword argument. Meson currently defaults to
non-recursive to maintain backward compatibility but
the default will be changed in the future.

Message: drivers/net/i40e: Defining dependency "net_i40e"
Compiler for C supports arguments -Wno-unused-value: YES (cached)
Compiler for C supports arguments -Wno-unused-but-set-variable: NO (cached)
Compiler for C supports arguments -Wno-unused-variable: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
WARNING: extract_all_objects called without setting recursive
keyword argument. Meson currently defaults to
non-recursive to maintain backward compatibility but
the default will be changed in the future.

Fetching value of define "__AVX2__" : 1 (cached)
Fetching value of define "__AVX512F__" :  (cached)
Compiler for C supports arguments -mavx512f: YES (cached)
Compiler for C supports arguments -mavx512bw: YES (cached)
Compiler for C supports arguments -march=skylake-avx512: YES (cached)
WARNING: extract_all_objects called without setting recursive
keyword argument. Meson currently defaults to
non-recursive to maintain backward compatibility but
the default will be changed in the future.

Message: drivers/net/ice: Defining dependency "net_ice"
Compiler for C supports arguments -std=c11: YES (cached)
Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
Message: Disabling mlx5 [drivers/net/mlx5]: missing internal
dependency "common_mlx5"
Message: Disabling octeontx_ep [drivers/net/octeontx_ep]: missing
internal dependency "common_octeo
ntx2"
Library iphlpapi found: YES
Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
Header <linux/pkt_cls.h> has symbol "TCA_FLOWER_UNSPEC" : NO (cached)
Header <linux/pkt_cls.h> has symbol "TCA_FLOWER_KEY_VLAN_PRIO" : NO (cached)
Header <linux/pkt_cls.h> has symbol "TCA_BPF_UNSPEC" : NO (cached)
Header <linux/pkt_cls.h> has symbol "TCA_BPF_FD" : NO (cached)
Header <linux/tc_act/tc_bpf.h> has symbol "TCA_ACT_BPF_UNSPEC" : NO (cached)
Header <linux/tc_act/tc_bpf.h> has symbol "TCA_ACT_BPF_FD" : NO (cached)
Configuring tap_autoconf.h using configuration
Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-unused-value: YES (cached)
Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
Compiler for C supports arguments -Wno-format-extra-args: YES (cached)
WARNING: extract_all_objects called without setting recursive
keyword argument. Meson currently defaults to
non-recursive to maintain backward compatibility but
the default will be changed in the future.

Message: drivers/net/vmxnet3: Defining dependency "net_vmxnet3"
Program doxygen found: NO
Program sphinx-build found: NO
Configuring rte_build_config.h using configuration
Message:
=================
Libraries Enabled
=================

libs:
        kvargs, telemetry, eal, ring, rcu, mempool, mbuf, net,
        meter, ethdev, pci, cmdline, metrics, hash, timer, bitratestats,
        cfgfile, gro, gso, latencystats, pdump,

Message:
===============
Drivers Enabled
===============

common:
        iavf,
bus:
        auxiliary, pci, vdev,
mempool:
        ring,
net:
        i40e, ice, vmxnet3,
raw:

crypto:

compress:

regex:

vdpa:

event:

baseband:


Message:
=================
Content Skipped
=================

libs:

drivers:
        common/cpt:     not supported on Windows
        common/dpaax:   only supported on Linux
        common/mvep:    not supported on Windows
        common/octeontx:        not supported on Windows
        common/octeontx2:       not supported on Windows
        bus/dpaa:       only supported on Linux
        bus/fslmc:      only supported on Linux
        bus/ifpga:      not supported on Windows
        bus/vmbus:      not supported on Windows
        common/cnxk:    only supported on 64-bit Linux
        common/mlx5:    DevX environment variables are not set,
DEVX_LIB_PATH and DEVX_INC_PATH var
s must be exported
        common/qat:     not supported on Windows
        common/sfc_efx: not supported on Windows
        mempool/bucket: not supported on Windows
        mempool/cnxk:   only supported on 64-bit Linux
        mempool/dpaa:   only supported on Linux
        mempool/dpaa2:  only supported on Linux
        mempool/octeontx:       not supported on Windows
        mempool/octeontx2:      not supported on Windows
        mempool/stack:  not supported on Windows
        net/af_packet:  only supported on Linux
        net/af_xdp:     not supported on Windows
        net/ark:        not supported on Windows
        net/atlantic:   not supported on Windows
        net/avp:        only supported on Linux
        net/axgbe:      only supported on Linux
        net/bnx2x:      not supported on Windows
        net/bnxt:       not supported on Windows
        net/bonding:    not supported on Windows
        net/cnxk:       missing internal dependency, "mempool_cnxk"
        net/cxgbe:      not supported on Windows
        net/dpaa:       only supported on Linux
        net/dpaa2:      only supported on Linux
        net/e1000:      not supported on Windows
        net/ena:        not supported on Windows
        net/enetc:      only supported on Linux
        net/enic:       not supported on Windows
        net/failsafe:   not supported on Windows
        net/fm10k:      not supported on Windows
        net/hinic:      not supported on Windows
        net/hns3:       only supported on Linux
        net/iavf:       not supported on Windows
        net/igc:        not supported on Windows
        net/ionic:      not supported on Windows
        net/ipn3ke:     not supported on Windows
        net/ixgbe:      not supported on Windows
        net/kni:        not supported on Windows
        net/liquidio:   not supported on Windows
        net/memif:      only supported on Linux
        net/mlx4:       only supported on Linux
        net/mlx5:       missing internal dependency, "common_mlx5"
        net/mvneta:     not supported on Windows
        net/mvpp2:      not supported on Windows
        net/netvsc:     not supported on Windows
        net/nfb:        not supported on Windows
        net/nfp:        only supported on 64-bit Linux
        net/ngbe:       not supported on Windows
        net/null:       not supported on Windows
        net/octeontx:   not supported on Windows
        net/octeontx2:  not supported on Windows
        net/octeontx_ep:        missing internal dependency, "common_octeontx2"
        net/pcap:       missing dependency, "libpcap"
        net/pfe:        only supported on Linux
        net/qede:       not supported on Windows
        net/ring:       not supported on Windows
        net/sfc:        not supported on Windows
        net/softnic:    only supported on Linux
        net/szedata2:   not supported on Windows
        net/tap:        only supported on Linux
        net/thunderx:   not supported on Windows
        net/txgbe:      not supported on Windows
        net/vdev_netvsc:        only supported on Linux
        net/vhost:      not supported on Windows
        net/virtio:     not supported on Windows
        regex/mlx5:     only supported on Linux
        regex/octeontx2:        only supported on 64-bit Linux


Build targets in project: 139

Found ninja-1.10.0 at "C:\Program Files\Meson\ninja.EXE"
[12/322] Linking target lib/rte_telemetry-21.dll
   Creating library lib\rte_telemetry.lib and object lib\rte_telemetry.exp
[15/322] Linking target lib/rte_kvargs-21.dll
   Creating library lib\rte_kvargs.lib and object lib\rte_kvargs.exp
[69/322] Linking target lib/rte_eal-21.dll
FAILED: lib/rte_eal-21.dll
"clang" @lib/rte_eal-21.dll.rsp
clang: error: no such file or directory: 'librte_kvargs.lib'
[74/322] Compiling C object lib/librte_rcu.a.p/rcu_rte_rcu_qsbr.c.obj
ninja: build stopped: subcommand failed.

--- cat build\lib\rte_eal-21.dll.rsp ---
 -Wl,/MACHINE:X64 -Wl,/OUT:lib/rte_eal-21.dll
lib/librte_eal.a.p/eal_common_eal_common_bus.c.obj li
b/librte_eal.a.p/eal_common_eal_common_class.c.obj
lib/librte_eal.a.p/eal_common_eal_common_config.
c.obj lib/librte_eal.a.p/eal_common_eal_common_debug.c.obj
lib/librte_eal.a.p/eal_common_eal_common
_dev.c.obj lib/librte_eal.a.p/eal_common_eal_common_devargs.c.obj
lib/librte_eal.a.p/eal_common_eal
_common_dynmem.c.obj
lib/librte_eal.a.p/eal_common_eal_common_errno.c.obj
lib/librte_eal.a.p/eal_co
mmon_eal_common_fbarray.c.obj
lib/librte_eal.a.p/eal_common_eal_common_hexdump.c.obj lib/librte_eal
.a.p/eal_common_eal_common_launch.c.obj
lib/librte_eal.a.p/eal_common_eal_common_lcore.c.obj lib/li
brte_eal.a.p/eal_common_eal_common_log.c.obj
lib/librte_eal.a.p/eal_common_eal_common_mcfg.c.obj li
b/librte_eal.a.p/eal_common_eal_common_memalloc.c.obj
lib/librte_eal.a.p/eal_common_eal_common_memo
ry.c.obj lib/librte_eal.a.p/eal_common_eal_common_memzone.c.obj
lib/librte_eal.a.p/eal_common_eal_c
ommon_options.c.obj
lib/librte_eal.a.p/eal_common_eal_common_string_fns.c.obj
lib/librte_eal.a.p/ea
l_common_eal_common_tailqs.c.obj
lib/librte_eal.a.p/eal_common_eal_common_thread.c.obj lib/librte_e
al.a.p/eal_common_eal_common_trace_points.c.obj
lib/librte_eal.a.p/eal_common_malloc_elem.c.obj lib
/librte_eal.a.p/eal_common_malloc_heap.c.obj
lib/librte_eal.a.p/eal_common_rte_malloc.c.obj lib/lib
rte_eal.a.p/eal_common_eal_common_timer.c.obj
lib/librte_eal.a.p/eal_common_rte_random.c.obj lib/li
brte_eal.a.p/eal_common_rte_reciprocal.c.obj
lib/librte_eal.a.p/eal_common_rte_service.c.obj lib/li
brte_eal.a.p/eal_common_rte_version.c.obj
lib/librte_eal.a.p/eal_windows_eal.c.obj lib/librte_eal.a
.p/eal_windows_eal_alarm.c.obj
lib/librte_eal.a.p/eal_windows_eal_debug.c.obj lib/librte_eal.a.p/ea
l_windows_eal_dev.c.obj lib/librte_eal.a.p/eal_windows_eal_file.c.obj
lib/librte_eal.a.p/eal_window
s_eal_hugepages.c.obj
lib/librte_eal.a.p/eal_windows_eal_interrupts.c.obj
lib/librte_eal.a.p/eal_wi
ndows_eal_lcore.c.obj lib/librte_eal.a.p/eal_windows_eal_log.c.obj
lib/librte_eal.a.p/eal_windows_e
al_memalloc.c.obj lib/librte_eal.a.p/eal_windows_eal_memory.c.obj
lib/librte_eal.a.p/eal_windows_ea
l_mp.c.obj lib/librte_eal.a.p/eal_windows_eal_thread.c.obj
lib/librte_eal.a.p/eal_windows_eal_timer
.c.obj lib/librte_eal.a.p/eal_windows_fnmatch.c.obj
lib/librte_eal.a.p/eal_windows_getopt.c.obj lib
/librte_eal.a.p/eal_windows_rte_thread.c.obj
lib/librte_eal.a.p/eal_x86_rte_cpuflags.c.obj lib/libr
te_eal.a.p/eal_x86_rte_cycles.c.obj
lib/librte_eal.a.p/eal_x86_rte_hypervisor.c.obj lib/librte_eal.
a.p/eal_x86_rte_spinlock.c.obj
lib/librte_eal.a.p/eal_x86_rte_power_intrinsics.c.obj "-Wl,/nologo"
"-Wl,/release" "-Wl,/nologo" "-Wl,/OPT:REF" "-Wl,/DLL"
"-Wl,/IMPLIB:lib\rte_eal.lib" "-lws2_32" "-l
mincore" "-ladvapi32" "-lsetupapi" "-ldbghelp" "lib\rte_kvargs.lib"
"-Wl,/def:C:\dpdk\build\lib\rte
_eal_exports.def" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool"
"-lshell32" "-lole32" "-loleaut32"
 "-luuid" "-lcomdlg32"

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

* Re: [dpdk-dev] DPDK meson build failed on Windows
  2021-08-04 18:31 [dpdk-dev] DPDK meson build failed on Windows William Tu
@ 2021-08-04 18:45 ` Dmitry Kozlyuk
  2021-08-04 19:28   ` Sergey Madaminov
  2021-08-05 13:00   ` William Tu
  0 siblings, 2 replies; 6+ messages in thread
From: Dmitry Kozlyuk @ 2021-08-04 18:45 UTC (permalink / raw)
  To: William Tu; +Cc: dpdk-dev, Sergey Madaminov

Hi again,

This is exactly the error with 0.58 that I was talking about. Try 0.57.2.

On Wed, Aug 4, 2021, 21:32 William Tu <u9012063@gmail.com> wrote:

> Hi,
> I got DPDK compiled on Windows, but suddenly I got this error when
> compiling DPDK on windows again. (And I don't know why it worked
> before...)
> [3/183] "clang" @lib/rte_eal-21.dll.rsp
> FAILED: lib/rte_eal-21.dll
> "clang" @lib/rte_eal-21.dll.rsp
> clang: error: no such file or directory: 'librte_kvargs.lib'
>
> Tested on main branch 45633c460c.
> I also tried meson 0.55.0 but still failed. Any suggestions for
> debugging or fixing it?
> Thanks,
> William
>
> Full log below
> -------------------
> PS C:\dpdk> ninja -C build
> ninja: Entering directory `build'
> [0/1] Regenerating build files.
> The Meson build system
> Version: 0.59.0
> Source dir: C:\dpdk
> Build dir: C:\dpdk\build
> Build type: native build
> Program cat found: YES (C:\cygwin64\bin\cat.EXE)
> Project name: DPDK
> Project version: 21.08.0-rc3
> C compiler for the host machine: clang (clang 12.0.0 "clang version
> 12.0.0")
> C linker for the host machine: clang link 14.29.30040.0
> Host machine cpu family: x86_64
> Host machine cpu: x86_64
> Message: ## Building in Developer Mode ##
> Program pkg-config found: YES
> (C:\ProgramData\chocolatey\lib\pkgconfiglite\tools\pkg-config-lite-0.
> 28-1\bin\pkg-config.EXE)
> Program check-symbols.sh found: YES (sh
> C:\dpdk\buildtools\check-symbols.sh)
> Program options-ibverbs-static.sh found: YES (sh
> C:\dpdk\buildtools\options-ibverbs-static.sh)
> Program binutils-avx512-check.sh found: YES (sh
> C:\dpdk\buildtools\binutils-avx512-check.sh)
> Program python3 found: YES (c:\python39\python.exe)
> Program cat found: YES (C:\cygwin64\bin\cat.EXE)
> Checking for size of "void *" : 8
> Checking for size of "void *" : 8
> Library m found: NO
> Library numa found: NO
> Library libfdt found: NO
> Library libexecinfo found: NO
> Found pkg-config:
>
> C:\ProgramData\chocolatey\lib\pkgconfiglite\tools\pkg-config-lite-0.28-1\bin\pkg-
> config.EXE (0.28)
> Run-time dependency libarchive found: NO (tried pkgconfig)
> Run-time dependency libbsd found: NO (tried pkgconfig)
> Run-time dependency libpcap found: NO (tried pkgconfig)
> Library wpcap found: NO
> Compiler for C supports arguments -Wextra: YES (cached)
> ..\config\meson.build:284: WARNING: Consider using the built-in
> warning_level option instead of usi
> ng "-Wextra".
> Compiler for C supports arguments -Wcast-qual: YES (cached)
> Compiler for C supports arguments -Wdeprecated: YES (cached)
> Compiler for C supports arguments -Wformat: YES (cached)
> Compiler for C supports arguments -Wformat-nonliteral: YES (cached)
> Compiler for C supports arguments -Wformat-security: YES (cached)
> Compiler for C supports arguments -Wmissing-declarations: YES (cached)
> Compiler for C supports arguments -Wmissing-prototypes: YES (cached)
> Compiler for C supports arguments -Wnested-externs: YES (cached)
> Compiler for C supports arguments -Wold-style-definition: YES (cached)
> Compiler for C supports arguments -Wpointer-arith: YES (cached)
> Compiler for C supports arguments -Wsign-compare: YES (cached)
> Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
> Compiler for C supports arguments -Wundef: YES (cached)
> Compiler for C supports arguments -Wwrite-strings: YES (cached)
> Compiler for C supports arguments -Wno-address-of-packed-member: YES
> (cached)
> Compiler for C supports arguments -Wno-packed-not-aligned: NO (cached)
> Compiler for C supports arguments -Wno-missing-field-initializers: YES
> (cached)
> Compiler for C supports arguments -mavx512f: YES (cached)
> Checking if "AVX512 checking" compiles: YES (cached)
> Fetching value of define "__SSE4_2__" : 1 (cached)
> Fetching value of define "__AES__" : 1 (cached)
> Fetching value of define "__AVX__" : 1 (cached)
> Fetching value of define "__AVX2__" : 1 (cached)
> Fetching value of define "__AVX512BW__" :  (cached)
> Fetching value of define "__AVX512CD__" :  (cached)
> Fetching value of define "__AVX512DQ__" :  (cached)
> Fetching value of define "__AVX512F__" :  (cached)
> Fetching value of define "__AVX512VL__" :  (cached)
> Fetching value of define "__PCLMUL__" : 1 (cached)
> Fetching value of define "__RDRND__" : 1 (cached)
> Fetching value of define "__RDSEED__" : 1 (cached)
> Fetching value of define "__VPCLMULQDQ__" :  (cached)
> Compiler for C supports arguments -Wno-format-truncation: NO (cached)
> Message: lib/kvargs: Defining dependency "kvargs"
> Message: lib/telemetry: Defining dependency "telemetry"
> Checking for function "getentropy" : NO (cached)
> Message: lib/eal: Defining dependency "eal"
> Message: lib/ring: Defining dependency "ring"
> Message: lib/rcu: Defining dependency "rcu"
> Message: lib/mempool: Defining dependency "mempool"
> Message: lib/mbuf: Defining dependency "mbuf"
> Fetching value of define "__PCLMUL__" : 1 (cached)
> Fetching value of define "__AVX512F__" :  (cached)
> Compiler for C supports arguments -mpclmul: YES (cached)
> Compiler for C supports arguments -maes: YES (cached)
> Compiler for C supports arguments -mavx512f: YES (cached)
> Compiler for C supports arguments -mavx512bw: YES (cached)
> Compiler for C supports arguments -mavx512dq: YES (cached)
> Compiler for C supports arguments -mavx512vl: YES (cached)
> Compiler for C supports arguments -mvpclmulqdq: YES (cached)
> Compiler for C supports arguments -mavx2: YES (cached)
> Compiler for C supports arguments -mavx: YES (cached)
> Message: lib/net: Defining dependency "net"
> Message: lib/meter: Defining dependency "meter"
> Message: lib/ethdev: Defining dependency "ethdev"
> Message: lib/pci: Defining dependency "pci"
> Message: lib/cmdline: Defining dependency "cmdline"
> Run-time dependency jansson found: NO (tried pkgconfig)
> Message: lib/metrics: Defining dependency "metrics"
> Message: lib/hash: Defining dependency "hash"
> Message: lib/timer: Defining dependency "timer"
> Message: lib/bitratestats: Defining dependency "bitratestats"
> Message: lib/cfgfile: Defining dependency "cfgfile"
> Message: lib/gro: Defining dependency "gro"
> Message: lib/gso: Defining dependency "gso"
> Message: lib/latencystats: Defining dependency "latencystats"
> Message: lib/pdump: Defining dependency "pdump"
> Compiler for C supports arguments -Wno-format-truncation: NO (cached)
> Compiler for C supports arguments -Wno-cast-qual: YES (cached)
> Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
> Compiler for C supports arguments -Wno-pointer-to-int-cast: YES (cached)
> WARNING: extract_all_objects called without setting recursive
> keyword argument. Meson currently defaults to
> non-recursive to maintain backward compatibility but
> the default will be changed in the future.
>
> Message: drivers/common/iavf: Defining dependency "common_iavf"
> WARNING: extract_all_objects called without setting recursive
> keyword argument. Meson currently defaults to
> non-recursive to maintain backward compatibility but
> the default will be changed in the future.
>
> Message: drivers/bus/auxiliary: Defining dependency "bus_auxiliary"
> Compiler for C supports arguments -Wno-cast-qual: YES (cached)
> Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
> WARNING: extract_all_objects called without setting recursive
> keyword argument. Meson currently defaults to
> non-recursive to maintain backward compatibility but
> the default will be changed in the future.
>
> Message: drivers/bus/pci: Defining dependency "bus_pci"
> WARNING: extract_all_objects called without setting recursive
> keyword argument. Meson currently defaults to
> non-recursive to maintain backward compatibility but
> the default will be changed in the future.
>
> Message: drivers/bus/vdev: Defining dependency "bus_vdev"
> Compiler for C supports arguments -std=c11: YES (cached)
> Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
> Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
> Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
> Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
> Compiler for C supports arguments -Wdisabled-optimization: YES (cached)
> Compiler for C supports arguments -Waggregate-return: YES (cached)
> Compiler for C supports arguments -Wbad-function-cast: YES (cached)
> Compiler for C supports arguments -Wno-sign-compare: YES (cached)
> Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
> Compiler for C supports arguments -Wno-unused-variable: YES (cached)
> Compiler for C supports arguments -Wno-empty-body: YES (cached)
> Compiler for C supports arguments -Wno-unused-but-set-variable: NO (cached)
> WARNING: extract_all_objects called without setting recursive
> keyword argument. Meson currently defaults to
> non-recursive to maintain backward compatibility but
> the default will be changed in the future.
>
> Message: drivers/mempool/ring: Defining dependency "mempool_ring"
> Compiler for C supports arguments -flax-vector-conversions: YES (cached)
> Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
> Message: Disabling cnxk [drivers/net/cnxk]: missing internal
> dependency "cryptodev"
> Message: Disabling cnxk [drivers/net/cnxk]: missing internal
> dependency "eventdev"
> Message: Disabling cnxk [drivers/net/cnxk]: missing internal
> dependency "security"
> Message: Disabling cnxk [drivers/net/cnxk]: missing internal
> dependency "common_cnxk"
> Message: Disabling cnxk [drivers/net/cnxk]: missing internal
> dependency "mempool_cnxk"
> Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
> Compiler for C supports arguments -Wno-sign-compare: YES (cached)
> Compiler for C supports arguments -Wno-unused-value: YES (cached)
> Compiler for C supports arguments -Wno-format: YES (cached)
> Compiler for C supports arguments -Wno-format-security: YES (cached)
> Compiler for C supports arguments -Wno-format-nonliteral: YES (cached)
> Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
> Compiler for C supports arguments -Wno-unused-but-set-variable: NO (cached)
> Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
> WARNING: extract_all_objects called without setting recursive
> keyword argument. Meson currently defaults to
> non-recursive to maintain backward compatibility but
> the default will be changed in the future.
>
> Fetching value of define "__AVX2__" : 1 (cached)
> Fetching value of define "__AVX512F__" :  (cached)
> Compiler for C supports arguments -mavx512f: YES (cached)
> Compiler for C supports arguments -mavx512bw: YES (cached)
> Compiler for C supports arguments -march=skylake-avx512: YES (cached)
> WARNING: extract_all_objects called without setting recursive
> keyword argument. Meson currently defaults to
> non-recursive to maintain backward compatibility but
> the default will be changed in the future.
>
> Message: drivers/net/i40e: Defining dependency "net_i40e"
> Compiler for C supports arguments -Wno-unused-value: YES (cached)
> Compiler for C supports arguments -Wno-unused-but-set-variable: NO (cached)
> Compiler for C supports arguments -Wno-unused-variable: YES (cached)
> Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
> WARNING: extract_all_objects called without setting recursive
> keyword argument. Meson currently defaults to
> non-recursive to maintain backward compatibility but
> the default will be changed in the future.
>
> Fetching value of define "__AVX2__" : 1 (cached)
> Fetching value of define "__AVX512F__" :  (cached)
> Compiler for C supports arguments -mavx512f: YES (cached)
> Compiler for C supports arguments -mavx512bw: YES (cached)
> Compiler for C supports arguments -march=skylake-avx512: YES (cached)
> WARNING: extract_all_objects called without setting recursive
> keyword argument. Meson currently defaults to
> non-recursive to maintain backward compatibility but
> the default will be changed in the future.
>
> Message: drivers/net/ice: Defining dependency "net_ice"
> Compiler for C supports arguments -std=c11: YES (cached)
> Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
> Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
> Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
> Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
> Message: Disabling mlx5 [drivers/net/mlx5]: missing internal
> dependency "common_mlx5"
> Message: Disabling octeontx_ep [drivers/net/octeontx_ep]: missing
> internal dependency "common_octeo
> ntx2"
> Library iphlpapi found: YES
> Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
> Header <linux/pkt_cls.h> has symbol "TCA_FLOWER_UNSPEC" : NO (cached)
> Header <linux/pkt_cls.h> has symbol "TCA_FLOWER_KEY_VLAN_PRIO" : NO
> (cached)
> Header <linux/pkt_cls.h> has symbol "TCA_BPF_UNSPEC" : NO (cached)
> Header <linux/pkt_cls.h> has symbol "TCA_BPF_FD" : NO (cached)
> Header <linux/tc_act/tc_bpf.h> has symbol "TCA_ACT_BPF_UNSPEC" : NO
> (cached)
> Header <linux/tc_act/tc_bpf.h> has symbol "TCA_ACT_BPF_FD" : NO (cached)
> Configuring tap_autoconf.h using configuration
> Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
> Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
> Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
> Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
> Compiler for C supports arguments -Wno-unused-value: YES (cached)
> Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
> Compiler for C supports arguments -Wno-format-extra-args: YES (cached)
> WARNING: extract_all_objects called without setting recursive
> keyword argument. Meson currently defaults to
> non-recursive to maintain backward compatibility but
> the default will be changed in the future.
>
> Message: drivers/net/vmxnet3: Defining dependency "net_vmxnet3"
> Program doxygen found: NO
> Program sphinx-build found: NO
> Configuring rte_build_config.h using configuration
> Message:
> =================
> Libraries Enabled
> =================
>
> libs:
>         kvargs, telemetry, eal, ring, rcu, mempool, mbuf, net,
>         meter, ethdev, pci, cmdline, metrics, hash, timer, bitratestats,
>         cfgfile, gro, gso, latencystats, pdump,
>
> Message:
> ===============
> Drivers Enabled
> ===============
>
> common:
>         iavf,
> bus:
>         auxiliary, pci, vdev,
> mempool:
>         ring,
> net:
>         i40e, ice, vmxnet3,
> raw:
>
> crypto:
>
> compress:
>
> regex:
>
> vdpa:
>
> event:
>
> baseband:
>
>
> Message:
> =================
> Content Skipped
> =================
>
> libs:
>
> drivers:
>         common/cpt:     not supported on Windows
>         common/dpaax:   only supported on Linux
>         common/mvep:    not supported on Windows
>         common/octeontx:        not supported on Windows
>         common/octeontx2:       not supported on Windows
>         bus/dpaa:       only supported on Linux
>         bus/fslmc:      only supported on Linux
>         bus/ifpga:      not supported on Windows
>         bus/vmbus:      not supported on Windows
>         common/cnxk:    only supported on 64-bit Linux
>         common/mlx5:    DevX environment variables are not set,
> DEVX_LIB_PATH and DEVX_INC_PATH var
> s must be exported
>         common/qat:     not supported on Windows
>         common/sfc_efx: not supported on Windows
>         mempool/bucket: not supported on Windows
>         mempool/cnxk:   only supported on 64-bit Linux
>         mempool/dpaa:   only supported on Linux
>         mempool/dpaa2:  only supported on Linux
>         mempool/octeontx:       not supported on Windows
>         mempool/octeontx2:      not supported on Windows
>         mempool/stack:  not supported on Windows
>         net/af_packet:  only supported on Linux
>         net/af_xdp:     not supported on Windows
>         net/ark:        not supported on Windows
>         net/atlantic:   not supported on Windows
>         net/avp:        only supported on Linux
>         net/axgbe:      only supported on Linux
>         net/bnx2x:      not supported on Windows
>         net/bnxt:       not supported on Windows
>         net/bonding:    not supported on Windows
>         net/cnxk:       missing internal dependency, "mempool_cnxk"
>         net/cxgbe:      not supported on Windows
>         net/dpaa:       only supported on Linux
>         net/dpaa2:      only supported on Linux
>         net/e1000:      not supported on Windows
>         net/ena:        not supported on Windows
>         net/enetc:      only supported on Linux
>         net/enic:       not supported on Windows
>         net/failsafe:   not supported on Windows
>         net/fm10k:      not supported on Windows
>         net/hinic:      not supported on Windows
>         net/hns3:       only supported on Linux
>         net/iavf:       not supported on Windows
>         net/igc:        not supported on Windows
>         net/ionic:      not supported on Windows
>         net/ipn3ke:     not supported on Windows
>         net/ixgbe:      not supported on Windows
>         net/kni:        not supported on Windows
>         net/liquidio:   not supported on Windows
>         net/memif:      only supported on Linux
>         net/mlx4:       only supported on Linux
>         net/mlx5:       missing internal dependency, "common_mlx5"
>         net/mvneta:     not supported on Windows
>         net/mvpp2:      not supported on Windows
>         net/netvsc:     not supported on Windows
>         net/nfb:        not supported on Windows
>         net/nfp:        only supported on 64-bit Linux
>         net/ngbe:       not supported on Windows
>         net/null:       not supported on Windows
>         net/octeontx:   not supported on Windows
>         net/octeontx2:  not supported on Windows
>         net/octeontx_ep:        missing internal dependency,
> "common_octeontx2"
>         net/pcap:       missing dependency, "libpcap"
>         net/pfe:        only supported on Linux
>         net/qede:       not supported on Windows
>         net/ring:       not supported on Windows
>         net/sfc:        not supported on Windows
>         net/softnic:    only supported on Linux
>         net/szedata2:   not supported on Windows
>         net/tap:        only supported on Linux
>         net/thunderx:   not supported on Windows
>         net/txgbe:      not supported on Windows
>         net/vdev_netvsc:        only supported on Linux
>         net/vhost:      not supported on Windows
>         net/virtio:     not supported on Windows
>         regex/mlx5:     only supported on Linux
>         regex/octeontx2:        only supported on 64-bit Linux
>
>
> Build targets in project: 139
>
> Found ninja-1.10.0 at "C:\Program Files\Meson\ninja.EXE"
> [12/322] Linking target lib/rte_telemetry-21.dll
>    Creating library lib\rte_telemetry.lib and object lib\rte_telemetry.exp
> [15/322] Linking target lib/rte_kvargs-21.dll
>    Creating library lib\rte_kvargs.lib and object lib\rte_kvargs.exp
> [69/322] Linking target lib/rte_eal-21.dll
> FAILED: lib/rte_eal-21.dll
> "clang" @lib/rte_eal-21.dll.rsp
> clang: error: no such file or directory: 'librte_kvargs.lib'
> [74/322] Compiling C object lib/librte_rcu.a.p/rcu_rte_rcu_qsbr.c.obj
> ninja: build stopped: subcommand failed.
>
> --- cat build\lib\rte_eal-21.dll.rsp ---
>  -Wl,/MACHINE:X64 -Wl,/OUT:lib/rte_eal-21.dll
> lib/librte_eal.a.p/eal_common_eal_common_bus.c.obj li
> b/librte_eal.a.p/eal_common_eal_common_class.c.obj
> lib/librte_eal.a.p/eal_common_eal_common_config.
> c.obj lib/librte_eal.a.p/eal_common_eal_common_debug.c.obj
> lib/librte_eal.a.p/eal_common_eal_common
> _dev.c.obj lib/librte_eal.a.p/eal_common_eal_common_devargs.c.obj
> lib/librte_eal.a.p/eal_common_eal
> _common_dynmem.c.obj
> lib/librte_eal.a.p/eal_common_eal_common_errno.c.obj
> lib/librte_eal.a.p/eal_co
> mmon_eal_common_fbarray.c.obj
> lib/librte_eal.a.p/eal_common_eal_common_hexdump.c.obj lib/librte_eal
> .a.p/eal_common_eal_common_launch.c.obj
> lib/librte_eal.a.p/eal_common_eal_common_lcore.c.obj lib/li
> brte_eal.a.p/eal_common_eal_common_log.c.obj
> lib/librte_eal.a.p/eal_common_eal_common_mcfg.c.obj li
> b/librte_eal.a.p/eal_common_eal_common_memalloc.c.obj
> lib/librte_eal.a.p/eal_common_eal_common_memo
> ry.c.obj lib/librte_eal.a.p/eal_common_eal_common_memzone.c.obj
> lib/librte_eal.a.p/eal_common_eal_c
> ommon_options.c.obj
> lib/librte_eal.a.p/eal_common_eal_common_string_fns.c.obj
> lib/librte_eal.a.p/ea
> l_common_eal_common_tailqs.c.obj
> lib/librte_eal.a.p/eal_common_eal_common_thread.c.obj lib/librte_e
> al.a.p/eal_common_eal_common_trace_points.c.obj
> lib/librte_eal.a.p/eal_common_malloc_elem.c.obj lib
> /librte_eal.a.p/eal_common_malloc_heap.c.obj
> lib/librte_eal.a.p/eal_common_rte_malloc.c.obj lib/lib
> rte_eal.a.p/eal_common_eal_common_timer.c.obj
> lib/librte_eal.a.p/eal_common_rte_random.c.obj lib/li
> brte_eal.a.p/eal_common_rte_reciprocal.c.obj
> lib/librte_eal.a.p/eal_common_rte_service.c.obj lib/li
> brte_eal.a.p/eal_common_rte_version.c.obj
> lib/librte_eal.a.p/eal_windows_eal.c.obj lib/librte_eal.a
> .p/eal_windows_eal_alarm.c.obj
> lib/librte_eal.a.p/eal_windows_eal_debug.c.obj lib/librte_eal.a.p/ea
> l_windows_eal_dev.c.obj lib/librte_eal.a.p/eal_windows_eal_file.c.obj
> lib/librte_eal.a.p/eal_window
> s_eal_hugepages.c.obj
> lib/librte_eal.a.p/eal_windows_eal_interrupts.c.obj
> lib/librte_eal.a.p/eal_wi
> ndows_eal_lcore.c.obj lib/librte_eal.a.p/eal_windows_eal_log.c.obj
> lib/librte_eal.a.p/eal_windows_e
> al_memalloc.c.obj lib/librte_eal.a.p/eal_windows_eal_memory.c.obj
> lib/librte_eal.a.p/eal_windows_ea
> l_mp.c.obj lib/librte_eal.a.p/eal_windows_eal_thread.c.obj
> lib/librte_eal.a.p/eal_windows_eal_timer
> .c.obj lib/librte_eal.a.p/eal_windows_fnmatch.c.obj
> lib/librte_eal.a.p/eal_windows_getopt.c.obj lib
> /librte_eal.a.p/eal_windows_rte_thread.c.obj
> lib/librte_eal.a.p/eal_x86_rte_cpuflags.c.obj lib/libr
> te_eal.a.p/eal_x86_rte_cycles.c.obj
> lib/librte_eal.a.p/eal_x86_rte_hypervisor.c.obj lib/librte_eal.
> a.p/eal_x86_rte_spinlock.c.obj
> lib/librte_eal.a.p/eal_x86_rte_power_intrinsics.c.obj "-Wl,/nologo"
> "-Wl,/release" "-Wl,/nologo" "-Wl,/OPT:REF" "-Wl,/DLL"
> "-Wl,/IMPLIB:lib\rte_eal.lib" "-lws2_32" "-l
> mincore" "-ladvapi32" "-lsetupapi" "-ldbghelp" "lib\rte_kvargs.lib"
> "-Wl,/def:C:\dpdk\build\lib\rte
> _eal_exports.def" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool"
> "-lshell32" "-lole32" "-loleaut32"
>  "-luuid" "-lcomdlg32"
>

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

* Re: [dpdk-dev] DPDK meson build failed on Windows
  2021-08-04 18:45 ` Dmitry Kozlyuk
@ 2021-08-04 19:28   ` Sergey Madaminov
  2021-08-04 20:19     ` Dmitry Kozlyuk
  2021-08-05 13:00   ` William Tu
  1 sibling, 1 reply; 6+ messages in thread
From: Sergey Madaminov @ 2021-08-04 19:28 UTC (permalink / raw)
  To: Dmitry Kozlyuk; +Cc: William Tu, dpdk-dev

I've taken a look at this issue. As Dmitry said it is related to the bug
within meson with having slashes escaping characters. It matters for the
current meson build files in the DPDK for Windows as there is a reliance on
strings for some file names. I believe that it is solvable by replacing
strings and transitioning to variables. So if there is an interest in that
or a need to use higher versions of meson I can try to rewrite meson build
files to solve this problem. Chances I may do that anyway as for current
OvS meson builds I need meson 0.59.0 version.

Kind regards,
Sergey


ср, 4 авг. 2021 г. в 13:45, Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>:

> Hi again,
>
> This is exactly the error with 0.58 that I was talking about. Try 0.57.2.
>
> On Wed, Aug 4, 2021, 21:32 William Tu <u9012063@gmail.com> wrote:
>
>> Hi,
>> I got DPDK compiled on Windows, but suddenly I got this error when
>> compiling DPDK on windows again. (And I don't know why it worked
>> before...)
>> [3/183] "clang" @lib/rte_eal-21.dll.rsp
>> FAILED: lib/rte_eal-21.dll
>> "clang" @lib/rte_eal-21.dll.rsp
>> clang: error: no such file or directory: 'librte_kvargs.lib'
>>
>> Tested on main branch 45633c460c.
>> I also tried meson 0.55.0 but still failed. Any suggestions for
>> debugging or fixing it?
>> Thanks,
>> William
>>
>> Full log below
>> -------------------
>> PS C:\dpdk> ninja -C build
>> ninja: Entering directory `build'
>> [0/1] Regenerating build files.
>> The Meson build system
>> Version: 0.59.0
>> Source dir: C:\dpdk
>> Build dir: C:\dpdk\build
>> Build type: native build
>> Program cat found: YES (C:\cygwin64\bin\cat.EXE)
>> Project name: DPDK
>> Project version: 21.08.0-rc3
>> C compiler for the host machine: clang (clang 12.0.0 "clang version
>> 12.0.0")
>> C linker for the host machine: clang link 14.29.30040.0
>> Host machine cpu family: x86_64
>> Host machine cpu: x86_64
>> Message: ## Building in Developer Mode ##
>> Program pkg-config found: YES
>> (C:\ProgramData\chocolatey\lib\pkgconfiglite\tools\pkg-config-lite-0.
>> 28-1\bin\pkg-config.EXE)
>> Program check-symbols.sh found: YES (sh
>> C:\dpdk\buildtools\check-symbols.sh)
>> Program options-ibverbs-static.sh found: YES (sh
>> C:\dpdk\buildtools\options-ibverbs-static.sh)
>> Program binutils-avx512-check.sh found: YES (sh
>> C:\dpdk\buildtools\binutils-avx512-check.sh)
>> Program python3 found: YES (c:\python39\python.exe)
>> Program cat found: YES (C:\cygwin64\bin\cat.EXE)
>> Checking for size of "void *" : 8
>> Checking for size of "void *" : 8
>> Library m found: NO
>> Library numa found: NO
>> Library libfdt found: NO
>> Library libexecinfo found: NO
>> Found pkg-config:
>>
>> C:\ProgramData\chocolatey\lib\pkgconfiglite\tools\pkg-config-lite-0.28-1\bin\pkg-
>> config.EXE (0.28)
>> Run-time dependency libarchive found: NO (tried pkgconfig)
>> Run-time dependency libbsd found: NO (tried pkgconfig)
>> Run-time dependency libpcap found: NO (tried pkgconfig)
>> Library wpcap found: NO
>> Compiler for C supports arguments -Wextra: YES (cached)
>> ..\config\meson.build:284: WARNING: Consider using the built-in
>> warning_level option instead of usi
>> ng "-Wextra".
>> Compiler for C supports arguments -Wcast-qual: YES (cached)
>> Compiler for C supports arguments -Wdeprecated: YES (cached)
>> Compiler for C supports arguments -Wformat: YES (cached)
>> Compiler for C supports arguments -Wformat-nonliteral: YES (cached)
>> Compiler for C supports arguments -Wformat-security: YES (cached)
>> Compiler for C supports arguments -Wmissing-declarations: YES (cached)
>> Compiler for C supports arguments -Wmissing-prototypes: YES (cached)
>> Compiler for C supports arguments -Wnested-externs: YES (cached)
>> Compiler for C supports arguments -Wold-style-definition: YES (cached)
>> Compiler for C supports arguments -Wpointer-arith: YES (cached)
>> Compiler for C supports arguments -Wsign-compare: YES (cached)
>> Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
>> Compiler for C supports arguments -Wundef: YES (cached)
>> Compiler for C supports arguments -Wwrite-strings: YES (cached)
>> Compiler for C supports arguments -Wno-address-of-packed-member: YES
>> (cached)
>> Compiler for C supports arguments -Wno-packed-not-aligned: NO (cached)
>> Compiler for C supports arguments -Wno-missing-field-initializers: YES
>> (cached)
>> Compiler for C supports arguments -mavx512f: YES (cached)
>> Checking if "AVX512 checking" compiles: YES (cached)
>> Fetching value of define "__SSE4_2__" : 1 (cached)
>> Fetching value of define "__AES__" : 1 (cached)
>> Fetching value of define "__AVX__" : 1 (cached)
>> Fetching value of define "__AVX2__" : 1 (cached)
>> Fetching value of define "__AVX512BW__" :  (cached)
>> Fetching value of define "__AVX512CD__" :  (cached)
>> Fetching value of define "__AVX512DQ__" :  (cached)
>> Fetching value of define "__AVX512F__" :  (cached)
>> Fetching value of define "__AVX512VL__" :  (cached)
>> Fetching value of define "__PCLMUL__" : 1 (cached)
>> Fetching value of define "__RDRND__" : 1 (cached)
>> Fetching value of define "__RDSEED__" : 1 (cached)
>> Fetching value of define "__VPCLMULQDQ__" :  (cached)
>> Compiler for C supports arguments -Wno-format-truncation: NO (cached)
>> Message: lib/kvargs: Defining dependency "kvargs"
>> Message: lib/telemetry: Defining dependency "telemetry"
>> Checking for function "getentropy" : NO (cached)
>> Message: lib/eal: Defining dependency "eal"
>> Message: lib/ring: Defining dependency "ring"
>> Message: lib/rcu: Defining dependency "rcu"
>> Message: lib/mempool: Defining dependency "mempool"
>> Message: lib/mbuf: Defining dependency "mbuf"
>> Fetching value of define "__PCLMUL__" : 1 (cached)
>> Fetching value of define "__AVX512F__" :  (cached)
>> Compiler for C supports arguments -mpclmul: YES (cached)
>> Compiler for C supports arguments -maes: YES (cached)
>> Compiler for C supports arguments -mavx512f: YES (cached)
>> Compiler for C supports arguments -mavx512bw: YES (cached)
>> Compiler for C supports arguments -mavx512dq: YES (cached)
>> Compiler for C supports arguments -mavx512vl: YES (cached)
>> Compiler for C supports arguments -mvpclmulqdq: YES (cached)
>> Compiler for C supports arguments -mavx2: YES (cached)
>> Compiler for C supports arguments -mavx: YES (cached)
>> Message: lib/net: Defining dependency "net"
>> Message: lib/meter: Defining dependency "meter"
>> Message: lib/ethdev: Defining dependency "ethdev"
>> Message: lib/pci: Defining dependency "pci"
>> Message: lib/cmdline: Defining dependency "cmdline"
>> Run-time dependency jansson found: NO (tried pkgconfig)
>> Message: lib/metrics: Defining dependency "metrics"
>> Message: lib/hash: Defining dependency "hash"
>> Message: lib/timer: Defining dependency "timer"
>> Message: lib/bitratestats: Defining dependency "bitratestats"
>> Message: lib/cfgfile: Defining dependency "cfgfile"
>> Message: lib/gro: Defining dependency "gro"
>> Message: lib/gso: Defining dependency "gso"
>> Message: lib/latencystats: Defining dependency "latencystats"
>> Message: lib/pdump: Defining dependency "pdump"
>> Compiler for C supports arguments -Wno-format-truncation: NO (cached)
>> Compiler for C supports arguments -Wno-cast-qual: YES (cached)
>> Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
>> Compiler for C supports arguments -Wno-pointer-to-int-cast: YES (cached)
>> WARNING: extract_all_objects called without setting recursive
>> keyword argument. Meson currently defaults to
>> non-recursive to maintain backward compatibility but
>> the default will be changed in the future.
>>
>> Message: drivers/common/iavf: Defining dependency "common_iavf"
>> WARNING: extract_all_objects called without setting recursive
>> keyword argument. Meson currently defaults to
>> non-recursive to maintain backward compatibility but
>> the default will be changed in the future.
>>
>> Message: drivers/bus/auxiliary: Defining dependency "bus_auxiliary"
>> Compiler for C supports arguments -Wno-cast-qual: YES (cached)
>> Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
>> WARNING: extract_all_objects called without setting recursive
>> keyword argument. Meson currently defaults to
>> non-recursive to maintain backward compatibility but
>> the default will be changed in the future.
>>
>> Message: drivers/bus/pci: Defining dependency "bus_pci"
>> WARNING: extract_all_objects called without setting recursive
>> keyword argument. Meson currently defaults to
>> non-recursive to maintain backward compatibility but
>> the default will be changed in the future.
>>
>> Message: drivers/bus/vdev: Defining dependency "bus_vdev"
>> Compiler for C supports arguments -std=c11: YES (cached)
>> Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
>> Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
>> Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
>> Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
>> Compiler for C supports arguments -Wdisabled-optimization: YES (cached)
>> Compiler for C supports arguments -Waggregate-return: YES (cached)
>> Compiler for C supports arguments -Wbad-function-cast: YES (cached)
>> Compiler for C supports arguments -Wno-sign-compare: YES (cached)
>> Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
>> Compiler for C supports arguments -Wno-unused-variable: YES (cached)
>> Compiler for C supports arguments -Wno-empty-body: YES (cached)
>> Compiler for C supports arguments -Wno-unused-but-set-variable: NO
>> (cached)
>> WARNING: extract_all_objects called without setting recursive
>> keyword argument. Meson currently defaults to
>> non-recursive to maintain backward compatibility but
>> the default will be changed in the future.
>>
>> Message: drivers/mempool/ring: Defining dependency "mempool_ring"
>> Compiler for C supports arguments -flax-vector-conversions: YES (cached)
>> Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
>> Message: Disabling cnxk [drivers/net/cnxk]: missing internal
>> dependency "cryptodev"
>> Message: Disabling cnxk [drivers/net/cnxk]: missing internal
>> dependency "eventdev"
>> Message: Disabling cnxk [drivers/net/cnxk]: missing internal
>> dependency "security"
>> Message: Disabling cnxk [drivers/net/cnxk]: missing internal
>> dependency "common_cnxk"
>> Message: Disabling cnxk [drivers/net/cnxk]: missing internal
>> dependency "mempool_cnxk"
>> Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
>> Compiler for C supports arguments -Wno-sign-compare: YES (cached)
>> Compiler for C supports arguments -Wno-unused-value: YES (cached)
>> Compiler for C supports arguments -Wno-format: YES (cached)
>> Compiler for C supports arguments -Wno-format-security: YES (cached)
>> Compiler for C supports arguments -Wno-format-nonliteral: YES (cached)
>> Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
>> Compiler for C supports arguments -Wno-unused-but-set-variable: NO
>> (cached)
>> Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
>> WARNING: extract_all_objects called without setting recursive
>> keyword argument. Meson currently defaults to
>> non-recursive to maintain backward compatibility but
>> the default will be changed in the future.
>>
>> Fetching value of define "__AVX2__" : 1 (cached)
>> Fetching value of define "__AVX512F__" :  (cached)
>> Compiler for C supports arguments -mavx512f: YES (cached)
>> Compiler for C supports arguments -mavx512bw: YES (cached)
>> Compiler for C supports arguments -march=skylake-avx512: YES (cached)
>> WARNING: extract_all_objects called without setting recursive
>> keyword argument. Meson currently defaults to
>> non-recursive to maintain backward compatibility but
>> the default will be changed in the future.
>>
>> Message: drivers/net/i40e: Defining dependency "net_i40e"
>> Compiler for C supports arguments -Wno-unused-value: YES (cached)
>> Compiler for C supports arguments -Wno-unused-but-set-variable: NO
>> (cached)
>> Compiler for C supports arguments -Wno-unused-variable: YES (cached)
>> Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
>> WARNING: extract_all_objects called without setting recursive
>> keyword argument. Meson currently defaults to
>> non-recursive to maintain backward compatibility but
>> the default will be changed in the future.
>>
>> Fetching value of define "__AVX2__" : 1 (cached)
>> Fetching value of define "__AVX512F__" :  (cached)
>> Compiler for C supports arguments -mavx512f: YES (cached)
>> Compiler for C supports arguments -mavx512bw: YES (cached)
>> Compiler for C supports arguments -march=skylake-avx512: YES (cached)
>> WARNING: extract_all_objects called without setting recursive
>> keyword argument. Meson currently defaults to
>> non-recursive to maintain backward compatibility but
>> the default will be changed in the future.
>>
>> Message: drivers/net/ice: Defining dependency "net_ice"
>> Compiler for C supports arguments -std=c11: YES (cached)
>> Compiler for C supports arguments -Wno-strict-prototypes: YES (cached)
>> Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
>> Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
>> Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
>> Message: Disabling mlx5 [drivers/net/mlx5]: missing internal
>> dependency "common_mlx5"
>> Message: Disabling octeontx_ep [drivers/net/octeontx_ep]: missing
>> internal dependency "common_octeo
>> ntx2"
>> Library iphlpapi found: YES
>> Compiler for C supports arguments -Wno-pointer-arith: YES (cached)
>> Header <linux/pkt_cls.h> has symbol "TCA_FLOWER_UNSPEC" : NO (cached)
>> Header <linux/pkt_cls.h> has symbol "TCA_FLOWER_KEY_VLAN_PRIO" : NO
>> (cached)
>> Header <linux/pkt_cls.h> has symbol "TCA_BPF_UNSPEC" : NO (cached)
>> Header <linux/pkt_cls.h> has symbol "TCA_BPF_FD" : NO (cached)
>> Header <linux/tc_act/tc_bpf.h> has symbol "TCA_ACT_BPF_UNSPEC" : NO
>> (cached)
>> Header <linux/tc_act/tc_bpf.h> has symbol "TCA_ACT_BPF_FD" : NO (cached)
>> Configuring tap_autoconf.h using configuration
>> Compiler for C supports arguments -D_BSD_SOURCE: YES (cached)
>> Compiler for C supports arguments -D_DEFAULT_SOURCE: YES (cached)
>> Compiler for C supports arguments -D_XOPEN_SOURCE=600: YES (cached)
>> Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
>> Compiler for C supports arguments -Wno-unused-value: YES (cached)
>> Compiler for C supports arguments -Wno-strict-aliasing: YES (cached)
>> Compiler for C supports arguments -Wno-format-extra-args: YES (cached)
>> WARNING: extract_all_objects called without setting recursive
>> keyword argument. Meson currently defaults to
>> non-recursive to maintain backward compatibility but
>> the default will be changed in the future.
>>
>> Message: drivers/net/vmxnet3: Defining dependency "net_vmxnet3"
>> Program doxygen found: NO
>> Program sphinx-build found: NO
>> Configuring rte_build_config.h using configuration
>> Message:
>> =================
>> Libraries Enabled
>> =================
>>
>> libs:
>>         kvargs, telemetry, eal, ring, rcu, mempool, mbuf, net,
>>         meter, ethdev, pci, cmdline, metrics, hash, timer, bitratestats,
>>         cfgfile, gro, gso, latencystats, pdump,
>>
>> Message:
>> ===============
>> Drivers Enabled
>> ===============
>>
>> common:
>>         iavf,
>> bus:
>>         auxiliary, pci, vdev,
>> mempool:
>>         ring,
>> net:
>>         i40e, ice, vmxnet3,
>> raw:
>>
>> crypto:
>>
>> compress:
>>
>> regex:
>>
>> vdpa:
>>
>> event:
>>
>> baseband:
>>
>>
>> Message:
>> =================
>> Content Skipped
>> =================
>>
>> libs:
>>
>> drivers:
>>         common/cpt:     not supported on Windows
>>         common/dpaax:   only supported on Linux
>>         common/mvep:    not supported on Windows
>>         common/octeontx:        not supported on Windows
>>         common/octeontx2:       not supported on Windows
>>         bus/dpaa:       only supported on Linux
>>         bus/fslmc:      only supported on Linux
>>         bus/ifpga:      not supported on Windows
>>         bus/vmbus:      not supported on Windows
>>         common/cnxk:    only supported on 64-bit Linux
>>         common/mlx5:    DevX environment variables are not set,
>> DEVX_LIB_PATH and DEVX_INC_PATH var
>> s must be exported
>>         common/qat:     not supported on Windows
>>         common/sfc_efx: not supported on Windows
>>         mempool/bucket: not supported on Windows
>>         mempool/cnxk:   only supported on 64-bit Linux
>>         mempool/dpaa:   only supported on Linux
>>         mempool/dpaa2:  only supported on Linux
>>         mempool/octeontx:       not supported on Windows
>>         mempool/octeontx2:      not supported on Windows
>>         mempool/stack:  not supported on Windows
>>         net/af_packet:  only supported on Linux
>>         net/af_xdp:     not supported on Windows
>>         net/ark:        not supported on Windows
>>         net/atlantic:   not supported on Windows
>>         net/avp:        only supported on Linux
>>         net/axgbe:      only supported on Linux
>>         net/bnx2x:      not supported on Windows
>>         net/bnxt:       not supported on Windows
>>         net/bonding:    not supported on Windows
>>         net/cnxk:       missing internal dependency, "mempool_cnxk"
>>         net/cxgbe:      not supported on Windows
>>         net/dpaa:       only supported on Linux
>>         net/dpaa2:      only supported on Linux
>>         net/e1000:      not supported on Windows
>>         net/ena:        not supported on Windows
>>         net/enetc:      only supported on Linux
>>         net/enic:       not supported on Windows
>>         net/failsafe:   not supported on Windows
>>         net/fm10k:      not supported on Windows
>>         net/hinic:      not supported on Windows
>>         net/hns3:       only supported on Linux
>>         net/iavf:       not supported on Windows
>>         net/igc:        not supported on Windows
>>         net/ionic:      not supported on Windows
>>         net/ipn3ke:     not supported on Windows
>>         net/ixgbe:      not supported on Windows
>>         net/kni:        not supported on Windows
>>         net/liquidio:   not supported on Windows
>>         net/memif:      only supported on Linux
>>         net/mlx4:       only supported on Linux
>>         net/mlx5:       missing internal dependency, "common_mlx5"
>>         net/mvneta:     not supported on Windows
>>         net/mvpp2:      not supported on Windows
>>         net/netvsc:     not supported on Windows
>>         net/nfb:        not supported on Windows
>>         net/nfp:        only supported on 64-bit Linux
>>         net/ngbe:       not supported on Windows
>>         net/null:       not supported on Windows
>>         net/octeontx:   not supported on Windows
>>         net/octeontx2:  not supported on Windows
>>         net/octeontx_ep:        missing internal dependency,
>> "common_octeontx2"
>>         net/pcap:       missing dependency, "libpcap"
>>         net/pfe:        only supported on Linux
>>         net/qede:       not supported on Windows
>>         net/ring:       not supported on Windows
>>         net/sfc:        not supported on Windows
>>         net/softnic:    only supported on Linux
>>         net/szedata2:   not supported on Windows
>>         net/tap:        only supported on Linux
>>         net/thunderx:   not supported on Windows
>>         net/txgbe:      not supported on Windows
>>         net/vdev_netvsc:        only supported on Linux
>>         net/vhost:      not supported on Windows
>>         net/virtio:     not supported on Windows
>>         regex/mlx5:     only supported on Linux
>>         regex/octeontx2:        only supported on 64-bit Linux
>>
>>
>> Build targets in project: 139
>>
>> Found ninja-1.10.0 at "C:\Program Files\Meson\ninja.EXE"
>> [12/322] Linking target lib/rte_telemetry-21.dll
>>    Creating library lib\rte_telemetry.lib and object lib\rte_telemetry.exp
>> [15/322] Linking target lib/rte_kvargs-21.dll
>>    Creating library lib\rte_kvargs.lib and object lib\rte_kvargs.exp
>> [69/322] Linking target lib/rte_eal-21.dll
>> FAILED: lib/rte_eal-21.dll
>> "clang" @lib/rte_eal-21.dll.rsp
>> clang: error: no such file or directory: 'librte_kvargs.lib'
>> [74/322] Compiling C object lib/librte_rcu.a.p/rcu_rte_rcu_qsbr.c.obj
>> ninja: build stopped: subcommand failed.
>>
>> --- cat build\lib\rte_eal-21.dll.rsp ---
>>  -Wl,/MACHINE:X64 -Wl,/OUT:lib/rte_eal-21.dll
>> lib/librte_eal.a.p/eal_common_eal_common_bus.c.obj li
>> b/librte_eal.a.p/eal_common_eal_common_class.c.obj
>> lib/librte_eal.a.p/eal_common_eal_common_config.
>> c.obj lib/librte_eal.a.p/eal_common_eal_common_debug.c.obj
>> lib/librte_eal.a.p/eal_common_eal_common
>> _dev.c.obj lib/librte_eal.a.p/eal_common_eal_common_devargs.c.obj
>> lib/librte_eal.a.p/eal_common_eal
>> _common_dynmem.c.obj
>> lib/librte_eal.a.p/eal_common_eal_common_errno.c.obj
>> lib/librte_eal.a.p/eal_co
>> mmon_eal_common_fbarray.c.obj
>> lib/librte_eal.a.p/eal_common_eal_common_hexdump.c.obj lib/librte_eal
>> .a.p/eal_common_eal_common_launch.c.obj
>> lib/librte_eal.a.p/eal_common_eal_common_lcore.c.obj lib/li
>> brte_eal.a.p/eal_common_eal_common_log.c.obj
>> lib/librte_eal.a.p/eal_common_eal_common_mcfg.c.obj li
>> b/librte_eal.a.p/eal_common_eal_common_memalloc.c.obj
>> lib/librte_eal.a.p/eal_common_eal_common_memo
>> ry.c.obj lib/librte_eal.a.p/eal_common_eal_common_memzone.c.obj
>> lib/librte_eal.a.p/eal_common_eal_c
>> ommon_options.c.obj
>> lib/librte_eal.a.p/eal_common_eal_common_string_fns.c.obj
>> lib/librte_eal.a.p/ea
>> l_common_eal_common_tailqs.c.obj
>> lib/librte_eal.a.p/eal_common_eal_common_thread.c.obj lib/librte_e
>> al.a.p/eal_common_eal_common_trace_points.c.obj
>> lib/librte_eal.a.p/eal_common_malloc_elem.c.obj lib
>> /librte_eal.a.p/eal_common_malloc_heap.c.obj
>> lib/librte_eal.a.p/eal_common_rte_malloc.c.obj lib/lib
>> rte_eal.a.p/eal_common_eal_common_timer.c.obj
>> lib/librte_eal.a.p/eal_common_rte_random.c.obj lib/li
>> brte_eal.a.p/eal_common_rte_reciprocal.c.obj
>> lib/librte_eal.a.p/eal_common_rte_service.c.obj lib/li
>> brte_eal.a.p/eal_common_rte_version.c.obj
>> lib/librte_eal.a.p/eal_windows_eal.c.obj lib/librte_eal.a
>> .p/eal_windows_eal_alarm.c.obj
>> lib/librte_eal.a.p/eal_windows_eal_debug.c.obj lib/librte_eal.a.p/ea
>> l_windows_eal_dev.c.obj lib/librte_eal.a.p/eal_windows_eal_file.c.obj
>> lib/librte_eal.a.p/eal_window
>> s_eal_hugepages.c.obj
>> lib/librte_eal.a.p/eal_windows_eal_interrupts.c.obj
>> lib/librte_eal.a.p/eal_wi
>> ndows_eal_lcore.c.obj lib/librte_eal.a.p/eal_windows_eal_log.c.obj
>> lib/librte_eal.a.p/eal_windows_e
>> al_memalloc.c.obj lib/librte_eal.a.p/eal_windows_eal_memory.c.obj
>> lib/librte_eal.a.p/eal_windows_ea
>> l_mp.c.obj lib/librte_eal.a.p/eal_windows_eal_thread.c.obj
>> lib/librte_eal.a.p/eal_windows_eal_timer
>> .c.obj lib/librte_eal.a.p/eal_windows_fnmatch.c.obj
>> lib/librte_eal.a.p/eal_windows_getopt.c.obj lib
>> /librte_eal.a.p/eal_windows_rte_thread.c.obj
>> lib/librte_eal.a.p/eal_x86_rte_cpuflags.c.obj lib/libr
>> te_eal.a.p/eal_x86_rte_cycles.c.obj
>> lib/librte_eal.a.p/eal_x86_rte_hypervisor.c.obj lib/librte_eal.
>> a.p/eal_x86_rte_spinlock.c.obj
>> lib/librte_eal.a.p/eal_x86_rte_power_intrinsics.c.obj "-Wl,/nologo"
>> "-Wl,/release" "-Wl,/nologo" "-Wl,/OPT:REF" "-Wl,/DLL"
>> "-Wl,/IMPLIB:lib\rte_eal.lib" "-lws2_32" "-l
>> mincore" "-ladvapi32" "-lsetupapi" "-ldbghelp" "lib\rte_kvargs.lib"
>> "-Wl,/def:C:\dpdk\build\lib\rte
>> _eal_exports.def" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool"
>> "-lshell32" "-lole32" "-loleaut32"
>>  "-luuid" "-lcomdlg32"
>>
>

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

* Re: [dpdk-dev] DPDK meson build failed on Windows
  2021-08-04 19:28   ` Sergey Madaminov
@ 2021-08-04 20:19     ` Dmitry Kozlyuk
  2021-08-04 22:14       ` Sergey Madaminov
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitry Kozlyuk @ 2021-08-04 20:19 UTC (permalink / raw)
  To: Sergey Madaminov; +Cc: William Tu, dpdk-dev

2021-08-04 14:28 (UTC-0500), Sergey Madaminov:
> I've taken a look at this issue. As Dmitry said it is related to the bug
> within meson with having slashes escaping characters. It matters for the
> current meson build files in the DPDK for Windows as there is a reliance on
> strings for some file names.

What do you mean? "librte_kvargs.lib" from the error message should be
"lib\rte_kvargs.lib" because "rte_kvargs.lib" is produced inside "lib"
directory. It is pure meson error in generating ninja commands.

> I believe that it is solvable by replacing
> strings and transitioning to variables. So if there is an interest in that
> or a need to use higher versions of meson I can try to rewrite meson build
> files to solve this problem. Chances I may do that anyway as for current
> OvS meson builds I need meson 0.59.0 version.

DPDK meson.build files must stay compatible with meson 0.49.2.

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

* Re: [dpdk-dev] DPDK meson build failed on Windows
  2021-08-04 20:19     ` Dmitry Kozlyuk
@ 2021-08-04 22:14       ` Sergey Madaminov
  0 siblings, 0 replies; 6+ messages in thread
From: Sergey Madaminov @ 2021-08-04 22:14 UTC (permalink / raw)
  To: Dmitry Kozlyuk; +Cc: William Tu, dpdk-dev

ср, 4 авг. 2021 г. в 15:19, Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>:

> 2021-08-04 14:28 (UTC-0500), Sergey Madaminov:
> > I've taken a look at this issue. As Dmitry said it is related to the bug
> > within meson with having slashes escaping characters. It matters for the
> > current meson build files in the DPDK for Windows as there is a reliance
> on
> > strings for some file names.
>
> What do you mean? "librte_kvargs.lib" from the error message should be
> "lib\rte_kvargs.lib" because "rte_kvargs.lib" is produced inside "lib"
> directory. It is pure meson error in generating ninja commands.
>
>
Yes, sorry, I meant what you just said. Confusing wording on my part.


> > I believe that it is solvable by replacing
> > strings and transitioning to variables. So if there is an interest in
> that
> > or a need to use higher versions of meson I can try to rewrite meson
> build
> > files to solve this problem. Chances I may do that anyway as for current
> > OvS meson builds I need meson 0.59.0 version.
>
> DPDK meson.build files must stay compatible with meson 0.49.2.
>

Of course. I mean the following: I'm using meson 0.59.0 for OvS and I don't
want to keep switching between meson versions.
So I'm going to try to fiddle with the current DPDK meson.build file for my
purposes.
And I can try to make it compatible with the 0.49.2 meson.
Interestingly, I somehow don't have this issue with OvS so I'm going to
check what is going on.
I hope that will result in finding a fix for a DPDK meson.build file :)

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

* Re: [dpdk-dev] DPDK meson build failed on Windows
  2021-08-04 18:45 ` Dmitry Kozlyuk
  2021-08-04 19:28   ` Sergey Madaminov
@ 2021-08-05 13:00   ` William Tu
  1 sibling, 0 replies; 6+ messages in thread
From: William Tu @ 2021-08-05 13:00 UTC (permalink / raw)
  To: Dmitry Kozlyuk; +Cc: dpdk-dev, Sergey Madaminov

On Wed, Aug 4, 2021 at 11:45 AM Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> wrote:
>
> Hi again,
>
> This is exactly the error with 0.58 that I was talking about. Try 0.57.2.
>
> On Wed, Aug 4, 2021, 21:32 William Tu <u9012063@gmail.com> wrote:
>>
>> Hi,
>> I got DPDK compiled on Windows, but suddenly I got this error when
>> compiling DPDK on windows again. (And I don't know why it worked
>> before...)
>> [3/183] "clang" @lib/rte_eal-21.dll.rsp
>> FAILED: lib/rte_eal-21.dll
>> "clang" @lib/rte_eal-21.dll.rsp
>> clang: error: no such file or directory: 'librte_kvargs.lib'
>>
>> Tested on main branch 45633c460c.
>> I also tried meson 0.55.0 but still failed. Any suggestions for
>> debugging or fixing it?
Thanks!
I tested again and now I can get meson 0.55.0 works for me.
meson 0.59.0 fails consistently.
William

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

end of thread, other threads:[~2021-08-06 13:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-04 18:31 [dpdk-dev] DPDK meson build failed on Windows William Tu
2021-08-04 18:45 ` Dmitry Kozlyuk
2021-08-04 19:28   ` Sergey Madaminov
2021-08-04 20:19     ` Dmitry Kozlyuk
2021-08-04 22:14       ` Sergey Madaminov
2021-08-05 13:00   ` William Tu

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).