llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.06k stars 11.59k forks source link

lld-link can't find kernel32.lib/uuid.lib... #109544

Open pawelsopensource opened 6 hours ago

pawelsopensource commented 6 hours ago

Hi, I'm trying to cross compile a simple hello-world (linux->windows) with clang-19 and getting errors from LLD linker about missing kernel32.lib/uuid.lib.

msvc/sdk files extracted from windows machine have lower/uppercase and don't match with clang/lld backend (lowercase).

./kits/10/Lib/10.0.22000.0/um/x86/kernel32.Lib ./kits/10/Lib/10.0.22000.0/um/x86/Uuid.Lib

llvmbot commented 3 hours ago

@llvm/issue-subscribers-lld-coff

Author: Paweł Sikora (pawelsopensource)

Hi, I'm trying to cross compile a simple hello-world (linux->windows) with clang-19 and getting errors from LLD linker about missing kernel32.lib/uuid.lib. msvc/sdk files extracted from windows machine have lower/uppercase and don't match with clang/lld backend (lowercase). ./kits/10/Lib/10.0.22000.0/um/x86/kernel32.**L**ib ./kits/10/Lib/10.0.22000.0/um/x86/**U**uid.**L**ib