Skip to content

Draft: gnome: link to libclang_rt.asan_dynamic-x86_64 when using MSYS2 CLANG64#15686

Draft
Zaburunier wants to merge 1 commit intomesonbuild:masterfrom
Zaburunier:fix/gir-scanner-msys-clang64-libasan
Draft

Draft: gnome: link to libclang_rt.asan_dynamic-x86_64 when using MSYS2 CLANG64#15686
Zaburunier wants to merge 1 commit intomesonbuild:masterfrom
Zaburunier:fix/gir-scanner-msys-clang64-libasan

Conversation

@Zaburunier
Copy link
Copy Markdown
Contributor

@Zaburunier Zaburunier commented Apr 6, 2026

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/...

…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/...
@Zaburunier Zaburunier requested a review from jpakkane as a code owner April 6, 2026 13:32
@Zaburunier
Copy link
Copy Markdown
Contributor Author

The g-ir-scanner issue has a long story, see #15639 and #1910

Current commit looks very ugly even for me. Any help with investigation is appreciated, alternative solutions are possible I guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant