Can't build with clang-cl after recent (16.9.0) MSVC 2019 update
Fails to build with clang-cl again:
[9/9] Linking target src/ffi-7.dll
FAILED: src/ffi-7.dll src/ffi-7.pdb
"lld-link" /MACHINE:x64 /OUT:src/ffi-7.dll src/x86_win64_intel_S.obj src/ffi-7.dll.p/prep_cif.c.obj src/ffi-7.dll.p/types.c.obj src/ffi-7.dll.p/raw_api.c.obj src/ffi-7.dll.p/java_raw_api.c.obj src/ffi-7.dll.p/closures.c.obj src/ffi-7.dll.p/x86_ffiw64.c.obj "/nologo" "/DEBUG" "/PDB:src\ffi-7.pdb" "/DLL" "/IMPLIB:src\ffi.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "comdlg32.lib" "advapi32.lib"
lld-link: error: duplicate symbol: ffi_type_void
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/types.c.obj
lld-link: error: duplicate symbol: ffi_type_uint8
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/types.c.obj
lld-link: error: duplicate symbol: ffi_type_sint8
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/types.c.obj
lld-link: error: duplicate symbol: ffi_type_uint16
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/types.c.obj
lld-link: error: duplicate symbol: ffi_type_sint16
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/types.c.obj
lld-link: error: duplicate symbol: ffi_type_uint32
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/types.c.obj
lld-link: error: duplicate symbol: ffi_type_sint32
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/types.c.obj
lld-link: error: duplicate symbol: ffi_type_uint64
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/types.c.obj
lld-link: error: duplicate symbol: ffi_type_sint64
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/types.c.obj
lld-link: error: duplicate symbol: ffi_type_pointer
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/types.c.obj
lld-link: error: duplicate symbol: ffi_type_float
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/types.c.obj
lld-link: error: duplicate symbol: ffi_type_double
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/types.c.obj
lld-link: error: duplicate symbol: ffi_type_void
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/raw_api.c.obj
lld-link: error: duplicate symbol: ffi_type_uint8
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/raw_api.c.obj
lld-link: error: duplicate symbol: ffi_type_sint8
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/raw_api.c.obj
lld-link: error: duplicate symbol: ffi_type_uint16
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/raw_api.c.obj
lld-link: error: duplicate symbol: ffi_type_sint16
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/raw_api.c.obj
lld-link: error: duplicate symbol: ffi_type_uint32
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/raw_api.c.obj
lld-link: error: duplicate symbol: ffi_type_sint32
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/raw_api.c.obj
lld-link: error: duplicate symbol: ffi_type_uint64
>>> defined at src/ffi-7.dll.p/prep_cif.c.obj
>>> defined at src/ffi-7.dll.p/raw_api.c.obj
lld-link: error: too many errors emitted, stopping now (use /errorlimit:0 to see all errors)
ninja: build stopped: subcommand failed.
Edited by Aleksandr Mezin