Draft: gnome: link to libclang_rt.asan_dynamic-x86_64 when using MSYS2 CLANG64#15686
Draft
Zaburunier wants to merge 1 commit intomesonbuild:masterfrom
Draft
Draft: gnome: link to libclang_rt.asan_dynamic-x86_64 when using MSYS2 CLANG64#15686Zaburunier wants to merge 1 commit intomesonbuild:masterfrom
Zaburunier wants to merge 1 commit intomesonbuild:masterfrom
Conversation
…64 toolchain
When using CLANG64 toolchain with MSYS2,
libclang_rt.asan_dynamic-x86_64 is used instead of libasan.
gnome module always trying to add -lasan flag which leads to:
lld: error: unable to find library -lasan
I got the error above with gnome.generate_gir() command.
Library is located at /clang64/lib/clang/${CLANG_MAJOR_VERSION}/lib/windows folder.
The most frustrating part is that it does not work either!
I was forced to specify Windows-style path like C:/msys64/clang64/...
Contributor
Author
This was referenced Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When using CLANG64 toolchain with MSYS2,
libclang_rt.asan_dynamic-x86_64is used instead oflibasan.gnome module always trying to add
-lasanflag which leads to:I got the error above with
gnome.generate_gir()command.Library is located at
/clang64/lib/clang/${CLANG_MAJOR_VERSION}/lib/windowsfolder.The most frustrating part is that it does not work either!
I was forced to specify Windows-style path like
C:/msys64/clang64/...