Skip to content

Undefined Behaviour Sanitizer: libubsan.a missing? #266

Description

@pschneider1968

On my learning path, I was experimenting with undefined behaviour, and how GCC and Clang can handle this. I compiled a very simple test program with GCC 15.2 from WinLibs on Windows 10, and it failed to link with this error message:

Image

There are a lot of library archive files in my installation directories under "C:\MinGW\ucrt\mingw64\x86_64-w64-mingw32\lib", but libubsan.a is not there. Shouldn't all libraries that are necessary for compiler switches like "-fsanitize=undefined" be included? Or is this expected to be in MS UCRT? Or have I done anything wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions