Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[compiler-rt][windows][arm64] building with COMPILER_RT_INCLUDE_TESTS causes linker error #66600

Closed
farzonl opened this issue Sep 17, 2023 · 1 comment

Comments

@farzonl
Copy link
Member

farzonl commented Sep 17, 2023

Patform:
OS: Windows 11 Version 22H2 (Build 22621.2283)
clang version 16.0.0
Target: aarch64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
Commit im on: 5bdd5d0

Action:

cmake -GNinja -DLLVM_ENABLE_PROJECTS=llvm;compiler-rt -DCMAKE_BUILD_TYPE=Release \
 -DLLVM_ENABLE_PDB=ON -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_TARGETS_TO_BUILD=AArch64 \
-DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe \
 -DCOMPILER_RT_INCLUDE_TESTS=TRUE -DCMAKE_LINKER=lld-link.exe  \
-S llvm-project\llvm -B compiler-rt_build

ninja -C llvm_build

Then to build the compiler rt tests:

cd llvm_build
ninja check-all

Error im seeing

LINK : fatal error LNK1104: cannot open file 'stl_asan.lib'

is this related to https://github.com/microsoft/STL/blob/main/stl/src/asan.cpp?

@farzonl
Copy link
Member Author

farzonl commented Feb 19, 2024

fixed by upgrading version of STL to after this patch: microsoft/STL#4058

@farzonl farzonl closed this as completed Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants