[PATCH] doc: update parameters to use for mlx5 on Windows
Dariusz Sosnowski
dsosnowski at nvidia.com
Wed Jul 16 11:59:38 CEST 2025
On Tue, Jul 15, 2025 at 06:57:25AM -0700, Andre Muezerie wrote:
> On Tue, Jul 15, 2025 at 02:03:45PM +0200, Dariusz Sosnowski wrote:
*snip*
> > Shouldn't clang linker parameters stay as it was previously i.e., "-L..."?
>
> Not on Windows. It can be confirmed by looking at build\meson-logs\meson-log.txt,
> where it can be seen that the -L option ends up being ignored:
>
> Sanity check compiler command line: clang sanitycheckc.c -o sanitycheckc.exe -IV:\soft\MLNX_WinOF2_DevX_SDK\inc -D_FILE_OFFSET_BITS=64 -Wl,-LV:\soft\MLNX_WinOF2_DevX_SDK\lib
> Sanity check compile stdout:
> LINK : warning LNK4044: unrecognized option '/LV:\soft\MLNX_WinOF2_DevX_SDK\lib'; ignored
>
> As a result the lib mlx5devx is not found:
>
> Has header "mlx5devx.h" : YES
> Library mlx5devx found: NO
In our local Windows builds with clang providing LDFLAGS="-L..." works
and mlx5devx library is reported as found.
However, only Visual Studio Build Tools are installed,
not full Visual Studio package.
It seems that either meson or clang chooses lld, instead of MS linker.
I'll verify what happens there and let you know.
*snip*
More information about the dev
mailing list